/* ==========================================================================
   Go Colors Clone — Design Tokens & Global Styles
   All values measured from live gocolors.com via getComputedStyle
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg-page: #faf9f6;          /* body background (measured) */
  --bg-white: #ffffff;
  --bg-app-banner: #1a1a1a;    /* app download bar dark */
  --text-primary: #1a1a1a;
  --text-body: rgba(26, 26, 26, 0.75);
  --text-dark: #121212;
  --text-muted: #3e3e3e;
  --text-heading: rgba(34, 31, 32, 0.78);
  --accent: #df2e84;           /* hot pink — trending badge, active tab */
  --accent-dark: #b8236a;
  --border-color: #3e3e3e;
  --border-light: rgba(0, 0, 0, 0.1);
  --star-color: #f5a623;
  --off-strike: rgba(26, 26, 26, 0.55);

  /* Typography */
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-body: 16px;
  --fs-nav: 14px;
  --fs-section-title: 26px;
  --fs-product-name: 12px;
  --fs-price: 14px;
  --fs-badge: 10px;
  --fs-stat-num: 18px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --ls-wide: 0.6px;

  /* Layout */
  --header-pad-x: 50px;
  --page-pad-x: 50px;
  --max-width: 1900px;
  --radius-pill: 25px;
  --radius-badge: 10px 0 0;
  --radius-card: 4px;

  /* Effects */
  --shadow-card: none;
  --transition: 0.25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input { font-family: inherit; }

/* --- Accessibility skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
}
.skip-link:focus {
  left: 10px; top: 10px;
  background: #fff; padding: 8px 16px;
  z-index: 10000;
}

/* ==========================================================================
   App Download Banner (top bar)
   ========================================================================== */
.app-banner {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
  padding: 12px var(--page-pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: var(--fw-medium);
  text-align: center;
}
.app-banner__download {
  color: var(--accent);
  font-weight: var(--fw-semi);
  text-decoration: underline;
  cursor: pointer;
}
.app-banner__close {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-body);
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  background: var(--bg-white);
  padding: 8px var(--header-pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 65.6px;
}
.header__logo { flex: 0 0 auto; }
.header__nav { flex: 0 0 auto; }
.header__search { flex: 1 1 auto; }
.header__actions { flex: 0 0 auto; margin-left: auto; }
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header__nav-item {
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  letter-spacing: var(--ls-wide);
  padding: 8px 16px;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
  white-space: nowrap;
}
.header__nav-item:hover { color: var(--accent); }
.header__nav-item .new-tag {
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: var(--fw-bold);
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  justify-self: start;
}
.header__logo-img {
  height: 32px;
  width: auto;
}

/* Search */
.header__search {
  position: relative;
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
}
.header__search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.header__search-input {
  width: 100%;
  height: 40px;
  background: transparent;
  border: 0.8px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0 15px 0 38px;
  font-size: var(--fs-body);
  color: #000;
  outline: none;
  transition: border-color var(--transition);
}
.header__search-input::placeholder { color: var(--text-muted); }
.header__search-input:focus { border-color: var(--accent); }

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
}
.header__action:hover { color: var(--accent); }
.header__action svg { width: 20px; height: 20px; }
.header__action-label {
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  color: var(--text-primary);
}
.header__action--bag {
  position: relative;
}
.header__action--bag .bag-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-bold);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Main / Page Width
   ========================================================================== */
