@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --text: #0f1115;
  --text-secondary: #5f6368;
  --text-muted: #8e8e93;
  --border: rgba(0, 0, 0, 0.05);
  --accent: #000000;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

/* ===== HEADER (Floating Island) ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px;
  position: sticky;
  top: 10px;
  margin: 10px 14px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.4) !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.header--glass {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(40px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(210%) !important;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05) !important;
}

.cta-bar--glass {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(40px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(210%) !important;
  border-top: 0.5px solid rgba(0, 0, 0, 0.05) !important;
}

.header--hidden {
  transform: translateY(-100px);
  opacity: 0;
  pointer-events: none;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.header__name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.header__icon-btn:active {
  transform: scale(0.92);
}

/* ===== CATEGORIES BAR (Floating Bottom Dock) ===== */
.categories-bar {
  display: flex;
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  height: 48px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border-radius: 100px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  width: max-content;
  max-width: calc(100% - 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 0.5px solid rgba(255, 255, 255, 0.4) !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.categories-bar--glass {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.3) !important;
}

.categories-bar--hidden,
body.no-scroll .categories-bar {
  transform: translateX(-50%) translateY(120px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.categories-bar__inner {
  display: inline-flex;
  position: relative;
  gap: 0;
}

.category-active-bubble {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--accent);
  border-radius: 100px;
  /* Premium quick snappy slide - Awwwards standard */
  transition: left 0.18s cubic-bezier(0.4, 0, 0.2, 1), width 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.category-chip {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
  background: transparent;
  transition: color 0.1s ease;
  scroll-snap-align: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.category-chip--active {
  color: #fff !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 40px 14px 20px;
  background: var(--bg);
}

.hero-section__content {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
}

.hero-section__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-section__text {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 80px 24px 40px;
  }
  .hero-section__title {
    font-size: 4rem;
  }
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 12px 100px 12px;
  min-height: 75vh;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
  }
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0 16px 40px;
  width: 100%;
}

.pagination__btn {
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
  line-height: 0;
}

.pagination__btn:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
}

.pagination__btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.pagination__info {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  min-width: 40px;
  text-align: center;
}

/* ===== PRODUCT CARD (WITH GRID SWIPE) ===== */
.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  /* Base state: absolute silence. No transition here to prevent boot-up jank. */
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* Revealed state: Here we define the transition. 
   It triggers only when the class is added, ensuring zero-jank. */
.product-card--visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Leaving state: Soft exit upward */
.product-card--leaving {
  opacity: 0 !important;
  transform: translateY(-20px) !important;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
  pointer-events: none;
}

.product-card__image-container {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-card__image-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.product-card__image-track::-webkit-scrollbar {
  display: none;
}

.product-card__slide {
  min-width: 100%;
  height: 100%;
  scroll-snap-align: center;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition);
}

video.product-card__image,
.product-card__image--gif {
  opacity: 1 !important;
  display: block !important;
}

.product-card__image[data-loaded="false"] {
  opacity: 0;
}

.product-card__image[data-loaded="true"] {
  opacity: 1;
}

.product-card__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.product-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
}

.product-card__dot--active {
  background: #000;
  width: 16px;
  border-radius: 100px;
}

.product-card__info {
  padding: 8px 4px 0;
  display: block;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  min-height: 2.7em;
  /* Always 2 lines worth of space */
  margin-bottom: 4px;
}

