:root {
  --bg-main: #f7f6f4;
  --bg-dark: #0f0f0f;
  --text-main: #1a1a1a;
  --accent: #b8a37a; /* Dourado minimalista */
  --transition: cubic-bezier(.4, 0, .2, 1);
  --white: #ffffff;
}

/* ================= GERAL ================= */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a { text-decoration: none; color: inherit; }

/* ================= NAVBAR ================= */
.premium-navbar {
  background: transparent;
  padding: 1rem 0;
  transition: all 0.5s ease;
  z-index: 2000;
}

.premium-navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo-frame {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 80px;
  transition: opacity 0.5s ease;
}

.logo-colorida {
  position: absolute;
  left: 0;
  opacity: 0;
}

.premium-navbar.scrolled .logo-branca { opacity: 0; }
.premium-navbar.scrolled .logo-colorida { opacity: 1; }

.nav-link {
  color: white !important;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 500;
  transition: color 0.3s;
}

.premium-navbar.scrolled .nav-link {
  color: var(--text-main) !important;
}

.premium-navbar.scrolled .nav-link:hover {
  color: var(--accent) !important;
}

.premium-toggler {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  outline: none !important;
  box-shadow: none !important;
}

.premium-toggler:focus,
.premium-toggler:active {
  outline: none !important;
  border: none !important;
}

.premium-toggler span {
 width: 25px;
 height: 2px;
 background: white;
 border-radius: 10px;
 transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
 position: relative;
 transform-origin: center;
}

.premium-navbar.scrolled .premium-toggler span {
  background: var(--text-main);
}

/* Efeito de X quando ativo */
.premium-toggler.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.premium-toggler.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-5px);
}

.premium-toggler.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/*MENU DO LINK COLEÇÔES DA NAVBAR*/
/* Container do Item Coleções */
.dropdown-premium {
    position: relative;
    display: flex;
    align-items: center;
}

/* O Menu que "Cai" */
.submenu-minimal {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #ffffff !important; /* Fundo sempre branco */
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 0px; /* Mantém o visual reto e moderno */
    border-top: 2px solid var(--accent); /* Detalhe dourado no topo */
    
    /* Estado inicial (escondido) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
    z-index: 3000;
}

/* Mostrar ao passar o mouse */
.dropdown-premium:hover .submenu-minimal {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

/* Links dentro do Submenu */
.sub-link {
    display: block;
    padding: 0.8rem 2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a !important; /* Letras sempre pretas */
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hover nos links do submenu */
.sub-link:hover {
    color: var(--accent) !important; /* Fica dourado ao passar o mouse */
    background: #f9f9f9;
    padding-left: 2.5rem; /* Pequeno deslize lateral charmoso */
}

/* Ajuste para o Mobile (Menu Hamburguer) */
@media (max-width: 991px) {
    .premium-menu {
        display: flex;
        flex-direction: column;
        align-items: center; 
        padding: 1px 20px;
    }

    .dropdown-premium {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .submenu-minimal {
        width: 100%;
        margin-top: 10px;
        border-left: 1px solid var(--accent) !important;
    }
}

/* ================= HERO SLIDER ================= */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s var(--transition);
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  z-index: 10;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
}

.btn-hero {
  border: 1px solid white;
  color: white;
  padding: 12px 35px;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  transition: 0.4s;
}

.btn-hero:hover {
  background: white;
  color: black;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
}
.hero-nav:hover { background: rgba(255, 255, 255, 0); }
.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }

/* IMAGENS DO HERO */
.slide-1{background-image:url("images/roupas/fotoRaquelCelular.webp");}
.slide-2{background-image:url("images/roupas/fotoRaquel2Celular.webp");}
.slide-3{background-image:url("images/roupas/vestidoAzulCinta-celular.webp");}
.slide-4{background-image:url("images/roupas/vestidoAzulPadrao-celular.webp");}
.slide-5{background-image:url("images/roupas/vestidoLaranjaCinta-celular.webp");}


@media(min-width:992px){
  .slide-1{background-image:url("images/roupas/fotoRaquelDesktop.webp");}
  .slide-2{background-image:url("images/roupas/fotoRaquel2Desktop.webp");}
  .slide-3{background-image:url("images/roupas/vestidoAzulCinta-desktop.webp");}
  .slide-4{background-image:url("images/roupas/vestidoAzulPadrao-desktop.webp");}
  .slide-5{background-image:url("images/roupas/vestidoLaranjaCinta-desktop.webp");}
 
}

/* ================= FILTROS ================= */
.filter-wrapper {
  margin: 4rem 0;
  text-align: center;
}

.filter-toggle-btn {
  background: none;
  border: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main);
  cursor: pointer;
  padding: 10px 20px;
}

.filter-toggle-btn i {
  transition: transform 0.4s ease;
}

.filter-toggle-btn.active i {
  transform: rotate(180deg);
}

.filter-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--transition);
}

