:root {
    --ink: #1d1b20;
    --muted: #746b72;
    --paper: #ffffff;
    --surface: #fff5f6; /* Branco levemente avermelhado/rosado */
    --mist: #fceef0; /* Um tom de mist mais rosado para combinar */
    --line: #e4d8dc;
    --plum: #6f213f;
    --rose: #d85d8b;
    --teal: #1f6f68;
    --gold: #c59a3d;
    --danger: #a52f3d;
    --shadow: 0 24px 70px rgba(29, 27, 32, 0.12);

    /* Admin Dark Theme */
    --admin-bg: #0f111a;
    --admin-sidebar: #161925;
    --admin-card: #1f2233;
    --admin-text: #e1e1e6;
    --admin-muted: #8d8d99;
    --admin-accent: #007bff;
    --admin-success: #25d366;
    --admin-danger: #ff3b3b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

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

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 12px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.brand.centered {
    justify-content: center;
}

.brand-word {
    font-size: clamp(20px, 2.2vw, 30px);
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    overflow: hidden;
    background: var(--paper);
    border: 3px solid var(--plum);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(111, 33, 63, 0.18);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 800;
    font-size: 14px;
}

.nav a:not(.cart-icon-link):hover {
    color: var(--plum);
}

.cart-icon-link {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: white;
    background: var(--plum);
    border-radius: 50%;
    box-shadow: 0 12px 26px rgba(111, 33, 63, 0.22);
}

.cart-icon-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cart-icon-link span {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    color: var(--plum);
    background: white;
    border: 2px solid var(--plum);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 0;
    overflow: hidden;
}

.hero-copy h1,
.section-head h2,
.contact h2,
.detail-info h1,
.cart-page-head h1,
.panel h1,
.panel h2,
.login-box h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0;
    line-height: 1;
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(52px, 8vw, 108px);
}

.hero-text {
    max-width: 620px;
    margin: 24px 0;
    color: var(--muted);
    font-size: clamp(17px, 1.8vw, 21px);
}

.hero-actions,
.price-row,
.item-actions,
.detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn.primary {
    color: white;
    background: var(--plum);
    box-shadow: 0 14px 30px rgba(111, 33, 63, 0.22);
}

.btn.secondary {
    color: var(--plum);
    background: #fff0f5;
    border-color: #f3c8d8;
}

.btn.secondary:hover {
    background: #ffe4ee;
}

.btn.ghost {
    color: var(--plum);
    background: white;
    border-color: var(--line);
}

.btn.light {
    color: var(--plum);
    background: white;
}

.btn.product-btn {
    width: 100%;
    color: white;
    background: var(--ink);
}

.btn.danger {
    color: white;
    background: var(--danger);
}

