/**
 * -----------------------------------------
 * SAYR WATCHES
 * Budget Storefront Layout Stylesheet
 *
 * Responsibility:
 * Warm cream brand layout, hero panel, header, catalog layout,
 * announcement bar, and ghost button adaptation for cream surfaces.
 *
 * Dependencies:
 * css/variables.css, css/restoration.css
 *
 * Ownership Boundary:
 * Budget Storefront (Layout Styling Layer)
 * -----------------------------------------
 */

/* ── 0. Silky Friction-Free Scroll Engine (Budget Storefront) ── */
html[data-theme="basic"] {
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#basic-main img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ── Disable WebKit Blue Tap Highlight & Text Selection Overlay on Taps ── */
#basic-main .product-card,
#basic-main .b-card,
#basic-main button,
#basic-main a,
.pc-body,
.pc-image-wrap {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

#basic-main .product-card:active {
  transform: scale(0.988);
  transition: transform 0.08s ease;
}

/* Disable full-screen SVG feTurbulence filter on budget storefront for 120Hz GPU scrolling */
html[data-theme="basic"] body::after {
  display: none;
}

/* Eliminate opposing translateY(24px) animation on scroll — smooth opacity fade only */
#basic-main .reveal {
  opacity: 0;
  transform: none;
  transition: opacity 0.45s ease;
}
#basic-main .reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Hero Override ── */
#hero {
  position: relative;
  min-height: 75svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: var(--bg);
  padding: 80px 20px 60px;
}
#hero .hero-bg {
  background-image: none;
}
/* Warm cream vignette — subtle gold radiance fading to cream */
.hero-vignette {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(200,164,93,0.04) 0%, transparent 65%),
    linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(248,245,238,0.4) 85%, var(--bg) 100%);
}
/* Understated dot texture (Hardware-accelerated without software mask-image) */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15,53,88,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 10;
  margin-top: 0;
}

/* ── Clean Hero Content ── */

/* ── Announcement bar override ── */
.announcement-bar {
  background: linear-gradient(90deg, #0e0b05 0%, #1c1505 35%, #241a06 50%, #1c1505 65%, #0e0b05 100%);
  border-bottom: 1px solid rgba(200,164,93,0.4);
}


/* ── Budget Hero Title Refinement ── */
#basic-main #hero .hero-ornament {
  transform: translateY(-17px);
}
#basic-main #hero .hero-title,
#basic-main #hero.loaded .hero-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  letter-spacing: 0.18em;
  line-height: 1.15;
  color: #0F3558;
  margin: 0 auto 0 auto;
  text-align: center;
  transform: translateY(-17px);
}

/* ── Budget Hero Buttons: Harmonized with Index Storefront ── */
#basic-main #hero .hero-ctas {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 340px;
  margin: 36px auto 0 auto;
  gap: 12px;
}

#basic-main #hero .hero-ctas .btn-primary,
#basic-main #hero .hero-ctas .btn-ghost {
  width: 100%;
  height: var(--control-md, 50px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button-mobile, 8px);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 20px;
  transition: all var(--duration-fast, 0.25s) var(--ease-luxury, ease);
  text-decoration: none;
  box-sizing: border-box;
}

/* Primary CTA: Solid Deep Navy with Gold border accent */
#basic-main #hero .hero-ctas .btn-primary {
  background: #0F3558;
  color: #FAF8F5;
  font-weight: 500;
  border: 1px solid rgba(200, 164, 93, 0.45);
  box-shadow: 0 4px 14px rgba(15, 53, 88, 0.18);
}
#basic-main #hero .hero-ctas .btn-primary:hover {
  background: #174A78;
  color: #C8A45D;
  border-color: #C8A45D;
  box-shadow: 0 8px 24px rgba(15, 53, 88, 0.26);
  transform: translateY(-2px);
}
#basic-main #hero .hero-ctas .btn-primary:active {
  transform: translateY(0);
}

/* Ghost CTAs: Refined Transparent / Outline with Navy border and text */
#basic-main #hero .hero-ctas .btn-ghost {
  background: rgba(15, 53, 88, 0.03);
  color: #0F3558;
  font-weight: 450;
  border: 1px solid rgba(15, 53, 88, 0.28);
  box-shadow: 0 2px 8px rgba(15, 53, 88, 0.05);
}
#basic-main #hero .hero-ctas .btn-ghost::before {
  display: none;
}
#basic-main #hero .hero-ctas .btn-ghost:hover {
  background: rgba(15, 53, 88, 0.08);
  border-color: #C8A45D;
  color: #0F3558;
  box-shadow: 0 6px 18px rgba(15, 53, 88, 0.12);
  transform: translateY(-2px);
}
#basic-main #hero .hero-ctas .btn-ghost:active {
  transform: translateY(0);
}