.filter-options.open {
  max-height: 300px;
}

.filter-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 30px 0;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.filter-btn.active, .filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20%;
  width: 60%;
  height: 1px;
  background: var(--accent);
}

/* ================= GRID DINÂMICO ================= */
.collection-editorial {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.product-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-card.hide {
  display: none !important;
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #eee;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--transition);
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-info {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.product-info h3 {
  font-size: 0.85rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
}

.product-info span {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.product-img-wrapper {
  transition: opacity 0.3s ease;
}

.product-card:hover .product-img-wrapper {
  opacity: 0.85;
}

/* ================= MODAIS ================= */
.product-modal, .custom-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal {
  z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.product-modal.active, .custom-modal.active { 
    display: flex !important; 
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: min(1000px, 100%);
  background: white;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  z-index: 9001;
}

.modal-content-box {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.modal-gallery img { width: 100%; height: 100%; object-fit: cover; }

.modal-details {
  padding: 3rem;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: none;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  z-index: 100;
  cursor: pointer;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
}

/* ETAPA 2 — ESTILO INFO FRETE MODAL */
.modal-shipping-info {
  border-left: 2px solid #eee;
  padding-left: 15px;
  font-style: italic;
  line-height: 1.4;
}

/* --- ESTILO OPÇÕES DE CONJUNTO --- */
.peca-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 5px;
}

.peca-option-item:hover {
    border-color: var(--accent);
    background: #fdfbf7;
}

.peca-check {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.peca-option-item label {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0;
}

.peca-option-item label strong {
    color: var(--accent);
}

.peca-option-item:has(.peca-check:checked) {
    border-color: var(--accent);
    background: #fcf9f2;
    box-shadow: 0 2px 10px rgba(184, 163, 122, 0.1);
}

/* Modal de Alerta de Estoque Premium */
#stock-limit-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#stock-limit-modal.active {
    display: flex;
}

#stock-limit-modal .modal-content {
    background: #fff;
    max-width: 400px;
    width: 100%;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

#stock-limit-modal i {
    font-size: 3.5rem;
    color: #d4af37; /* Dourado Premium */
    margin-bottom: 20px;
    display: block;
}

#stock-limit-modal h3 {
    font-family: 'Playfair Display', serif; /* Ou a fonte elegante do seu site */
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#stock-limit-modal p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

#stock-limit-modal .btn-understand {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

#stock-limit-modal .btn-understand:hover {
    background: #d4af37;
    transform: translateY(-2px);
}

.stock-info-text p {
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 5px;
    display: inline-block;
    border-left: 3px solid #d4af37; /* Detalhe em dourado */
    font-family: 'Montserrat', sans-serif;
}

/* ================= CARRINHO ================= */
.cart-icon-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 4000;
}

.cart-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--text-main);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;
  transition: transform 0.3s;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(450px, 100%);
  height: 100vh;
  background: white;
  z-index: 5000;
  padding: 2.5rem;
  transition: right 0.5s var(--transition);
  display: flex;
  flex-direction: column;
}

