/* shop.css */

/* --- Shop Hero --- */
.shop-hero {
  position: relative;
  min-height: 448px;
  height: 58vh;
  max-height: 576px;
  overflow: hidden;
}

.shop-hero__bg {
  position: absolute;
  inset: 0;
}

.shop-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(8, 14, 50, 0.92) 0%,
    rgba(12, 22, 72, 0.72) 45%,
    rgba(10, 18, 60, 0.28) 100%
  );
  z-index: 1;
}

.shop-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.shop-hero__content-outer {
  position: absolute;
  bottom: 4rem;
  left: 0;
  right: 0;
  z-index: 2;
}

.shop-hero__content {
  max-width: 860px;
}

.shop-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  color: #fd8b49;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0;
  animation: sh-rise 0.55s ease-out forwards;
  animation-delay: 0.05s;
}

.shop-hero__rule {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: #fd8b49;
  flex-shrink: 0;
}

.shop-hero__headline {
  font-family: 'Bruno Ace', sans-serif;
  font-weight: 400;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  line-height: 1.0;
}

.shop-hero__h-line1 {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: rgba(218, 247, 255, 0.8);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.1em;
  opacity: 0;
  animation: sh-rise 0.55s ease-out forwards;
  animation-delay: 0.2s;
}

.shop-hero__h-line2 {
  font-size: clamp(3.8rem, 10vw, 7.5rem);
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 0.92;
  opacity: 0;
  animation: sh-rise 0.6s ease-out forwards;
  animation-delay: 0.35s;
}

.shop-hero__h-line3 {
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: sh-rise 0.6s ease-out forwards;
  animation-delay: 0.5s;
}

.shop-hero__h-line3 em {
  font-style: normal;
  color: #fd8b49;
}

.shop-hero__sub {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  color: rgba(218, 247, 255, 0.6);
  letter-spacing: 0.06em;
  margin: 0;
  opacity: 0;
  animation: sh-rise 0.55s ease-out forwards;
  animation-delay: 0.65s;
}

.shop-hero__headline--simple {
  font-family: 'Bruno Ace', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0 0 1rem;
  opacity: 0;
  animation: sh-rise 0.6s ease-out forwards;
  animation-delay: 0.25s;
}

.shop-hero__bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #fd8b49 25%, #daf7ff 65%, transparent 100%);
  z-index: 3;
  opacity: 0.75;
}

@keyframes sh-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .shop-hero {
    min-height: 368px;
    height: 48vh;
  }

  .shop-hero__content-outer {
    bottom: 2.5rem;
  }

  .shop-hero__h-line2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .shop-hero__h-line3 {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }
}

/* --- Shop Grid --- */
.section_shop_grid {
  background-color: #1b2b72;
  color: #ffffff;
  margin-top: 4rem;
}

.section_shop_grid .padding-section-large {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
}

@media (max-width: 991px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Product Cards --- */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: row;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36), 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Court corner brackets */
.product-card::before,
.product-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 4;
  pointer-events: none;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card::before {
  top: -2px;
  left: -2px;
  border-top: 3px solid #fd8b49;
  border-left: 3px solid #fd8b49;
  border-radius: 16px 0 0 0;
}

.product-card::after {
  bottom: -2px;
  right: -2px;
  border-bottom: 3px solid #daf7ff;
  border-right: 3px solid #daf7ff;
  border-radius: 0 0 16px 0;
}

.product-card:hover::before,
.product-card:hover::after {
  width: 36px;
  height: 36px;
}

.product-image-wrapper {
  position: relative;
  width: 50%;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 300px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 22px,
      rgba(218,247,255,0.016) 22px,
      rgba(218,247,255,0.016) 23px
    ),
    linear-gradient(155deg, #0f1e55 0%, #1b2b72 55%, #0c1740 100%);
  overflow: hidden;
  border-radius: 16px 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  box-sizing: border-box;
}

/* orange corner brackets inside image area */
.product-image-wrapper::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(#fd8b49, #fd8b49) top    left  / 22px 2px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) top    left  / 2px 22px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) top    right / 22px 2px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) top    right / 2px 22px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) bottom left  / 22px 2px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) bottom left  / 2px 22px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) bottom right / 22px 2px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) bottom right / 2px 22px no-repeat;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-image-wrapper::before {
  opacity: 0.9;
}

.fomo-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #fd8b49;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 5;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(253, 139, 73, 0.45);
}

.fomo-badge--urgent {
  background: #e53e3e;
  animation: fomo-pulse 1.5s ease-in-out infinite;
}

@keyframes fomo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5));
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-info {
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
}

.product-eyebrow {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #fd8b49;
  margin-bottom: 0.45rem;
}

.product-title {
  font-family: 'Bruno Ace', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: #1b2b72;
  line-height: 1.2;
}

.product-price {
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fd8b49;
  margin-bottom: 0;
}

