/* ── Adrielys Beauty Boutique — Estilos principais ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary:        #c0627e;
    --primary-dark:   #9a4862;
    --primary-light:  #e8a0b5;
    --rose-gold:      #c4937a;
    --rose-gold-light:#f0ddd5;
    --bg-main:        #fdf5f7;
    --bg-white:       #ffffff;
    --text-dark:      #3d1f28;
    --text-medium:    #7a4a56;
    --text-light:     #b08a94;
    --border:         #f0d0d8;
    --success:        #6db33f;
    --danger:         #e05252;
    --whatsapp:       #25d366;
    --shadow-sm:      0 2px 8px rgba(192, 98, 126, 0.08);
    --shadow-md:      0 6px 24px rgba(192, 98, 126, 0.14);
    --shadow-lg:      0 16px 48px rgba(192, 98, 126, 0.20);
    --radius:         12px;
    --radius-sm:      8px;
    --transition:     0.3s ease-in-out;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes slideOutRight {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}

@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fadeIn    { animation: fadeIn 0.4s ease-in-out forwards; }
.animate-blink     { animation: blink 1.4s ease-in-out infinite; }

/* ── Header ─────────────────────────────────────────────────── */
.main-header {
    background: var(--bg-white);
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-top {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    text-align: center;
    padding: 7px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 300;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    gap: 24px;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-img {
    height: 72px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    line-height: 1.15;
}

.logo-sub {
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--rose-gold);
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

/* Search */
.search-bar { flex: 0 1 440px; }

.search-bar form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 10px 44px 10px 18px;
    border: 1.5px solid var(--border);
    border-radius: 9999px;
    outline: none;
    font-size: 0.88rem;
    background: var(--bg-main);
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar input::placeholder { color: var(--text-light); }
.search-bar input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(192,98,126,0.1);
}

.search-bar button {
    position: absolute;
    right: 4px;
    width: 34px;
    height: 34px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    font-size: 0.85rem;
}

.search-bar button:hover { background: var(--primary-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1.5px solid var(--border);
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
    cursor: pointer;
}

.cart-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
}

#cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--rose-gold);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

/* ── Hero Banner ─────────────────────────────────────────────── */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--rose-gold) 100%);
    padding: 90px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before,
.hero-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.hero-banner::before { top: -50%; left: -20%; width: 60%; height: 200%; }
.hero-banner::after  { bottom: -40%; right: -10%; width: 50%; height: 180%; }

.hero-content { position: relative; z-index: 1; }

.hero-label {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 0.7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    padding: 6px 22px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.22);
    margin-bottom: 22px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.4rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 38px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-hero-primary {
    background: #fff;
    color: var(--primary);
    padding: 13px 36px;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all var(--transition);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: var(--rose-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    padding: 13px 36px;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
    border: 2px solid rgba(255,255,255,0.65);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.14);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ── Section Headers ──────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 36px; padding-top: 16px; }

.section-tag {
    display: inline-block;
    background: var(--rose-gold-light);
    color: var(--rose-gold);
    font-size: 0.68rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 9999px;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-title  { font-size: 2rem; color: var(--text-dark); margin-bottom: 8px; }
.section-divider {
    width: 44px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--rose-gold));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ── Products Section ─────────────────────────────────────────── */
.section-products { padding: 56px 0; }

/* ── HERO GRID (commerce-main style) ─────────────────────────── */
.featured-hero-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 12px;
}

.featured-hero-grid .product-tile:first-child {
    grid-column: span 4;
    grid-row: span 2;
}

.featured-hero-grid .product-tile:not(:first-child) {
    grid-column: span 2;
    grid-row: span 1;
}

/* Fallback: se tiver apenas 1 ou 2 destaques */
.featured-hero-grid.items-1 .product-tile { grid-column: span 6; grid-row: span 2; }
.featured-hero-grid.items-2 .product-tile { grid-column: span 3; grid-row: span 2; }

/* ── PRODUCT TILE (commerce-main style) ──────────────────────── */
.product-tile {
    position: relative;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    animation: fadeIn 0.4s ease-in-out forwards;
}

.product-tile:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.product-tile a { text-decoration: none; color: inherit; display: block; height: 100%; }