.cart-panel.active { right: 0; }

.cart-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  display: flex;
}

.cart-body {
  flex: 1;
  overflow-y: scroll;
  padding: 1.5rem 2rem;
  background-color: #fff;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.cart-body::webkit-scrollbar {
  display: none;
}

.cart-footer {
  padding: 1.5rem 2rem;
  background: white;
  border-top: 1px solid #eee;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 4500;
}

.cart-overlay.active { opacity: 1; pointer-events: auto; }

/* Elementos Internos */
.checkout-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
}

.checkout-field:focus { border-color: var(--accent); }

.btn-clear-cart {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: none;
    border: 1px solid #ddd;
    padding: 4px 8px;
    cursor: pointer;
    color: #888;
}

#shipping-methods-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 20px 0;
}

.cart-item img {
    border-radius: 4px;
    object-fit: cover;
}

.cart-item .fw-bold {
    font-size: 0.9rem;
    display: block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ETAPA 1 — ESTILO LINHA DE FRETE NO CARRINHO */
#shipping-display-row {
  margin-bottom: 5px;
  font-weight: 400;
  transition: all 0.3s ease;
}

#btn-calc-shipping {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 1px;
  border-color: #ddd;
  color: var(--text-main);
}

#btn-calc-shipping:hover {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
}

.btn-clear-cart {
    background: none;
    border: 1px solid #eee;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    color: #999;
    transition: 0.3s;
}

.btn-clear-cart:hover {
    color: #ff4444;
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.btn-remove-item {
    transition: 0.3s;
    opacity: 0.6;
}

.btn-remove-item:hover {
    opacity: 1;
    transform: scale(1.2) rotate(90deg);
    color: #ff4444 !important;
}

/* MANTENDO ESTILOS EXISTENTES E ADICIONANDO REGRAS DO ESCOPO */

/* Scroll interno ao carrinho */
.cart-panel {
    display: flex;
    flex-direction: column;
    max-height: 100vh;
}

.cart-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Ajuste botão Finalizar Compra mobile */
.btn-submit-order {
    margin-bottom: constant(safe-area-inset-bottom);
    margin-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
    .cart-panel {
        width: 100% !important;
        height: 100% !important;
    }
    
    .cart-footer-area {
        padding-bottom: 40px; /* Prevenção de corte */
    }
}

/* Estilização de mensagens de erro do servidor */
.shipping-error-msg {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================= FOOTER ================= */
.footer-premium {
  background-color: #ffffff;
  padding: 60px 0 0 0;
  border-top: 1px solid #eee;
  color: var(--text-main);
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #666;
}

.social-links-wrapper { display: flex; gap: 20px; }

.social-icon {
  font-size: 1.2rem;
  color: #666;
  transition: 0.3s;
}

.footer {
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #f4f4f4;
  background-color: #fafafa;
}

.footer p {
  margin: 0;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {
  .premium-navbar .navbar-logo { height: 60px; }
  
  .modal-panel {
    display: flex;
    flex-direction: column;
    max-height: 95vh;
  }
  
  .modal-gallery { height: 35vh; min-height: 250px; }
  .modal-details { padding: 20px; }
  .cart-panel { width: 100%; padding: 1.5rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links-wrapper { justify-content: center; }
  .collection-editorial { 
    grid-template-columns: 1fr; 
    padding: 0 15px; 
    gap: 30px;
  }
}

/* ================= TRANSIÇÕES PREMIUM ================= */
.product-card, .cart-panel, .cart-item, .custom-modal .modal-content-box, .btn-add-cart {
    transition: all 0.4s cubic-bezier(.4, 0, .2, 1);
}

.cart-item {
    animation: fadeInRight 0.4s ease forwards;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.custom-modal.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}