@media (min-width: 641px) {
  #hero {
    min-height: 75svh;
    padding: 90px 24px 54px;
  }
  #basic-main #hero .hero-ornament {
    transform: translateY(-17px);
  }
  #basic-main #hero .hero-title,
  #basic-main #hero.loaded .hero-title {
    transform: translateY(-17px);
  }
  #basic-main #hero .hero-ctas {
    flex-direction: row;
    max-width: 820px;
    margin: 64px auto 0 auto;
    gap: 16px;
  }
  #basic-main #hero .hero-ctas .btn-primary,
  #basic-main #hero .hero-ctas .btn-ghost {
    width: auto;
    height: var(--control-lg, 54px);
    border-radius: var(--radius-button-desktop, 10px);
    padding: 0 26px;
  }
}

/* ── Layout Classes ── */
.b-sticky-nav-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(248,245,238,0.94);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
@media (max-width: 768px) {
  .b-sticky-nav-header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.b-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.b-brand-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--primary);
}

.b-brand-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-dark);
  border: 1px solid var(--border-subtle);
  background: rgba(200, 164, 93, 0.05);
  padding: 3px 8px;
}

.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.b-catalog-section {
  padding: 56px 24px 80px;
}

.b-catalog-container {
  max-width: 1440px;
  margin: 0 auto;
}

.b-catalog-header {
  text-align: center;
  margin-bottom: 36px;
}

.b-catalog-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin: 12px 0;
}

.b-gold-line-center {
  width: 60px;
  margin: 0 auto;
}

/* ── Sticky Filter Bar: Deep Navy Architectural Island ── */
#basicFilterBar {
  position: sticky;
  top: 12px;
  z-index: 100;
  background: #0F3558;
  border: 1px solid rgba(200, 164, 93, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 53, 88, 0.22);
  padding: 16px 20px;
  margin-top: 36px;
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#basicFilterBar:hover {
  border-color: rgba(200, 164, 93, 0.55);
}
.b-desktop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.b-mobile-filter-row {
  display: none;
}
.b-drawer-scrim,
.b-drawer {
  display: none;
}
@media (min-width: 481px) {
  #basicFilterBar {
    justify-content: flex-start;
  }
  .basic-fb-search {
    width: 280px;
    max-width: 280px;
  }
  #basicFilterBar button[data-gender="all"] {
    margin-left: auto;
  }
}

/* Deep Navy Island: Filter Chips */
#basicFilterBar .filter-chip {
  height: 48px;
  border-radius: 24px;
  background: rgba(250, 248, 245, 0.08);
  color: #FAF8F5;
  border: 1px solid rgba(200, 164, 93, 0.3);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0 18px;
  transition: all var(--duration-fast, 0.2s) var(--ease-luxury, ease);
}
#basicFilterBar .filter-chip:hover {
  background: rgba(200, 164, 93, 0.2);
  color: #C8A45D;
  border-color: #C8A45D;
  transform: translateY(-1px);
}
#basicFilterBar .filter-chip.active {
  background: #C8A45D;
  color: #0F3558;
  border-color: #C8A45D;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(200, 164, 93, 0.35);
  transform: translateY(0);
}

/* ── Info Features Grid ── */
.basic-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ── Announcement Bar Theme Overrides (Harmonized with Index Storefront) ── */
#basicAnnBar {
  position: relative;
  background: linear-gradient(90deg, #082136 0%, #0c2b48 35%, #0F3558 50%, #0c2b48 65%, #082136 100%);
  border-bottom: 1px solid rgba(200, 164, 93, 0.22);
  box-shadow: 0 1px 8px rgba(15, 53, 88, 0.2);
  padding: 8px 44px 8px 16px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#basicAnnBar .announcement-bar-text {
  color: #F8F5EE;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.4;
}
#basicAnnBar .announcement-bar-text strong {
  color: #E0C888;
  background: rgba(200, 164, 93, 0.1);
  border: 1px solid rgba(200, 164, 93, 0.25);
  padding: 1px 8px;
  letter-spacing: 0.16em;
  font-weight: 500;
}
@media (max-width: 480px) {
  #basicAnnBar .announcement-bar-text {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    gap: 6px;
  }
  #basicAnnBar .ann-dot {
    display: none;
  }
}

/* ── Bluish Card Click Shadow Override ── */
.product-card:active {
  box-shadow: 0 10px 30px rgba(15, 53, 88, 0.32);
  transform: scale(0.98);
}

/* ── Budget Button Active Press Scales ── */
#basic-main #hero .btn-primary:active,
#basic-main #hero .btn-ghost:active,
.cart-fab:active,
.qty-btn:active {
  transform: scale(0.97);
}

/* ════════════════════════════════════════════════════════════════
   BUDGET PRODUCT CARD — PREMIUM THEME (IVORY - NAVY - GOLD)
   ════════════════════════════════════════════════════════════════ */

/* 1. Card Container: Seamless Navy Base & Subtle Gold Border (Matches Index Proportions) */
#basic-main .product-card {
  background: #0F3558;
  border: 1px solid rgba(200, 164, 93, 0.3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 53, 88, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  contain: layout style;
  touch-action: pan-y;
}

#basic-main .product-card:hover {
  border-color: rgba(200, 164, 93, 0.6);
  box-shadow: 0 12px 30px rgba(15, 53, 88, 0.22);
  transform: translateY(-4px);
}

