/* ============================================================
   GUCCI Homepage — style.css
   BEM methodology, Desktop-first 1024px baseline
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'PingFang SC', -apple-system, sans-serif;
  color: #111; background: #fff;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input { font-family: inherit; }

/* ---- Layout ---- */
.container { margin: 0 auto; padding: 0; }

/* ---- PROMOTIONAL BANNER ---- */
.promo-banner { background: #f0f0f0; padding: 8px 0; text-align: center; border-bottom: 1px solid #e0e0e0; }
.promo-banner__text {
  font-size: 9px; font-weight: 500; letter-spacing: 0.5px;
  color: #333; text-transform: uppercase;
}

/* ---- HEADER ---- */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid #e5e5e5; height: 52px;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 auto; padding: 0; height: 100%;
}
.header__left { flex: 1; display: flex; }
.header__link--contact {
  font-size: 10px; font-weight: 500; letter-spacing: 0.5px;
  color: #666; transition: color 0.2s; text-transform: uppercase;
}
.header__link--contact:hover { color: #000; }
.header__center { flex: 0 0 auto; }
.header__logo {
  font-size: 22px; font-weight: 700; letter-spacing: 8px;
  color: #000; display: block;
}
.header__right { flex: 1; display: flex; justify-content: flex-end; gap: 8px; }
.header__icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: #000; transition: opacity 0.2s; border-radius: 4px;
}
.header__icon:hover { opacity: 0.6; }

