/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #111;
  background: #f7f4ef;
}

/* LEGAL PAGES */
.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 70px 28px 10px;
}

.legal-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.legal-lead {
  color: #666;
  line-height: 1.7;
  max-width: 720px;
}

.legal-card {
  margin-top: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.legal-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.legal-card p {
  color: #555;
  line-height: 1.8;
  font-size: 14px;
}

.legal-note {
  margin-top: 12px;
  color: #777 !important;
  font-size: 12px !important;
}

/* FOOTER */
.site-footer {
  margin-top: 90px;
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 80px;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 48px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 4px;
  text-decoration: none;
  color: #111;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-tagline {
  color: #666;
  line-height: 1.7;
  max-width: 420px;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-col h3 {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: #111;
  font-size: 13px;
  padding: 7px 0;
  opacity: 0.85;
  transition: 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 16px 80px 22px;
  color: #666;
  font-size: 12px;
}

.footer-bottom p {
  max-width: 1180px;
  margin: 0 auto;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 80px;

  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);

  position: sticky;
  top: 0;
  z-index: 1000;

  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* LOGO */
.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;

  position: relative;
  display: inline-block; /* ESSENCIAL */

  transition: 0.3s;
}

.logo a:hover {
  letter-spacing: 6px;
  opacity: 0.8;
}

.logo a::after {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -5px;

  width: 0;
  height: 1px;

  background: #111;

  transform: translateX(-50%);
  transition: width 0.3s ease;
}

/* MENU */
.menu {
  display: flex;
  gap: 50px; /* mais espaco */
  align-items: center;
}

.menu a {
  position: relative;
  text-decoration: none;
  color: #111;

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0;
  height: 1px;

  background: #111;
  opacity: 0.6;

  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

.menu .dropdown {
  display: flex;
  align-items: center;
}

.menu .dropdown > a {
  position: relative;
  text-decoration: none;
  color: #111;
  font-size: 14px;
}

.menu a:hover {
  color: #555;
}

/* ICONS */
.icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icons > span,
.icons > a,
.header-icon {
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  color: #111;
  text-decoration: none;
}

.icons > span:hover,
.icons > a:hover,
.header-icon:hover {
  transform: scale(1.2);
}

.header-icon {
  border: none;
  background: transparent;
  line-height: 1;
  padding: 0;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.cart-count[hidden] {
  display: none;
}

/* SEARCH MODAL */
.search-overlay[hidden],
.search-modal[hidden] {
  display: none;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(6px);
  z-index: 9997;
}

.search-modal {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, calc(100% - 36px));
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
  padding: 20px;
  z-index: 9998;
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.search-modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
}

.search-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.search-close:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.search-modal-input input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  outline: none;
  font-size: 14px;
  background: #fff;
}

.search-results {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  max-height: min(420px, 55vh);
  overflow: auto;
  padding-right: 4px;
}

.search-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #111;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  transition: 0.2s;
}

.search-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}

.search-item img {
  width: 56px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: #f2eee7;
}

.search-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.search-item span {
  display: block;
  color: #777;
  font-size: 12px;
  margin-top: 4px;
}

.search-item b {
  font-size: 14px;
}

.search-empty {
  padding: 16px;
  color: #666;
  text-align: center;
}

.search-hint {
  margin-top: 12px;
  color: #777;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 600px) {
  .search-modal {
    top: 76px;
    padding: 16px;
  }

  .search-modal-header h2 {
    font-size: 22px;
  }
}

.user-menu {
  display: flex;
  align-items: center;
}

.user-link,
.user-logged {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.user-link:hover {
  color: #555;
}

.user-icon {
  font-size: 18px;
  line-height: 1;
}

.user-name {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* admin-pill removido: admin nao deve aparecer no site principal */

/* DROPDOWN */
.dropdown {
  position: relative;
}

/* MEGA MENU */
.mega-menu {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  display: flex;
  gap: 50px;
  padding: 40px 60px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  z-index: 999;
}

.dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* COLUNAS */
.mega-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
}

.mega-column h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.mega-column a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
}

.mega-column a:hover {
  color: #000;
}

/* HERO */
.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 48px;
  padding: 70px 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(194, 169, 133, 0.28), transparent 28%),
    linear-gradient(135deg, #f7f4ef 0%, #eee5d9 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247,244,239,0.95) 0%, rgba(247,244,239,0.7) 45%, rgba(17,17,17,0.18) 100%);
  pointer-events: none;
}

.hero-media {
  min-height: 540px;
  order: 2;
  align-self: stretch;
  border-radius: 220px 220px 28px 28px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.24)),
    url("../assets/images/banner2.png") no-repeat center/cover;
  box-shadow: 0 35px 80px rgba(71, 54, 31, 0.22);
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-kicker,
.section-kicker {
  color: #8a6f4d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 600;
  letter-spacing: -1.8px;
  line-height: 0.95;
  color: #111;
}