.product-tile .tile-image-wrap {
    width: 100%;
    height: 100%;
    min-height: 240px;
    overflow: hidden;
    position: relative;
}

.product-tile .tile-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    display: block;
}

.product-tile:hover .tile-image-wrap img { transform: scale(1.06); }

/* Tile Label — badge sobreposição (commerce-main) */
.tile-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(61,31,40,0.75) 0%, transparent 100%);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.tile-label-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.tile-label-price {
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tile badge (destaque) */
.tile-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(6px);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    z-index: 2;
    border: 1px solid rgba(192,98,126,0.25);
}

/* Tile Actions (aparecem no hover) */
.tile-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 3;
}

.product-tile:hover .tile-actions { transform: translateY(0); }

/* ── PRODUCTS GRID (listagem simples) ────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Tile simples (para grid normal, não hero) */
.product-card {
    position: relative;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    animation: fadeIn 0.4s ease-in-out forwards;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.product-card a { text-decoration: none; color: inherit; }

.product-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
    aspect-ratio: 1 / 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    display: block;
}

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

/* Badge label over image (commerce-main style) */
.product-image .image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(61,31,40,0.65) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.image-label-price {
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(6px);
    color: var(--primary);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    z-index: 2;
    border: 1px solid rgba(192,98,126,0.2);
}

.product-info { padding: 14px 14px 6px; }

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.35;
}

.price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    display: none; /* preço está no badge sobre a imagem */
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 14px 14px;
    margin-top: auto;
}

/* ── CAROUSEL ─────────────────────────────────────────────────── */
.carousel-section { padding: 56px 0; }

.carousel-outer {
    overflow: hidden;
    position: relative;
}

.carousel-outer::before,
.carousel-outer::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}

.carousel-outer::before { left: 0;  background: linear-gradient(to right, var(--bg-main), transparent); }
.carousel-outer::after  { right: 0; background: linear-gradient(to left,  var(--bg-main), transparent); }

.carousel-track {
    display: flex;
    gap: 16px;
    animation: carouselScroll 30s linear infinite;
    width: max-content;
}

.carousel-track:hover { animation-play-state: paused; }

.carousel-item {
    flex: 0 0 220px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.carousel-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.carousel-item a { text-decoration: none; color: inherit; display: block; }

.carousel-item-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bg-main);
}

.carousel-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.carousel-item:hover .carousel-item-image img { transform: scale(1.06); }

.carousel-item-info { padding: 12px; }

.carousel-item-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 22px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary      { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); opacity: 1; }

.btn-outline      { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; opacity: 1; }

.btn-secondary    { background: var(--text-medium); color: #fff; }
.btn-success      { background: var(--success); color: #fff; }
.btn-danger       { background: var(--danger); color: #fff; }

.btn-whatsapp     { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1da851; opacity: 1; }

.btn-block { display: flex; width: 100%; }
.btn-lg    { padding: 13px 32px; font-size: 0.95rem; }
.btn-sm    { padding: 6px 14px; font-size: 0.78rem; }

.add-to-cart { border-radius: 9999px; }

/* ── Trust Bar ───────────────────────────────────────────────── */
.trust-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 18px 0;
}

.trust-bar-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 28px;
    border-right: 1px solid var(--border);
    flex: 1;
    min-width: 160px;
    max-width: 260px;
}

.trust-item:last-child { border-right: none; }

.trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--rose-gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(192,98,126,0.25);
}

.trust-text { display: flex; flex-direction: column; gap: 1px; }

.trust-text strong {
    font-size: 0.82rem;
    color: var(--text-dark);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.trust-text span {
    font-size: 0.73rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* ── Trust mini (página de produto) ──────────────────────────── */
.trust-mini {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg-main);
}

.trust-mini-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-medium);
    border-right: 1px solid var(--border);
    text-align: center;
    line-height: 1.3;
}

.trust-mini-item:last-child { border-right: none; }

.trust-mini-item i {
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ── Desconto badge (listas e cards) ─────────────────────────── */
.discount-badge {
    background: #e05252 !important;
    color: #fff !important;
    border: none !important;
    backdrop-filter: none !important;
}

.product-info-price {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 10px;
    flex-wrap: wrap;
}

/* ── Product Detail ───────────────────────────────────────────── */
.product-detail { padding: 48px 0; }

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border);
}

