/*
 * Tema inicial Magia Azul.
 * Visual inspirado no site atual, com espaçamentos menores para telas 1366x720.
 */
:root {
    --primary: #28307f;
    --accent: #ff6a00;
    --dark: #242424;
    --muted: #757575;
    --line: #e7e7e7;
    --soft: #fff7ef;
    --bg: #ffffff;
    --footer: #000000;
    --container: 1180px;
    --radius: 4px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dark);
    background: var(--bg);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.35;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--accent);
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
}

.header-top {
    min-height: 86px;
    display: grid;
    grid-template-columns: 260px 1fr auto;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
}

.logo img {
    width: 260px;
    max-height: 74px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    justify-content: center;
    font-weight: 600;
}

.main-nav a {
    color: #252525;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--accent);
}

.main-nav .disabled {
    opacity: .9;
}

.cart-mini {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 700;
}

.cart-icon {
    color: #222;
    font-size: 1.15rem;
}

.cart-badge {
    position: absolute;
    top: -12px;
    left: 14px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    line-height: 21px;
    text-align: center;
}

.search-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    align-items: center;
    padding-bottom: 18px;
}

.category-button {
    height: 52px;
    border: 0;
    border-radius: var(--radius);
    background: #2d2d2d;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 260px 66px;
    height: 52px;
}

.search-form input,
.search-form select {
    border: 1px solid var(--line);
    border-right: 0;
    padding: 0 18px;
    outline: 0;
    background: #fff;
}

.search-form button {
    border: 0;
    background: var(--accent);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.page-hero {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 106, 0, .04), transparent 32%),
        radial-gradient(circle at 70% 50%, rgba(40, 48, 127, .035), transparent 28%),
        var(--soft);
    border-bottom: 1px solid #f7eadf;
}

.hero-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-inner h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
}

.breadcrumb {
    font-weight: 700;
}

.breadcrumb span,
.breadcrumb {
    color: var(--accent);
}

.main-content {
    min-height: 520px;
}

.shop-section {
    padding: 56px 0 76px;
}

.shop-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.shop-toolbar h2 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 900;
}

.order-form {
    display: flex;
    gap: 14px;
    align-items: center;
}

.order-form select,
.order-form span {
    height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
}

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

.product-card {
    position: relative;
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 372px;
}

.sale-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    background: var(--accent);
    color: #fff;
    padding: 6px 11px;
    border-radius: 3px 3px 3px 0;
    font-weight: 800;
    font-size: .9rem;
}