.btn.compact {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.hero-showcase {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-carousel {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}

.hero-carousel::-webkit-scrollbar {
    display: none;
}

.product-card,
.panel,
.login-box,
.cart-page-list,
.cart-summary,
.choice-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(29, 27, 32, 0.08);
}

.floating-product {
    flex: 0 0 280px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.floating-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .floating-product {
        flex: 0 0 220px;
        height: 320px;
    }
}

.promo-band {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 24px clamp(18px, 4vw, 56px);
    color: white;
    background: linear-gradient(135deg, var(--plum), #202126);
}

@media (max-width: 900px) {
    .promo-band {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 18px;
        gap: 15px;
    }
    
    .promo-band h2 {
        font-size: 20px !important;
    }

    .countdown {
        justify-content: center;
    }

    .countdown span {
        min-width: 50px;
        padding: 6px;
    }

    .countdown strong {
        font-size: 18px;
    }
}

.promo-band .eyebrow {
    color: #ffd7e6;
}

.promo-band h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(23px, 2.8vw, 38px);
    line-height: 1.08;
}

.countdown {
    display: flex;
    gap: 10px;
    align-items: center;
}

.countdown span {
    display: grid;
    min-width: 66px;
    padding: 9px 10px;
    place-items: center;
    color: var(--plum);
    background: white;
    border-radius: 8px;
    font-weight: 900;
}

.countdown strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.section-head {
    padding: 28px clamp(18px, 4vw, 56px) 24px;
}

.section-head h2,
.contact h2 {
    font-size: clamp(34px, 5vw, 58px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 clamp(18px, 4vw, 56px) 80px;
}

/* Mobile: 2 colunas e cards compactos */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 0 10px 40px !important;
    }

    .product-card {
        border-radius: 6px !important;
    }

    .product-media {
        aspect-ratio: 2 / 3 !important; /* Foto um pouco mais curta */
    }

    .product-info {
        padding: 8px !important;
        gap: 4px !important;
    }

    .product-info h3 {
        font-size: 13px !important;
        line-height: 1.2 !important;
        min-height: 32px !important;
        margin-bottom: 2px !important;
    }

    .product-description {
        display: none !important;
    }

    .category, .sizes {
        font-size: 10px !important;
        opacity: 0.8;
    }

    .price-row {
        margin-top: 4px !important;
    }

    .price-row strong {
        font-size: 14px !important;
    }

    .btn.product-btn {
        min-height: 32px !important;
        font-size: 11px !important;
        padding: 4px !important;
        border-radius: 4px !important;
    }

    .mini-swatches span {
        width: 12px !important;
        height: 12px !important;
    }

    .badge {
        padding: 3px 6px !important;
        font-size: 8px !important;
        top: 8px !important;
        left: 8px !important;
    }

    .promo-badge {
        top: 32px !important; /* Afasta o selo de preço do selo de lançamento no mobile */
    }
}

.product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    height: 100%;
}

.product-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--mist);
}

.product-media img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media img.active {
    display: block;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--plum);
    color: white;
    font-size: 11px;
    font-weight: 900;
    border-radius: 4px;
    z-index: 2;
}

.new-badge {
    background: #007bff; /* Azul para lançamento */
    left: 12px;
}

.promo-badge {
    background: #25d366; /* Verde para promo */
    top: 45px;
}

.new-card {
    border: 2px solid #007bff22;
    transition: transform 0.2s;
}

.carousel-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: max-content;
}

.carousel-item {
    width: clamp(170px, 17vw, 220px);
    flex: 0 0 clamp(170px, 17vw, 220px);
}

