/* ===== Zero One — Gradient Theme (All Inner Pages) ===== */

/* ── Page shell spacing under gradient header ── */
body:not([data-page="home"]) {
  background: #f8f7fc;
}

body:not([data-page="home"]) .container,
body:not([data-page="home"]) .cart-page,
body:not([data-page="home"]) .checkout-layout {
  max-width: 1320px;
}

/* ── Gradient page hero (products, etc.) ── */
.zg-page-hero {
  position: relative;
  padding: calc(var(--zg-bar-h) + var(--zg-header-h) + 48px) 24px 64px;
  background: linear-gradient(135deg, #0b0814 0%, #1a1033 40%, #2d1b4e 100%);
  overflow: hidden;
}

.zg-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(124, 58, 237, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(236, 72, 153, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

.zg-page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--zg-1), var(--zg-2), var(--zg-3), var(--zg-4));
  background-size: 200% 100%;
  animation: zgFlow 8s linear infinite;
}

.zg-page-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.zg-page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.zg-page-hero p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
  max-width: 480px;
}

.zg-page-hero-img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(124, 58, 237, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zg-page-hero-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* ── Gradient buttons ── */
.btn-zg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--zg-1), var(--zg-2), var(--zg-3));
  background-size: 200% 200%;
  animation: zgLogoShift 6s ease infinite;
  box-shadow: 0 8px 24px -8px rgba(236, 72, 153, 0.6);
  transition: transform 0.3s;
  border: none;
  cursor: pointer;
}

.btn-zg:hover { transform: translateY(-2px) scale(1.02); }

.btn-zg-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}

.btn-zg-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Override Zero black buttons with gradient theme */
.btn-zero {
  background: linear-gradient(135deg, var(--zg-1), var(--zg-2), var(--zg-3)) !important;
  background-size: 200% 200% !important;
  animation: zgLogoShift 6s ease infinite;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 6px 20px -6px rgba(236, 72, 153, 0.5);
  transition: transform 0.3s !important;
}

.btn-zero:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px -8px rgba(236, 72, 153, 0.65) !important;
}

.btn-zero-outline {
  border: 2px solid transparent !important;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--zg-1), var(--zg-2), var(--zg-3)) border-box !important;
  color: var(--zg-1) !important;
  font-weight: 700 !important;
}

.btn-zero-outline:hover {
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(236,72,153,.08)) padding-box,
              linear-gradient(135deg, var(--zg-1), var(--zg-2), var(--zg-3)) border-box !important;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  font-size: 13px;
  color: #6b7280;
}

.breadcrumbs a {
  color: var(--zg-1);
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumbs a:hover { color: var(--zg-2); }

/* ── Page titles ── */
.zg-page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #0b0814, var(--zg-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Filters bar ── */
.filters-bar {
  background: #fff;
  border-radius: 20px;
  padding: 16px 20px !important;
  border: 1px solid rgba(124, 58, 237, 0.08) !important;
  box-shadow: 0 4px 24px -8px rgba(124, 58, 237, 0.12);
  margin-bottom: 32px !important;
}

.filter-pill {
  background: #f3f0ff !important;
  color: #4c1d95 !important;
  border: 1px solid transparent !important;
  font-weight: 600 !important;
  transition: all 0.25s !important;
}

.filter-pill:hover {
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(236,72,153,.12)) !important;
  border-color: rgba(124, 58, 237, 0.2) !important;
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--zg-1), var(--zg-2), var(--zg-3)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px -4px rgba(236, 72, 153, 0.5);
}

.sort-select {
  border: 1px solid rgba(124, 58, 237, 0.15) !important;
  border-radius: 999px !important;
  font-weight: 500;
}