/* ---- HERO ---- */
.hero {
  position: relative; width: 100%; overflow: hidden;
}
.hero__image { width: 100%; height: auto; object-fit: cover; }
.hero__content {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero__title {
  font-size: 22px; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 16px; text-transform: none;
}
.hero__cta {
  display: inline-block; padding: 12px 36px;
  border: 1.5px solid #fff; background: #fff; font-size: 15px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: #000;
  transition: opacity 0.3s;
}
.hero__cta:hover { opacity: 0.82; }

/* ---- PRODUCT GRID ---- */
.product-grid { padding: 0; }
.product-grid__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.product-grid__card { cursor: pointer; }
.product-grid__card:hover .product-grid__name { text-decoration: underline; }
.product-grid__image-wrapper {
  position: relative; overflow: hidden; aspect-ratio: 3/4; background: #f5f5f5;
}
.product-grid__image {
  position: absolute; inset: -1px; display: block; width: calc(100% + 2px); max-width: none; height: calc(100% + 2px); object-fit: cover;
  transition: transform 0.6s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.product-grid__card:hover .product-grid__image { transform: translateZ(0) scale(1.03); }
.product-grid__info { padding: 12px 4px 20px; text-align: center; }
.product-grid__name {
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 2px;
}
.product-grid__subtitle {
  font-size: 10px; color: #666; letter-spacing: 0.3px;
}

/* ---- ROUTING ---- */
.routing { padding: 0 0 24px; }
.routing__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; padding: 0; }
.routing__slide {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
}
.routing__image {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.routing__slide:hover .routing__image { transform: scale(1.03); }
.routing__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding-bottom: 10%;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 60%);
}
.routing__cta {
  display: inline-block; padding: 13px 36px;
  border: 1.5px solid rgba(255,255,255,0.72); color: #fff; font-size: 14px;
  background: rgba(0,0,0,0.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.routing__cta:hover { background: rgba(0,0,0,0.32); border-color: rgba(255,255,255,0.9); color: #fff; }

/* ---- TEXT MODULE ---- */
.text-module { padding: 100px 0; text-align: center; }
.routing + .text-module { padding-top: 200px; }
.text-module--alt { background: #fff; }
.text-module__inner { max-width: 720px; margin: 0 auto; }
.text-module__title {
  font-size: clamp(18px, 2.5vw, 28px); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px;
}
.text-module__body {
  font-size: 13px; color: #555; line-height: 1.8;
  margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto;
}
#tm1-title,
#tm1-body {
  font-size: 18px;
}

#tm2-title {
  font-size: 22px;
}

.text-module__cta {
  display: inline-block; padding: 10px 28px; font-size: 10px;
  font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1.5px solid #000; color: #000; transition: background 0.3s, color 0.3s;
}
.text-module__cta:hover { background: #000; color: #fff; }

/* ---- ROUTING 1UP ---- */
.routing-1up { padding: 0; }
.routing-1up__wrapper { position: relative; overflow: hidden; }
.routing-1up__image { display: block; width: 100%; height: auto; object-fit: cover; }
.routing-1up__content {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  text-align: center;
}
.routing-1up__title {
  font-size: clamp(18px, 3vw, 32px); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin-bottom: 16px;
}
.routing-1up__cta {
  display: inline-block; padding: 13px 36px; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.72); color: #fff; font-weight: 700;
  background: rgba(0,0,0,0.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.routing-1up__cta:hover { background: rgba(0,0,0,0.32); border-color: rgba(255,255,255,0.9); color: #fff; }

/* ---- VIDEO MOSAIC ---- */
.mosaic { padding: 0; }
.mosaic__row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.mosaic__card {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 16/10; background: #000;
}
.mosaic__poster {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s;
}
.mosaic__card:hover .mosaic__poster { transform: scale(1.03); opacity: 0.8; }
.mosaic__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.mosaic__play svg { width: 56px; height: 56px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.mosaic__video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
  display: none;
}
.mosaic__card--playing .mosaic__poster,
.mosaic__card--playing .mosaic__play { display: none; }
.mosaic__card--playing .mosaic__video { display: block; }
.mosaic__info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}
.mosaic__title {
  font-size: 12px; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.mosaic__subtitle {
  font-size: 10px; color: rgba(255,255,255,0.8); letter-spacing: 0.5px;
}

/* ---- NEWSLETTER ---- */
.newsletter { background: #f5f5f5; padding: 64px 0; text-align: center; }
.newsletter__inner { max-width: 520px; margin: 0 auto; }
.newsletter__title {
  font-size: clamp(16px, 2vw, 22px); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px;
}
.newsletter__subtitle {
  font-size: 11px; color: #666; margin-bottom: 24px;
}
.newsletter__form { display: flex; gap: 8px; }
.newsletter__input {
  flex: 1; padding: 10px 16px; font-size: 12px; border: 1px solid #ccc;
  border-radius: 0; outline: none; transition: border-color 0.2s;
}
.newsletter__input:focus { border-color: #000; }
.newsletter__btn {
  padding: 10px 32px; font-size: 11px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  background: #000; color: #fff; border: 1.5px solid #000;
  transition: background 0.3s, color 0.3s;
}
.newsletter__btn:hover { background: #fff; color: #000; }

/* ---- FOOTER ---- */
.footer { background: #111; color: #fff; padding: 0; }
.footer__inner { margin: 0 auto; }
.footer__links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding-bottom: 40px; border-bottom: 1px solid #333;
}
.footer__link-group-title {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px; color: #fff;
}
.footer__link-group li { margin-bottom: 8px; }
.footer__link-group a {
  font-size: 10px; color: #999; transition: color 0.2s;
}
.footer__link-group a:hover { color: #fff; }
.footer__bottom {
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer__country-btn {
  font-size: 10px; color: #999; letter-spacing: 0.5px;
  transition: color 0.2s; padding: 4px 0;
}
.footer__country-btn:hover { color: #fff; }
.footer__copyright { font-size: 9px; color: #666; }

/* ---- OVERLAY ---- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 200; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.overlay--active { opacity: 1; visibility: visible; }

/* ---- SIDEBAR (LEFT/RIGHT) ---- */
.sidebar {
  position: fixed; top: 0; bottom: 0; z-index: 300;
  background: #fff; width: 420px; max-width: 90vw;
  overflow-y: auto; transition: transform 0.35s ease;
  display: flex; flex-direction: column;
}
.sidebar--left { left: 0; transform: translateX(-100%); }
.sidebar--right { right: 0; transform: translateX(100%); }
.sidebar--active { transform: translateX(0); }
.sidebar__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #e5e5e5; min-height: 52px;
}
.sidebar__title {
  font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.sidebar__close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: background 0.2s;
}
.sidebar__close:hover { background: #f0f0f0; }
.sidebar__body { padding: 24px; flex: 1; }
.sidebar__empty {
  font-size: 12px; color: #666; text-align: center; padding: 60px 0;
}
.sidebar__shop-btn {
  display: block; text-align: center; padding: 10px 24px; margin: 0 auto;
  font-size: 11px; font-weight: 500; letter-spacing: 0.5px;
  border: 1.5px solid #000; max-width: 220px; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.sidebar__shop-btn:hover { background: #000; color: #fff; }
.sidebar__text { font-size: 11px; color: #555; line-height: 1.7; margin-bottom: 20px; }
.sidebar__link {
  display: block; padding: 12px 0; font-size: 12px; font-weight: 500;
  border-bottom: 1px solid #eee; letter-spacing: 0.5px;
  transition: padding-left 0.2s;
}
.sidebar__link:hover { padding-left: 8px; }

/* ---- SIDEBAR NAV ---- */
.sidebar__nav { padding: 8px 0; }
.nav-category { border-bottom: 1px solid #eee; }
.nav-category__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 24px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; text-align: left;
  transition: background 0.2s;
}
.nav-category__toggle:hover { background: #f5f5f5; }
.nav-category__arrow {
  font-size: 10px; transition: transform 0.3s; color: #999;
}
.nav-category--open .nav-category__arrow { transform: rotate(180deg); }
.nav-category__sub {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  background: #fafafa;
}
.nav-category--open .nav-category__sub { max-height: 500px; }
.nav-category__sub a {
  display: block; padding: 10px 24px 10px 40px; font-size: 11px;
  color: #555; transition: color 0.2s, background 0.2s;
}
.nav-category__sub a:hover { color: #000; background: #f0f0f0; }

/* ---- SEARCH PANEL ---- */
.search-panel {
  position: fixed; inset: 0; z-index: 300; background: #fff;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh;
}
.search-panel--active { opacity: 1; visibility: visible; }
.search-panel__inner {
  width: 100%; max-width: 640px; padding: 0 24px;
  display: flex; align-items: center; gap: 12px;
}
.search-panel__input {
  flex: 1; padding: 14px 0; font-size: 20px; border: none;
  border-bottom: 2px solid #e5e5e5; outline: none;
  transition: border-color 0.2s; font-weight: 300; letter-spacing: 1px;
}
.search-panel__input:focus { border-bottom-color: #000; }
.search-panel__close {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 4px; transition: background 0.2s;
}
.search-panel__close:hover { background: #f0f0f0; }

/* ---- DRAWER (BOTTOM) ---- */
.drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: #fff; max-height: 70vh; overflow-y: auto;
  transform: translateY(100%); transition: transform 0.4s ease;
  border-radius: 12px 12px 0 0;
}
.drawer--active { transform: translateY(0); }
.drawer--bottom { }
.drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #e5e5e5;
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.drawer__title {
  font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.drawer__close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: background 0.2s;
}
.drawer__close:hover { background: #f0f0f0; }
.drawer__body { padding: 16px 24px 32px; }
.country-region { margin-bottom: 24px; }
.country-region__name {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: #999; margin-bottom: 8px;
}
.country-region__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.country-region__item {
  display: block; padding: 6px 0; font-size: 11px; color: #333;
  transition: color 0.2s; cursor: pointer;
}
.country-region__item:hover { color: #000; text-decoration: underline; }

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: #fff; border-top: 1px solid #e5e5e5;
  padding: 16px 24px; box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%); transition: transform 0.35s ease;
}
.cookie-banner--visible { transform: translateY(0); }
.cookie-banner__inner {
  width: fit-content; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; text-align: center;
}
.cookie-banner__text {
  flex: 0 0 auto; max-width: 100%;
  font-size: 16px; color: #555; line-height: 1.6; white-space: nowrap;
}
.cookie-banner__actions { display: flex; flex: 0 0 auto; justify-content: center; gap: 10px; }
.cookie-banner__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 128px; height: 34px; padding: 4px 13px 0; font-size: 12px; font-weight: 700; line-height: 1;
  letter-spacing: 1px; text-transform: uppercase; transition: background 0.3s, color 0.3s;
}
.cookie-banner__btn--accept {
  background: #000; color: #fff; border: 1.5px solid #000;
}
.cookie-banner__btn--accept:hover { background: #333; }
.cookie-banner__btn--settings {
  background: #fff; color: #000; border: 1.5px solid #000;
}
.cookie-banner__btn--settings:hover { background: #000; color: #fff; }

/* ---- VIDEO MODAL ---- */
.video-modal {
  position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-modal--active { opacity: 1; visibility: visible; }
.video-modal__close {
  position: absolute; top: 16px; right: 24px; width: 44px; height: 44px;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 26px; z-index: 2;
}
.video-modal__container {
  width: 90vw; max-width: 960px; aspect-ratio: 16/9;
}
.video-modal__container iframe { width: 100%; height: 100%; border: none; }

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

/* Tablet: max 1024px */
@media (max-width: 1024px) {
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 360px; }
  .mosaic__row { grid-template-columns: 1fr; }
}

/* Mobile: max 768px */
@media (max-width: 767px) {
  .header { height: 46px; }
  .header__logo { font-size: 18px; letter-spacing: 4px; }
  .header__link--contact { display: none; }
  .header__icon { width: 36px; height: 36px; }
  .product-grid__row { grid-template-columns: repeat(2, 1fr); }
  .hero__content { bottom: 8%; padding: 0 16px; }
  .hero__cta { padding: 10px 24px; font-size: 13px; font-weight: 700; }

  .product-grid { padding: 0; }
  .container { padding: 0; }

  .routing__row { grid-template-columns: 1fr; padding: 0; }
  .routing { padding: 0; }

  .text-module { padding: 0; }
  .routing + .text-module { padding-top: 100px; }
  .text-module__title { font-size: 16px; }
  .text-module__body { font-size: 11px; }
  #tm1-title,
  #tm1-body {
    font-size: 18px;
  }
  #tm1-body {
    margin-bottom: 50px;
  }
  #tm2-title {
    font-size: 22px;
  }

  .routing-1up { padding: 0; background: transparent; }

  .mosaic { padding: 0; }
  .mosaic__row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .mosaic__row::-webkit-scrollbar { display: none; }
  .mosaic__card {
    flex: 0 0 100vw; scroll-snap-align: start; aspect-ratio: 16/9;
  }
  .mosaic__play svg { width: 40px; height: 40px; }

  .newsletter { padding: 40px 0; }
  .newsletter__form { flex-direction: column; }
  .newsletter__btn { width: 100%; }

  .footer { padding: 32px 0 24px; }
  .footer__links { grid-template-columns: 1fr; gap: 0; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .sidebar { width: 100vw; max-width: 100vw; }
  .cookie-banner { padding: 16px 18px; }
  .cookie-banner__inner {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  .cookie-banner__text {
    white-space: normal;
    font-size: clamp(13px, 3.6vw, 16px);
  }
  .cookie-banner__actions {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    align-self: stretch;
    margin-top: auto;
  }
  .cookie-banner__btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: clamp(30px, 8.4vw, 34px);
    font-size: clamp(10px, 2.9vw, 12px);
  }
  .country-region__list { grid-template-columns: 1fr; }
}