.new-card .product-media {
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.new-card .product-gallery {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.new-card .product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.new-card .product-info {
    padding: 12px;
    gap: 8px;
}

.new-card .product-info h3 {
    font-size: 15px;
    line-height: 1.2;
}

.new-card .price-row strong {
    font-size: 16px;
}

.new-card .btn.product-btn {
    min-height: 38px;
    padding: 8px;
    font-size: 12px;
}

.new-card:hover {
    transform: translateY(-5px);
    border-color: #007bff;
}

.new-arrivals-container {
    padding-bottom: 60px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.new-arrivals-carousel {
    overflow-x: auto;
    padding: 10px clamp(18px, 4vw, 56px) 10px; /* Reduzido de 30px para 10px */
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.new-arrivals-carousel::-webkit-scrollbar {
    display: none;
}

.new-arrivals-carousel.active {
    cursor: grabbing;
}

.new-arrivals-actions {
    display: flex;
    justify-content: center;
    margin-top: 0; /* Removido o margin top */
}

.new-arrivals-grid {
    margin-top: 30px;
}

@media (max-width: 900px) {
    .carousel-item {
        width: 150px;
        flex: 0 0 150px;
    }

    .carousel-track {
        gap: 12px;
    }

    .new-card .product-info {
        padding: 9px;
        gap: 6px;
    }

    .new-card .product-info h3 {
        font-size: 13px;
    }

    .new-card .btn.product-btn {
        min-height: 34px;
        font-size: 11px;
    }
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--plum);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.next {
    right: 10px;
}

@media (max-width: 768px) {
    .gallery-arrow {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}

.product-info {
    display: grid;
    grid-template-rows: auto auto minmax(44px, auto) minmax(20px, auto) auto auto;
    gap: 10px;
    padding: 18px;
}

.product-info h3 {
    margin: 0;
    font-size: 20px;
}

.product-info p {
    margin: 0;
    color: var(--muted);
}

.product-description {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.price-row {
    align-self: end;
}

.product-btn {
    align-self: end;
}

.category,
.sizes {
    font-size: 13px;
    font-weight: 900;
}

.mini-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mini-swatches span {
    width: 20px;
    height: 20px;
    background: var(--swatch);
    border: 1px solid #d2c8cc;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px white;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
}

.price-row strong {
    color: var(--plum);
    font-size: 18px;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 clamp(18px, 4vw, 56px) 70px;
    padding: clamp(30px, 5vw, 54px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(18px, 4vw, 56px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(300px, 460px) minmax(320px, 520px);
    gap: clamp(22px, 3vw, 42px);
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 42px) clamp(18px, 4vw, 40px) 56px;
}

.detail-gallery,
.detail-info {
    min-width: 0;
}

.detail-main {
    position: sticky;
    top: 92px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    max-height: 580px;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-main img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-main img.active {
    display: block;
}

.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.detail-thumbs img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.detail-thumbs img.active {
    border-color: var(--plum);
    outline: 3px solid rgba(216, 93, 139, 0.22);
}

.detail-info {
    display: grid;
    gap: 14px;
}

.back-link {
    color: var(--plum);
    font-weight: 900;
}

.detail-info h1 {
    font-size: clamp(30px, 3vw, 46px);
}

.detail-description {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.detail-price span {
    color: var(--muted);
    text-decoration: line-through;
}

.detail-price strong {
    color: var(--plum);
    font-size: 24px;
}

.choice-box {
    display: grid;
    gap: 13px;
    padding: 18px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.whatsapp-share {
    gap: 8px;
    color: white !important;
    background: #25d366 !important;
    border-color: #128c7e !important;
}

.whatsapp-share:hover {
    background: #128c7e !important;
}

.whatsapp-share svg {
    width: 20px;
    height: 20px;
}

.choice-box label,
.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 900;
}

.swatch-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.swatch-field legend {
    margin-bottom: 8px;
    font-weight: 900;
}

.color-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 8px;
}

.color-swatch {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.color-swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-swatch span {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: var(--swatch);
    border: 2px solid #d8cfd3;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px white;
}

.color-swatch input:checked + span {
    border-color: #007bff;
    outline: 2px solid rgba(0, 123, 255, 0.28);
}

.color-swatch em {
    color: var(--muted);
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.package-note {
    display: grid;
    gap: 4px;
    padding: 16px;
    color: var(--plum);
    background: #fff0f5;
    border: 1px solid #f3c8d8;
    border-radius: 8px;
}

.cart-page {
    padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px) 70px;
}

.cart-page-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.cart-page-head h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.cart-page-head p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
}

.cart-page-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 380px);
    gap: 22px;
    align-items: start;
}

.cart-page-list,
.cart-summary {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.cart-summary {
    position: sticky;
    top: 96px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cart-item.has-photo {
    grid-template-columns: 76px 1fr auto;
}

.cart-item-photo {
    width: 76px;
    height: 96px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--mist);
}

.cart-item-main {
    display: grid;
    gap: 4px;
}

.cart-item span,
.empty-cart {
    color: var(--muted);
}

.cart-item em {
    color: var(--plum);
    font-style: normal;
    font-weight: 900;
}

.cart-remove {
    min-height: 34px;
    padding: 8px 10px;
    color: var(--danger);
    background: white;
    border: 1px solid #efcbd1;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.cart-progress {
    margin: 0;
    padding: 12px;
    color: var(--plum);
    background: #fff0f5;
    border: 1px solid #f3c8d8;
    border-radius: 8px;
    font-weight: 900;
}

.cart-progress.complete {
    color: #1d6848;
    background: #eafff3;
    border-color: #bee9d0;
}

.checkout-form-fields {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.checkout-form-fields label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 900;
    color: var(--ink);
}

.checkout-form-fields input {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.payment-success-screen {
    display: grid;
    gap: 16px;
    text-align: center;
    padding: 20px 10px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.payment-success-screen h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    margin: 0;
    color: var(--teal);
}

.payment-success-screen p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--paper);
    width: min(460px, calc(100% - 32px));
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: 0;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted);
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-weight: 900;
}

.checkout-btn {
    width: 100%;
}

.checkout-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-btn {
    color: white;
    background: var(--teal);
    box-shadow: 0 14px 30px rgba(31, 111, 104, 0.18);
}

.form-error {
    margin: 0;
    padding: 10px 12px;
    color: var(--danger);
    background: #fff0f2;
    border: 1px solid #efcbd1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
}

.site-toast {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(560px, calc(100% - 28px));
    padding: 14px 16px;
    color: #1d6848;
    background: #eafff3;
    border: 1px solid #bee9d0;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(29, 27, 32, 0.16);
    opacity: 0;
    transform: translate(-50%, -10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.site-toast strong {
    flex: 1;
}

.site-toast a {
    color: var(--plum);
    font-weight: 900;
    white-space: nowrap;
}

.site-toast button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: #1d6848;
    background: transparent;
    border: 0;
    font-size: 22px;
    cursor: pointer;
}

.admin-page {
    background: var(--admin-bg) !important;
    color: var(--admin-text) !important;
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--admin-sidebar);
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar .brand {
    color: white;
    margin-bottom: 40px;
}

/* Mobile Admin Toggle */
.mobile-admin-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 101;
    background: var(--admin-sidebar);
    padding: 12px 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hamburger-btn {
    background: transparent;
    border: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.admin-nav-group {
    margin-bottom: 30px;
}

.admin-nav-group label {
    display: block;
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--admin-text);
    border-radius: 8px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    transition: all 160ms ease;
    margin-bottom: 4px;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(0, 123, 255, 0.1);
    color: var(--admin-accent);
}

.admin-main {
    padding: 32px;
    overflow-y: auto;
}

.admin-top-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dash-card {
    background: var(--admin-card);
    padding: 24px;
    border-radius: 12px;
    display: grid;
    gap: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.dash-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--admin-accent);
    opacity: 0.5;
}

.dash-card.success::after { background: var(--admin-success); }
.dash-card.danger::after { background: var(--admin-danger); }

.dash-card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.dash-card strong {
    font-size: 32px;
    line-height: 1;
}

.dash-card span {
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 900;
}

.admin-panel-modern {
    background: var(--admin-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-panel-modern h2 {
    color: white;
    margin-bottom: 24px;
}

/* Ajustes para formulários no tema escuro */
.admin-page input, .admin-page textarea, .admin-page select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.admin-page label {
    color: var(--admin-muted) !important;
}

.admin-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.admin-item strong {
    color: white !important;
}

.admin-topbar {
    position: static;
}

.login-box {
    width: min(440px, calc(100% - 32px));
    margin: 8vh auto;
    padding: 32px;
    background: var(--admin-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: white !important;
}

.login-box h1 {
    margin-top: 24px;
    text-align: center;
    color: white !important;
}

.login-box label {
    color: var(--admin-muted) !important;
}

.login-box input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.login-box .brand {
    color: white !important;
}

.hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.alert {
    padding: 12px;
    color: var(--danger);
    background: #ffe8ec;
    border: 1px solid #f5c2cc;
    border-radius: 8px;
}

.admin-shell {
    padding: 28px clamp(18px, 4vw, 56px);
}

/* Tabs Admin */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--mist);
    border-radius: 12px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: all 160ms ease;
}

.tab-btn.active {
    color: var(--plum);
    background: white;
    box-shadow: 0 4px 12px rgba(29, 27, 32, 0.06);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Pedidos Admin */
.order-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.order-items {
    display: grid;
    gap: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-weight: 900;
}

/* Nota Profissional */
.invoice-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border: 1px solid var(--line);
    font-family: 'Courier New', Courier, monospace;
}

.invoice-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ink);
}

.invoice-body {
    display: grid;
    gap: 20px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th, .invoice-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.invoice-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

@media print {
    body * { visibility: hidden; }
    .invoice-container, .invoice-container * { visibility: visible; }
    .invoice-container { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
}

@media (max-width: 900px) {
    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        width: 260px;
        transition: left 0.3s ease;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }

    .admin-sidebar.open {
        left: 0;
    }

    .mobile-admin-bar {
        display: flex;
    }

    .admin-main {
        padding: 20px 15px;
    }

    .dash-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .dash-card {
        padding: 16px;
    }

    .dash-card strong {
        font-size: 24px;
    }

    .admin-top-actions {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .admin-item img {
        width: 100%;
        height: 200px;
    }
    
    .admin-sidebar .brand {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

.admin-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    margin-bottom: 22px;
    padding: 24px;
    color: white;
    background: linear-gradient(135deg, var(--plum), var(--teal));
    border-radius: 8px;
}

.admin-hero .eyebrow,
.admin-hero p {
    color: rgba(255, 255, 255, 0.84);
}

.admin-hero h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(34px, 4vw, 56px);
}

.admin-hero p {
    margin: 8px 0 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    gap: 10px;
}

.admin-stats article {
    display: grid;
    gap: 4px;
    min-width: 96px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
}

.admin-stats strong {
    font-size: 28px;
}

.admin-stats span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.92fr) minmax(420px, 1.08fr);
    gap: 22px;
}

.settings-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 22px;
}

.settings-panel h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
}

.settings-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.settings-form label {
    display: grid;
    gap: 7px;
    font-weight: 900;
}

.settings-message {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 900;
}

.settings-message.success {
    color: #1d6848;
    background: #eafff3;
    border: 1px solid #bee9d0;
}

.settings-message.error {
    color: var(--danger);
    background: #fff0f2;
    border: 1px solid #efcbd1;
}

.delivery-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(216, 93, 139, 0.18), transparent 34%),
        linear-gradient(135deg, #fff8fb, #f6f2ef);
}

.delivery-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: start;
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(28px, 6vw, 70px) 0;
}