.product-card__price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card__price-old {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

.product-card__badge--sale {
  background: var(--error);
  color: #fff;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
}

.skeleton--card {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
}

.skeleton--text {
  height: 14px;
  margin-top: 8px;
  border-radius: 4px;
  width: 80%;
}

.skeleton--price {
  height: 16px;
  margin-top: 4px;
  border-radius: 4px;
  width: 40%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===== PRODUCT PAGE ===== */
.product-page {
  padding-bottom: 80px;
}

.product-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-carousel__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.product-carousel__track::-webkit-scrollbar {
  display: none;
}

.product-carousel__slide {
  min-width: 100%;
  height: 100%;
  scroll-snap-align: center;
}

.product-carousel__slide img,
.product-carousel__slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.product-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
}

.product-carousel__dot--active {
  background: var(--accent);
  width: 20px;
  border-radius: 100px;
}

.product-carousel__nav {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
}

.product-carousel__back,
.product-carousel__share {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all var(--transition);
}

.product-carousel__back:hover,
.product-carousel__share:hover {
  background: rgba(255, 255, 255, 1);
}

.product-details {
  padding: 20px 16px;
}

.product-details__name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-details__price {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.product-details__sku {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-details__description {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
}

/* ===== CTA BUTTON (STICKY) ===== */
.cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 100;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.cta-button--glass {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  color: #fff !important;
}

.cta-button--glass:hover {
  background: rgba(0, 0, 0, 0.55) !important;
  transform: scale(0.98);
}

.cta-button:hover {
  background: var(--accent-light, var(--accent)) !important;
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-bar__trust {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  width: 100%;
}

.trust-logos {
  max-width: 100%;
  height: 24px;
  object-fit: contain;
  opacity: 0.8;
}

.cta-button:active {
  transform: scale(0.98);
}

/* ===== CHECKOUT FORM ===== */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.checkout-overlay.active {
  display: block;
  opacity: 1;
}

.checkout-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 16px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
  z-index: 201;
  transform: translateY(100%);
  transition: transform 300ms ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

@media (min-width: 1024px) {
  .checkout-sheet {
    max-width: 800px;
    width: 100%;
    left: 50%;
    right: auto;
    margin: 0 auto;
    transform: translate(-50%, 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 40px;
  }
  
  .checkout-sheet.active {
    transform: translate(-50%, 0);
  }

  .checkout-sheet__handle {
    display: none;
  }

  .checkout-sheet__close {
    top: 24px;
    right: 24px;
  }
}

.checkout-sheet__header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.checkout-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 100px;
  background: #e4e4e7;
  margin: 12px auto 20px;
}

.checkout-sheet__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  z-index: 10;
}

.checkout-sheet__close:hover {
  background: #e4e4e7;
}

.checkout-sheet__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.checkout-sheet__product {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  margin-bottom: 20px;
}

.checkout-sheet__product-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.checkout-sheet__product-info {
  flex: 1;
}

.checkout-sheet__product-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.checkout-sheet__product-price {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.payment-option__content {
  flex: 1;
}

.payment-option__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.payment-option__sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.payment-option:hover {
  border-color: var(--text-muted);
}

.payment-option.selected {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.payment-option__radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-option.selected .payment-option__radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #16a34a;
  margin-bottom: 20px;
  font-weight: 500;
}

.payment-option.selected .payment-option__radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== SEARCH ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 2000;
  display: none;
  flex-direction: column;
}

.search-overlay.active {
  display: flex;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.search-bar__input {
  flex: 1;
  height: 60px;
  padding: 0 28px;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-secondary);
  border-radius: 100px;
  font-size: 1.125rem;
  font-family: var(--font);
  font-weight: 500;
  outline: none;
  color: var(--text);
  caret-color: var(--accent);
}

.search-bar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.search-bar__close:hover {
  background: var(--border);
  transform: rotate(90deg);
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.search-results .product-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  width: 100%;
}

.search-results .product-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  width: 100%;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: all !important;
  transition: background var(--transition);
}

.search-results .product-card:last-child {
  border-bottom: none;
}

.search-results .product-card:hover {
  background: rgba(0, 0, 0, 0.02);
}

.search-results .product-card__image-container {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.search-results .product-card__info {
  padding: 0;
  text-align: left;
  flex: 1;
}

.search-results .product-card__name {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 4px;
  min-height: 0 !important;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--text);
}

.search-results .product-card__price {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  opacity: 1;
}

.search-results {
  flex: 1;
  overflow-y: auto;
}

/* ===== BURGER MENU ===== */
.burger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 400;
  display: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.burger-overlay.active {
  display: block;
  opacity: 1;
}

.burger-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg);
  z-index: 401;
  transform: translateX(100%);
  transition: transform 300ms ease;
  display: flex;
  flex-direction: column;
}

.burger-menu.active {
  transform: translateX(0);
}

.burger-menu__header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.burger-menu__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.burger-menu__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: transparent;
  border-radius: 50%;
}

.burger-menu__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.burger-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background var(--transition);
}

.burger-menu__item:hover {
  background: var(--bg-secondary);
}

.burger-menu__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 16px;
}

.burger-menu__footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== INFO PAGE (ACCORDION) ===== */
.info-page {
  padding: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.info-page__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  transition: background var(--transition);
  color: var(--text);
}

.accordion__header:hover {
  background: var(--bg-secondary);
}

.accordion__icon {
  transition: transform var(--transition);
  font-size: 0.8rem;
}

.accordion.open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.accordion.open .accordion__body {
  max-height: 1000px;
}

