/* Theme: light gray + white surfaces, black typography */
:root {
  --bg: #f5f5f6;            /* light gray */
  --surface: #ffffff;       /* white */
  --text: #0f0f10;          /* near black */
  --muted: #7a7a7a;         /* muted text */
  --line: #e5e6e8;          /* subtle borders */
  --pill: #eeeeef;          /* nav pills */
  --accent: #0f0f10;        /* black accent */
  --accent-2: #222;         
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

.announcement {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: center;
  padding: 8px 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 8px; background: var(--pill); overflow: hidden; }
.brand .logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.brand-title { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.2px; }
.brand-title sup { font-size: 10px; margin-left: 2px; opacity: 0.8; }

/* search removed */

.quick-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.quick-actions .action { color: var(--text); text-decoration: none; font-weight: 500; }
.quick-actions .cart { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.quick-actions .badge { position: absolute; top: -6px; right: -10px; background: var(--accent); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 999px; }

.subnav { display: flex; gap: 10px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.nav-pill { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 8px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.nav-pill.active, .nav-pill:hover { background: transparent; color: #0a66c2; border-color: #0a66c2; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; }
.hero-slide {
  min-height: 420px;
  display: grid; place-items: center;
  background-image: var(--bg);
  background-image: var(--bg), var(--bg);
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(245,245,246,0.9)), var(--bg);
}
.hero-cover-link { position: absolute; inset: 0; z-index: 1; }
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--bg);
  background-image: var(--bg), var(--bg);
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(245,245,246,0.9)), var(--bg);
  background-image: var(--bg), var(--bg);
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(245,245,246,0.95)), var(--bg);
  background-blend-mode: multiply;
}
.hero-slide { background: var(--surface); position: relative; }
.hero-slide { background-image: var(--bg); }
.hero-slide { background-image: var(--bg), var(--bg); }
.hero-slide { background: radial-gradient(ellipse at center, rgba(0,0,0,0.05), transparent 60%) , var(--surface); }
.hero-slide { background-image: var(--bg), var(--bg); }
.hero-slide { background: var(--surface); }
.hero-slide { background-image: var(--bg); }
.hero-slide { background-image: var(--bg), var(--bg);
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(245,245,246,0.9)), var(--surface);
}
.hero-slide { background-position: center; background-size: cover; }
.hero-slide { background-image: var(--bg), var(--bg), var(--bg); }
.hero-slide { background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(245,245,246,0.92)), var(--surface); }
.hero-slide { background-image: var(--bg); }
.hero-slide { background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(245,245,246,0.92)), var(--surface), var(--bg); }
.hero-slide { background-image: var(--bg); }
.hero-slide { background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(245,245,246,0.92)), var(--surface); }
.hero-slide { background-image: var(--bg), var(--bg); }
.hero-slide { background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(245,245,246,0.92)), var(--surface); }
.hero-slide { background-image: var(--bg), var(--bg), var(--bg); }
.hero-slide { background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(245,245,246,0.92)), var(--surface); }
.hero-slide { background-image: var(--bg); }
.hero-slide { background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(245,245,246,0.92)), var(--surface), var(--bg); }
.hero-slide { background-position: center; background-size: cover; }
.hero-slide { background-image: var(--bg), var(--bg); }
.hero-slide { background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(245,245,246,0.92)), var(--surface), var(--bg); }
.hero-slide { background-position: center; background-size: cover; }
.hero-slide { background-image: var(--bg), var(--bg); }
.hero-slide { background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(245,245,246,0.92)), var(--surface); }
.hero-content { position: relative; z-index: 2; max-width: 980px; width: 100%; padding: 40px 20px; text-align: center; animation: fadeUp 800ms ease both; pointer-events: auto; }
.hero h1, .hero h2 { margin: 0 0 10px; letter-spacing: -0.4px; }
.hero p { margin: 0 0 18px; color: var(--muted); }
.hero .btn { margin: 0 auto; }
.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 8px; height: 8px; background: var(--pill); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.hero-dots button.active { background: var(--text); border-color: var(--text); }