.product-detail-image {
    position: relative;
}

.product-detail-image img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.detail-discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #e05252;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(224,82,82,0.35);
}

.product-detail-info h1 { font-size: 2rem; color: var(--text-dark); margin-bottom: 10px; }

/* Preço simples (sem desconto) */
.detail-price {
    font-size: 2.1rem;
    color: var(--primary);
    font-weight: 700;
    margin: 18px 0;
    font-family: 'Lato', sans-serif;
}

/* Bloco De/Por com desconto */
.detail-price-block {
    margin: 18px 0 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fdf5f7, #fff);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-price-original {
    font-size: 0.92rem;
    color: var(--text-light);
}

.detail-price-original del {
    font-size: 1.05rem;
    text-decoration: line-through;
    color: #b08a94;
}

.detail-price-venda {
    font-size: 1rem;
    color: var(--text-medium);
}

.detail-price-venda strong {
    font-size: 2rem;
    color: var(--primary);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.detail-price-economia {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 0.86rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.detail-price-economia i { color: #6db33f; }
.detail-price-economia strong { color: #6db33f; }

.detail-pct-badge {
    background: #e05252;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
}

.detail-description { margin-bottom: 28px; color: var(--text-medium); line-height: 1.8; }

.detail-description h3 {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Lato', sans-serif;
}

.detail-actions { display: flex; flex-direction: column; gap: 10px; }

/* ── Cart Modal (slide-in) ────────────────────────────────────── */
.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(2px);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.cart-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--bg-white);
    z-index: 501;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}

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

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-panel-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition);
}

.cart-panel-close:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.1);
}

.cart-panel-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
    color: var(--text-light);
    text-align: center;
}

.cart-panel-empty i { font-size: 3rem; color: var(--primary-light); }
.cart-panel-empty p { font-size: 0.95rem; }

/* Cart item no painel */
.cart-panel-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #fdf0f4;
}

.cart-panel-item:last-child { border-bottom: none; }

.cart-panel-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-panel-item-info { flex: 1; min-width: 0; }

.cart-panel-item-info h3 {
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-panel-item-price { color: var(--primary); font-weight: 700; font-size: 0.95rem; }

.cart-panel-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-main);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.qty-value { font-weight: 700; color: var(--text-dark); min-width: 24px; text-align: center; font-size: 0.9rem; }

.cart-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: color var(--transition);
    margin-left: auto;
    flex-shrink: 0;
}

.cart-item-remove:hover { color: var(--danger); }

.cart-panel-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-white);
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.cart-summary-line.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    border-top: 1.5px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
    margin-bottom: 14px;
}

.shipping-select-wrap { margin-bottom: 12px; }

.shipping-select-wrap label { font-size: 0.8rem; color: var(--text-medium); display: block; margin-bottom: 5px; font-weight: 700; }

/* ── Cart Page (fallback) ─────────────────────────────────────── */
.cart-page { padding: 48px 0; }
.cart-page h1 { font-size: 2rem; margin-bottom: 28px; color: var(--text-dark); }

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}

.cart-item {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 16px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    gap: 16px;
}

.cart-item img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 4px; }
.cart-item-info p  { color: var(--primary); font-weight: 700; }

.cart-item-actions { display: flex; align-items: center; gap: 10px; }

.cart-summary {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border);
    position: sticky;
    top: 90px;
}