.accordion__content {
  padding: 0 16px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PRODUCT SPECS (Постановление №31) ===== */
.product-specs {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.product-specs__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.product-specs__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-specs__item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  line-height: 1.4;
}

.product-specs__label {
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-right: 16px;
}

.product-specs__value {
  text-align: right;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 16px 100px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer p {
  margin-bottom: 4px;
}

.footer a {
  text-decoration: none;
}

.footer a {
  color: var(--text);
  text-decoration: none;
}

.info-page a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

/* ===== UTILITIES ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-state__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.empty-state__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===== RECEIPT PAGE ===== */
.receipt-page {
  padding: 24px 16px 80px;
  max-width: 500px;
  margin: 0 auto;
}

.receipt-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.receipt-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--bg-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.receipt-card__status.status--paid {
  background: #f0fdf4;
  color: #166534;
}

.receipt-card__status.status--pending {
  background: #fefce8;
  color: #854d0e;
}

/* ===== SPINNER RING ===== */
.spinner-ring {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(133, 77, 14, 0.25);
  border-top-color: #854d0e;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.receipt-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.receipt-card__date {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.receipt-line {
  border-top: 2px dashed var(--border);
  margin: 24px 0;
}

.receipt-item {
  margin-bottom: 24px;
}

.receipt-item__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}

.receipt-item__name {
  font-weight: 600;
  font-size: 1rem;
}

.receipt-item__price {
  font-weight: 700;
  white-space: nowrap;
}

.receipt-item__sku {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.receipt-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.receipt-specs__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.receipt-specs__label {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.receipt-specs__value {
  text-align: right;
  font-weight: 500;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}

.receipt-total__label {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.receipt-total__value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.receipt-actions {
  margin-top: 32px;
}

/* ===== PAYMENT INSTRUCTION CARD ===== */
.payment-instr-card {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.payment-instr-card__label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.payment-instr-card__amount {
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 500;
}

.payment-instr-card__amount strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.payment-instr-card__rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
}

.payment-instr-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: var(--bg);
  font-size: 0.8125rem;
}

.payment-instr-card__row span {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.payment-instr-card__row strong {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
  color: var(--text);
}

.payment-instr-card__code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.payment-instr-card__code:active {
  opacity: 0.6;
}

.payment-instr-card__code code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.payment-instr-card__note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== RECEIPT UPLOAD BLOCK ===== */
.receipt-upload-block {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.receipt-upload-block__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.receipt-upload-block__sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}


/* Hero Carousel Removed */

/* ===== DELIVERY OPTIONS (REDESIGNED) ===== */
.delivery-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.delivery-switch-text {
  display: flex;
  flex-direction: column;
}

.delivery-switch-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.delivery-switch-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e4e4e7;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
  background-color: var(--accent);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

.delivery-details {
  display: none;
  margin-bottom: 24px;
  animation: slideDown 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== AWWWARDS COMPACT BENTO FOOTER ===== */
.footer {
  background: var(--bg, #fff) !important;
  /* White background */
  color: var(--text, #000) !important;
  /* Black text */
  padding: 40px 20px 120px;
  font-family: var(--font, 'Inter', sans-serif);
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  margin-top: 20px;
  text-align: left;
}

.footer__inner {
  width: 100%;
  margin: 0 auto;
}

.footer__header {
  margin-bottom: 60px;
}

.footer__brand {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text, #000);
  margin: 0;
  text-transform: uppercase;
  word-wrap: break-word;
}

/* FULL WIDTH STACKED BLOCKS */
.footer__data-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 60px;
}

.footer__data-cell {
  width: 100%;
}

.footer__label {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15rem;
  color: var(--text-muted, rgba(0, 0, 0, 0.5));
  text-transform: uppercase;
}

.footer__text {
  font-size: 13px;
  /* Compact reading size */
  line-height: 1.5;
  color: var(--text-secondary, rgba(0, 0, 0, 0.8));
}

.footer__text strong {
  font-weight: 700;
  color: var(--text, #000);
}

/* PRODUCT DETAILS ADDITIONS */
.product-details__stock {
  margin-bottom: 24px;
}

.stock-status {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
}

.stock-status--in {
  background: rgba(0, 200, 83, 0.08);
  color: #00C853;
}

.stock-status--out {
  background: rgba(255, 0, 0, 0.08);
  color: #ff0000;
}

.product-details__sizes {
  margin-top: 32px;
  margin-bottom: 32px;
}

.product-details__label {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-chip {
  min-width: 52px;
  width: max-content;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0 16px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.size-chip:hover {
  border-color: var(--text);
  background: rgba(0, 0, 0, 0.02);
}

.size-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-details__quantity {
  margin-bottom: 40px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-secondary);
  width: fit-content;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.quantity-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}

.quantity-btn:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.quantity-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  min-width: 32px;
  text-align: center;
}

.footer__text a,
.footer__doc-link {
  color: var(--text, #000);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
  letter-spacing: 0.02em;
}

.footer__text a:hover,
.footer__doc-link:hover {
  opacity: 0.6;
}

.footer__bottom {
  padding-top: 20px;
  border-top: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__copyright {
  font-size: 11px;
  color: var(--text-muted, rgba(0, 0, 0, 0.5));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__stamp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}

.footer__stamp-text {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer__stamp-logo {
  height: 28px;
  width: auto;
  /* Dark logo for white bg */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__stamp:hover .footer__stamp-logo {
  transform: scale(1.08);
  /* Smoother, slightly larger increase */
}

.footer__stamp:active .footer__stamp-logo {
  transform: scale(0.95);
  /* Better tactile feedback on click */
}

/* ===== BENTO FOOTER CARDS ===== */
.footer__bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer__bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer__card {
  background: transparent;
  border: none;
  border-radius: 20px;
  display: block;
  transition: transform 0.3s ease;
}

.footer__card--double {
  grid-row: span 1;
}

@media (min-width: 1024px) {
  .footer__card--double {
    grid-row: span 2;
  }
}

.footer__card:hover {
}

.footer__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px;
  cursor: pointer;
  list-style: none;
}

.footer__card-header::-webkit-details-marker {
  display: none;
}

.footer__card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__card-chevron {
  transition: transform 0.3s ease;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

details[open].footer__card .footer__card-chevron {
  transform: rotate(180deg);
}

.footer__card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 10px;
  color: var(--text);
  border: none;
  flex-shrink: 0;
  opacity: 0.7;
}

.footer__card-title {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.footer__card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px 16px 4px;
}

.footer__card-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer__card-text strong {
  color: var(--text);
  font-weight: 700;
}

.footer__card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 14px;
  background: transparent;
  border-radius: 12px;
  border: none;
  transition: all 0.2s ease;
  width: fit-content;
}

.footer__card-link:hover {
  background: var(--border);
  transform: translateX(4px);
}

/* FULL ELECTRONIC RECEIPT */
.footer__full-receipt {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.footer__full-receipt-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 200, 83, 0.1);
  color: #00C853;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer__full-receipt-status svg {
  stroke: #00C853;
}

.footer__full-receipt-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.footer__full-receipt-date {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.footer__full-receipt-line {
  border: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  margin: 20px 0;
}

.footer__full-receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.footer__full-receipt-name {
  font-size: 15px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.footer__full-receipt-sku {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  display: block;
}

.footer__full-receipt-price {
  font-size: 15px;
  font-weight: 800;
}

.footer__full-receipt-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__full-receipt-spec {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.footer__full-receipt-spec span:first-child {
  color: rgba(0, 0, 0, 0.5);
}

.footer__full-receipt-spec span:last-child {
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.footer__full-receipt-amount {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  color: var(--shop-accent, #000);
}

.delivery-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-card {
  cursor: pointer;
  width: 100%;
}

.delivery-card input {
  display: none;
}

.delivery-card__content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.delivery-card__icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.delivery-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delivery-card__info {
  flex: 1;
}

.delivery-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.delivery-card__sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.delivery-card__radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  transition: all var(--transition);
}

.delivery-card input:checked+.delivery-card__content {
  border-color: var(--accent);
  background: #fbfbfb;
}

.delivery-card input:checked+.delivery-card__content .delivery-card__radio {
  border-color: var(--accent);
  background: var(--accent);
}

.delivery-card input:checked+.delivery-card__content .delivery-card__radio::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .checkout-sheet {
    max-height: 92vh;
    overflow-y: auto;
  }
}
/* Secondary Button Styles */
.cta-button--secondary {
  background: #f4f4f5 !important;
  color: #111 !important;
  border: 1.5px solid var(--border) !important;
  text-transform: none !important;
  font-weight: 600 !important;
}

.cta-button--secondary:hover {
  background: #e4e4e7 !important;
  color: #000 !important;
  filter: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* ===== DESKTOP PREVIEW (PRODUCT PAGE GRID) ===== */
@media (min-width: 1024px) {
  .product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    align-items: flex-start;
  }

  .product-carousel {
    position: sticky;
    top: 80px;
    aspect-ratio: 1/1 !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .product-details {
    padding: 0;
  }

  .cta-bar {
    position: static;
    padding: 0;
    margin-top: 32px;
    background: transparent;
    backdrop-filter: none;
    border-top: none;
    box-shadow: none;
    z-index: 10;
  }
  
  .cta-button {
    max-width: 100%;
  }
  
  .product-carousel__slide img {
    object-fit: cover !important; /* Makes photos look proportional inside grid on desk */
  }

  /* ===== FOOTER DESKTOP GRID ===== */
  .footer__data-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
  }

  /* Expand accordions into static columns on desktop */
  .footer__accordion {
    pointer-events: none;
    border: none !important;
    background: transparent !important;
  }
  
  .footer__accordion-header {
    list-style: none;
    font-weight: 700;
    font-size: 0.875rem !important;
    color: var(--text);
    padding: 0 !important;
    background: transparent !important;
  }
  
  .footer__accordion-header::-webkit-details-marker {
    display: none;
  }
  
  .footer__accordion-header svg {
    display: none !important;
  }

  .footer__accordion-content {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    padding: 12px 0 0 0 !important;
    border-top: none !important;
    transition: none !important;
  }
}


/* ===== CUSTOM FIXES FOR DESKTOP MODAL & LOGOS ===== */
@media (min-width: 1024px) {
  .checkout-sheet {
    max-width: 1080px !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, 100%) !important;
    border-radius: 24px 24px 0 0 !important;
  }
  .checkout-sheet.active {
    transform: translate(-50%, 0) !important;
  }
}

.trust-logos {
  max-width: 320px !important;
  height: 50px !important;
  object-fit: contain !important;
}

.product-details__description {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* ===== CART UI ===== */
.cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--shop-accent);
  color: var(--shop-accent-text);
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(25%, -25%) scale(0.5);
  border: 1.5px solid var(--shop-bg);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.cart-badge.active {
  opacity: 1;
  transform: translate(25%, -25%) scale(1);
}

.floating-cart {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 20px) + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  z-index: 1000;
  background: var(--shop-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  width: calc(100% - 32px);
  max-width: 480px;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floating-cart.active {
  transform: translateX(-50%) translateY(0);
}

.floating-cart__info {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
}

.floating-cart__dot {
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
  margin: 0 10px;
}

.floating-cart__btn {
  background: var(--shop-accent);
  color: var(--shop-accent-text);
  border: none;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.floating-cart__btn:active {
  transform: scale(0.96);
  opacity: 0.8;
}

/* ===== CART ITEM (unified) ===== */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 45vh;
  overflow-y: auto;
  padding-right: 2px;
}

.cart-items::-webkit-scrollbar {
  width: 3px;
}
.cart-items::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 16px;
  min-width: 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item__img {
  width: 72px;
  height: 72px;
  min-width: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--border);
}

/* Right side: vertical column */
.cart-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Top row: name + delete */
.cart-item__top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}

.cart-item__name {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text);
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item__remove {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, opacity 0.2s;
  margin-top: -2px;
}

.cart-item__remove:hover {
  color: #000;
}

/* Meta row: price · size · mods */
.cart-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-width: 0;
}

.cart-item__price {
  font-weight: 700;
  color: var(--text);
  font-size: 0.8125rem;
}

.cart-item__sep {
  opacity: 0.35;
  font-weight: 400;
}

.cart-item__size,
.cart-item__mods {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: normal;
}

/* Bottom row: qty-control + subtotal */
.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.cart-item__subtotal {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}

/* Qty control */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px 6px;
}

.qty-control button {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 7px;
  color: #000;
  transition: background 0.15s;
  flex-shrink: 0;
}

.qty-control button:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

.qty-control__val {
  font-weight: 700;
  font-size: 0.875rem;
  min-width: 22px;
  text-align: center;
  color: var(--text);
}

/* Summary */
.cart-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 700;
}

.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.cta-button.btn-success {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #fff !important;
}

#add-to-cart-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-bar {
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 8px) !important;
}

.product-card__add-cart {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(10px);
}

.product-card:hover .product-card__add-cart {
  opacity: 1;
  transform: translateY(0);
}

.product-card__add-cart:active {
  transform: scale(0.9);
}

.product-card__add-cart.success {
  background: #10b981;
  color: #fff;
}

.cart-summary button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== PRODUCT CAROUSEL ARROWS ===== */
.product-carousel__arrow {
  display: none; /* Hidden by default on mobile */
}

@media (min-width: 1024px) {
  .product-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0; /* Show on hover of the carousel */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }

  .product-carousel:hover .product-carousel__arrow {
    opacity: 1;
  }

  .product-carousel__arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .product-carousel__arrow--left {
    left: 20px;
  }

  .product-carousel__arrow--right {
    right: 20px;
  }
}