/* 2. Photo Area: 1:1 Square Aspect Ratio with Spacious Padding (Matching Index) */
@keyframes pcGlowShimmerBudget {
  0% { transform: translateX(-100%); opacity: 0.3; }
  50% { opacity: 0.7; }
  100% { transform: translateX(100%); opacity: 0.3; }
}

#basic-main .pc-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #F8F5EE;
  border-radius: 7px 7px 0 0;
  border-bottom: 1px solid rgba(200, 164, 93, 0.32);
  flex-shrink: 0;
}

#basic-main .pc-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 164, 93, 0.15) 50%, transparent 100%);
  pointer-events: none;
  animation: pcGlowShimmerBudget 2s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 0;
}

#basic-main .pc-image-wrap.pc-img-loaded::before {
  opacity: 0;
  animation: none;
}

#basic-main .pc-img-main,
#basic-main .pc-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}

#basic-main .pc-img-hover {
  opacity: 0;
  transform: scale(1.05) translateZ(0);
}

/* Only transition hover image if hover is genuinely supported and hover image exists */
@media (hover: hover) and (pointer: fine) {
  #basic-main .product-card:has(.pc-img-hover):hover .pc-img-main {
    opacity: 0;
    transform: scale(1.03) translateZ(0);
  }

  #basic-main .product-card:hover .pc-img-hover {
    opacity: 1;
    transform: scale(1.02) translateZ(0);
  }
}

/* Ensure no blue discount bar or strip appears over the photo */
#basic-main .pc-discount {
  display: none;
}

/* Stock Pill (Bottom-Left of Photo) */
#basic-main .pc-image-stock-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 53, 88, 0.15);
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* 3. Lower Product Area: Deep Navy Blue Body (#0F3558) */
#basic-main .pc-body {
  background: #0F3558;
  color: #FAF8F5;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Info Zone */
#basic-main .card-info-zone {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 12px;
}

/* Collection Tag */
#basic-main .pc-collection {
  color: #C8A45D;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.95;
}

/* Watch Name (Clamped to 2 lines for uniform card heights) */
#basic-main .pc-name {
  color: #FAF8F5;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.35em * 2);
}

#basic-main .pc-title-link {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

#basic-main .pc-title-link:hover,
#basic-main .pc-title-link:focus-visible {
  color: #D4AF37;
}

/* Movement / Subtitle */
#basic-main .pc-movement,
#basic-main .pc-color-label {
  color: rgba(248, 245, 238, 0.72);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* Price Row */
#basic-main .pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

/* Price */
#basic-main .pc-price {
  color: #E0C888;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(200, 164, 93, 0.3);
}

/* Original Strikethrough Price */
#basic-main .pc-orig {
  color: rgba(248, 245, 238, 0.45);
  font-size: 0.75rem;
  text-decoration: line-through;
}

/* 4. Action Area: Dual Action (Add to Bag + WhatsApp Icon) Matching Index Flagship */
#basic-main .pc-actions-wrap {
  margin-top: auto;
  padding-top: 4px;
}

#basic-main .pc-action-dual {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Primary Add to Bag Button */
#basic-main .pc-btn-cart {
  flex: 1 1 auto;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  margin: 0;
  padding: 0 10px;
  background: #FAF8F5;
  color: #0F3558;
  border: 1px solid rgba(200, 164, 93, 0.45);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.22s ease;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: normal;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#basic-main .pc-btn-cart i {
  color: #C8A45D;
  font-size: 0.74rem;
  transition: color 0.2s ease;
}

#basic-main .pc-btn-cart::before {
  display: none;
}

/* When touching / hovering / active / focusing: Exact Index Hero Navy (#0F3558) with Glowing Gold text & icon! */
#basic-main .pc-btn-cart:hover,
#basic-main .pc-btn-cart:active,
#basic-main .pc-btn-cart:focus {
  background: #0F3558;
  color: #E0C888;
  border-color: #C8A45D;
  box-shadow: 0 4px 14px rgba(15, 53, 88, 0.35);
  transform: translateY(-1px);
}

#basic-main .pc-btn-cart:hover i,
#basic-main .pc-btn-cart:active i,
#basic-main .pc-btn-cart:focus i {
  color: #E0C888;
}

/* WhatsApp Icon Button Beside Add to Bag (Harmonized Dimensions & Border) */
#basic-main .pc-btn-wa-icon {
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  flex: 0 0 38px;
  margin: 0;
  padding: 0;
  background: #FAF8F5;
  border: 1px solid rgba(200, 164, 93, 0.45);
  color: #25D366;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.22s ease;
  box-sizing: border-box;
  vertical-align: middle;
  line-height: normal;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#basic-main .pc-btn-wa-icon:hover,
#basic-main .pc-btn-wa-icon:active,
#basic-main .pc-btn-wa-icon:focus {
  background: #25D366;
  color: #FFFFFF;
  border-color: #20BA5A;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

#basic-main .pc-btn-sold {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 245, 238, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: not-allowed;
}


