/* ================================================================
   GUCCI Handbags — CSS
   ================================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ---- Header ---- */
.header { position: sticky; top: 0; z-index: 1000; background: #fff; }
.header__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.header__logo { font-size: 28px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.header__menu-btn { font-size: 24px; }
.header__actions { display: flex; gap: 12px; }
.header__icon-btn { font-size: 20px; }
.header__nav { }
.header__nav-list {
  display: flex; justify-content: center; gap: 0; overflow-x: auto;
  padding: 0 10px; white-space: nowrap;
}
.header__nav-list li a {
  display: block; padding: 10px 16px; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.5px; color: #555;
}
.header__nav-list li a.active { font-weight: 600; color: #000; }

/* ---- Promo Banner ---- */
.promo-banner { background: #1a1a1a; color: #fff; text-align: center; font-size: 13px; }
.promo-banner__inner { position: relative; padding: 10px 32px; }
.promo-banner__close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: #fff; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: #f5f5f5; }
.hero__image { width: 100%; }
.hero__img { width: 100%; height: auto; display: block; object-fit: cover; }
.hero__overlay {
  position: absolute; bottom: 0; left: 0;
  padding: 32px;
  max-width: 540px;
}
.hero__title {
  font-size: 28px; font-weight: 700; color: #fff;
  line-height: 1.2; margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero__desc {
  font-size: 14px; color: rgba(255,255,255,0.85);
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 16px 32px; font-size: 12px; color: #888;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.breadcrumb a { color: #555; }
.breadcrumb a:hover { color: #000; text-decoration: underline; }
.breadcrumb__sep { margin: 0 4px; color: #ccc; }
.breadcrumb__current { color: #333; font-weight: 500; }

/* ---- Filter Bar (Sticky) ---- */
.filter-bar {
  position: sticky; top: 0; z-index: 900; background: #fff;
}
.filter-bar__inner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 32px; flex-wrap: wrap;
}
.filter-bar__btn {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 8px 16px; border-radius: 2px;
  display: flex; align-items: center; gap: 6px;
  color: #333; background: #fff;
}
.filter-bar__btn--sort { margin-left: auto; }
.filter-bar__icon { font-size: 14px; }
.filter-bar__active { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Product Grid ---- */
.product-grid { padding: 0; }
.product-grid__container { }
.product-grid__row {
  display: flex; flex-wrap: wrap;
}
.product-grid__row + .product-grid__row { }

/* Layout A: 4 columns */
.product-grid__row--a .product-card {
  width: 25%;
  aspect-ratio: 2 / 3;
}

/* Layout B: 2 products + poster (poster right, 50%) */
.product-grid__row--b .product-card {
  width: 25%;
}
.product-grid__row--b .product-grid__poster {
  width: 50%;
}

/* Layout C: poster + 2 products (poster left, 50%) */
.product-grid__row--c .product-card {
  width: 25%;
}
.product-grid__row--c .product-grid__poster {
  width: 50%;
}

/* Layout A tail (2 products only) */
.product-grid__row--a-tail .product-card {
  width: 25%;
}

/* Poster */
.product-grid__poster {
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 3;
}
.product-grid__poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---- Product Card ---- */
.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.product-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fafafa;
  flex-shrink: 0;
}
.product-card__img-wrap img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity 0.4s ease;
}
.product-card__img-wrap img:first-child {
  position: relative;
}
.product-card__img-wrap img.product-card__img--hidden {
  opacity: 0; pointer-events: none;
}

/* Carousel navigation buttons */
.product-card__nav {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex; justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.product-card:hover .product-card__nav {
  opacity: 1;
}
.product-card__nav-btn {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
.product-card__nav-btn svg { display: block; }
.product-card__nav-btn:hover { background: rgba(0,0,0,0.8); }
.product-card__nav-btn--disabled {
  opacity: 0.3; cursor: default;
}
.product-card__nav-btn--disabled:hover { background: rgba(0,0,0,0.6); }

/* Product card info */
.product-card__info {
  padding: 12px 8px 16px;
}
.product-card__name {
  font-family: 'Noah', sans-serif;
  font-size: 14px; font-weight: 500; color: #000;
  margin-bottom: 4px; line-height: 1.3;
  text-align: left;
  margin-top: 20px;
}
.product-card__price {
  font-family: 'Noah', sans-serif;
  font-size: 14px; color: #000;
  text-align: left;
}

/* ---- Drawer ---- */
.drawer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: none; }
.drawer--open { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.drawer__panel {
  position: absolute; top: 0; bottom: 0;
  width: 420px; max-width: 90vw; background: #fff;
  display: flex; flex-direction: column;
}
.drawer--left .drawer__panel { left: 0; }
.drawer--right .drawer__panel { right: 0; }
.drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.drawer__header h3 { font-size: 16px; font-weight: 600; }
.drawer__close { font-size: 24px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer__footer {
  display: flex; gap: 12px; padding: 16px 24px;
}
.drawer__btn { flex: 1; padding: 12px; font-size: 13px; text-transform: uppercase; font-weight: 600; }
.drawer__btn--clear { background: #f5f5f5; color: #333; }
.drawer__btn--apply { background: #000; color: #fff; }

/* ---- Accordion ---- */
.accordion { }
.accordion__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 14px; font-weight: 600; cursor: pointer;
}
.accordion__arrow { font-size: 12px; transition: transform 0.2s; }
.accordion--open .accordion__arrow { transform: rotate(180deg); }
.accordion__body { display: none; padding: 0 0 16px; }
.accordion--open .accordion__body { display: block; }
.accordion__option {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: 13px; cursor: pointer;
}
.accordion__option input[type="checkbox"] { width: 16px; height: 16px; }

/* Color swatches */
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; position: relative;
}
.swatch--selected { border-color: #000; }
.swatch--selected::after {
  content: ''; position: absolute; inset: 2px; border-radius: 50%;
  border: 2px solid #fff;
}

/* ---- Sort radio ---- */
.sort-option {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  font-size: 14px; cursor: pointer;
}
.sort-option input[type="radio"] { width: 18px; height: 18px; accent-color: #000; }

/* ---- Sidebar ---- */
.sidebar { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: none; }
.sidebar--open { display: block; }
.sidebar__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.sidebar__panel {
  position: absolute; top: 0; bottom: 0;
  width: 380px; max-width: 90vw; background: #fff;
  display: flex; flex-direction: column;
}
.sidebar--left .sidebar__panel { left: 0; }
.sidebar--right .sidebar__panel { right: 0; }
.sidebar__header {
  display: flex; align-items: center; padding: 16px 24px;
}
.sidebar__close { font-size: 24px; margin-right: 16px; }
.sidebar__logo { font-size: 22px; font-weight: 700; letter-spacing: 3px; }
.sidebar__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.sidebar__nav ul li a {
  display: block; padding: 12px 0; font-size: 15px; color: #333;
}
.sidebar__link-list li a {
  display: block; padding: 12px 0; font-size: 14px;
}
.sidebar__search-input {
  width: 100%; padding: 12px; font-size: 14px;
}
.sidebar__empty { font-size: 14px; color: #888; padding: 20px 0; }

/* ---- Footer ---- */
.footer { background: #1a1a1a; color: #aaa; padding: 40px 32px 20px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 30px; }
.footer__col h4 { color: #fff; font-size: 13px; text-transform: uppercase; margin-bottom: 12px; }
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul li a { font-size: 13px; }
.footer__col ul li a:hover { color: #fff; }
.footer__bottom { padding-top: 16px; font-size: 12px; }

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000;
  background: #1a1a1a; color: #fff; padding: 20px 32px;
  display: flex;
}
.cookie-banner__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; width: 100%; }
.cookie-banner__text { font-size: 13px; flex: 1; min-width: 200px; }
.cookie-banner__actions { display: flex; gap: 12px; }
.cookie-banner__btn { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; padding: 12px 20px 8px; text-transform: uppercase; font-weight: 700; line-height: 1; }
.cookie-banner__btn--settings { background: transparent; color: #fff; }
.cookie-banner__btn--accept { background: #fff; color: #000; }

/* ---- Country Selector ---- */
.country-selector { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 3000; display: none; }
.country-selector__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.country-selector__modal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; width: 480px; max-width: 90vw; max-height: 80vh;
  display: flex; flex-direction: column;
}
.country-selector__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
}
.country-selector__header h3 { font-size: 16px; }
.country-selector__close { font-size: 24px; }
.country-selector__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.country-selector__body ul li a { display: block; padding: 10px 0; font-size: 14px; }
.country-selector__body ul li a:hover { color: #000; }

/* ---- Load All ---- */
.load-all { text-align: center; padding: 24px 0 48px; }
.load-all__btn {
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 40px; color: #000;
}
.load-all__btn:hover { background: #000; color: #fff; }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet: 768px - 1024px → 3 columns, posters full-width */
@media (max-width: 1024px) and (min-width: 769px) {
  .product-grid__row--a .product-card,
  .product-grid__row--a-tail .product-card {
    width: 33.333%;
  }
  /* Layout B: poster full-width on top, 2 products in 3-col */
  .product-grid__row--b { flex-wrap: wrap; }
  .product-grid__row--b .product-card { width: 33.333%; }
  .product-grid__row--b .product-grid__poster { width: 100%; order: -1; }
  /* Layout C: poster full-width on top, 2 products in 3-col */
  .product-grid__row--c { flex-wrap: wrap; }
  .product-grid__row--c .product-card { width: 33.333%; }
  .product-grid__row--c .product-grid__poster { width: 100%; order: -1; }

  .hero__overlay { padding: 24px; }
  .hero__title { font-size: 24px; }
  .hero__desc { font-size: 13px; }
}

/* Mobile: <768px → 2 columns + poster full-width on top */
@media (max-width: 768px) {
  .product-grid__row--a .product-card,
  .product-grid__row--a-tail .product-card {
    width: 50%;
  }
  /* Layout B on mobile: poster full-width on top, 2 products below in 2-col */
  .product-grid__row--b { flex-wrap: wrap; }
  .product-grid__row--b .product-grid__poster { width: 100%; order: -1; }
  .product-grid__row--b .product-card { width: 50%; }
  /* Layout C on mobile: poster full-width on top, 2 products below in 2-col */
  .product-grid__row--c { flex-wrap: wrap; }
  .product-grid__row--c .product-grid__poster { width: 100%; order: -1; }
  .product-grid__row--c .product-card { width: 50%; }

  .hero__overlay { padding: 20px; max-width: 100%; }
  .hero__title { font-size: 22px; }
  .hero__desc { font-size: 12px; }

  .header__nav-list { justify-content: flex-start; }
  .filter-bar__inner { padding: 10px 16px; }
  .breadcrumb { padding: 12px 16px; }

  .drawer__panel { width: 100vw; max-width: 100vw; }
  .sidebar__panel { width: 100vw; max-width: 100vw; }

  .product-card__nav { display: none; }
  .product-card:hover .product-card__nav { display: none; }

  .product-grid__row--a .product-card {
    aspect-ratio: auto;
  }
  .product-card {
    display: block;
    isolation: auto;
  }
  .product-card__img-wrap {
    flex-shrink: 1;
  }
  .product-card__info {
    flex: none;
    display: block;
    padding-bottom: 36px;
  }

  .product-card__name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-card__price { font-size: 14px; }

  .footer__inner { flex-direction: column; gap: 24px; }
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
}
