/* ============================================
   YOU1S — Components v3
   BEM naming — No inline styles
   ============================================ */

/* ====== HEADER ====== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--c-white);
  z-index: var(--z-header);
  border-bottom: 1px solid var(--c-border);
}

/* — Top row: logo centered, icons right — */
.header__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-20) var(--page-px) var(--sp-14);
}

.header__logo {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text);
  line-height: 1;
}

@media (min-width: 768px) {
  .header__logo { font-size: var(--fs-40); }
}

.header__icons {
  position: absolute;
  right: var(--page-px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

.header__icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  transition: opacity var(--dur-fast) var(--ease);
}
.header__icon-link:hover { opacity: 0.6; }

.header__icon-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.header__icon-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  background: var(--c-text);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.header__icon-count:empty,
.header__icon-count[data-count="0"] { display: none; }

/* — Nav row: centered — */
.header__nav-row {
  display: none;
  justify-content: center;
  padding: 0 var(--page-px) var(--sp-14);
  gap: var(--sp-32);
}

.header__nav-link {
  font-family: var(--font-display);
  font-size: var(--fs-11);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
  color: var(--c-text-secondary);
  transition: color var(--dur-fast) var(--ease);
  padding: var(--sp-4) 0;
}
.header__nav-link:hover,
.header__nav-link--active {
  color: var(--c-text);
}

/* Burger (mobile) */
.header__burger {
  position: absolute;
  left: var(--page-px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
  padding: 6px 0;
}
.header__burger-line {
  height: 1.5px;
  background: var(--c-text);
  transition: all var(--dur) var(--ease);
  transform-origin: center;
}
.header__burger--open .header__burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__burger--open .header__burger-line:nth-child(2) { opacity: 0; }
.header__burger--open .header__burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 1024px) {
  .header__nav-row { display: flex; }
  .header__burger { display: none; }
}

/* Hide unused old elements */
.header__bar { display: none; }
.header__main { display: none; }
.header__nav { display: none; }


/* ====== MEGA MENU ====== */

.mega {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  z-index: var(--z-mega);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.mega--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear 0s;
}

.mega__inner {
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-40) var(--page-px);
  gap: var(--sp-32);
}

.mega__image {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.mega__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega__col-title {
  font-family: var(--font-display);
  font-size: var(--fs-10);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
  color: var(--c-text);
  margin-bottom: var(--sp-20);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--c-border);
}

.mega__col-links a {
  display: block;
  padding: var(--sp-6) 0;
  font-size: var(--fs-13);
  color: var(--c-text-secondary);
  transition: color var(--dur-fast) var(--ease);
}
.mega__col-links a:hover { color: var(--c-text); }

.mega__close {
  position: absolute;
  top: var(--sp-16);
  right: var(--page-px);
  font-size: var(--fs-16);
  color: var(--c-text-muted);
  transition: color var(--dur-fast);
  z-index: 2;
}
.mega__close:hover { color: var(--c-text); }

.mega__overlay {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--c-overlay);
  z-index: calc(var(--z-mega) - 1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.mega__overlay--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur) var(--ease), visibility 0s linear 0s;
}


/* ====== MOBILE DRAWER ====== */

.drawer {
  position: fixed;
  top: calc(var(--header-h-main));
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--c-white);
  z-index: var(--z-drawer);
  transform: translateX(-100%);
  transition: transform var(--dur-slow) var(--ease);
  overflow-y: auto;
  padding: var(--sp-24);
}
.drawer--open { transform: translateX(0); }

.drawer__group { border-bottom: 1px solid var(--c-border); }

.drawer__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-14) 0;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
}

.drawer__trigger-icon {
  font-size: var(--fs-14);
  color: var(--c-text-muted);
  transition: transform var(--dur) var(--ease);
}
.drawer__group--open .drawer__trigger-icon {
  transform: rotate(45deg);
}

.drawer__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease);
}
.drawer__group--open .drawer__submenu {
  max-height: 400px;
}

.drawer__submenu a {
  display: block;
  padding: var(--sp-8) 0 var(--sp-8) var(--sp-16);
  font-size: var(--fs-13);
  color: var(--c-text-secondary);
  transition: color var(--dur-fast) var(--ease);
}
.drawer__submenu a:hover { color: var(--c-text); }