/* Hero sizing & stacking overrides */
.hero { height: 420px; }
.hero-track { position: relative; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 500ms ease; background-image: var(--bg); background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero-slide.is-active { opacity: 1; }
.hero-slide::before { pointer-events: none; }

.section-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 16px 12px; }
.section-header h3 { margin: 0; font-size: 22px; }
.view-all { color: var(--text); text-decoration: none; font-weight: 600; }

.categories { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-track { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; overflow-x: auto; gap: 14px; padding: 12px 16px 24px; }
.category-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 0; text-align: center; display: grid; place-items: center; gap: 10px; box-shadow: var(--shadow); transform: translateY(6px); opacity: 0; text-decoration: none; color: var(--text); overflow: hidden; width: 100%; min-width: 0; }
.category-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.category-card p { margin: 10px 0 12px; font-weight: 600; }

.products { max-width: 1200px; margin: 0 auto; padding: 10px 16px 40px; }
.filters select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto auto; box-shadow: var(--shadow); transform: translateY(10px); opacity: 0; }
.product-media { position: relative; background: var(--bg); display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-badge { position: absolute; left: 10px; top: 10px; background: var(--text); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 999px; }
.product-body { padding: 12px; display: grid; gap: 8px; }
.product-title { margin: 0; font-size: 15px; line-height: 1.4; }
.product-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.price { font-weight: 700; color: var(--text); }
.rating { display: inline-flex; align-items: center; gap: 4px; }
.stars { color: #f5a623; }
.product-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); text-decoration: none; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, color 150ms ease, border-color 150ms ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #0a66c2; border-color: #0a66c2; }
.btn-primary { background: transparent; color: var(--text); border-color: var(--line); }

.cta { background: var(--surface); border-top: 1px solid var(--line); }
.cta-inner { max-width: 960px; margin: 0 auto; text-align: center; padding: 40px 16px; }
.cta p { color: var(--muted); }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 28px 16px; }
.site-footer h4, .site-footer h5 { margin: 0 0 12px; }
.site-footer p { color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.socials { display: flex; gap: 10px; }
.socials img { width: 20px; height: 20px; display: block; filter: invert(0); opacity: 0.9; }
.socials a:hover img { opacity: 1; }
.legal { border-top: 1px solid var(--line); text-align: center; color: var(--muted); padding: 12px; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

[data-animate="grid"] .product-card.is-visible { animation: fadeUp 600ms ease both; }
.category-card.is-visible { animation: fadeUp 600ms ease both; }

.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card:hover .btn-primary { transform: translateY(-1px); }

/* Section hero promo (category pages) */
.section-hero { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: center; padding: 0 16px 10px; }
.section-hero p { margin: 0; color: var(--muted); }
.section-hero .promo-image { width: 100%; height: 200px; border-radius: 14px; border: 1px solid var(--line); object-fit: cover; box-shadow: var(--shadow); animation: floatY 3s ease-in-out infinite; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Responsive */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .site-header { grid-template-columns: 1fr; gap: 10px; }
  .quick-actions { justify-content: flex-start; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide { min-height: 360px; }
  .product-actions { grid-template-columns: 1fr; }
  .btn { padding: 12px 16px; }
  .subnav { gap: 8px; padding: 8px 12px; }
  .nav-pill { padding: 10px 14px; }
  /* Turn category carousel into a responsive grid on mobile */
  .category-track { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(2, 1fr); overflow-x: visible; gap: 12px; }
}
@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .product-card { grid-template-rows: auto auto; }
  .product-media { aspect-ratio: 1 / 1; }
  .product-title { font-size: 16px; }
  .product-meta { font-size: 14px; }
  .category-track { grid-template-columns: 1fr; }
  .category-card img { aspect-ratio: 16 / 10; }
}
@media (max-width: 380px) {
  .subnav { padding: 6px 10px; }
  .nav-pill { padding: 8px 12px; font-size: 14px; }
}

/* Ensure slider images fully cover their containers without distortion */
.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure hero slider backgrounds fill without distortion */
.hero .hero-slide {
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Remove duplicated background image from the overlay to prevent double-visual */
.hero .hero-slide::before {
  background: none !important;
}



