/* =========================================================
   CLEARDAYS EYEWEAR — LENS SHOWCASE STYLES
   Theme: Crisp White, Bold Black & Light Champagne Gold
   ========================================================= */

:root {
  --cd-white: #ffffff;
  --cd-white-glass: rgba(255, 253, 248, 0.92);
  --cd-champagne: #fbf8f1;
  --cd-champagne-hover: #f5eedc;
  --cd-black: #000000;
  --cd-ink: #111111;
  --cd-muted: #524d42;
  --cd-gold: #c59b27;
  --cd-gold-bright: #dfc05a;
  --cd-gold-deep: #9e7814;
  --cd-gold-border: #d4af37;
  --cd-gold-border-soft: rgba(212, 175, 55, 0.42);
  --cd-gold-glow: rgba(212, 175, 55, 0.22);
  --cd-dot-size: 52px;
  --cd-radius-lg: 22px;
  --cd-radius-md: 16px;
  --cd-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Reset & Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--cd-white);
  color: var(--cd-black);
  font-family: var(--cd-font);
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
}

.fw-extrabold {
  font-weight: 800 !important;
}

.tracking-wide {
  letter-spacing: 0.08em;
}

/* =========================================================
   SHARED TOP NAVIGATION DOTS (Gold-Rimmed Circles)
   ========================================================= */
.top-dots-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 10px;
  pointer-events: none;
}

.circle-dot {
  pointer-events: auto;
  width: var(--cd-dot-size);
  height: var(--cd-dot-size);
  min-width: var(--cd-dot-size);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, var(--cd-champagne) 100%);
  border: 2px solid var(--cd-gold-border);
  box-shadow: 0 6px 16px var(--cd-gold-glow), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  color: var(--cd-black);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.circle-dot:active {
  transform: scale(0.92);
  background: var(--cd-champagne-hover);
}

.dot-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.circle-dot-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--cd-champagne);
  border: 2px solid var(--cd-gold-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =========================================================
   VIEW 1: HOME SCREEN (Warm White Glass + Gold-Framed Squares)
   ========================================================= */
.home-screen {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--cd-white);
}

.home-bg-layer {
  position: absolute;
  inset: 0;
  background-color: #f7f4ec;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.home-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 247, 0.78) 0%,
    rgba(255, 255, 255, 0.48) 50%,
    rgba(251, 248, 241, 0.84) 100%
  );
  z-index: 2;
}

.home-categories-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(76px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
}

/* 3 Vertically Stacked Squares */
.category-squares-stack {
  width: 100%;
  max-width: 340px;
  height: 100%;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.category-square-card {
  position: relative;
  width: min(27vh, 210px);
  height: min(27vh, 210px);
  aspect-ratio: 1 / 1;
  border-radius: var(--cd-radius-lg);
  background-color: var(--cd-white);
  border: 2.5px solid var(--cd-gold-border);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08), 0 4px 14px var(--cd-gold-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
}

.category-square-card:hover {
  transform: translateY(-2px);
  border-color: var(--cd-gold);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(212, 175, 55, 0.34);
}

.category-square-card:active {
  transform: scale(0.96);
}

.category-square-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #f3efe6;
}

/* Lower-Side Bold Black Category Label Inside Each Square */
.category-square-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(251, 248, 241, 0.96) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 2px solid var(--cd-gold-border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cd-black);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.category-square-label i {
  color: var(--cd-gold-deep) !important;
}

/* Desktop / Wide Tablet Adaptation for Home Squares */
@media (min-width: 768px) {
  .category-squares-stack {
    flex-direction: row;
    max-width: 820px;
    max-height: none;
    gap: 24px;
  }

  .category-square-card {
    width: 240px;
    height: 240px;
  }

  .category-square-label {
    font-size: 1.05rem;
    padding: 10px 14px;
  }
}

/* =========================================================
   VIEW 2: FULL-SCREEN LENS SHOWCASE POPUP
   ========================================================= */
.showcase-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100dvh;
  background-color: var(--cd-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.showcase-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.showcase-header {
  z-index: 60;
}

/* Center Lens Name Pill Between Top Two Dots */
.center-lens-title-box {
  pointer-events: auto;
  flex: 1;
  min-width: 0;
  max-width: 440px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(251, 248, 241, 0.94) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--cd-gold-border);
  box-shadow: 0 6px 18px var(--cd-gold-glow);
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.category-mini-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cd-gold-deep);
  line-height: 1.1;
}

.active-lens-heading {
  margin: 1px 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cd-black);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.slide-counter-pill {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--cd-muted);
  line-height: 1;
}

/* =========================================================
   SWIPER FULL-SCREEN LENS CARDS
   ========================================================= */
.lens-swiper {
  width: 100%;
  height: 100dvh;
}

.lens-slide {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--cd-white);
}