.delivery-intro {
    position: sticky;
    top: 28px;
    display: grid;
    gap: 18px;
    padding-top: 8px;
}

.delivery-intro h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1;
}

.delivery-intro p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.delivery-card {
    padding: clamp(20px, 4vw, 30px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.delivery-form {
    display: grid;
    gap: 15px;
}

.delivery-form label {
    display: grid;
    gap: 7px;
    font-weight: 900;
}

.address-grid {
    grid-template-columns: minmax(140px, 0.7fr) minmax(180px, 1.3fr);
}

.delivery-success,
.delivery-error {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 8px;
    font-weight: 900;
}

.delivery-success {
    color: #1d6848;
    background: #eafff3;
    border: 1px solid #bee9d0;
}

.delivery-success span {
    color: #3b6f55;
    font-weight: 700;
}

.delivery-error {
    color: var(--danger);
    background: #fff0f2;
    border: 1px solid #efcbd1;
}

.delivery-error p {
    margin: 0;
}

.deliveries-list {
    display: grid;
    gap: 16px;
}

.empty-deliveries {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.empty-deliveries p {
    margin: 0;
    color: var(--muted);
    font-weight: 900;
}

.delivery-admin-card {
    display: grid;
    gap: 18px;
}

.delivery-admin-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.delivery-admin-head h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
}

.delivery-admin-head span {
    color: var(--muted);
}

.delivery-admin-head strong {
    align-self: start;
    padding: 7px 10px;
    color: #1d6848;
    background: #eafff3;
    border: 1px solid #bee9d0;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
}

.delivery-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.delivery-admin-grid p {
    margin: 0;
    color: var(--muted);
}

.delivery-admin-grid b {
    color: var(--ink);
}

.panel {
    padding: 24px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-form {
    display: grid;
    gap: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d8cfd3;
    border-radius: 8px;
    font: inherit;
}

textarea {
    resize: vertical;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--plum) 50%), linear-gradient(135deg, var(--plum) 50%, transparent 50%);
    background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

input[type="color"] {
    padding: 4px;
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.checks label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checks input {
    width: auto;
    min-height: auto;
}

.thumb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thumb-row img {
    width: 74px;
    height: 92px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.existing-image-picker {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: #fff8fb;
    border: 1px solid #efcfda;
    border-radius: 8px;
}

.existing-image-head {
    display: grid;
    gap: 3px;
}

.existing-image-head strong {
    color: var(--ink);
    font-size: 14px;
}

.existing-image-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.existing-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    max-height: 290px;
    overflow: auto;
    padding: 2px;
}

.existing-image-option {
    position: relative;
    display: grid !important;
    gap: 6px;
    min-width: 0;
    padding: 7px;
    color: var(--muted);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.existing-image-option input {
    position: absolute;
    width: 1px;
    min-height: 1px;
    opacity: 0;
    pointer-events: none;
}

.existing-image-option img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
}

.existing-image-option input:checked + img {
    border-color: var(--plum);
    outline: 3px solid rgba(216, 93, 139, 0.22);
}

.existing-image-option input:checked ~ span {
    color: var(--plum);
}

.existing-image-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-item {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-item img {
    width: 84px;
    height: 104px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-item strong,
.admin-item span,
.admin-item em {
    display: block;
}

.admin-item span {
    color: var(--muted);
    font-size: 13px;
}

.admin-item em {
    color: var(--teal);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .hero,
    .product-detail,
    .admin-layout,
    .cart-page-grid {
        grid-template-columns: 1fr;
    }

    .detail-main,
    .cart-summary {
        position: static;
    }

    .detail-gallery,
    .detail-info {
        width: min(100%, 620px);
        justify-self: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-band {
        grid-template-columns: 1fr;
    }

    .admin-hero {
        grid-template-columns: 1fr;
    }

    .settings-panel,
    .settings-form,
    .delivery-shell,
    .delivery-admin-grid {
        grid-template-columns: 1fr;
    }

    .delivery-intro {
        position: static;
    }
}

@media (max-width: 720px) {
    .topbar,
    .contact,
    footer {
        flex-direction: column;
    }

    .topbar {
        align-items: center;
        position: static;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .brand-word {
        font-size: clamp(19px, 6vw, 24px);
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero {
        min-height: auto;
    }

    .hero-showcase,
    .product-grid,
    .form-grid,
    .admin-item,
    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-item.has-photo {
        grid-template-columns: 72px 1fr;
    }

    .cart-item-photo {
        width: 72px;
        height: 92px;
    }

    .cart-item.has-photo .cart-remove {
        grid-column: 1 / -1;
    }

    .floating-product {
        min-height: auto;
        transform: none !important;
    }

    .floating-product img {
        height: 260px;
    }

    .detail-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-detail {
        padding-top: 18px;
    }

    .color-swatches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-item img {
        width: 100%;
        height: 230px;
    }

    .panel-head,
    .item-actions,
    .delivery-admin-head,
    .empty-deliveries {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 420px) {
    .color-swatches {
        grid-template-columns: 1fr;
    }
}
