:root {
 --ikio-cream: #eae7e0;
 --ikio-off-white: #f8f8f8;
 --ikio-brown: #4d321d;
 --ikio-gold: #b49b66;
 --ikio-border: rgba(77, 50, 29, 0.1);
 --text-dark: #333;
}

html, body {
 margin: 0; padding: 0;
 scroll-behavior: smooth;
 background-color: var(--light-primary); color: var(--text-dark);
}

* {
 -webkit-tap-highlight-color: rgb(0 0 0 / 10%);
 transition: all .25s; font-family: 'Poppins', sans-serif;
 box-sizing: border-box;
}

::-webkit-scrollbar {width: 9.5px;}
::-webkit-scrollbar-track {background: #ccc; margin: 5px; border-radius: 50px;}
::-webkit-scrollbar-thumb {background: #555; border-radius: 50px;}
::-webkit-scrollbar-thumb:hover {background: #333;}
::-webkit-scrollbar:horizontal {height: 9.5px;}

/* --------------------------------- General Section Styling & Dividers --------------------------------- */
.section-container {
 padding: 4rem 2rem;
 margin: 0 auto;
 max-width: 1200px;
}

.section-title {
 color: var(--ikio-brown);
 text-align: center;
 font-size: 1.6rem;
 font-weight: 400;
 letter-spacing: 2px;
 text-transform: uppercase;
 margin: 1rem 0 2rem;
 position: relative;
}

.section-divider {
 width: 100%;
 height: 1px;
 background-color: var(--ikio-border);
 margin: 0 auto;
 max-width: 1200px;
}

.reveal-on-scroll {
 opacity: 0;
 transform: translateY(50px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
 opacity: 1;
 transform: translateY(0);
}

@media (max-width: 768px) {
 .section-container { padding: 2.5rem 1rem; }
 .section-title { font-size: 2rem; }
}

/* ---------------- Top Scrolling Marquee Ticker ---------------- */
.top-ticker-bar {
  background-color: var(--ikio-brown);
  color: var(--ikio-cream);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(180, 155, 102, 0.3);
}

.ticker-track {
  display: inline-flex;
  animation: ticker-marquee 24s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 25px;
}

.ticker-item span.ticker-star {
  color: var(--ikio-gold);
  margin: 0 12px;
  font-size: 10px;
}

@keyframes ticker-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.top-ticker-bar:hover .ticker-track {
  animation-play-state: paused; /* Pauses on hover so users can read */
}

/* --------------------------------- Hero Carousel --------------------------------- */
.hero-carousel {
 position: relative;
 width: 100%;
 height: 450px;
 padding: 20px 0;
 overflow: hidden;
 background: linear-gradient(135deg, var(--ikio-brown), var(--ikio-cream));
}

.swiper {
 width: 100%; height: 100%;
}

.swiper-slide {
 position: relative;
 width: 65%; /* MODIFIED: Slide width */
 max-width: 800px;
 flex-shrink: 0;
 display: flex !important;
 justify-content: center;
 align-items: center;
 overflow: hidden;
 background-color: var(--ikio-off-white);
 border-radius: 15px; /* Softer corners */
 box-shadow: 0 10px 30px rgba(77, 50, 29, 0.05); /* Soft brown shadow */
}

.slide-background { /* NEW: Blurred background */
 position: absolute;
 top: 0; left: 0; right: 0; bottom: 0;
 background-size: cover;
 background-position: center;
 filter: blur(15px);
 transform: scale(1.2);
 z-index: 0;
 opacity: 0.9;
}

.swiper-slide img { /* MODIFIED: Image containment */
 position: relative;
 z-index: 1;
 max-width: 100%;
 max-height: 95%;
 object-fit: contain;
 border-radius: 10px;
}

.slide-overlay {
 background: rgba(0,0,0,0.1);
 z-index: 2;
 pointer-events: none;
}

.slide-content {
 position: absolute;
 z-index: 3;
 text-align: center;
 width: 100%;
 bottom: 0;
 padding: 2rem 1rem;
 color: var(--ikio-brown);
}

.slide-caption { /* MODIFIED: Simplified animation */
 font-size: 2em;
 text-shadow: 0px 1px 5px rgba(0,0,0,0.8);
 animation: fadeInUp 1s ease-out forwards;
 opacity: 0;
 margin: 0 0 1rem 0; /* Adjusted margin */
 color: white;
 font-weight: bold; /* Sophisticated light weight */
}

.slide-cta {
 background-color: var(--ikio-brown);
 color: var(--ikio-cream);
 border: 1px solid var(--ikio-brown);
 text-decoration: none;
 padding: 10px 24px; /* Adjusted padding */
 display: inline-block;
 border-radius: 30px;
 font-weight: 500;
 transition: background-color 0.3s ease;
 animation: fadeInUp 1s ease-out 0.3s forwards;
 opacity: 0;
 margin: 0; /* Adjusted margin */
}

.slide-cta:hover {
 background-color: #a0724f;
 color: #fff;
 border: 1px solid #a0724f;
}

.swiper-slide-active .slide-caption,
.swiper-slide-active .slide-cta {
 opacity: 1;
}

@keyframes fadeInUp {
 0% {
  transform: translateY(20px);
  opacity: 0;
 }
 100% {
  transform: translateY(0);
  opacity: 1;
 }
}

.swiper-button-next, .swiper-button-prev {
 color: white !important;
}

@media (max-width: 768px) {
 .hero-carousel { height: 360px; padding: 0; }
 .swiper-slide { width: 100%; max-width: none; border-radius: 0; box-shadow: none; }
 .slide-caption { font-size: 1.5em; }
}

/* --------------------------------- Why Choose Us Section --------------------------------- */
/* ---------------- Why Choose Us Grid Layout ---------------- */
.why-choose-us {
  background-color: #fff;
  border-top: 1px solid var(--ikio-border);
  border-bottom: 1px solid var(--ikio-border);
  padding: 3rem 2rem;
}

.why-choose-grid {
  display: grid;
  /* Large Screen Default (Desktop): 3 Columns x 2 Rows */
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.why-choose-item svg {
  width: 36px;
  height: 36px;
  stroke: var(--ikio-gold);
  margin-bottom: 0.5rem;
}

.why-choose-item h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ikio-brown);
}

.why-choose-item p {
  color: #555;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Medium Screen (Tablet): 2 Columns x 3 Rows */
@media (max-width: 900px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem 1.5rem;
  }
}

/* Small Screen (Mobile): 1 Column x 6 Rows (Vertical Stack) */
@media (max-width: 550px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .why-choose-us {
    padding: 2.5rem 1.25rem;
  }
}

/* --------------------------------- Sleek Luxury Product Cards --------------------------------- */
.product-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
 gap: 2rem;
}

.product-card {
 display: flex;
 flex-direction: column;
 text-decoration: none;
 color: inherit;
 background: #ffffff;
 border-radius: 16px;
 padding: 12px;
 border: 1px solid rgba(77, 50, 29, 0.08);
 transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
 cursor: pointer;
 position: relative;
 overflow: hidden;
}

.product-card:hover {
 transform: translateY(-6px);
 box-shadow: 0 16px 36px rgba(77, 50, 29, 0.09);
 border-color: rgba(180, 155, 102, 0.4);
}

.product-image-container {
 width: 100%;
 padding-top: 85%;
 position: relative;
 border-radius: 12px;
 overflow: hidden;
 background-color: #faf8f5;
 display: block;
}

.product-image-container img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: contain;
 padding: 12px;
 transition: transform 0.4s ease;
}

.product-card:hover .product-image-container img {
 transform: scale(1.05);
}

/* Subtle Badge Pill (Top Left) */
.product-badge-pill {
 position: absolute;
 top: 10px;
 left: 10px;
 background: var(--ikio-brown);
 color: var(--ikio-cream);
 font-size: 10px;
 font-weight: 700;
 padding: 4px 10px;
 border-radius: 30px;
 z-index: 2;
 letter-spacing: 0.5px;
 text-transform: uppercase;
}

/* Floating Quick Add Button (Bottom Center Slide Up) */
.quick-add-btn {
 position: absolute;
 bottom: 10px;
 left: 50%;
 transform: translateX(-50%) translateY(12px);
 background: var(--ikio-brown);
 color: #fff;
 border: none;
 padding: 8px 18px;
 border-radius: 30px;
 font-size: 11px;
 font-weight: 700;
 cursor: pointer;
 z-index: 2;
 opacity: 0;
 white-space: nowrap;
 transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
 box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card:hover .quick-add-btn {
 opacity: 1;
 transform: translateX(-50%) translateY(0);
}

.quick-add-btn:hover {
 background: var(--ikio-gold);
}

/* Product Info */
.product-info {
 padding: 12px 4px 4px 4px;
}

.product-brand {
 font-size: 0.75rem;
 font-weight: 700;
 color: #8c7a6b;
 text-transform: uppercase;
 letter-spacing: 1px;
 margin: 0 0 2px 0;
}

.product-name {
 font-size: 1rem;
 font-weight: 600;
 color: var(--ikio-brown);
 margin: 0 0 8px 0;
}

/* Clean Price Row */
.product-price-row {
 display: flex;
 align-items: center;
 gap: 8px;
}

.current-price {
 font-size: 1.1rem;
 color: var(--ikio-brown);
 font-weight: 800;
 display: flex;
 align-items: center;
}

.current-price span {
 font-size: 18px;
}

.old-price {
 text-decoration: line-through;
 color: #a89a8e;
 font-size: 0.85rem;
}

.discount-tag {
 color: #b23b23;
 font-size: 0.78rem;
 font-weight: 800;
}

.show-more-container {
 text-align: center;
 margin-top: 2.5rem;
}

.show-more-btn {
 background-color: var(--ikio-brown);
 color: var(--text-light);
 border: none;
 padding: 12px 30px;
 font-size: 1rem;
 font-weight: 500;
 text-decoration: none;
 border-radius: 30px;
 cursor: pointer;
 transition: background-color 0.3s ease;
}

.show-more-btn:hover {
 background-color: #a0724f;
 color: #fff;
}

/* --------------------------------- Star Ratings --------------------------------- */
.star-rating {
 display: flex;
 align-items: center;
 gap: 2px;
 margin-bottom: 0.5rem;
}

.star-rating svg {
 width: 16px;
 height: 16px;
 fill: #ffd700;
 stroke: #ffd700;
}

/* --------------------------------- Shop by Gender --------------------------------- */
.gender-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 text-align: center;
}

.gender-card {
 position: relative;
 overflow: hidden;
 border-radius: 15px;
 cursor: pointer;
 color: white;
 box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gender-card img {
 width: 100%;
 height: 400px;
 object-fit: cover;
 display: block;
 transition: transform 0.4s ease;
}

.gender-card:hover img {
 transform: scale(1.05);
}

.gender-card-overlay {
 position: absolute;
 bottom: 0; left: 0; right: 0;
 padding: 1.5rem;
 background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.gender-card-title {
 font-size: 1.8rem;
 font-weight: 600;
 margin: 0;
}

/* --------------------------------- Shop by Shape Section --------------------------------- */
.category-options-body {
 position: relative;
 border-radius: 15px;
 overflow: hidden;
}

.category-options-background {
 position: absolute;
 top: 0; left: 0;
 height: 100%; width: 100%;
 z-index: 0;
 transition: opacity 1s ease-in-out;
}

.category-options-background.bg1 { opacity: 1; }
.category-options-background.bg2 { opacity: 0; }

.men-theme { background: linear-gradient(180deg, #5e8fcc 25%, #eaf5fe 120%); }
.women-theme { background: linear-gradient(180deg, #dd5c88 25%, #eaf5fe 120%); }
.kids-theme { background: linear-gradient(180deg, #eb9032 25%, #eaf5fe 120%); }

.category-options-body > *:not(.category-options-background) {
 position: relative;
 z-index: 1;
}

.category-options-header {
 display: flex;
 justify-content: center;
 align-items: center;
 margin-bottom: 2rem;
}

.category-options-header-buttons-container {
 display: flex;
 background-color: rgb(230 230 230 / 40%);
 border-radius: 30px;
 padding: 5px;
 position: relative; /* This is crucial for positioning the slider */
}

/* NEW: This is the style for our sliding capsule */
.slider-capsule {
 position: absolute;
 top: 5px;
 height: calc(100% - 10px);
 background-color: #fff;
 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
 border-radius: 25px;
 transition: left 0.3s ease-out, width 0.3s ease-out;
 z-index: 0;
}

.category-options-header-buttons {
 border: none;
 padding: 0.8rem 1.5rem;
 cursor: pointer;
 font-size: 1.1rem;
 letter-spacing: 0.5px;
 border-radius: 25px;
 background: transparent;
 color: var(--text-dark);
 transition: color 0.3s ease;
 position: relative;
 z-index: 1;
}

.category-options-header-buttons.active {
 color: var(--text-dark); /* Keeps text color consistent */
}

.category-circles {
 display: grid; /* Use Grid for precise control */
 gap: 2rem;
 padding: 15px 0;
 /* MODIFIED: Default to a two-column grid for mobile */
 grid-template-columns: repeat(2, 1fr); 
 justify-content: center; /* Center the grid container */
 justify-items: center; /* Center the items within the grid cells */
}

/* 3-Column Grid Modifier specifically for KIDS category */
.category-circles.kids-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 550px) {
  .category-circles.kids-grid {
    gap: 1rem; /* Tighter spacing on mobile so all 3 circles fit comfortably */
  }
  .category-circles.kids-grid .category-circle {
    width: 100px;
  }
  .category-circles.kids-grid .category-circle img {
    width: 100px;
  }
}

.category-circle {
 display: flex;
 flex-direction: column;
 align-items: center;
 width: 150px;
 cursor: pointer;
 text-align: center;
 text-decoration: none;
}

.category-circle img {
 width: 150px;
 aspect-ratio: 1/1;
 border-radius: 50%;
 object-fit: cover;
 border: 3px solid #fff;
 box-shadow: 0 2px 8px rgba(0,0,0,0.1);
 transition: transform 0.3s, border-color 0.3s;
}

.category-circle span {
 margin-top: 1rem;
 font-weight: 500;
 font-size: 1.1rem;
 color: var(--text-dark);
}

.category-circle:hover img {
 transform: scale(1.05);
 border-color: var(--accent-gold);
}

/* --------------------------------- Featured Collection Section --------------------------------- */
.featured-collection {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 2rem;
 align-items: center;
}

.featured-image img {
 width: 100%;
 border-radius: 15px;
 box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.featured-content h2 {
 font-size: 2.2rem;
 margin: 0 0 1rem 0;
 font-weight: 600;
}

.featured-content p {
 font-size: 1.1rem;
 color: #555;
 margin-bottom: 1.5rem;
 line-height: 1.6;
}

.featured-content .cta-button {
 background-color: var(--text-dark);
 color: var(--text-light);
 text-decoration: none;
 padding: 12px 30px;
 border-radius: 30px;
 font-weight: 500;
 transition: background-color 0.3s ease;
}

.featured-content .cta-button:hover {
 background-color: var(--accent-gold);
}

@media (max-width: 768px) {
 .featured-collection {
  grid-template-columns: 1fr;
  text-align: center;
 }
 .featured-image {
  order: -1;
  margin-bottom: 1rem;
 }
}

/* ---------------- Futuristic Glassmorphic Occasion Section ---------------- */
.occasion-container {
  position: relative;
  background: linear-gradient(135deg, #2b1704 0%, #4d321d 40%, #8c6034 100%);
  border-radius: 32px;
  padding: 3.5rem 2rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Interactive Cursor Spotlight Glow */
.occasion-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 220, 160, 0.25),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.occasion-container:hover .occasion-spotlight {
  opacity: 1;
}

/* Glassmorphic Inner Box */
.occasion-glass-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.occasion-text-content {
  text-align: center;
  margin-bottom: 2.5rem;
}

.occasion-container .section-title {
  color: #ffffff !important;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.occasion-container .section-subtitle {
  color: var(--ikio-gold) !important;
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* Occasion Grid Responsive Layout */
.occasion-grid {
  display: grid;
  gap: 1.5rem;
  /* Mobile (Small screen): 1 column x 4 rows */
  grid-template-columns: 1fr;
}

/* Medium Screen (Tablet): 2 columns x 2 rows */
@media (min-width: 750px) {
  .occasion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Screen (Desktop): 4 columns x 1 row */
@media (min-width: 1160px) {
  .occasion-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.occasion-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  height: 380px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  background: rgba(0,0,0,0.2);
}

.occasion-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.occasion-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #ffd7a3;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(255, 215, 163, 0.3);
}

.occasion-card:hover img {
  transform: scale(1.08);
}

.occasion-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 15%, transparent 60%);
  z-index: 1;
}

.occasion-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: #fff;
  z-index: 2;
}

.occasion-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #fff;
}

.occasion-content p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--ikio-gold);
  font-weight: 600;
}

@media (max-width: 768px) {
  .occasion-container {
    padding: 2.5rem 1.5rem;
  }
}


/* --------------------------------- Contact Lenses Section Styles --------------------------------- */
/* This styles the subtitle to be centered and spaced correctly under the main title */
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  /* Adjusts margin to fit the standard section flow */
  margin: -1.5rem auto 3rem auto;
}

/* These styles for the card content remain the same */
.product-info .product-brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  margin: 0 0 0.25rem 0;
}

.product-info .product-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* --------------------------------- Call to Action Section --------------------------------- */
.final-cta-container {
  background-color: var(--ikio-brown);
  color: var(--ikio-cream);
  padding: 5rem 2rem;
  border-radius: 20px; /* The key to the box design */
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  overflow: hidden; /* Good practice with border-radius */
}

.final-cta-content {
  max-width: 650px;
  margin: 0 auto;
}

.final-cta-content h2 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 0 0 1.5rem 0;
}

.final-cta-content p {
  font-size: 1.2rem;
  max-width: 550px;
  margin: 0 auto 2.5rem auto;
  opacity: 0.8;
  line-height: 1.7;
}

.cta-large {
  background-color: var(--ikio-gold);
  color: var(--text-light);
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.slide-cta.cta-large:hover {
  background-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(180, 155, 102, 0.4);
}

@media (max-width: 768px) {
  .final-cta-container {
    padding: 4rem 1.5rem;
  }
  .final-cta-content h2 {
    font-size: 2.5rem;
  }
}

/* --------------------------------- Responsiveness design for mobile compatibility --------------------------------- */
@media (max-width: 600px) {
  .product-image-container {
    padding-top: 80%; 
  }
  
  .product-grid {
    gap: 1.5rem;
  }
  .product-info {
    padding: 0.8rem;
  }
  .product-name {
    font-size: 1rem;
  }

  .why-choose-grid {
    gap: 2rem;
  }

  .occasion-card, .gender-card img {
    height: 350px;
  }
  
  .category-options-body .section-title {
    font-size: 1.85rem;
    padding: 0 8px;
  }
  .category-circle {
    width: 120px;
  }
  .category-circle img {
    width: 120px;
  }
  .category-circle span {
    font-size: 0.9rem;
  }
  
  .category-options-header-buttons-container {
    padding: 5px;
  }
  .category-options-header-buttons {
    padding: 0.7rem 1.3rem;
    font-size: 1rem;
  }
  .slider-capsule {
    top: 5px;
    height: calc(100% - 10px);
  }
  
  .seasonal-product-grid {
    grid-template-columns: repeat(1, 1fr); 
    max-width: 100%;
  }
  .seasonal-product-card:nth-child(n+3) {
    display: none; 
  }
}