.cart-summary h3 { margin-bottom: 20px; color: var(--text-dark); }

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.summary-item.total {
    border-top: 2px solid var(--border);
    padding-top: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ── Search Results ───────────────────────────────────────────── */
.search-results-section { padding: 40px 0; }
.search-results-header { margin-bottom: 28px; }
.search-results-header h2 { font-size: 1.5rem; color: var(--text-dark); }
.search-results-header p  { color: var(--text-light); margin-top: 5px; font-size: 0.9rem; }

/* ── No products ──────────────────────────────────────────────── */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.no-products i { font-size: 2.5rem; display: block; margin-bottom: 14px; color: var(--primary-light); }

/* ── Footer ───────────────────────────────────────────────────── */
.main-footer {
    background: linear-gradient(180deg, var(--primary-dark), #1e0a14);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 28px;
    margin-top: 64px;
}

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

.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-sub  { color: rgba(255,255,255,0.4); }

.footer-tagline {
    margin-top: 12px;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.55);
    font-style: italic;
    line-height: 1.6;
}

.footer-address {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

.footer-address i { color: var(--primary-light); margin-right: 7px; }

.footer-col h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

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

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ── Forms ────────────────────────────────────────────────────── */
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(192,98,126,0.1);
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* ── Alerts ───────────────────────────────────────────────────── */
.alert { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.88rem; }
.alert-danger  { background: #fde8e8; color: #b91c1c; border-left: 4px solid var(--danger); }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid var(--success); }

/* ── Toast ────────────────────────────────────────────────────── */
.cart-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

/* ── Responsive ───────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .featured-hero-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .featured-hero-grid .product-tile:first-child { grid-column: span 2; grid-row: span 1; }
    .featured-hero-grid .product-tile:not(:first-child) { grid-column: span 1; }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .product-detail-container { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
    .cart-container { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
    .container { padding: 0 14px; }

    .header-main .container { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
    .search-bar { order: 3; flex: 0 0 100%; }
    .logo-text  { font-size: 1.1rem; }
    .logo-img   { height: 54px; max-width: 160px; }

    .hero-title    { font-size: 1.9rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .hero-banner   { padding: 48px 16px; }
    .hero-actions  { flex-direction: column; align-items: center; gap: 10px; }
    .btn-hero-primary,
    .btn-hero-secondary { width: 100%; max-width: 280px; justify-content: center; }

    .section-title    { font-size: 1.5rem; }
    .section-products { padding: 36px 0; }
    .carousel-section { padding: 36px 0; }

    /* Trust bar */
    .trust-bar-grid { gap: 0; }
    .trust-item {
        padding: 10px 16px;
        min-width: 140px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-width: 50%;
        flex: 0 0 50%;
    }
    .trust-item:nth-child(odd)  { border-right: 1px solid var(--border); }
    .trust-item:last-child { border-bottom: none; }
    .trust-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

    /* Trust mini */
    .trust-mini { flex-wrap: wrap; }
    .trust-mini-item { flex: 0 0 50%; border-bottom: 1px solid var(--border); }
    .trust-mini-item:nth-child(even) { border-right: none; }
    .trust-mini-item:last-child { flex: 0 0 100%; border-right: none; border-bottom: none; }

    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    /* Botões do produto sempre visíveis (sem hover) */
    .product-actions { flex-direction: column; gap: 6px; }
    .product-actions .btn { font-size: 0.8rem; padding: 9px 14px; }

    /* Hero grid → coluna única */
    .featured-hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .featured-hero-grid .product-tile { grid-column: span 1 !important; grid-row: span 1 !important; }
    .featured-hero-grid .tile-image-wrap { min-height: 200px; }

    /* Tile actions — sempre visíveis no mobile */
    .tile-actions {
        transform: translateY(0) !important;
        position: static;
        background: var(--bg-white);
        flex-direction: column;
        padding: 10px;
    }
    .tile-actions .btn { font-size: 0.82rem; }
    .product-tile { display: flex; flex-direction: column; }
    .product-tile > a { flex: 1; }

    /* Detalhe do produto */
    .product-detail { padding: 20px 0; }
    .product-detail-container { padding: 18px; }
    .product-detail-info h1 { font-size: 1.4rem; }
    .detail-price           { font-size: 1.6rem; }
    .detail-actions .btn    { width: 100%; justify-content: center; }

    .cart-panel  { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .main-footer { padding: 40px 0 20px; }
}

/* Muito pequeno */
@media (max-width: 400px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero-title    { font-size: 1.6rem; }
}

/* Dispositivos touch (sem hover real) — tile-actions sempre visíveis */
@media (hover: none) {
    .tile-actions {
        transform: translateY(0) !important;
        position: static;
        background: var(--bg-white);
        flex-direction: column;
        padding: 10px;
    }
    .product-tile { display: flex; flex-direction: column; }
    .product-tile > a { flex: 1; }
}