.hero-text {
  color: #5f564a;
  font-size: 17px;
  line-height: 1.8;
  max-width: 520px;
  margin-top: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.cta.primary {
  background: #111;
  color: #fff;
}

.cta.secondary {
  border: 1px solid rgba(17,17,17,0.25);
  color: #111;
  background: rgba(255,255,255,0.38);
}

.cta:hover {
  transform: translateY(-3px);
}

.cta.primary:hover {
  background: #000;
}

.cta.secondary:hover {
  background: #fff;
  border-color: #111;
}

/* CATEGORIAS HOME */
.category-showcase {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  padding: 80px;
  background: #111;
}

.category-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.72) 100%),
    url("../assets/images/camisa3.jpg") no-repeat center/cover;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.category-card-large {
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.72) 100%),
    url("../assets/images/camisa2.jpg") no-repeat center/cover;
}

.category-card:hover {
  transform: translateY(-6px);
}

.category-card span {
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.category-card strong {
  max-width: 420px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

/* PRODUTOS */
.products {
  position: relative;
  z-index: 2;
  padding: 90px 80px;
  background: #f7f4ef;
}

.section-header {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  max-width: 1320px;
  margin: 0 auto 34px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.section-subtitle {
  color: #665d52;
  font-size: 15px;
}

.section-link {
  color: #111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.section-link::after {
  content: " ->";
}

.products-wrapper {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
}

.store-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 80px 90px;
  background: #f7f4ef;
}

.store-benefits div {
  background: #fff;
  padding: 34px;
}

.store-benefits span {
  display: block;
  color: #9b876b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.store-benefits strong {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}

.store-benefits p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

/* LEGADO HERO BUTTON */
.hero-content button {
  margin-top: 20px;
  padding: 12px 25px;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
}

.hero-content button:hover {
  background: #fff;
  color: #111;
}

/* SLIDER */
.product-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 18px;
}

.slider-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.product-grid::-webkit-scrollbar {
  display: none;
}

.product-grid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* CARD */
.product {
  text-decoration: none;
  color: #111;
  flex: 0 0 calc((100% - 80px) / 5);
  max-width: calc((100% - 80px) / 5);
  background: #fff;
  border-radius: 22px;
  padding: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(57, 43, 24, 0.12);
}

/* IMAGEM */
.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #eee8de;
  aspect-ratio: 3 / 4;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.4s;
}

.product:hover img {
  transform: scale(1.05);
}

/* TROCA DE IMAGEM */
.img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
}

.product:hover .img-hover {
  opacity: 1;
}

/* ZOOM SUAVE */
.product:hover .product-image img {
  transform: scale(1.05);
}

/* BADGE */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

/* FAVORITO */
.fav {
  position: absolute;
  top: 10px;
  right: 10px;

  font-size: 22px; /* maior */
  width: 35px;
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.9);
  border-radius: 50%;

  cursor: pointer;
  transition: 0.3s;

  opacity: 0;
}

/* aparece no hover */
.product:hover .fav {
  opacity: 1;
}

/* hover no botão */
.fav:hover {
  transform: scale(1.2);
}

/* estado ativo (favoritado) */
.fav.active {
  color: #e60023;
  transform: scale(1.2);
}
/* botões */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 45px;
  height: 45px;

  border-radius: 50%;
  border: none;

  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);

  box-shadow: 0 5px 15px rgba(0,0,0,0.1);

  cursor: pointer;
  font-size: 18px;

  transition: 0.3s;
  z-index: 10;
}

/* esquerda */
.slider-btn.left {
  left: 30px;
}

/* direita */
.slider-btn.right {
  right: 30px;
}

/* hover elegante */
.slider-btn:hover {
  background: #111;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-wrapper:hover .slider-btn {
  opacity: 1;
}

/* INFO */
.product-info {
  margin-top: 14px;
  padding: 0 4px 4px;
}

.product-name {
  font-size: 13px;
  font-weight: 600;
}

.product-price {
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
}

/* DETALHE PRODUTO */
.product-detail {
  display: flex;
  gap: 50px;
  padding: 60px;
  flex-wrap: wrap;
}

.product-detail .product-image {
  max-width: 450px;
}

/* PRODUCT PAGE */

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;

  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* GALERIA */
.product-gallery img {
  width: 100%;
  border-radius: 16px;
  background: #f5f5f5;
}

/* GALERIA */

.product-gallery {
  display: flex;
  gap: 20px;
}

/* imagem principal */
.main-image {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border-radius: 16px;
}

.main-image img {
  width: 100%;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

/* 🔥 ZOOM */
.main-image:hover img {
  transform: scale(1.2);
}

/* thumbs */
.thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb {
  width: 70px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.thumb:hover {
  border-color: #111;
}

.thumb.active {
  border-color: #111;
}

/* INFO */
.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
}

/* NOME */
.product-info h1 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* PREÇO */
.price {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* DESCRIÇÃO */
.description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 35px;
}

/* TAMANHOS */

.sizes {
  margin-bottom: 35px;
}

.size-title {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 12px;
}

/* container */
.size-options {
  display: flex;
  gap: 12px;
}

/* FRETE (PRODUTO) */
.product-shipping {
  margin: 18px 0 24px;
}

.shipping-title {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 10px;
}

.shipping-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.product-shipping input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
}