/* ── Section titles ── */
.section-zero-title.split-title {
  background: none;
  -webkit-text-fill-color: #0b0814;
  color: #0b0814;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-zero-title .title-accent {
  background: linear-gradient(135deg, var(--zg-1), var(--zg-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-zero-title:not(.split-title) {
  background: linear-gradient(135deg, #0b0814 30%, var(--zg-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-zero-link,
.section-zero-link:hover {
  background: linear-gradient(90deg, var(--zg-1), var(--zg-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.section-eyebrow {
  color: var(--zg-2) !important;
}

.section-eyebrow::before {
  background: linear-gradient(90deg, var(--zg-1), var(--zg-2), transparent) !important;
}

/* ── Product cards — Zero Lifestyle layout ── */
.products-grid-zero {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 20px !important;
}

/* Mobile — horizontal product scroll (Zero Lifestyle style) */
@media (max-width: 768px) {
  .products-grid-zero--scroll {
    display: flex !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .products-grid-zero--scroll::-webkit-scrollbar {
    display: none;
  }

  .products-grid-zero--scroll > .zero-product-card {
    flex: 0 0 min(292px, calc(100vw - 72px));
    scroll-snap-align: start;
    max-width: none;
    width: min(292px, calc(100vw - 72px));
  }

  .products-grid-zero--scroll > .zero-product-card:hover {
    transform: none;
  }
}

.zero-product-card {
  border-radius: 16px !important;
  border: 1px solid #e8e8e8 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zero-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1) !important;
}

.product-photo {
  mix-blend-mode: normal;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
  transition: transform 0.4s ease;
}

.zero-product-image {
  display: block !important;
  position: relative;
  width: 100%;
  padding: 0 !important;
  background: transparent !important;
  text-decoration: none;
  overflow: hidden;
}

.zero-product-img-wrap,
.zero-product-img-glow,
.zero-product-img-floor {
  display: none !important;
}

.zero-product-img-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 24px 20px;
  box-sizing: border-box;
  background: #f5f5f5;
  overflow: hidden;
}

.zero-product-img-stage::before {
  display: none;
}

.zero-product-image .product-photo {
  position: relative;
  z-index: 1;
  width: auto !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: 82% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}

.zero-product-card:hover .zero-product-image .product-photo {
  transform: scale(1.05);
}

/* Image area badges */
.zero-img-badge {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.zero-img-badge--new,
.zero-img-badge--best { color: #7c3aed; }
.zero-img-badge--was { color: #ec4899; }
.zero-img-badge--feature { color: #6366f1; }
.zero-img-badge--sale { color: #ec4899; }

.zero-sale-badge,
.zero-new-badge,
.zero-best-badge,
.zero-luxury-badge,
.zero-feature-badge {
  display: none !important;
}

.zero-product-body {
  padding: 16px 18px 18px !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zero-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.zero-product-name-link {
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.zero-product-name {
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #0b0814;
  margin: 0 !important;
  line-height: 1.2;
}

.zero-discount-pill {
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  white-space: nowrap;
  flex-shrink: 0;
}

.zero-product-desc {
  font-size: 12px !important;
  color: #9ca3af !important;
  line-height: 1.4;
  margin-bottom: 12px !important;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.zero-product-swatches-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.zero-product-colors {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0 !important;
}

.zero-product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.zero-product-rating .rating-star {
  color: #f59e0b;
  font-size: 13px;
}

.zero-product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.zero-product-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0 !important;
}

.zero-price-old {
  font-size: 12px !important;
  color: #c4c4c4 !important;
  text-decoration: line-through;
  line-height: 1.2;
}

.zero-price-sale {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0b0814 !important;
  background: none !important;
  -webkit-text-fill-color: #0b0814 !important;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.btn-buy-zero {
  flex-shrink: 0;
  padding: 10px 22px;
  background: #0b0814;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.btn-buy-zero:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.btn-buy-zero.added {
  background: #16a34a !important;
}

.zero-color-dot {
  width: 18px !important;
  height: 18px !important;
  border: 1.5px solid #fff !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  border-radius: 50%;
}

.zero-color-more {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}

.zero-save-tag,
.zero-product-meta,
.btn-zero-card {
  display: none !important;
}

/* Just Launched section */
.section-just-launched {
  padding: 56px 0 64px;
  background: #fff;
  overflow: hidden;
}

.launched-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.launched-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b0814;
  margin: 0;
}

.launched-filters {
  display: flex;
  gap: 8px;
}

.launched-filter {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #f3f4f6;
  color: #9ca3af;
}

.launched-filter.active {
  background: #0b0814;
  color: #fff;
}

.launched-filter:hover:not(.active) {
  background: #e5e7eb;
  color: #374151;
}

.launched-scroll {
  padding-left: max(24px, calc((100% - 1200px) / 2));
  padding-right: 24px;
  gap: 20px;
}

.launched-scroll .collab-card {
  flex: 0 0 280px;
  aspect-ratio: 3 / 4.3;
  border-radius: 24px;
  transition: transform 0.35s ease;
}

.launched-scroll .collab-card:hover {
  transform: translateY(-6px);
}

.partnership-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 320px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.btn-zero.added {
  background: #16a34a !important;
  animation: none !important;
  box-shadow: 0 6px 20px -6px rgba(22, 163, 74, 0.5) !important;
}

.btn-zero:hover {
  background: linear-gradient(135deg, var(--zg-2), var(--zg-3), var(--zg-1)) !important;
  color: #fff !important;
}

/* ── Product detail gallery ── */
.product-gallery-panel {
  position: sticky;
  top: calc(var(--zg-bar-h) + var(--zg-header-h) + 24px);
}

.product-gallery-main {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f5f5f5 !important;
  border: none !important;
  border-radius: 16px !important;
  aspect-ratio: 1 / 1;
  min-height: 400px;
  max-height: 580px;
  padding: 48px 40px !important;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: none !important;
}

.product-gallery-glow,
.product-gallery-floor,
.product-gallery-main::before {
  display: none !important;
}

.product-gallery-main .product-photo {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
  margin: 0 auto;
  mix-blend-mode: normal;
  filter: none;
}

.product-gallery-main:hover .product-photo {
  transform: scale(1.03);
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.product-thumbnail {
  width: 72px;
  height: 72px;
  background: #f5f5f5 !important;
  border-radius: 10px !important;
  padding: 8px;
  cursor: pointer;
  border: 2px solid transparent !important;
  transition: border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.product-thumbnail.active,
.product-thumbnail:hover {
  border-color: #1a1a1a !important;
  box-shadow: none !important;
  transform: none;
}

.product-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
  mix-blend-mode: normal;
  filter: none;
}

/* ── Product detail info ── */
.product-info h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  word-wrap: break-word;
}

.product-info-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
}

.product-info-price .product-price-old {
  font-size: 18px;
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af !important;
  background: none !important;
  text-decoration: line-through;
  font-weight: 500;
}

.product-info-price .price-current {
  background: linear-gradient(135deg, var(--zg-1), var(--zg-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.color-swatch.active {
  outline: 2px solid var(--zg-2) !important;
  outline-offset: 2px;
}

/* ── Cart ── */
.cart-page { padding-top: 32px !important; }

.cart-item {
  border-radius: 20px !important;
  border: 1px solid rgba(124, 58, 237, 0.08) !important;
  background: #fff;
}

.cart-item:hover {
  box-shadow: 0 8px 32px -12px rgba(124, 58, 237, 0.18) !important;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: #f5f5f5 !important;
  border-radius: 12px !important;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.cart-summary {
  background: #fff !important;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 24px !important;
  box-shadow: 0 8px 32px -12px rgba(124, 58, 237, 0.15);
}

.cart-summary h3 {
  background: linear-gradient(135deg, #0b0814, var(--zg-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cart-item-price {
  background: linear-gradient(135deg, var(--zg-1), var(--zg-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Checkout ── */
.checkout-card {
  border-radius: 20px !important;
  border: 1px solid rgba(124, 58, 237, 0.08) !important;
  box-shadow: 0 4px 20px -8px rgba(124, 58, 237, 0.1);
  background: #fff;
}

.checkout-card h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.payment-option.active,
.payment-option:hover {
  border-color: var(--zg-2) !important;
  background: linear-gradient(135deg, rgba(124,58,237,.06), rgba(236,72,153,.06)) !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--zg-2) !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15) !important;
}

/* ── Content sections on inner pages ── */
.zg-content-section {
  padding: 48px 0 64px;
}

.zg-content-section .container {
  padding: 0 clamp(18px, 4vw, 40px);
}

/* ── Empty states ── */
.empty-cart {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(124, 58, 237, 0.08);
}

/* ── Admin gradient accents ── */
.login-page {
  background: linear-gradient(135deg, #0b0814 0%, #1a1033 50%, #2d1b4e 100%) !important;
}

.login-card {
  border: 1px solid rgba(124, 58, 237, 0.15) !important;
  box-shadow: 0 24px 64px -16px rgba(124, 58, 237, 0.4) !important;
}

.login-card .btn-primary,
.admin-sidebar .btn-primary {
  background: linear-gradient(135deg, var(--zg-1), var(--zg-2), var(--zg-3)) !important;
  border: none !important;
}

.admin-sidebar {
  background: linear-gradient(180deg, #0b0814, #1a1033) !important;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(236,72,153,.2)) !important;
}

@media (max-width: 768px) {
  .zg-page-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .zg-page-hero p { margin-left: auto; margin-right: auto; }
  .zg-page-hero-img { order: -1; }
  .zg-page-hero-img img { height: 200px; }
}