/* Big Full-Screen Card Background Image */
.lens-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #f2eee4;
  z-index: 1;
}

/* Warm White Overlay for Crisp Legibility */
.lens-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 248, 0.8) 0%,
    rgba(255, 255, 255, 0.36) 34%,
    rgba(255, 253, 248, 0.88) 68%,
    rgba(251, 248, 241, 0.97) 100%
  );
}

/* Slide Layout Container: Features/Specs/Price + Bottom 4 Squares */
.lens-slide-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  height: 100dvh;
  margin: 0 auto;
  padding: calc(82px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

/* Champagne-White Card Panel for Price, Features & Specifications */
.lens-info-panel {
  background-color: var(--cd-white-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--cd-gold-border);
  border-radius: var(--cd-radius-lg);
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 4px 18px var(--cd-gold-glow);
  max-height: 54dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lens-info-panel::-webkit-scrollbar {
  width: 4px;
}

.lens-info-panel::-webkit-scrollbar-thumb {
  background: var(--cd-gold-border);
  border-radius: 999px;
}

/* Price Row */
.lens-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--cd-gold-border-soft);
}

.lens-price-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.lens-price-current {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--cd-black);
  line-height: 1;
}

.lens-price-mrp {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cd-muted);
  text-decoration: line-through;
}

.lens-swipe-hint {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cd-black);
  background-color: var(--cd-champagne);
  border: 1.5px solid var(--cd-gold-border);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.lens-swipe-hint i {
  color: var(--cd-gold-deep);
}

/* Features List */
.lens-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cd-gold-deep);
  margin-bottom: 6px;
}

.lens-features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

@media (min-width: 420px) {
  .lens-features-list {
    grid-template-columns: 1fr 1fr;
  }
}

.lens-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--cd-white);
  border: 1.5px solid var(--cd-gold-border-soft);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cd-black);
  line-height: 1.25;
}

.lens-feature-item i {
  font-size: 0.98rem;
  color: var(--cd-gold-deep);
  flex-shrink: 0;
}

/* Specifications Key-Value Grid */
.lens-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.lens-spec-box {
  background-color: var(--cd-champagne);
  border: 1.5px solid var(--cd-gold-border-soft);
  border-radius: 10px;
  padding: 6px 9px;
}

.lens-spec-key {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cd-muted);
}

.lens-spec-val {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cd-black);
  margin-top: 1px;
}

/* =========================================================
   BOTTOM 4 ENLARGEABLE SQUARES (Gold-Trimmed Gallery)
   ========================================================= */
.lens-bottom-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
}

.gallery-square-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--cd-radius-md);
  background-color: var(--cd-white);
  border: 2px solid var(--cd-gold-border);
  overflow: hidden;
  padding: 0;
  display: block;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 2px 10px var(--cd-gold-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-square-btn:active {
  transform: scale(0.93);
}

.gallery-square-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #f2eee4;
}

.gallery-zoom-badge {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--cd-champagne);
  border: 1.5px solid var(--cd-gold-border);
  color: var(--cd-gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  pointer-events: none;
}

/* =========================================================
   OFFCANVAS MENU DRAWER (White, Bold Black & Gold Accents)
   ========================================================= */
#mainMenuOffcanvas {
  border-left: 2.5px solid var(--cd-gold-border) !important;
}

#mainMenuOffcanvas .offcanvas-header {
  background-color: var(--cd-champagne);
  border-bottom: 1.5px solid var(--cd-gold-border-soft) !important;
}

.menu-nav-btn {
  width: 100%;
  background-color: var(--cd-white);
  color: var(--cd-black);
  border: 1.5px solid var(--cd-gold-border);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.menu-nav-btn:hover {
  background-color: var(--cd-champagne-hover);
  color: var(--cd-black);
  box-shadow: 0 4px 12px var(--cd-gold-glow);
}

.menu-nav-btn.active {
  background-color: var(--cd-black);
  color: var(--cd-white);
  border-color: var(--cd-gold-border);
  box-shadow: 0 4px 14px var(--cd-gold-glow);
}

.menu-nav-btn.active i {
  color: var(--cd-gold-bright);
}

#menu-whatsapp-link {
  background: linear-gradient(135deg, #111111 0%, #262218 100%) !important;
  color: var(--cd-white) !important;
  border: 2px solid var(--cd-gold-border) !important;
  box-shadow: 0 6px 18px var(--cd-gold-glow);
}

#menu-whatsapp-link i {
  color: var(--cd-gold-bright);
}

/* GLightbox Clean White & Gold Caption Bar */
.gslide-description {
  background: var(--cd-champagne) !important;
  border-top: 2px solid var(--cd-gold-border) !important;
}

.gslide-title {
  color: var(--cd-black) !important;
  font-family: var(--cd-font) !important;
  font-weight: 800 !important;
}