.product-shipping input:focus {
  border-color: #111;
}

.shipping-btn {
  height: 48px;
  border-radius: 999px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.2s;
}

.shipping-btn:hover {
  background: #111;
  color: #fff;
}

.shipping-result {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
  min-height: 18px;
}

.shipping-result.error {
  color: #e60023;
}

/* ERRO TAMANHO */

.size-error {
  font-size: 12px;
  color: #e60023;
  margin-top: 10px;

  opacity: 0;
  transform: translateY(-5px);
  transition: 0.3s;
}

/* quando aparece */
.size-error.show {
  opacity: 1;
  transform: translateY(0);
}

/* botão desativado */
.buy-btn.disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* botão */
.size-btn {
  width: 48px;
  height: 48px;

  border: 1px solid #ddd;
  background: #fff;

  font-size: 13px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.25s ease;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* hover */
.size-btn:hover {
  border-color: #111;
  transform: translateY(-2px);
}

/* ativo */
.size-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* clique feedback */
.size-btn:active {
  transform: scale(0.95);
}

/* BOTÃO */
.buy-btn {
  padding: 16px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;

  cursor: pointer;
  transition: 0.3s;

  width: 100%;
}

.buy-btn:hover {
  background: #000;
  transform: translateY(-2px);
}

.product-info::before {
  content: "NOVA COLEÇÃO";
  font-size: 11px;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 10px;
}

.product-not-found {
  max-width: 760px;
  margin: 110px auto;
  padding: 60px 30px;
  text-align: center;
}

.product-not-found[hidden] {
  display: none;
}

.product-not-found p {
  color: #8a6f4d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.product-not-found h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 72px);
  margin-bottom: 28px;
}

.product-not-found a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  background: #111;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.cart-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.cart-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9998;
}

.cart-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  padding: 28px;
  box-shadow: -5px 0 20px rgba(0,0,0,0.2);
  transition: 0.3s;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.cart-drawer.show {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  gap: 20px;
  letter-spacing: 0.3px;
}

.drawer-header button {
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.drawer-header button:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

.drawer-body {
  margin: 28px 0;
  flex: 1;
}

.drawer-product {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.drawer-product img {
  width: 126px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #f2eee7;
}

.drawer-product-info {
  min-width: 0;
}

.drawer-badge {
  display: inline-flex;
  margin-bottom: 10px;
  color: #8a6f4d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.drawer-product-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.drawer-product-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 6px;
}

.drawer-product-price {
  color: #111 !important;
  font-weight: 700;
  margin-top: 12px;
}

.drawer-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.drawer-summary span {
  color: #666;
}

.drawer-summary strong {
  color: #111;
  font-size: 18px;
}

.drawer-actions {
  display: grid;
  gap: 10px;
}

.view-cart-btn,
.continue-shopping-btn {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s;
}

.continue-shopping-btn {
  background: #f1f1f1;
  color: #111;
}

.view-cart-btn:hover {
  background: #222;
}

.continue-shopping-btn:hover {
  background: #e4e4e4;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  body[data-page="feminino"] .categoria-container {
    grid-template-columns: 1fr;
  }

  body[data-page="feminino"] .filtros {
    position: static;
  }
}

/* ===== RESPONSIVO ===== */

@media (max-width: 900px) {
  .categoria-container {
    grid-template-columns: 1fr;
  }

  .filtros {
    position: static;
  }
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .product-detail {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .header {
    padding: 18px 28px;
  }

  .menu {
    gap: 22px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 56px 28px;
  }

  .hero-media {
    order: -1;
    min-height: 420px;
    border-radius: 28px;
  }

  .category-showcase,
  .store-benefits {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }

  .category-card {
    min-height: 300px;
  }

  .products {
    padding: 60px 28px;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .product {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
  }
}

@media (max-width: 600px) {
  .product {
    flex: 0 0 82%;
    max-width: 82%;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 16px 18px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo a {
    font-size: 28px;
  }

  .menu {
    order: 3;
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .menu a {
    font-size: 12px;
  }

  .icons {
    margin-left: auto;
    gap: 14px;
  }

  .user-link span:last-child,
  .user-name {
    display: none;
  }

  .hero {
    padding: 34px 18px 48px;
  }

  .hero-media {
    min-height: 320px;
  }

  .hero-content h1 {
    font-size: clamp(40px, 15vw, 62px);
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
  }

  .cta {
    width: 100%;
  }

  .category-showcase,
  .products,
  .store-benefits {
    padding-left: 18px;
    padding-right: 18px;
  }

  .category-card {
    min-height: 260px;
    padding: 26px;
  }

  .store-benefits {
    padding-bottom: 52px;
  }

  .slider-btn {
    display: none;
  }

  .cart-drawer {
    right: -100%;
    width: 100%;
    padding: 24px 20px;
  }

  .drawer-product {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .drawer-product img {
    width: 104px;
  }

  .footer-inner {
    padding: 44px 18px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .product-info {
    max-width: 100%;
  }

  .shipping-row {
    grid-template-columns: 1fr;
  }
}