.drawer__link {
  display: block;
  padding: var(--sp-14) 0;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
  color: var(--c-text-secondary);
  border-bottom: 1px solid var(--c-border);
  transition: color var(--dur-fast);
}
.drawer__link:hover { color: var(--c-text); }

.drawer__overlay {
  position: fixed;
  inset: 0;
  top: var(--header-h-main);
  background: var(--c-overlay);
  z-index: calc(var(--z-drawer) - 1);
  display: none;
}
.drawer__overlay--open { display: block; }

@media (min-width: 1024px) {
  .drawer, .drawer__overlay { display: none !important; }
}


/* ====== PRODUCT CARD ====== */

.product-card {
  position: relative;
}

.product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-bg-alt);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.product-card__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover .product-card__img--hover { opacity: 1; }
.product-card:hover .product-card__img--primary { opacity: 0; }

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.product-card:hover .product-card__overlay { opacity: 1; }

.product-card__overlay-text {
  font-size: var(--fs-11);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
  color: var(--c-white);
}

.product-card__badge {
  position: absolute;
  top: var(--sp-10);
  left: var(--sp-10);
  z-index: 2;
}

.product-card__wishlist {
  position: absolute;
  top: var(--sp-10);
  right: var(--sp-10);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist svg {
  width: 16px;
  height: 16px;
  stroke: var(--c-white);
  fill: none;
  stroke-width: 1.5;
}
.product-card__wishlist--active svg { fill: var(--c-white); }

.product-card__info {
  padding: var(--sp-12) 0;
}

.product-card__brand {
  font-size: var(--fs-11);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
  margin-bottom: var(--sp-4);
}

.product-card__name {
  font-size: var(--fs-14);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  transition: text-decoration var(--dur-fast);
}
.product-card:hover .product-card__name {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.product-card__price {
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  margin-top: var(--sp-4);
  font-variant-numeric: tabular-nums;
}
.product-card__price-old {
  font-weight: var(--fw-regular);
  color: var(--c-text-muted);
  text-decoration: line-through;
  margin-right: var(--sp-8);
}


/* ====== FOOTER ====== */

.footer {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-64) 0 var(--sp-32);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-40);
  margin-bottom: var(--sp-56);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-11);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
  margin-bottom: var(--sp-16);
  color: var(--c-text);
}

.footer__links a {
  display: block;
  padding: var(--sp-4) 0;
  font-size: var(--fs-13);
  color: var(--c-text-secondary);
  transition: color var(--dur-fast);
}
.footer__links a:hover { color: var(--c-text); }

.footer__newsletter {
  display: flex;
  border: 1px solid var(--c-border);
  margin-top: var(--sp-12);
}
.footer__newsletter-input {
  flex: 1;
  padding: var(--sp-10) var(--sp-12);
  border: none;
  font-size: var(--fs-13);
  min-height: 40px;
}
.footer__newsletter-input::placeholder { color: var(--c-text-muted); }
.footer__newsletter-btn {
  padding: 0 var(--sp-16);
  font-size: var(--fs-11);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
  color: var(--c-text-secondary);
  transition: color var(--dur-fast);
  border-left: 1px solid var(--c-border);
}
.footer__newsletter-btn:hover { color: var(--c-text); }

.footer__socials {
  display: flex;
  gap: var(--sp-16);
  margin-top: var(--sp-20);
}
.footer__socials a {
  color: var(--c-text-secondary);
  transition: color var(--dur-fast);
}
.footer__socials a:hover { color: var(--c-text); }
.footer__socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-20);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-12);
  font-size: var(--fs-11);
  color: var(--c-text-muted);
}
.footer__bottom-links {
  display: flex;
  gap: var(--sp-20);
}
.footer__bottom-links a {
  color: var(--c-text-muted);
  transition: color var(--dur-fast);
}
.footer__bottom-links a:hover { color: var(--c-text-secondary); }


/* ====== CHATBOT ====== */