.product-divider {
  height: 1.5px;
  background: linear-gradient(90deg, #1b2b72 0%, rgba(218,247,255,0.5) 60%, transparent 100%);
  margin: 0.85rem 0;
  opacity: 0.25;
}

.product-description {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  color: #444;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.product-description p { margin: 0 0 0.55rem; }
.product-description ul,
.product-description ol { margin: 0 0 0.55rem; padding-left: 1.1rem; }
.product-description li { margin-bottom: 0.3rem; }
.product-description strong { color: #1b2b72; font-weight: 700; }
.product-description a { color: #fd8b49; text-decoration: none; }

.product-add-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 0.875rem;
  background-color: #fd8b49;
  color: white;
  border-radius: 8px;
  font-family: var(--font-family--heading, 'Bruno Ace', sans-serif);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.product-add-btn:hover {
  background-color: #e67a3a;
  transform: translateY(-1px);
}

.product-add-btn:active {
  transform: translateY(0);
}

/* --- Cart Drawer --- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 40, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(2px);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  color: #1a1a2e;
  z-index: 9999;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1b2b72;
  border-bottom: 3px solid #fd8b49;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-family--heading, 'Bruno Ace', sans-serif);
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.close-cart-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-cart-btn:hover {
  background: rgba(255,255,255,0.25);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

.cart-empty {
  text-align: center;
  padding: 3rem 0;
  color: #888;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f0f0f5;
}

.cart-item-img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f5f9;
  flex-shrink: 0;
  border: 1px solid #e8e9f0;
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1b2b72;
  line-height: 1.3;
}

.cart-item-price {
  color: #fd8b49;
  font-weight: 700;
  font-size: 1rem;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f4f5f9;
  border-radius: 8px;
  padding: 2px 6px;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1b2b72;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: #e0e3f0;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #b0b0b8;
  font-size: 0.78rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #e53e3e;
}

.cart-footer {
  padding: 0 1.75rem 1.75rem;
  border-top: 1px solid #f0f0f5;
  background: #f8f9fc;
  padding-top: 0;
}

/* Cart note */
.cart-note-section {
  border-bottom: 1px solid #eaecf4;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.cart-note-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.cart-note-input {
  width: 100%;
  resize: none;
  border: 1.5px solid #e0e4ef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  color: #1a1a2e;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  display: block;
}

.cart-note-input:focus { border-color: #1b2b72; }
.cart-note-input::placeholder { color: #bbb; }

@media (max-width: 480px) {
  .cart-footer {
    padding: 0 10% 2rem;
  }
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.cart-subtotal span:first-child {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  font-weight: 500;
}

.cart-subtotal span:last-child {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1b2b72;
}

.checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #fd8b49 0%, #e5732f 100%);
  color: white;
  border-radius: 10px;
  font-family: var(--font-family--heading, 'Bruno Ace', sans-serif);
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(253, 139, 73, 0.35);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253, 139, 73, 0.45);
  color: white;
  text-decoration: none;
}

.checkout-btn:active {
  transform: translateY(0);
}

/* --- Product Detail Modal --- */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 50, 0.72);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: min(860px, 94vw);
  max-height: 82vh;
  background: #fff;
  border-radius: 20px;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1), visibility 0.3s ease;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(27, 43, 114, 0.08);
  color: #1b2b72;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.product-modal-close:hover {
  background: rgba(27, 43, 114, 0.15);
}

.product-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  max-height: 82vh;
}

.product-modal-image-wrap {
  position: relative;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 24px,
      rgba(218,247,255,0.018) 24px,
      rgba(218,247,255,0.018) 25px
    ),
    linear-gradient(155deg, #0f1e55 0%, #1b2b72 55%, #0c1740 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  padding: 2.75rem;
}

/* shimmer sweep */
.product-modal-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 25%,
    rgba(218,247,255,0.045) 50%,
    transparent 75%
  );
  animation: modal-img-shimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* orange corner bracket ornaments (all 4 via background shorthand) */
.product-modal-image-wrap::after {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(#fd8b49, #fd8b49) top    left  / 28px 2px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) top    left  / 2px 28px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) top    right / 28px 2px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) top    right / 2px 28px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) bottom left  / 28px 2px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) bottom left  / 2px 28px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) bottom right / 28px 2px no-repeat,
    linear-gradient(#fd8b49, #fd8b49) bottom right / 2px 28px no-repeat;
  opacity: 0.65;
}

.product-modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,0.55));
}

.product-modal-details {
  padding: 1.5rem 1.75rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

.product-modal-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #fd8b49;
  margin: 0 0 0.75rem;
}

.product-modal-title {
  font-family: 'Bruno Ace', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #1b2b72;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  font-weight: 400;
}

.product-modal-price {
  font-family: 'Manrope', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fd8b49;
  margin: 0 0 0.75rem;
}

.product-modal-divider {
  height: 2px;
  background: linear-gradient(90deg, #1b2b72 0%, #daf7ff 100%);
  border-radius: 2px;
  margin-bottom: 0.75rem;
  opacity: 0.25;
}

.product-modal-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.product-modal-desc p {
  margin: 0 0 0.75rem;
}

.product-modal-desc ul,
.product-modal-desc ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.product-modal-desc li {
  margin-bottom: 0.4rem;
}

.product-modal-desc strong {
  color: #1b2b72;
  font-weight: 700;
}

.product-modal-atc {
  width: 100%;
  padding: 1rem;
  font-size: 0.9rem;
}

@keyframes modal-img-shimmer {
  0%   { transform: translateX(-100%) skewX(-12deg); }
  40%  { transform: translateX(220%) skewX(-12deg); }
  100% { transform: translateX(220%) skewX(-12deg); }
}

@media (max-width: 768px) {
  .product-card {
    flex-direction: column;
    overflow: hidden;
  }

  .product-image-wrapper {
    width: 100%;
    min-height: unset;
    aspect-ratio: 1 / 1;
    align-self: auto;
    border-radius: 16px 16px 0 0;
    padding: 2.5rem;
  }

  .product-info {
    padding: 1.5rem 1.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .product-modal-inner {
    grid-template-columns: 1fr;
  }

  .product-modal-image-wrap {
    min-height: 220px;
    max-height: 260px;
    padding: 1.75rem;
  }

  .product-modal-details {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}