.product-image {
    height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.product-image img {
    max-width: 100%;
    max-height: 190px;
    object-fit: contain;
}

.product-info {
    padding: 0 18px 14px;
    text-align: center;
    flex: 1;
}

.product-info h3 {
    min-height: 48px;
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.18;
    font-weight: 850;
}

.prices {
    display: flex;
    justify-content: center;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}

.prices del,
.detail-prices del {
    color: #777;
}

.prices strong,
.detail-prices strong {
    color: var(--accent);
}

.add-cart-btn {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-top: 1px solid var(--line);
    background: #fff;
    color: #222;
    font-weight: 800;
    cursor: pointer;
}

.add-cart-btn:hover,
.add-cart-btn:disabled {
    background: var(--accent);
    color: #fff;
}

.product-detail {
    padding: 78px 0 100px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 58px;
    align-items: center;
    margin-bottom: 48px;
}

.detail-image-wrap {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-wrap img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.detail-badge {
    left: 22px;
    top: 12px;
}

.detail-info h2 {
    margin: 0 0 8px;
    font-size: 1.55rem;
    font-weight: 900;
}

.detail-prices {
    font-size: 1.25rem;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

.buy-form {
    display: flex;
    gap: 10px;
    margin: 18px 0;
}

.buy-form input {
    width: 62px;
    height: 42px;
    border: 1px solid var(--line);
    text-align: center;
}

.btn-orange {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-weight: 850;
    padding: 0 22px;
    cursor: pointer;
}

.btn-orange:hover {
    filter: brightness(.96);
    color: #fff;
}

.btn-orange:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.meta-info,
.stock-info {
    margin: 7px 0;
    color: #333;
}

.description-box {
    border: 1px solid var(--line);
    padding: 32px;
    margin-top: 18px;
}

.description-box h3 {
    margin: 0 0 14px;
}

.description-box h2 {
    font-size: 2.2rem;
    margin: 0 0 16px;
}

.related-section {
    margin-top: 56px;
}

.related-section > h2 {
    text-align: center;
    margin-bottom: 26px;
    font-size: 1.8rem;
}

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

.cart-page {
    padding: 72px 0 96px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 56px;
    align-items: start;
}

.cart-head {
    display: grid;
    grid-template-columns: 1fr 120px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .9rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 88px 1fr 120px;
    gap: 18px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.cart-product-info h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.cart-product-info p {
    margin: 0 0 8px;
}

.qty-control {
    display: inline-grid;
    grid-template-columns: 36px 58px 36px;
    height: 40px;
    border: 1px solid var(--line);
}

.qty-control button,
.qty-control input {
    border: 0;
    background: #fff;
    text-align: center;
}

.qty-control button {
    cursor: pointer;
}

.remove-btn {
    margin-left: 10px;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
    text-decoration: underline;
}

.item-total {
    text-align: right;
}

.cart-summary {
    border-top: 3px solid #222;
    padding-top: 18px;
}

.cart-summary h2 {
    margin: 0 0 20px;
    font-size: 1.55rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding: 16px 0;
    font-size: 1.1rem;
}

.wide {
    width: 100%;
    margin: 12px 0;
}

.empty-box {
    border: 1px solid var(--line);
    padding: 34px;
    text-align: center;
    background: #fff;
}

.site-footer {
    background: var(--footer);
    color: #fff;
    padding: 30px 0 38px;
    text-align: center;
}

.footer-line {
    height: 1px;
    background: #444;
    margin-bottom: 24px;
}

.site-footer p {
    margin: 0;
    font-weight: 600;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    background: #222;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    transition: .2s ease;
    z-index: 30;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #c62828;
}

@media (max-width: 1100px) {
    .header-top {
        grid-template-columns: 220px 1fr auto;
    }

    .logo {
        width: 220px;
    }

    .logo img {
        width: 220px;
        max-height: 64px;
    }

    .main-nav {
        gap: 16px;
    }

    .search-row {
        grid-template-columns: 240px 1fr;
    }

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

    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .header-top,
    .search-row,
    .search-form,
    .product-detail-grid,
    .cart-item {
        grid-template-columns: 1fr;
    }

    .header-top {
        padding: 14px 0;
        gap: 12px;
        text-align: center;
    }

    .logo {
        width: 100%;
    }

    .logo img {
        width: min(270px, 90vw);
        max-height: 70px;
        margin: 0 auto;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    .cart-mini {
        justify-content: center;
    }

    .search-row {
        padding-bottom: 14px;
        gap: 10px;
    }

    .search-form {
        height: auto;
    }

    .search-form input,
    .search-form select,
    .search-form button {
        height: 48px;
        border: 1px solid var(--line);
    }

    .hero-inner {
        min-height: 104px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .shop-section,
    .product-detail,
    .cart-page {
        padding: 38px 0 58px;
    }

    .shop-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .order-form {
        flex-direction: column;
        align-items: stretch;
    }

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

    .product-card {
        min-height: 320px;
    }

    .product-image {
        height: 170px;
    }

    .cart-head {
        display: none;
    }

    .item-total {
        text-align: left;
    }
}

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

    .category-button {
        height: 46px;
    }
}

/* =========================================================
   Área administrativa
   ========================================================= */
.admin-body {
    background: #f4f6fb;
    color: #24242a;
}

.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e5ec;
    box-shadow: 0 8px 24px rgba(20, 24, 36, 0.06);
}

.admin-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.admin-logo img {
    width: 210px;
    max-height: 64px;
    object-fit: contain;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-nav a,
.admin-userbar a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    color: #2b2d33;
    font-weight: 800;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.active,
.admin-userbar a:hover {
    color: #ffffff;
    background: var(--primary);
}

.admin-userbar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
}

.admin-main {
    padding: 30px 0 60px;
}

.admin-page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-page-title h1 {
    margin: 0 0 4px;
    font-size: 30px;
    line-height: 1.05;
}

.admin-page-title p {
    margin: 0;
    color: #6e7280;
}

.admin-card,
.admin-table-card,
.admin-login-card,
.admin-stat-card {
    background: #ffffff;
    border: 1px solid #e2e5ec;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(20, 24, 36, 0.06);
}

.admin-card {
    padding: 20px;
    margin-bottom: 18px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stat-card {
    padding: 18px;
}

.admin-stat-card span {
    display: block;
    color: #6e7280;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 8px;
}

.admin-stat-card strong {
    font-size: 34px;
    line-height: 1;
}

.admin-stat-card.danger strong {
    color: #d62929;
}

.admin-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0 0 16px;
    font-weight: 800;
    background: #e9f7ef;
    color: #157347;
    border: 1px solid #c9eed8;
}

.admin-alert.error {
    background: #fff0f0;
    color: #b42318;
    border-color: #ffd0d0;
}

.admin-alert.success {
    background: #e9f7ef;
    color: #157347;
    border-color: #c9eed8;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #d8dce5;
    border-radius: 8px;
    background: #ffffff;
    color: #24242a;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
}

.admin-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.admin-btn.primary {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.admin-btn.primary:hover {
    filter: brightness(0.94);
    color: #ffffff;
}

.admin-btn.small {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.admin-btn.danger {
    color: #b42318;
    border-color: #ffd0d0;
    background: #fff7f7;
}

.admin-btn.success {
    color: #157347;
    border-color: #c9eed8;
    background: #f2fff7;
}

.admin-filter {
    display: grid;
    grid-template-columns: 1fr 190px auto;
    gap: 10px;
}

.admin-filter input,
.admin-filter select,
.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    border: 1px solid #d8dce5;
    border-radius: 8px;
    background: #ffffff;
    min-height: 42px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.admin-form textarea {
    resize: vertical;
    min-height: 110px;
}

.admin-filter input:focus,
.admin-filter select:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}

.admin-table-card {
    overflow: hidden;
}

.admin-table-head {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e5ec;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef0f5;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6e7280;
    background: #fbfcff;
}

.admin-table td small {
    display: block;
    color: #7c808c;
    margin-top: 3px;
}

.admin-product-thumb {
    width: 74px;
    height: 58px;
    object-fit: contain;
    background: #f7f8fb;
    border: 1px solid #e2e5ec;
    border-radius: 8px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.status-pill.active {
    background: #e9f7ef;
    color: #157347;
}

.status-pill.inactive {
    background: #f2f3f5;
    color: #6e7280;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-actions form {
    margin: 0;
}

.empty-cell {
    text-align: center !important;
    padding: 28px !important;
    color: #6e7280;
    font-weight: 800;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 18px;
}

.admin-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d8dce5;
    border-radius: 8px;
    text-decoration: none;
    color: #24242a;
    font-weight: 900;
}

.admin-pagination a.active,
.admin-pagination a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

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

.admin-form label span,
.admin-current-image span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #4e535f;
    font-weight: 900;
}

.admin-form label.full {
    grid-column: 1 / -1;
}

.admin-form small {
    display: block;
    color: #7c808c;
    margin-top: 6px;
}

.admin-current-image img {
    width: 180px;
    height: 120px;
    object-fit: contain;
    background: #f7f8fb;
    border: 1px solid #e2e5ec;
    border-radius: 10px;
}

.admin-check {
    display: flex !important;
    align-items: center;
    gap: 9px;
}

.admin-check input {
    width: 18px;
    min-height: 18px;
}

.admin-check span {
    margin: 0 !important;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eef0f5;
}

.admin-login-card {
    width: min(100%, 430px);
    margin: 36px auto;
    padding: 26px;
}

.admin-login-card h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.admin-login-card p {
    margin: 0 0 18px;
    color: #6e7280;
}

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

@media (max-width: 900px) {
    .admin-header-inner,
    .admin-page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-dashboard-grid,
    .admin-form-grid,
    .admin-filter {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-main {
        padding-top: 18px;
    }

    .admin-logo img {
        width: 180px;
    }

    .admin-nav,
    .admin-userbar,
    .admin-form-actions {
        width: 100%;
    }

    .admin-nav a,
    .admin-userbar a,
    .admin-btn {
        width: 100%;
    }
}

.admin-table .price-old {
    color: #8a8f99;
    text-decoration: line-through;
    margin-bottom: 2px;
}

/* =========================================================
   Ajustes 03 - compatibilidade com produtos importados/admin
   ========================================================= */
.page-hero__inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.page-hero__inner h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
}
.page-hero__inner span { color: var(--accent); font-weight: 800; }
.store-page { padding: 56px 0 76px; }
.store-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}
.store-title-row h2 { margin: 0; font-size: 2.8rem; font-weight: 900; }
.store-order-form { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.store-order-form select,
.results-count {
    height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
}
.products-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}
.products-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card__image,
.product-image {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #fff;
}
.product-card__image img,
.product-image img {
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
}
.badge-sale,
.sale-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    background: var(--accent);
    color: #fff;
    padding: 6px 11px;
    border-radius: 3px 3px 3px 0;
    font-weight: 800;
    font-size: .9rem;
}
.product-card__body,
.product-info {
    padding: 0 18px 14px;
    text-align: center;
    flex: 1;
}
.product-card__title {
    display: block;
    min-height: 48px;
    margin: 0 0 8px;
    color: #222;
    font-size: 1.05rem;
    line-height: 1.18;
    font-weight: 850;
}
.product-card__price strong { color: var(--accent); }
.product-card__category { color: #777; font-weight: 700; }
.product-card__button,
.add-cart-btn {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-top: 1px solid var(--line);
    background: #fff;
    color: #222;
    font-weight: 800;
    cursor: pointer;
}
.product-card__button:hover,
.product-card__button:disabled { background: var(--accent); color: #fff; }
.empty-box {
    border: 1px solid var(--line);
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 800;
}
.product-detail-page { padding: 56px 0 86px; }
.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    border: 1px solid var(--line);
    padding: 28px;
    background: #fff;
}
.product-detail-card__image { display: flex; justify-content: center; align-items: center; min-height: 340px; }
.product-detail-card__image img { max-width: 100%; max-height: 320px; object-fit: contain; }
.product-category-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 12px;
}
.product-detail-price { color: var(--accent); font-size: 1.55rem; font-weight: 900; margin: 8px 0 14px; }
.product-description { line-height: 1.65; color: #555; }
.product-meta { padding-left: 18px; color: #555; line-height: 1.7; }
.btn-primary,
.btn-secondary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 850;
    padding: 0 22px;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary { border: 0; background: var(--accent); color: #fff; }
.btn-secondary { border: 1px solid var(--line); background: #fff; color: #222; }
.related-products { margin-top: 42px; }
.cart-item__remove { border: 1px solid #ffd0d0; background: #fff7f7; color: #b42318; border-radius: 8px; min-height: 34px; font-weight: 900; cursor: pointer; }
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.admin-page-header h1 { margin: 0 0 4px; }
.admin-page-header p { margin: 0; color: #6e7280; font-weight: 700; }
.admin-btn--primary,
.admin-btn.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.admin-btn--primary:hover,
.admin-btn.primary:hover { filter: brightness(.94); color: #fff; }
.admin-btn--small,
.admin-btn.small { min-height: 34px; padding: 0 10px; font-size: 12px; }
.admin-alert--error,
.admin-alert.error { background: #fff0f0; color: #b42318; border-color: #ffd0d0; }
.admin-filter-bar,
.admin-filter {
    display: grid;
    grid-template-columns: 1fr 190px auto;
    gap: 10px;
    margin-bottom: 14px;
}
.admin-filter-bar input,
.admin-filter-bar select {
    width: 100%;
    border: 1px solid #d8dce5;
    border-radius: 8px;
    background: #fff;
    min-height: 42px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
}
.admin-card { background: #fff; border: 1px solid #e2e5ec; border-radius: 14px; padding: 18px; }
.admin-table__actions { width: 180px; }
.admin-inline-form { display: inline-flex; margin: 0 0 0 6px; }
.admin-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}
.admin-status.is-active { background: #e9f7ef; color: #157347; }
.admin-status.is-inactive { background: #f2f3f5; color: #6e7280; }
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.admin-form label span,
.admin-form-full span { display: block; font-weight: 900; margin-bottom: 7px; color: #333; }
.admin-form-full { display: block; margin-top: 14px; }
.admin-form__actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.admin-checkline { display: flex; align-items: center; gap: 8px; padding-top: 30px; }
.admin-checkline input { width: auto; min-height: auto; }
.admin-current-image { margin: 14px 0; display: flex; align-items: center; gap: 14px; font-weight: 900; }
.admin-current-image img { width: 120px; height: 90px; object-fit: contain; border: 1px solid #e2e5ec; border-radius: 10px; background: #f7f8fb; }
.admin-pagination { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.admin-pagination a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d8dce5; border-radius: 8px; color: #222; font-weight: 900; text-decoration: none; }
.admin-pagination a.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (max-width: 980px) {
    .products-grid,
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-detail-card { grid-template-columns: 1fr; }
    .admin-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .store-title-row,
    .page-hero__inner,
    .admin-page-header { align-items: flex-start; flex-direction: column; }
    .products-grid,
    .product-grid { grid-template-columns: 1fr; }
    .store-order-form,
    .admin-filter-bar { display: grid; grid-template-columns: 1fr; width: 100%; }
    .admin-form-grid { grid-template-columns: 1fr; }
}

/* =======================================================================
   Ajustes UPDATE 05: login e administração com visual profissional
   ======================================================================= */
.admin-body {
    background: #f6f7fb;
    min-height: 100vh;
    color: #262626;
}

.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
    box-shadow: 0 8px 30px rgba(25, 25, 25, .05);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-header-inner {
    min-height: 74px;
    gap: 24px;
}

.admin-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.admin-nav a,
.admin-userbar a {
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 700;
}

.admin-nav a.active,
.admin-nav a:hover,
.admin-userbar a:hover {
    background: #fff2e9;
    color: var(--primary);
}

.admin-main {
    padding: 34px 0 70px;
}

.admin-login-shell {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 0;
}

.admin-login-card {
    width: min(100%, 460px);
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    box-shadow: 0 22px 65px rgba(25, 25, 25, .10);
    padding: 30px;
}

.admin-login-brand {
    text-align: center;
    margin-bottom: 18px;
}

.admin-login-brand img {
    max-width: 260px;
    width: 88%;
    height: auto;
}

.admin-login-card h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.08;
    text-align: center;
}

.admin-login-card p {
    margin: 0 auto 22px;
    max-width: 350px;
    text-align: center;
    color: #666666;
    font-size: 14px;
    line-height: 1.45;
}

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

.admin-form.compact label {
    display: grid;
    gap: 7px;
}

.admin-form.compact input {
    height: 46px;
    border-radius: 10px;
    background: #ffffff;
}

.admin-btn.full {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    margin-top: 4px;
}

.admin-login-help {
    margin-top: 18px;
    padding: 13px 14px;
    border-radius: 12px;
    background: #fff8f2;
    border: 1px solid #ffd7bd;
    color: #3d3d3d;
    font-size: 13px;
    line-height: 1.55;
}

.admin-page-title {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    box-shadow: 0 12px 38px rgba(25, 25, 25, .05);
    padding: 22px 24px;
    margin-bottom: 22px;
}

.admin-card,
.admin-table-card,
.admin-stat-card {
    border-radius: 18px;
    border: 1px solid #e7e7e7;
    box-shadow: 0 12px 38px rgba(25, 25, 25, .05);
}

.admin-table-card {
    overflow: hidden;
}

.admin-table-head {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    padding: 18px 20px;
}

.admin-filter {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(25, 25, 25, .04);
    padding: 14px;
    margin-bottom: 18px;
}

.admin-filter input,
.admin-filter select,
.admin-form input,
.admin-form select,
.admin-form textarea {
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 11px 12px;
}

.admin-table th {
    background: #fbfbfb;
    color: #262626;
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.admin-actions {
    gap: 8px;
}

.admin-alert {
    border-radius: 12px;
    margin-bottom: 16px;
}

@media (max-width: 760px) {
    .admin-header-inner {
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .admin-nav,
    .admin-userbar {
        width: 100%;
        justify-content: center;
    }

    .admin-login-card {
        padding: 22px;
        border-radius: 16px;
    }
}

/* =========================================================
   Atualização 11 - Home, loja paginada e Minha conta
   ========================================================= */
.home-hero {
    background: linear-gradient(135deg, #fff8f2 0%, #ffffff 62%, #eef3ff 100%);
    border-bottom: 1px solid var(--line);
    padding: 34px 0;
}

.home-hero__inner {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    align-items: center;
}

.home-kicker,
.section-subtitle {
    display: inline-flex;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.home-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    font-weight: 950;
    color: var(--text);
}

.home-hero p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.home-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.home-hero__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .07);
    padding: 24px;
}

.home-hero__card strong,
.home-hero__card span {
    display: block;
}

.home-hero__card strong {
    font-size: 1.18rem;
    margin-bottom: 8px;
}

.home-hero__card span {
    color: var(--muted);
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease;
}

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

.btn-primary:hover {
    filter: brightness(.94);
}

.btn-secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    color: #b42318;
    border-color: #ffd4cf;
}

.btn-mini {
    min-height: 32px;
    padding: 0 10px;
    font-size: .82rem;
}

.featured-section,
.shop-section,
.account-section {
    padding: 42px 0 72px;
}

.section-title-row,
.shop-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 22px;
}

.section-title-row--compact {
    margin-bottom: 12px;
}

.section-title-row h2,
.shop-heading h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 950;
}

.link-more {
    color: var(--accent);
    font-weight: 850;
    text-decoration: none;
}

.empty-box {
    border: 1px dashed var(--line);
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    color: var(--muted);
}

.empty-box h2 {
    margin: 0 0 8px;
    color: var(--text);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.products-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card__image {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-decoration: none;
    background: #fafafa;
}

.product-card__image img {
    width: 100%;
    max-height: 170px;
    object-fit: contain;
}

.badge-sale {
    position: absolute;
    left: 16px;
    top: 16px;
    background: var(--accent);
    color: #fff;
    padding: 6px 11px;
    border-radius: 4px 4px 4px 0;
    font-weight: 850;
    font-size: .86rem;
}

.product-card__body {
    padding: 14px 18px 12px;
    text-align: center;
    flex: 1;
}

.product-card__title {
    display: block;
    min-height: 44px;
    color: var(--text);
    font-weight: 900;
    line-height: 1.18;
    text-decoration: none;
}

.product-card__title:hover {
    color: var(--accent);
}

.product-card__price {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.product-card__price strong {
    color: var(--accent);
}

.price-old {
    color: #777;
    text-decoration: line-through;
}

.product-card__category {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.product-card__button {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-top: 1px solid var(--line);
    background: #fff;
    color: #222;
    font-weight: 850;
    cursor: pointer;
}

.product-card__button:hover,
.product-card__button:disabled {
    background: var(--accent);
    color: #fff;
}

.shop-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.shop-filter input,
.shop-filter select,
.form-stack input,
.form-grid input,
.form-grid select,
.form-grid textarea {
    height: 40px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0 11px;
    border-radius: 4px;
    outline: none;
}

.shop-filter input:focus,
.shop-filter select:focus,
.form-stack input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, .12);
}

.shop-result-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin: -8px 0 18px;
    color: var(--muted);
    font-size: .92rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.pagination__item {
    min-width: 40px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    padding: 0 11px;
}

.pagination__item.is-active,
.pagination__item:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination__item.is-disabled {
    pointer-events: none;
    opacity: .45;
}

.account-grid {
    display: grid;
    gap: 22px;
}

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

.account-dashboard {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.account-menu,
.account-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .04);
}

.account-menu {
    padding: 14px;
    position: sticky;
    top: 14px;
}

.account-menu strong {
    display: block;
    margin-bottom: 10px;
    line-height: 1.3;
}

.account-menu a {
    display: block;
    padding: 9px 10px;
    color: var(--text);
    text-decoration: none;
    border-radius: 7px;
    font-weight: 750;
}

.account-menu a:hover,
.account-menu a.active {
    background: #fff2e9;
    color: var(--accent);
}

.account-menu__logout {
    color: #b42318 !important;
}

.account-content {
    display: grid;
    gap: 20px;
}

.account-card {
    padding: 22px;
}

.account-card h2 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    font-weight: 950;
}

.account-card p {
    color: var(--muted);
}

.form-stack,
.form-grid {
    display: grid;
    gap: 12px;
}

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

.form-stack label,
.form-grid label {
    display: grid;
    gap: 6px;
    font-weight: 800;
    font-size: .92rem;
}

.form-actions--full,
.checkbox-label {
    grid-column: 1 / -1;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.checkbox-label input {
    height: auto;
}

.form-subtitle {
    margin: 24px 0 12px;
    font-size: 1.08rem;
}

.address-list,
.orders-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.address-card,
.order-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    background: #fff;
}

.address-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.address-card.is-main {
    border-color: rgba(255, 102, 0, .45);
    background: #fffaf6;
}

.address-badge,
.order-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 99px;
    background: #fff2e9;
    color: var(--accent);
    font-weight: 900;
    font-size: .78rem;
    margin-left: 6px;
}

.address-card p {
    margin: 7px 0 0;
    line-height: 1.45;
}

.address-actions {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.order-card__head,
.order-item,
.order-card__total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.order-card__head span {
    display: block;
    color: var(--muted);
    font-size: .88rem;
    margin-top: 3px;
}

.order-items {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 12px 0;
    padding: 8px 0;
    display: grid;
    gap: 7px;
}

.order-item strong,
.order-card__total strong {
    color: var(--accent);
}

.order-card__total {
    font-size: 1.05rem;
    font-weight: 900;
}

.muted {
    color: var(--muted);
}

.checkout-empty {
    text-align: center;
}

@media (max-width: 980px) {
    .home-hero__inner,
    .account-dashboard,
    .account-grid--login {
        grid-template-columns: 1fr;
    }

    .account-menu {
        position: static;
    }

    .products-grid,
    .products-grid--home {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section-title-row,
    .shop-heading,
    .shop-result-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-filter {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .products-grid,
    .products-grid--home,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .address-card,
    .order-card__head,
    .order-item,
    .order-card__total {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}

.flash {
    margin-top: 14px;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 750;
}

.flash-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.flash-danger,
.flash-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.flash-warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

/* =========================================================
   Galeria do produto com até 4 imagens
   ========================================================= */
.product-gallery {
    display: grid;
    gap: 14px;
}

.product-gallery-main {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    background: #fff;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.product-gallery-main img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 10px;
}

.product-thumb {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

.product-thumb.is-active,
.product-thumb:hover {
    border-color: var(--primary, #ff6600);
    transform: translateY(-1px);
}

.product-thumb img {
    width: 100%;
    height: 82px;
    object-fit: contain;
}

.admin-current-gallery {
    grid-column: 1 / -1;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.admin-current-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.admin-current-gallery figure {
    margin: 0;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}

.admin-current-gallery img {
    width: 100%;
    height: 90px;
    object-fit: contain;
}

.admin-current-gallery figcaption {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #555;
}

/* =========================================================
   Checkout: e-mail, WhatsApp e compra online
   ========================================================= */
.checkout-page {
    padding-top: 26px;
    padding-bottom: 50px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
    gap: 22px;
    align-items: start;
}

.checkout-card {
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.checkout-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

.checkout-form-card,
.checkout-options-card {
    grid-column: 1 / 2;
}

.checkout-summary-card {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    position: sticky;
    top: 14px;
}

.checkout-items {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed var(--border-color, #e5e7eb);
    padding-bottom: 10px;
}

.checkout-item span {
    display: block;
    color: #667085;
    font-size: 13px;
    margin-top: 3px;
}

.checkout-totals {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.checkout-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.checkout-total {
    border-top: 1px solid var(--border-color, #e5e7eb);
    padding-top: 10px;
    font-size: 18px;
}

.checkout-total-cash strong {
    color: var(--primary, #ff6600);
}

.checkout-options {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.checkout-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.checkout-option:hover,
.checkout-option:has(input:checked) {
    border-color: var(--primary, #ff6600);
    box-shadow: 0 8px 22px rgba(255, 102, 0, .12);
}

.checkout-option input {
    margin-top: 3px;
}

.checkout-option strong,
.checkout-option small {
    display: block;
}

.checkout-option small {
    margin-top: 4px;
    color: #667085;
    line-height: 1.4;
}

.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.checkout-success,
.checkout-empty {
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

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

.checkout-page label span {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.checkout-page input[type="text"],
.checkout-page input[type="email"],
.checkout-page textarea {
    width: 100%;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
}

.checkout-page textarea {
    resize: vertical;
}

@media (max-width: 900px) {
    .checkout-grid,
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .checkout-form-card,
    .checkout-options-card,
    .checkout-summary-card {
        grid-column: auto;
        grid-row: auto;
        position: static;
    }

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

/* =========================================================
   Correções: conta antes da compra e painel de pedidos
   ========================================================= */
.checkout-page select,
.checkout-page input[type="url"],
.checkout-page input[type="date"] {
    width: 100%;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
}

.account-mini-card {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    padding: 14px;
    margin: 14px 0 20px;
    background: #fbfcff;
}

.account-mini-card span,
.muted {
    color: #667085;
}

.admin-page-header,
.section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.section-title-row--compact {
    margin-bottom: 12px;
}

.admin-page-header h1,
.section-title-row h2 {
    margin: 4px 0 6px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary, #ff6600);
}

.admin-card {
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.admin-card--nested {
    margin-top: 18px;
    box-shadow: none;
    background: #fbfcff;
}

.admin-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr)) auto auto;
    gap: 12px;
    align-items: end;
}

.admin-filters label,
.admin-form label {
    display: grid;
    gap: 6px;
}

.admin-filters span,
.admin-form span {
    font-size: 13px;
    font-weight: 800;
    color: #344054;
}

.admin-filters input,
.admin-filters select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.copy-textarea {
    width: 100%;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.table-responsive {
    overflow-x: auto;
}

.text-right {
    text-align: right !important;
}

.btn-sm {
    padding: 7px 10px;
    min-height: auto;
    font-size: 13px;
}

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

.btn-success {
    background: #16a34a;
    color: #fff !important;
    border-color: #16a34a;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
    gap: 18px;
    align-items: start;
}

.sticky-card {
    position: sticky;
    top: 14px;
}

.admin-info-list {
    display: grid;
    gap: 10px;
    margin: 12px 0 18px;
}

.admin-info-list > div,
.admin-summary-box > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed var(--border-color, #e5e7eb);
    padding-bottom: 9px;
}

.admin-info-list span,
.admin-summary-box span {
    color: #667085;
}

.admin-summary-box {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    max-width: 420px;
    margin-left: auto;
}

.admin-summary-total {
    font-size: 18px;
    border-bottom: 0 !important;
}

.copy-textarea {
    min-height: 170px;
    resize: vertical;
    color: #344054;
}

.status-pill--pedido_recebido,
.status-pill--aguardando_contato,
.status-pill--aguardando_pagamento {
    background: #fff7ed;
    color: #c2410c;
}

.status-pill--pago,
.status-pill--separacao {
    background: #ecfeff;
    color: #0e7490;
}

.status-pill--enviado {
    background: #eef2ff;
    color: #4338ca;
}

.status-pill--entregue {
    background: #ecfdf3;
    color: #027a48;
}

.status-pill--cancelado,
.status-pill--recusado,
.status-pill--estornado {
    background: #fef2f2;
    color: #b42318;
}

@media (max-width: 1100px) {
    .admin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .sticky-card {
        position: static;
    }
}

@media (max-width: 700px) {
    .admin-page-header,
    .section-title-row {
        display: block;
    }

    .admin-actions {
        margin-top: 12px;
        flex-wrap: wrap;
    }

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

/* =========================================================
   Administração: detalhe do pedido e ações de contato
   ========================================================= */
.btn-outline {
    background: #ffffff;
    color: #282828;
    border-color: #d8dce5;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn:disabled,
button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.admin-page-header--pedido {
    align-items: flex-start;
}

.admin-actions--pedido {
    justify-content: flex-end;
}

.order-action-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px 20px;
}

.order-action-panel h2,
.order-message-card h3,
.order-side-card h2 {
    margin: 0;
}

.order-action-panel p,
.order-message-card p {
    margin: 6px 0 0;
}

.order-action-panel__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.order-action-panel__buttons .admin-inline-form {
    margin: 0;
}

.admin-detail-grid--pedido {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .7fr);
    gap: 18px;
}

.order-main-card,
.order-side-card {
    padding: 20px;
}

.order-table-wrap {
    border: 1px solid #edf0f5;
    border-radius: 12px;
    overflow: auto;
}

.order-items-table {
    min-width: 760px;
}

.order-items-table th,
.order-items-table td {
    padding: 12px 14px;
}

.order-summary-box {
    width: min(100%, 430px);
    max-width: 430px;
    background: #fbfcff;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    padding: 14px 16px;
}

.order-summary-box > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 8px 0;
}

.order-summary-box .admin-summary-total {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid #e6e9f0;
    font-size: 19px;
}

.admin-card--nested {
    margin-top: 18px;
    box-shadow: none;
}

.order-message-card {
    padding: 18px;
}

.order-copy-textarea {
    width: 100%;
    min-height: 330px;
    margin-top: 12px;
    border: 1px solid #d8dce5;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
}

.order-info-list {
    margin: 14px 0 20px;
    gap: 0;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    overflow: hidden;
}

.order-info-list > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    justify-content: initial;
    gap: 12px;
    border-bottom: 1px solid #edf0f5;
    padding: 11px 12px;
}

.order-info-list > div:last-child {
    border-bottom: 0;
}

.order-info-list span {
    font-size: 12px;
    font-weight: 800;
    color: #6e7280;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.order-info-list strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.order-status-form {
    display: grid;
    gap: 13px;
}

.order-status-form label span {
    display: block;
    margin-bottom: 6px;
    font-weight: 900;
}

.order-status-form select,
.order-status-form input,
.order-status-form textarea {
    width: 100%;
}

@media (max-width: 1050px) {
    .order-action-panel,
    .admin-detail-grid--pedido {
        grid-template-columns: 1fr;
    }

    .order-action-panel__buttons {
        justify-content: flex-start;
    }

    .sticky-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .order-action-panel__buttons,
    .order-action-panel__buttons .admin-inline-form,
    .order-action-panel__buttons .btn {
        width: 100%;
    }

    .order-info-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ==========================================================
   Produto - layout compacto para telas 720p/17"
   ========================================================== */
.product-page-compact {
    padding-top: 24px;
}

.product-detail-compact {
    display: grid;
    grid-template-columns: minmax(300px, 48%) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
    padding: 24px;
}

.product-gallery-compact {
    width: 100%;
}

.product-main-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 460px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-main-image {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    display: block;
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.product-thumb {
    height: 86px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    cursor: pointer;
}

.product-thumb.is-active {
    border-color: var(--primary, #ff6a00);
    box-shadow: 0 0 0 2px rgba(255, 106, 0, .14);
}

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

.product-info-compact h1 {
    font-size: clamp(1.55rem, 2vw, 2.25rem);
    line-height: 1.15;
    margin: 8px 0 14px;
}

.product-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: .85rem;
    font-weight: 700;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 8px 0 14px;
}

.product-price-main {
    color: var(--primary, #ff6a00);
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.product-price-old {
    color: #6b7280;
    text-decoration: line-through;
    font-weight: 700;
}

.product-description-compact {
    line-height: 1.55;
    color: #374151;
    margin: 0 0 14px;
}

.product-meta-list {
    margin: 0 0 18px;
    padding-left: 18px;
    color: #4b5563;
}

.product-meta-list li {
    margin: 4px 0;
}

.product-buy-box {
    display: grid;
    grid-template-columns: 130px minmax(180px, 1fr);
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
    background: #fafafa;
}

.qty-control span {
    display: block;
    margin-bottom: 5px;
    font-weight: 800;
    font-size: .88rem;
}

.qty-control input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border, #d1d5db);
    border-radius: 10px;
    padding: 0 12px;
}

.compact-related {
    margin-top: 34px;
}

.product-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

@media (max-width: 900px) {
    .product-detail-compact {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .product-main-image-wrap {
        max-height: 380px;
    }
}

@media (max-width: 560px) {
    .product-buy-box {
        grid-template-columns: 1fr;
    }

    .product-thumb {
        height: 70px;
    }
}

/* ==========================================================
   Admin - ações de estoque/importação/exportação
   ========================================================== */
.admin-actions-row,
.stock-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.stock-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.stock-panel {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
    background: #fff;
    padding: 16px;
}

.stock-panel h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.stock-panel p {
    margin: 0 0 12px;
    color: #6b7280;
}

.stock-import-form {
    display: grid;
    gap: 10px;
}

.stock-import-form input[type="file"],
.stock-filter-form input,
.stock-filter-form select {
    min-height: 42px;
    border: 1px solid var(--border, #d1d5db);
    border-radius: 10px;
    padding: 8px 10px;
}

.stock-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}

.stock-filter-form label {
    display: grid;
    gap: 4px;
    font-weight: 700;
    font-size: .86rem;
}

.stock-low-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff2e8;
    color: #b54708;
    font-size: .8rem;
    font-weight: 800;
}

@media (max-width: 850px) {
    .stock-toolbar {
        grid-template-columns: 1fr;
    }
}

.admin-dashboard-grid a.admin-stat-card {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================
   Loja - login antes do carrinho e ajustes compactos de produto
   ========================================================== */
.product-login-required {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.product-login-required strong,
.product-login-required span {
    display: block;
}

.product-login-required strong {
    margin-bottom: 4px;
    color: #111827;
}

.product-login-required span {
    color: #6b7280;
    font-size: .92rem;
    line-height: 1.35;
}

.product-card__button--login {
    text-align: center;
    text-decoration: none;
}

@media (max-width: 720px) {
    .product-login-required {
        grid-template-columns: 1fr;
    }
}