.chatbot__trigger {
  position: fixed;
  bottom: var(--sp-24);
  right: var(--sp-24);
  width: 48px;
  height: 48px;
  background: var(--c-black);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: var(--z-chat);
  transition: opacity var(--dur-fast);
}
.chatbot__trigger:hover { opacity: 0.85; }
.chatbot__trigger svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.chatbot__window {
  position: fixed;
  bottom: calc(var(--sp-24) + 60px);
  right: var(--sp-24);
  width: 340px;
  max-width: calc(100vw - var(--sp-32));
  height: 420px;
  max-height: calc(100vh - 140px);
  background: var(--c-black);
  color: var(--c-white);
  z-index: var(--z-chat);
  display: none;
  flex-direction: column;
}
.chatbot__window--open { display: flex; }

.chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-14) var(--sp-16);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: var(--fs-11);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
}
.chatbot__close {
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-14);
}
.chatbot__close:hover { color: var(--c-white); }

.chatbot__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
}
.chatbot__msg {
  max-width: 85%;
  padding: var(--sp-10) var(--sp-14);
  font-size: var(--fs-12);
  line-height: var(--lh-body);
}
.chatbot__msg--bot { background: rgba(255,255,255,0.08); align-self: flex-start; }
.chatbot__msg--user { background: rgba(255,255,255,0.15); align-self: flex-end; }

.chatbot__input-row {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.chatbot__input {
  flex: 1;
  padding: var(--sp-12) var(--sp-14);
  background: transparent;
  border: none;
  color: var(--c-white);
  font-size: var(--fs-12);
}
.chatbot__input::placeholder { color: rgba(255,255,255,0.3); }
.chatbot__send {
  padding: 0 var(--sp-14);
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-14);
}
.chatbot__send:hover { color: var(--c-white); }


/* ====== WHATSAPP ====== */

.whatsapp {
  position: fixed;
  bottom: var(--sp-24);
  right: calc(var(--sp-24) + 60px);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-chat);
  color: #25D366;
  transition: opacity var(--dur-fast);
}
.whatsapp:hover { opacity: 0.7; }
.whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}


/* ====== SPOTLIGHT SEARCH ====== */

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spotlight--open {
  display: flex;
  opacity: 1;
}

.spotlight__inner {
  width: 100%;
  max-width: 640px;
  padding: 0 var(--sp-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-32);
}

/* Search bar */
.spotlight__bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 var(--sp-20);
  height: 56px;
  border-radius: 30px;
  transition: background 0.2s ease;
}

.spotlight__bar:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.spotlight__bar svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.4);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.spotlight__input {
  flex: 1;
  background: none;
  border: none;
  color: var(--c-white);
  font-size: var(--fs-18);
  font-family: var(--font-body);
  letter-spacing: var(--ls-body);
  outline: none;
}

.spotlight__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Shortcuts */
.spotlight__shortcuts {
  display: flex;
  gap: var(--sp-24);
  justify-content: center;
}

.spotlight__shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-10);
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.spotlight__shortcut:hover {
  color: var(--c-white);
}

.spotlight__shortcut-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.spotlight__shortcut:hover .spotlight__shortcut-icon {
  background: rgba(255, 255, 255, 0.12);
}

.spotlight__shortcut-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.spotlight__shortcut-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-nav);
}

/* Results */
.spotlight__results {
  width: 100%;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  scrollbar-width: none;
}

.spotlight__results::-webkit-scrollbar { display: none; }

.spotlight__results--visible {
  display: flex;
}

.spotlight__result {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: var(--sp-12) var(--sp-16);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  border-radius: 12px;
}

.spotlight__result:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
}

.spotlight__result-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  flex-shrink: 0;
}

.spotlight__result-icon img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
}

.spotlight__result-info {
  flex: 1;
  min-width: 0;
}

.spotlight__result-name {
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  color: var(--c-white);
}

.spotlight__result-meta {
  font-size: var(--fs-11);
  color: rgba(255, 255, 255, 0.35);
}

.spotlight__result-arrow {
  font-size: var(--fs-14);
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.15s;
}

.spotlight__result:hover .spotlight__result-arrow {
  color: rgba(255, 255, 255, 0.6);
}

/* Close hint */
.spotlight__hint {
  position: absolute;
  bottom: var(--sp-32);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-11);
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ====== PAGE CONTENT ====== */

.page {
  padding-top: var(--header-h);
  animation: page-in var(--dur-slow) var(--ease);
  overflow-x: hidden;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1023px) {
  .page { padding-top: var(--header-h-main); }
}