main { display: block; }
.page-width {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero {
  width: 100%;
  position: relative;
}
.hero__link { display: block; width: 100%; }
.hero__img {
  width: 100%;
  height: auto;
  display: block;
}
.hero__img--mobile { display: none; }

/* ==========================================================================
   Section spacing
   ========================================================================== */
.section { padding: 40px var(--page-pad-x); max-width: var(--max-width); margin: 0 auto; }
.section--carousel { padding: 30px var(--page-pad-x); }
.section--categories { padding: 40px var(--page-pad-x); }
.section--stats { padding: 30px var(--page-pad-x); }

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.section__title {
  font-size: var(--fs-section-title);
  font-weight: var(--fw-semi);
  color: var(--text-heading);
  letter-spacing: var(--ls-wide);
  text-transform: capitalize;
  line-height: 1.3;
}

/* ==========================================================================
   Carousel (horizontal scroll)
   ========================================================================== */
.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background var(--transition);
  font-size: 18px;
  color: var(--text-primary);
}
.carousel__nav:hover { background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.carousel__nav--prev { left: -10px; }
.carousel__nav--next { right: -10px; }
.carousel__nav:disabled { opacity: 0.4; cursor: default; }

/* ==========================================================================
   Product Card
   ========================================================================== */
.product-card {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
}
.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f2f2f2;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__badges {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge {
  display: inline-block;
  font-size: var(--fs-badge);
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wide);
  padding: 2px 8px;
  border-radius: var(--radius-badge);
  color: #fff;
  white-space: nowrap;
}
.badge--trending { background: var(--accent); }
.badge--new { background: #2d8659; }
.badge--limited { background: #c0392b; }
.badge--bestseller { background: #d4a017; color: #1a1a1a; }
.badge--eoss { background: #1a1a1a; border-radius: 0 10px 0 0; align-self: flex-start; margin-left: auto; }
.badge--collection { background: #6a4a8c; border-radius: 0 10px 0 0; }

.product-card__wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist svg { width: 16px; height: 16px; color: var(--accent); }

/* secondary color swatch row */
.product-card__swatches {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.08));
  z-index: 2;
}
.product-card__swatch {
  width: 28px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  border: 1.5px solid #fff;
  flex-shrink: 0;
}
.product-card__swatch--more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--fw-semi);
  color: var(--text-dark);
  background: rgba(255,255,255,0.9);
}

.product-card__info { padding: 10px 2px 0; }
.product-card__name {
  font-size: var(--fs-product-name);
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  letter-spacing: var(--ls-wide);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.stars { display: inline-flex; gap: 1px; color: var(--star-color); font-size: 11px; }
.product-card__price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-sale { font-size: var(--fs-price); font-weight: var(--fw-medium); color: var(--text-dark); }
.price-regular {
  font-size: var(--fs-price);
  font-weight: var(--fw-regular);
  color: var(--off-strike);
  text-decoration: line-through;
}
.price-off {
  font-size: var(--fs-badge);
  font-weight: var(--fw-semi);
  color: var(--accent);
  letter-spacing: var(--ls-wide);
}

/* ==========================================================================
   Category Tabs + Tiles
   ========================================================================== */
.cat-tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.cat-tabs__item {
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  padding: 12px 4px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.cat-tabs__item.is-active { color: var(--text-primary); border-bottom-color: var(--accent); }
.cat-tabs__item:hover { color: var(--text-primary); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.category-tile {
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition);
}
.category-tile:hover { transform: translateY(-3px); }
.category-tile__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f2f2f2;
}
.category-tile__name {
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  color: var(--text-dark);
  letter-spacing: var(--ls-wide);
}

/* ==========================================================================
   Trust Badges Row
   ========================================================================== */
.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 36px var(--page-pad-x);
  max-width: var(--max-width);
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-item__icon { width: 40px; height: 40px; }
.trust-item__label {
  font-size: var(--fs-nav);
  font-weight: var(--fw-semi);
  color: var(--text-primary);
  letter-spacing: var(--ls-wide);
}

/* ==========================================================================
   Collection Carousel (4 banners)
   ========================================================================== */
.coll-carousel { position: relative; padding: 20px var(--page-pad-x); max-width: var(--max-width); margin: 0 auto; }
.coll-carousel .carousel__track { gap: 16px; }
.coll-card { flex: 0 0 auto; width: 460px; scroll-snap-align: start; }
.coll-card__img {
  width: 100%;
  aspect-ratio: 1458 / 1271;
  object-fit: cover;
  border-radius: 8px;
}
.coll-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.coll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.coll-dot.is-active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 36px var(--page-pad-x);
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stat { text-align: center; }
.stat__num {
  font-size: var(--fs-stat-num);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: var(--ls-wide);
  margin-bottom: 4px;
}
.stat__label {
  font-size: var(--fs-body);
  color: var(--text-body);
}

/* ==========================================================================
   Tabbed Best Sellers Section
   ========================================================================== */
.tabbed-section { padding: 40px var(--page-pad-x) 50px; max-width: var(--max-width); margin: 0 auto; }
.tabbed-section .section__header { margin-bottom: 20px; }
.tabs {
  display: flex;
  gap: 4px;
}
.tab {
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  color: var(--text-body);
  padding: 11px 20px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 0.8px solid transparent;
  transition: all var(--transition);
}
.tab.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-page);
  padding: 36px 0 0;
  border-top: 1px solid var(--border-light);
}
.footer__top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad-x) 30px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.6fr;
  gap: 40px;
}
.footer__brand-img { max-width: 160px; margin-bottom: 20px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.footer__social svg { width: 30px; height: 30px; }
.footer__col-title {
  font-size: var(--fs-nav);
  font-weight: var(--fw-semi);
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: var(--ls-wide);
  text-transform: capitalize;
}
.footer__col-links { display: flex; flex-direction: column; gap: 9px; }
.footer__col-links a {
  font-size: 13px;
  color: var(--text-body);
  transition: color var(--transition);
}
.footer__col-links a:hover { color: var(--accent); }

.footer__newsletter p { font-size: 13px; color: var(--text-body); margin-bottom: 12px; }
.footer__newsletter-form { display: flex; gap: 8px; }
.footer__newsletter-input {
  flex: 1;
  height: 42px;
  border: 0.8px solid var(--border-color);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
}
.footer__newsletter-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--transition);
}
.footer__newsletter-btn:hover { background: var(--accent-dark); }

.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding: 18px var(--page-pad-x);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-body);
}
.footer__bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__bottom-links a:hover { color: var(--accent); }
.footer__payment-icons { display: flex; gap: 8px; align-items: center; }
.footer__payment-icon {
  height: 24px;
  padding: 2px 6px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  font-size: 9px;
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Mobile Menu Toggle
   ========================================================================== */
.header__menu-toggle { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 989px) {
  :root {
    --header-pad-x: 16px;
    --page-pad-x: 16px;
  }
  .header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
  }
  .header__menu-toggle svg { width: 24px; height: 24px; }
  .header__nav { display: none; }
  .header__logo { justify-self: center; }
  .header__search { display: none; }
  .header__actions { gap: 14px; }
  .header__action-label { display: none; }

  .hero__img--desktop { display: none; }
  .hero__img--mobile { display: block; }

  .section__title { font-size: 20px; }
  .product-card { width: 170px; }
  .carousel__nav { display: none; }

  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .category-tile__name { font-size: 11px; }

  .trust-row { gap: 20px; padding: 24px 16px; }
  .trust-item__label { font-size: 12px; }

  .coll-card { width: 280px; }
  .coll-carousel .carousel__nav { display: none; }

  .stats-bar { gap: 8px; padding: 24px 8px; }
  .stat__num { font-size: 15px; }
  .stat__label { font-size: 12px; }

  .tabs { gap: 0; }
  .tab { padding: 10px 12px; font-size: 13px; }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__newsletter { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { flex-wrap: wrap; }
  .stat { flex: 1 1 40%; }
}
