@font-face {
  font-family: 'Arnel Stamp';
  src: url('fonts/Arnel-Stamp.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #FFFFFF;
  --color-fg: #1A1A1A;
  --color-muted: #707070;
  --color-border: #E8E8E8;
  --color-surface: #F5F5F5;
  --color-white: #FFFFFF;
  --color-black: #0F0F0F;
  --color-gold: #C9A24B;
  --color-wpp: #25D366;
  --font: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-fg);
  -webkit-font-smoothing: antialiased;
}

/* ==============================
   HEADER (barra preta fixa)
   ============================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--color-black);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.header__link {
  color: var(--color-white);
  text-decoration: none;
  font-family: 'Arnel Stamp', var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header__link:hover {
  opacity: 0.75;
}

.header__right {
  display: contents;
}

@media (min-width: 769px) {
  .header__right {
    display: flex;
    align-items: center;
    gap: 16px;
  }
}

/* Mobile layout: hamburger + search | logo (center) | cart */
@media (max-width: 768px) {
  .header {
    position: sticky;
    gap: 12px;
  }
  .header__hamburger { order: 1; }
  #searchBtn { order: 2; }
  .header__logo {
    order: 3;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  #cartBtn {
    order: 4;
    margin-left: auto;
  }
}

.header__logo img {
  height: 32px;
  display: block;
  object-fit: contain;
}

.header__icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header__cart-count {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 9px;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.header__cart-count.visible {
  opacity: 1;
}

/* Hamburger (mobile only) */
.header__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.header__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-white);
}

/* ==============================
   SEARCH BAR
   ============================== */
.search-bar {
  display: none;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 16px;
}

.search-bar.open {
  display: block;
}

.search-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar__inner input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-family: var(--font);
  outline: none;
  background: var(--color-surface);
  color: var(--color-fg);
}

.search-bar__inner input:focus {
  border-color: var(--color-fg);
}

.search-bar__close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--color-fg);
  line-height: 1;
  padding: 4px;
}

/* ==============================
   MARQUEE BAR
   ============================== */
.marquee-bar {
  background: var(--color-black);
  color: var(--color-white);
  padding: 8px 0;
  overflow: hidden;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  border-top: 1px solid #222;
}

.marquee {
  display: flex;
  width: max-content;
  animation: scroll-marquee 60s linear infinite;
}

.marquee__content {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
}

.marquee__content span {
  white-space: nowrap;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==============================
   SIDE MENU (mobile)
   ============================== */
.side-menu {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 56px);
  background: var(--color-white);
  z-index: 160;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.side-menu__list a {
  display: block;
  color: var(--color-fg);
  text-decoration: none;
  font-family: 'Arnel Stamp', var(--font);
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Hamburger → X when menu open */
.header__hamburger.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.header__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}
.header__hamburger span {
  transition: transform 0.25s, opacity 0.2s;
}

/* ==============================
   OVERLAY
   ============================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ==============================
   HERO
   ============================== */
.hero {
  width: 100%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==============================
   PRODUCT GRID
   ============================== */
.product-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  background: var(--color-white);
}

.product-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  background: var(--color-white);
}

.category__title {
  font-family: 'Arnel Stamp', var(--font);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-gold);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.category__grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 16px;
  row-gap: 40px;
}

.product-card {
  background: var(--color-white);
  cursor: pointer;
}

.product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-white);
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

.product-card__image img.product-card__hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-card__image img.product-card__hover {
  opacity: 1;
}

.product-card:has(.product-card__hover):hover .product-card__image img:not(.product-card__hover) {
  opacity: 0;
}

.product-card__info {
  padding: 4px 0 0;
}

.product-card__name {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.product-card__price {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-fg);
  letter-spacing: 0.01em;
}

/* ==============================
   PRODUCT MODAL
   ============================== */
.product-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  z-index: 300;
  border-radius: 12px 12px 0 0;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.product-modal.open {
  transform: translateY(0);
}

.product-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal__body {
  display: flex;
  flex-direction: column;
}

.product-modal__image {
  width: 100%;
  background: var(--color-surface);
  position: relative;
}

.gallery__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.gallery__arrow:hover {
  background: var(--color-white);
}

.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
}

.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.gallery__dot.active {
  background: var(--color-fg);
}

.product-modal__info {
  padding: 20px 16px 32px;
}

.product-modal__info h2 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.product-modal__price {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.product-modal__sizes p {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.size-btn {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  background: none;
  color: var(--color-fg);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: 0.15s;
}

.size-btn:hover {
  border-color: var(--color-fg);
}

.size-btn.selected {
  border-color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

.btn-add {
  width: 100%;
  padding: 14px;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-add:hover {
  opacity: 0.85;
}

.btn-add:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* ==============================
   CART SIDEBAR
   ============================== */
.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart.open {
  transform: translateX(0);
}

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
}

.cart__header h2 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-fg);
  line-height: 1;
}

.cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart__empty {
  text-align: center;
  color: var(--color-muted);
  padding: 48px 0;
  font-size: 0.875rem;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item__image {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-surface);
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.cart-item__name {
  font-size: 0.8125rem;
  font-weight: 500;
}

.cart-item__meta {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.cart-item__price {
  font-size: 0.8125rem;
  font-weight: 500;
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 18px;
  align-self: center;
  padding: 4px;
}

.cart-item__remove:hover {
  color: #E53935;
}

.cart__footer {
  padding: 20px;
  border-top: 1px solid var(--color-border);
}

.cart__total {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.cart__checkout {
  width: 100%;
  padding: 14px;
  background: var(--color-wpp);
  color: var(--color-white);
  border: none;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.cart__checkout:hover {
  opacity: 0.9;
}

.cart__checkout svg {
  flex-shrink: 0;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 48px 16px;
  text-align: center;
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__headline {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer__tagline {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer__links a {
  color: #888;
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__brands {
  margin-bottom: 16px;
}

.footer__logo {
  height: 80px;
  filter: invert(1);
}

/* ==============================
   TOAST
   ============================== */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--color-black);
  color: var(--color-white);
  padding: 10px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  z-index: 500;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ==============================
   DESKTOP (750px+)
   ============================== */
@media (min-width: 750px) {
  .header {
    padding: 0 32px;
  }

  .header__nav {
    display: flex;
  }

  .header__hamburger {
    display: none;
  }

  .header__logo img {
    height: 36px;
  }


  .hero img {
    width: 100%;
    height: auto;
  }

  .product-list {
    padding: 40px 40px 64px;
  }

  .category__grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
    row-gap: 48px;
  }

  .category__title {
    font-size: 1.75rem;
    margin-bottom: 28px;
  }

  .product-card__name {
    font-size: 0.875rem;
  }

  .product-modal {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    border-radius: 8px;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
  }

  .product-modal.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
