/* =====================================================================
   Loja - Layout "Delicado" para lojas femininas
   Substitui o arquivo public/css/loja-funcional.css
   Mantém TODAS as classes originais (Blade + JS continuam funcionando).
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    /* O admin injeta --primary-color / --secondary-color inline.
       Aqui ficam apenas os fallbacks em tom rosé + os tokens do tema. */
    --primary-color: #b76e79;
    --secondary-color: #9c5561;

    /* Todas as cores decorativas derivam das cores escolhidas no admin. */
    --rose: var(--primary-color);
    --rose-deep: var(--secondary-color);
    --rose-soft: color-mix(in srgb, var(--primary-color) 34%, #ffffff);
    --rose-wash: color-mix(in srgb, var(--primary-color) 10%, #ffffff);

    --ink: #322f30;
    --gray: #756f71;
    --light-gray: color-mix(in srgb, var(--secondary-color) 24%, #b9b9b9);

    --border: color-mix(in srgb, var(--primary-color) 16%, #ffffff);
    --surface: #ffffff;
    --surface-soft: color-mix(in srgb, var(--primary-color) 6%, #ffffff);
    --ivory: color-mix(in srgb, var(--secondary-color) 4%, #ffffff);
    --danger: color-mix(in srgb, var(--primary-color) 72%, #d9534f);

    --radius: 20px;
    --shadow-soft: 0 10px 30px color-mix(in srgb, var(--primary-color) 8%, transparent);
    --shadow-lift: 0 22px 45px color-mix(in srgb, var(--primary-color) 16%, transparent);

    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', 'Montserrat', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.6;
    background: var(--ivory);
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    letter-spacing: .2px;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

body.modal-open {
    overflow: hidden;
}

/* ============================ HEADER ============================ */

.store-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px color-mix(in srgb, var(--primary-color) 5%, transparent);
}

.header-container {
    width: 100%;
    min-height: 80px;
    padding: 16px 40px;
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 34px;
}

.store-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .4px;
}

.store-brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 170px;
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.store-brand i {
    font-size: 26px;
    color: var(--rose);
}

.header-search {
    position: relative;
    width: 100%;
}

.header-search input {
    width: 100%;
    height: 48px;
    padding: 0 56px 0 22px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    outline: none;
    font-size: 14px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.header-search input::placeholder {
    color: var(--light-gray);
}

.header-search input:focus {
    border-color: var(--rose-soft);
    box-shadow: 0 0 0 4px var(--rose-wash);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: var(--primary-color);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition: filter .25s ease;
}

.header-search button:hover {
    filter: brightness(1.06);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: max-content;
}

.header-icon-item {
    min-width: 66px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--ink);
    background: transparent;
    border: none;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: color .25s ease;
}

.header-icon-item > i,
.cart-icon-wrap > i {
    font-size: 19px;
    color: var(--rose);
    transition: color .25s ease;
}

.header-icon-item:hover {
    color: var(--rose-deep);
}

.header-icon-item:hover > i,
.header-icon-item:hover .cart-icon-wrap > i {
    color: var(--rose-deep);
}

.cart-icon-wrap {
    position: relative;
    width: 26px;
    height: 24px;
    display: grid;
    place-items: center;
}

.cart-icon-wrap b {
    position: absolute;
    top: -9px;
    right: -10px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--primary-color);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}

.account-menu {
    position: relative;
}

.account-button span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    width: 230px;
    padding: 18px;
    display: none;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lift);
}

.account-dropdown.open {
    display: block;
}

.account-dropdown strong,
.account-dropdown small {
    display: block;
}

.account-dropdown strong {
    font-family: var(--font-head);
    font-size: 16px;
}

.account-dropdown small {
    margin: 4px 0 14px;
    color: var(--gray);
}

.account-dropdown .account-dropdown-link,
.account-dropdown button {
    width: 100%;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    background: var(--primary-color);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: filter .25s ease;
}

.account-dropdown .account-dropdown-link {
    margin-bottom: 8px;
}

.account-dropdown .account-dropdown-link:hover,
.account-dropdown button:hover {
    filter: brightness(1.06);
}

.account-dropdown form {
    margin: 0;
}

/* ========================= NAV SECUNDÁRIA ========================= */

/*
 * O menu minimalista usa o mesmo comportamento estrutural do layout padrão:
 * barra opaca, dropdown em largura total e sempre acima do banner.
 */
.secondary-nav {
    position: sticky;
    top: 80px;
    z-index: 900;
    overflow: visible;
    isolation: isolate;
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.secondary-nav-container {
    min-height: 54px;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 46px;
    overflow: visible;
}

.secondary-nav-item {
    position: relative;
    padding: 16px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    background: transparent;
    border: 0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color .25s ease;
}

.secondary-nav-item::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 1.5px;
    background: var(--rose);
    opacity: 0;
    transform: scaleX(.4);
    transform-origin: center;
    transition: opacity .25s ease, transform .25s ease;
}

.secondary-nav-item:hover,
.nav-dropdown-wrapper.open .nav-products-button {
    color: var(--rose-deep);
}

.secondary-nav-item:hover::after,
.nav-dropdown-wrapper.open .nav-products-button::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-dropdown-wrapper {
    position: static;
    display: flex;
    align-items: stretch;
}

.category-dropdown {
    position: absolute;
    z-index: 50;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    padding: 32px 40px;
    color: var(--ink);
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.nav-dropdown-wrapper:hover .category-dropdown,
.nav-dropdown-wrapper.open .category-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.category-dropdown-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.category-column {
    min-width: 0;
}

.category-title {
    padding-bottom: 12px;
    display: block;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 600;
    transition: color .25s ease;
}

.category-title:hover,
.category-link:hover {
    color: var(--rose-deep);
}

.category-column p {
    margin-top: 12px;
    color: var(--gray);
    font-size: 12px;
}

.category-link {
    margin-top: 12px;
    display: inline-flex;
    color: var(--rose);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color .25s ease;
}

/* ============================ HERO ============================ */

.hero-banner {
    min-height: 360px;
    padding: 90px 20px;
    display: grid;
    place-items: center;
    color: var(--ink);
    text-align: center;
    background: linear-gradient(135deg, var(--rose-wash) 0%, var(--ivory) 55%, color-mix(in srgb, var(--secondary-color) 10%, #ffffff) 100%);
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero-banner.has-image {
    color: #ffffff;
}

.hero-banner.has-image .hero-content h1 {
    color: #ffffff;
}

.hero-banner:not(.has-image) {
    position: relative;
}

.hero-banner:not(.has-image)::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 42%),
        radial-gradient(circle at 82% 70%, color-mix(in srgb, var(--secondary-color) 28%, transparent), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero-content h1 {
    margin-bottom: 16px;
    color: var(--rose-deep);
    font-family: var(--font-head);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 600;
}

.hero-content p {
    color: var(--gray);
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 300;
    opacity: .95;
}

.hero-banner.has-image .hero-content p {
    color: rgba(255, 255, 255, .92);
}

/* ============================ MAIN ============================ */

.store-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 20px 20px;
}

.products-heading {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.section-kicker {
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 11px;
    font-weight: 600;
}

.products-heading h2 {
    margin-top: 6px;
    font-family: var(--font-head);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 600;
    color: var(--ink);
}

.products-count {
    color: var(--gray);
    font-size: 13px;
}

.active-filters {
    margin-bottom: 26px;
    padding: 15px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: var(--gray);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
}

.active-filters strong {
    color: var(--ink);
}

.active-filters a {
    margin-left: auto;
    color: var(--rose-deep);
    font-weight: 600;
    text-decoration: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform .35s ease, box-shadow .35s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
}

.product-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #ffffff;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--rose-soft);
    font-size: 66px;
}

.discount-badge,
.featured-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: .4px;
    font-weight: 600;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--primary-color) 22%, transparent);
}

.discount-badge {
    top: 14px;
    right: 14px;
    padding: 7px 12px;
    background: var(--danger);
}

.featured-badge {
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--rose);
}

.product-info {
    flex: 1;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 10px;
    font-weight: 600;
}

.product-name {
    min-height: 46px;
    margin: 8px 0 7px;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-description {
    min-height: 37px;
    margin-bottom: 12px;
    overflow: hidden;
    color: var(--gray);
    font-size: 12px;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-area {
    min-height: 55px;
    margin-top: auto;
}

.product-price-area del {
    display: block;
    color: var(--light-gray);
    font-size: 12px;
}

.product-price-area strong {
    display: block;
    color: var(--rose-deep);
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.stock-label {
    margin-top: 6px;
    color: var(--gray);
    font-size: 11px;
}

.product-buttons {
    margin-top: 18px;
    padding-top: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-buttons.catalog-only {
    grid-template-columns: minmax(120px, 160px);
    justify-content: center;
}

.product-buttons.catalog-price-hidden {
    margin-top: auto;
}

.btn-card {
    height: 46px;
    padding: 10px 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .3px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}

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

.btn-card.buy {
    color: #ffffff;
    background: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-card.buy:hover {
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary-color) 28%, transparent);
}

.btn-card.view {
    color: var(--rose-deep);
    background: transparent;
    border: 1.5px solid var(--rose-soft);
}

.btn-card.view:hover {
    background: var(--rose-wash);
    border-color: var(--rose);
}

.empty-products {
    grid-column: 1 / -1;
    padding: 70px 20px;
    color: var(--gray);
    text-align: center;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.empty-products i {
    margin-bottom: 14px;
    color: var(--rose-soft);
    font-size: 48px;
}

.empty-products h3 {
    color: var(--ink);
    margin-bottom: 6px;
}

.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ======================= MODAIS (base) ======================= */

.product-detail-modal,
.measurements-modal,
.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    background: rgba(74, 59, 64, .38);
    backdrop-filter: blur(6px);
}

.product-detail-modal.open,
.measurements-modal.open,
.cart-modal.open {
    display: flex;
}

.product-detail-modal,
.measurements-modal {
    padding: 20px;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.product-modal-content {
    position: relative;
    width: min(920px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    padding: 32px;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(74, 59, 64, .28);
}

.detail-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--rose-deep);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: background .25s ease;
}

.detail-close-modal:hover {
    background: var(--rose-wash);
}

.product-modal-image {
    min-height: 430px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--rose-soft);
    background: #ffffff;
    border-radius: 18px;
    font-size: 80px;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    max-height: 530px;
    object-fit: cover;
}

.product-modal-details {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

.product-detail-category {
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 11px;
    font-weight: 600;
}

.product-modal-details h2 {
    margin: 8px 42px 14px 0;
    font-family: var(--font-head);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--ink);
}

.product-detail-prices {
    margin-bottom: 18px;
}

.product-detail-prices del {
    display: none;
    color: var(--light-gray);
    font-size: 14px;
}

.product-detail-prices strong {
    display: block;
    color: var(--rose-deep);
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 600;
}

.product-detail-description {
    margin-bottom: 22px;
    padding: 16px;
    color: var(--gray);
    background: var(--surface-soft);
    border-radius: 14px;
    font-size: 13px;
}

.detail-size-group,
.detail-quantity-group,
.detail-note-group {
    margin-bottom: 20px;
}

.detail-label-row {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.detail-label-row label,
.detail-quantity-group label,
.detail-note-group label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.measurement-link {
    display: none;
    color: var(--rose-deep);
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.measurement-link.visible {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.detail-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.detail-size-option {
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.detail-size-option:hover,
.detail-size-option.selected {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.detail-size-option:disabled {
    color: var(--light-gray);
    background: var(--surface-soft);
    border-color: var(--border);
    cursor: not-allowed;
    text-decoration: line-through;
}

.detail-quantity-control {
    margin-top: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-quantity-control button,
.detail-quantity-control input {
    width: 44px;
    height: 42px;
    text-align: center;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
}

.detail-quantity-control button {
    cursor: pointer;
    transition: all .2s ease;
}

.detail-quantity-control button:hover {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.detail-note-group textarea,
.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.detail-note-group textarea:focus,
.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: var(--rose-soft);
    box-shadow: 0 0 0 4px var(--rose-wash);
}

.detail-note-group textarea {
    margin-top: 8px;
    resize: vertical;
}

.detail-button-group {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-detail-buy,
.btn-detail-close {
    min-height: 50px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .2s ease, background .2s ease;
}

.btn-detail-buy {
    color: #ffffff;
    background: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-detail-buy:hover {
    filter: brightness(1.06);
}

.btn-detail-close {
    color: var(--rose-deep);
    background: transparent;
    border: 1.5px solid var(--rose-soft);
}

.btn-detail-close:hover {
    background: var(--rose-wash);
}

/* ===================== TABELA DE MEDIDAS ===================== */

.measurements-content {
    width: min(680px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(74, 59, 64, .3);
}

.measurements-header {
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
}

.measurements-header span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    opacity: .9;
}

.measurements-header h3 {
    margin-top: 2px;
    font-family: var(--font-head);
    font-weight: 500;
}

.measurements-header button {
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: rgba(255, 255, 255, .18);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

#measurementsBody {
    padding: 22px;
}

.measurement-table-block + .measurement-table-block {
    margin-top: 22px;
}

.measurement-table-block h4 {
    margin-bottom: 10px;
    color: var(--rose-deep);
    font-family: var(--font-head);
}

.measurement-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
}

.measurement-table th,
.measurement-table td {
    padding: 11px 14px;
    border: 1px solid var(--border);
    text-align: left;
    font-size: 13px;
}

.measurement-table th {
    background: var(--surface-soft);
    color: var(--ink);
    font-weight: 600;
}

/* ============================ CARRINHO ============================ */

.cart-modal {
    justify-content: flex-end;
}

.cart-panel {
    width: min(520px, 100%);
    height: 100%;
    overflow-y: auto;
    background: var(--surface);
    box-shadow: -18px 0 55px rgba(74, 59, 64, .22);
}

.cart-header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
}

.cart-header span {
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 10px;
    opacity: .9;
}

.cart-header h2 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 500;
}

.cart-header button {
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: rgba(255, 255, 255, .18);
    border: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.cart-content {
    padding: 20px;
}

.empty-cart {
    padding: 55px 16px;
    color: var(--gray);
    text-align: center;
}

.empty-cart i {
    margin-bottom: 12px;
    display: block;
    color: var(--rose-soft);
    font-size: 42px;
}

.cart-item {
    padding: 14px 0;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 78px;
    height: 78px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--rose-soft);
    background: linear-gradient(135deg, var(--rose-wash), color-mix(in srgb, var(--primary-color) 12%, #ffffff));
    border-radius: 14px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-meta {
    margin-top: 3px;
    color: var(--gray);
    font-size: 11px;
}

.cart-item-price {
    margin-top: 5px;
    color: var(--rose-deep);
    font-size: 14px;
    font-weight: 700;
}

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

.cart-quantity button,
.cart-quantity span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
}

.cart-quantity button {
    color: var(--rose-deep);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s ease;
}

.cart-quantity button:hover {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.cart-remove {
    padding: 3px;
    color: var(--danger);
    background: transparent;
    border: 0;
    font-size: 16px;
    cursor: pointer;
}

/* ============================ CHECKOUT ============================ */

.checkout-form {
    margin-top: 20px;
}

.checkout-section {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.checkout-section h3 {
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
}

.receive-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 10px;
}

.receive-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.receive-option span {
    min-height: 64px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.receive-option span i {
    color: var(--rose);
}

.receive-option input:checked + span {
    color: var(--rose-deep);
    background: var(--rose-wash);
    border-color: var(--rose);
}

.payment-helper {
    margin: -5px 0 13px;
    color: var(--gray);
    font-size: 11px;
    line-height: 1.5;
}

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

.payment-option {
    position: relative;
}

.payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option span {
    min-height: 70px;
    padding: 11px 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    text-align: center;
    color: var(--gray);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.payment-option span i {
    color: var(--rose);
    font-size: 17px;
}

.payment-option span strong {
    font-size: 11px;
}

.payment-option input:checked + span {
    color: var(--rose-deep);
    background: var(--rose-wash);
    border-color: var(--rose);
}

.cash-change-box {
    margin-top: 13px;
    padding: 14px;
    background: var(--rose-wash);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.cash-change-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cash-change-title > i {
    margin-top: 2px;
    color: var(--rose);
}

.cash-change-title strong,
.cash-change-title small {
    display: block;
}

.cash-change-title strong {
    color: var(--ink);
    font-size: 12px;
}

.cash-change-title small {
    margin-top: 3px;
    color: var(--gray);
    font-size: 10px;
    line-height: 1.45;
}

.cash-change-options {
    margin-top: 11px;
    display: flex;
    gap: 9px;
}

.cash-change-options label {
    flex: 1;
    position: relative;
}

.cash-change-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cash-change-options span {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.cash-change-options input:checked + span {
    color: var(--rose-deep);
    background: #fff;
    border-color: var(--rose);
}

.cash-change-amount {
    margin-top: 12px;
    margin-bottom: 0;
}

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

.field-group label {
    margin-bottom: 6px;
    display: block;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 10px;
    font-weight: 600;
}

.field-wide {
    grid-column: 1 / -1;
}

.field-uf {
    max-width: 110px;
}

.pickup-info {
    margin-top: 10px;
    padding: 14px;
    display: flex;
    gap: 10px;
    color: var(--gray);
    background: var(--surface-soft);
    border-radius: 12px;
    font-size: 12px;
}

.pickup-info i {
    color: var(--rose);
}

.pickup-info p {
    margin-top: 2px;
}

.cart-totals {
    margin: 16px 0;
    padding: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.cart-totals > div {
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--gray);
    font-size: 13px;
}

.cart-totals .total-row {
    margin-top: 10px;
    padding-top: 13px;
    color: var(--ink);
    border-top: 1px solid var(--border);
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
}

.total-row strong {
    color: var(--rose-deep);
}

.btn-checkout {
    width: 100%;
    min-height: 52px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: var(--primary-color);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: filter .2s ease, box-shadow .2s ease;
}

.btn-checkout:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--primary-color) 28%, transparent);
}

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

.checkout-alert {
    margin: 14px 0;
    padding: 14px;
    display: flex;
    gap: 10px;
    border-radius: 12px;
    font-size: 12px;
}

.checkout-alert.warning {
    color: var(--rose-deep);
    background: var(--rose-wash);
    border: 1px solid var(--rose-soft);
}

.checkout-alert a {
    display: inline-block;
    margin-top: 4px;
    color: inherit;
    font-weight: 700;
}

.message-error,
.message-success,
.message-info {
    margin-top: 10px;
    padding: 13px;
    border-radius: 12px;
    font-size: 12px;
}

.message-error {
    color: #9a3b3b;
    background: #fbe5e4;
}

.message-success {
    color: #3f6b52;
    background: #e4f2ea;
}

.message-info {
    color: var(--rose-deep);
    background: var(--rose-wash);
}

/* ============================ FOOTER ============================ */

footer {
    margin-top: 80px;
    padding: 56px 20px 22px;
    color: var(--ink);
    background: var(--surface-soft);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 38px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 500;
    color: var(--rose-deep);
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: var(--gray);
    font-size: 13px;
    font-weight: 300;
    text-decoration: none;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 9px;
}

.footer-section a:hover {
    color: var(--rose-deep);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 18px;
    color: var(--gray);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
}

/* ========================= NOTIFICAÇÃO ========================= */

.store-notification {
    position: fixed;
    top: 150px;
    right: 20px;
    z-index: 5000;
    max-width: 340px;
    padding: 15px 20px;
    display: none;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    border-radius: 14px;
    box-shadow: 0 14px 34px color-mix(in srgb, var(--primary-color) 32%, transparent);
    font-size: 13px;
    font-weight: 500;
}

.store-notification.show {
    display: block;
    animation: notify-in .3s ease;
}

@keyframes notify-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================ RESPONSIVO ============================ */

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

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .header-icons {
        justify-content: flex-end;
    }

    .secondary-nav {
        top: 140px;
    }

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

@media (max-width: 768px) {
    .store-brand img {
        max-width: 120px;
        max-height: 44px;
    }

    .header-container {
        padding: 12px 18px;
        gap: 12px;
    }

    .store-brand span {
        display: none;
    }

    .header-icons {
        gap: 17px;
    }

    .header-icon-item {
        min-width: auto;
    }

    .header-icon-item > span:last-child {
        display: none;
    }

    .secondary-nav {
        /* No mobile, a navegação permanece no fluxo normal da página. */
        position: relative;
        top: auto;
        margin-top: -1px;
        border-top: 0;
        background: #ffffff;
    }

    .secondary-nav-container {
        padding: 0 12px;
        gap: 5px;
        justify-content: center;
        overflow: visible;
    }

    .secondary-nav-item {
        padding: 13px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .category-dropdown {
        right: 0;
        left: 0;
        width: 100%;
        padding: 18px;
        background: #ffffff;
    }

    .category-dropdown-grid {
        grid-template-columns: 1fr;
        max-height: 65vh;
        overflow-y: auto;
    }

    .hero-banner {
        min-height: 280px;
        padding: 60px 18px;
    }

    .store-main {
        padding: 40px 15px 15px;
    }

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

    .product-image {
        height: 220px;
    }

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

    .product-name {
        font-size: 15px;
    }

    .product-description,
    .stock-label {
        display: none;
    }

    .product-price-area strong {
        font-size: 20px;
    }

    .product-buttons {
        grid-template-columns: 1fr;
    }

    .btn-card {
        height: 42px;
        font-size: 11px;
    }

    .product-modal-content {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .product-modal-image {
        min-height: 300px;
    }

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

@media (max-width: 480px) {
    .products-heading h2 {
        font-size: 27px;
    }

    .products-grid {
        gap: 12px;
    }

    .product-image {
        height: 185px;
    }

    .discount-badge,
    .featured-badge {
        padding: 5px 9px;
        font-size: 9px;
    }

    .product-info {
        padding: 13px;
    }

    .product-name {
        min-height: 40px;
        font-size: 14px;
    }

    .product-price-area {
        min-height: 48px;
    }

    .product-price-area strong {
        font-size: 18px;
    }

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

    .field-wide,
    .field-uf {
        grid-column: auto;
        max-width: none;
    }
}


/* ============================================================
   MOBILE: EXIBIR NOME DA EMPRESA AO LADO DA LOGO
   ============================================================ */
@media (max-width: 768px) {
    .store-brand {
        min-width: 0;
        max-width: calc(100% - 128px);
        gap: 8px;
        overflow: hidden;
    }

    .store-brand img {
        flex: 0 0 auto;
        max-width: 58px;
        max-height: 44px;
    }

    .store-brand span {
        display: block;
        min-width: 0;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        line-height: 1.2;
    }
}

@media (max-width: 420px) {
    .store-brand {
        max-width: calc(100% - 118px);
    }

    .store-brand span {
        max-width: 105px;
        font-size: 12px;
    }
}


/* ============================================================
   MOBILE: MOSTRAR NOME COMPLETO DA EMPRESA
   ============================================================ */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .store-brand {
        width: 100%;
        max-width: none;
        min-width: 0;
        overflow: visible;
    }

    .store-brand span {
        display: block;
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 12px;
        line-height: 1.15;
    }

    .header-icons {
        flex: 0 0 auto;
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .store-brand {
        max-width: none;
    }

    .store-brand span {
        max-width: none;
        font-size: 11px;
    }

    .header-icons {
        gap: 10px;
    }
}


/* ================================================================
   Pizza metade/metade — seleção de sabores
   ================================================================ */
#modalPizzaGroup {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.pizza-flavor-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pizza-flavor-field {
    min-width: 0;
}

.pizza-flavor-field > label {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark, var(--ink));
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.pizza-flavor-number {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--primary-color);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.pizza-select-wrap {
    position: relative;
}

.pizza-select-wrap select {
    width: 100%;
    min-height: 50px;
    padding: 0 44px 0 14px;
    appearance: none;
    -webkit-appearance: none;
    color: var(--dark, var(--ink));
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pizza-select-wrap select:hover {
    border-color: var(--primary-color);
}

.pizza-select-wrap select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.pizza-select-wrap i {
    position: absolute;
    top: 50%;
    right: 15px;
    color: var(--primary-color);
    pointer-events: none;
    transform: translateY(-50%);
    font-size: 12px;
}

.pizza-price-hint {
    margin-top: 12px;
    padding: 9px 11px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--gray);
    background: var(--surface);
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.45;
}

.pizza-price-hint i {
    margin-top: 2px;
    color: var(--primary-color);
}

@media (max-width: 640px) {
    #modalPizzaGroup {
        padding: 14px;
    }

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

    .pizza-select-wrap select {
        min-height: 48px;
        font-size: 13px;
    }
}

/* ======================= PAGINAÇÃO DA LOJA ======================= */
.pagination-wrapper {
    width: 100%;
    margin-top: 40px;
}

.store-pagination {
    width: 100%;
    min-height: 66px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.store-pagination-summary {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.4;
}

.store-pagination-summary strong {
    color: var(--ink);
    font-weight: 700;
}

.store-pagination-controls,
.store-pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.store-pagination-pages {
    flex-wrap: wrap;
}

.store-pagination-link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 50%;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .04);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.store-pagination-link:hover {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px color-mix(in srgb, var(--primary-color) 26%, transparent);
}

.store-pagination-link.is-active {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 14px color-mix(in srgb, var(--primary-color) 30%, transparent);
    cursor: default;
}

.store-pagination-link.is-disabled {
    color: #b8bec8;
    background: #f8fafc;
    border-color: #e5e9ef;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.store-pagination-arrow i {
    font-size: 10px;
    line-height: 1;
}

.store-pagination-ellipsis {
    min-width: 20px;
    color: var(--gray);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .store-pagination {
        padding: 14px 12px;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .store-pagination-summary {
        text-align: center;
    }

    .store-pagination-controls,
    .store-pagination-pages {
        gap: 6px;
    }

    .store-pagination-link {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}

/* Botão flutuante para voltar ao topo */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 1200;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
}

@media (max-width: 640px) {
    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}


/* Página inicial por categorias */
.categories-home{padding-top:42px;padding-bottom:64px}
.categories-home-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:28px}
.categories-home-heading h2{margin:5px 0 7px;font-size:clamp(28px,3vw,40px);line-height:1.08;color:#111827}
.categories-home-heading p{max-width:650px;margin:0;color:#6b7280;font-size:14px;line-height:1.6}
.categories-view-all{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 18px;border:1px solid #d9dee7;border-radius:12px;background:#fff;color:#111827;text-decoration:none;font-size:13px;font-weight:800;white-space:nowrap;box-shadow:0 4px 16px rgba(15,23,42,.06);transition:.2s ease}
.categories-view-all:hover{border-color:var(--primary-color);color:var(--primary-color);transform:translateY(-2px);box-shadow:0 8px 22px rgba(15,23,42,.1)}
.categories-view-all.inline{margin-top:12px}
.store-categories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.store-category-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e7e9ee;border-radius:20px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 8px 24px rgba(15,23,42,.07);transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
.store-category-card:hover{transform:translateY(-6px);border-color:color-mix(in srgb,var(--primary-color) 45%,#e7e9ee);box-shadow:0 18px 42px rgba(15,23,42,.14)}
.store-category-media{position:relative;height:230px;overflow:hidden;background:linear-gradient(135deg,var(--primary-color),var(--secondary-color))}
.store-category-media::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(to bottom,transparent,rgba(0,0,0,.34));pointer-events:none}
.store-category-media>img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .45s ease}
.store-category-card:hover .store-category-media>img{transform:scale(1.055)}
.store-category-fallback{width:100%;height:100%;display:grid;place-items:center;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.28),transparent 38%),linear-gradient(135deg,var(--primary-color),var(--secondary-color));color:#fff}
.store-category-fallback i{font-size:72px;filter:drop-shadow(0 8px 18px rgba(0,0,0,.18))}
.store-category-count{position:absolute;z-index:2;right:14px;bottom:14px;padding:7px 10px;border:1px solid rgba(255,255,255,.3);border-radius:999px;background:rgba(17,24,39,.68);backdrop-filter:blur(7px);color:#fff;font-size:11px;font-weight:800;letter-spacing:.01em}
.store-category-content{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:112px;padding:20px 20px 21px}
.store-category-content>div{min-width:0}.store-category-content h3{margin:0 0 7px;color:#111827;font-size:20px;line-height:1.2}.store-category-content p{display:-webkit-box;max-width:100%;margin:0;overflow:hidden;color:#6b7280;font-size:12px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.store-category-arrow{width:42px;height:42px;flex:0 0 42px;border-radius:50%;display:grid;place-items:center;background:#f3f5f8;color:#111827;transition:.2s ease}
.store-category-card:hover .store-category-arrow{background:var(--primary-color);color:#fff;transform:translateX(3px)}
.categories-empty{grid-column:1/-1;min-height:280px}
@media(max-width:980px){.store-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-category-media{height:210px}}
@media(max-width:680px){.categories-home{padding-top:28px}.categories-home-heading{align-items:flex-start;flex-direction:column;gap:16px}.categories-home-heading h2{font-size:28px}.categories-view-all{width:100%}.store-categories-grid{grid-template-columns:1fr;gap:16px}.store-category-media{height:220px}.store-category-content{min-height:96px;padding:17px}.store-category-content h3{font-size:18px}}


/* Informações e horário de funcionamento da loja */
.hero-banner{position:relative}
.store-info-widget{position:absolute;z-index:5;top:16px;right:22px}
.store-info-trigger{min-height:38px;padding:8px 13px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:rgba(255,255,255,.94);color:#111827;box-shadow:0 8px 22px rgba(0,0,0,.16);backdrop-filter:blur(8px);cursor:pointer;font-size:12px;transition:transform .18s ease,box-shadow .18s ease}
.store-info-trigger:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.22)}
.store-info-trigger strong{font-size:12px}.store-info-trigger>i{color:#334155;font-size:13px}
.store-info-status-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.13)}
.is-open .store-info-status-dot,.store-info-trigger.is-open .store-info-status-dot{background:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.14)}
.store-hours-modal{position:fixed;z-index:2500;inset:0;padding:18px;display:flex;align-items:center;justify-content:center;background:rgba(2,6,23,.68);opacity:0;visibility:hidden;pointer-events:none;transition:.2s ease}
.store-hours-modal.open{opacity:1;visibility:visible;pointer-events:auto}
.store-hours-dialog{width:min(480px,100%);max-height:88vh;overflow:auto;border-radius:20px;background:#fff;color:#111827;box-shadow:0 24px 70px rgba(0,0,0,.28);transform:translateY(8px) scale(.985);transition:.2s ease}
.store-hours-modal.open .store-hours-dialog{transform:none}
.store-hours-dialog-header{padding:22px 22px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid #edf0f4}
.store-hours-kicker{display:inline-flex;align-items:center;gap:7px;margin-bottom:6px;color:var(--primary-color);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.store-hours-dialog-header h2{margin:0;color:#111827;font-size:23px;line-height:1.2}
.store-hours-close{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border:0;border-radius:50%;background:#f3f4f6;color:#475569;cursor:pointer}
.store-hours-close:hover{background:#e8ebef;color:#111827}
.store-hours-current{margin:18px 22px 12px;padding:13px 14px;display:flex;align-items:center;gap:12px;border-radius:12px;background:#fff1f2;border:1px solid #fecdd3}
.store-hours-current.is-open{background:#ecfdf5;border-color:#a7f3d0}.store-hours-current .store-info-status-dot{width:10px;height:10px;flex-basis:10px}
.store-hours-current strong,.store-hours-current small{display:block}.store-hours-current strong{font-size:13px}.store-hours-current small{margin-top:2px;color:#64748b;font-size:11px}
.store-hours-public-list{padding:4px 22px 18px}
.store-hours-public-row{min-height:47px;padding:9px 2px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #eef1f4;font-size:12px}
.store-hours-public-row:last-child{border-bottom:0}.store-hours-public-row>span{display:flex;align-items:center;gap:8px;color:#475569}.store-hours-public-row>span small{padding:3px 6px;border-radius:999px;background:color-mix(in srgb,var(--primary-color) 10%,#fff);color:var(--primary-color);font-size:9px;font-weight:800;text-transform:uppercase}.store-hours-public-row strong{color:#111827;font-size:12px}.store-hours-public-row.is-today{font-weight:700}.store-hours-public-row .closed-text{color:#94a3b8;font-weight:700}
.store-hours-contact{margin:0 22px 22px;padding:13px 14px;display:flex;align-items:center;gap:11px;border-radius:12px;background:#f8fafc;color:#475569}.store-hours-contact>i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--primary-color) 10%,#fff);color:var(--primary-color)}.store-hours-contact strong,.store-hours-contact small{display:block}.store-hours-contact strong{font-size:12px}.store-hours-contact small{margin-top:2px;font-size:11px}
@media(max-width:640px){.store-info-widget{top:10px;right:10px}.store-info-trigger{min-height:34px;padding:7px 10px}.store-hours-dialog-header{padding:18px}.store-hours-current{margin:15px 18px 10px}.store-hours-public-list{padding:3px 18px 15px}.store-hours-contact{margin:0 18px 18px}.store-hours-dialog-header h2{font-size:20px}}


/* Checkout Transparente Mercado Pago - experiência integrada ao Shop Flypper */
.mp-transparent-box {
    margin-top: 14px;
    padding: 16px;
    background: #fbfcfe;
    border: 1px solid #dfe5ed;
    border-radius: 13px;
    box-shadow: 0 5px 18px rgba(17, 34, 68, .04);
}

.mp-transparent-head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
}

.mp-secure-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    color: #15803d;
    background: #ecfdf3;
    border-radius: 10px;
}

.mp-transparent-head strong,
.mp-panel-title strong {
    display: block;
    color: #202939;
    font-size: 13px;
}

.mp-transparent-head small,
.mp-panel-title small {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 10px;
    line-height: 1.45;
}

.mp-method-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.mp-method-option {
    position: relative;
}

.mp-method-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mp-method-option > span {
    min-height: 70px;
    padding: 10px;
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 7px;
    background: #fff;
    border: 1.5px solid #dde3eb;
    border-radius: 11px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.mp-method-option > span i {
    grid-row: 1 / 3;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--primary-color);
    background: rgba(11, 48, 103, .07);
    border-radius: 8px;
    font-size: 13px;
}

.mp-method-option > span strong {
    align-self: end;
    color: #202939;
    font-size: 11px;
}

.mp-method-option > span small {
    align-self: start;
    color: #7c8698;
    font-size: 9px;
}

.mp-method-option input:checked + span {
    background: rgba(11, 48, 103, .035);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(11, 48, 103, .08);
}

.mp-method-panel {
    margin-top: 12px;
    padding: 13px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 11px;
}

.mp-mini-grid {
    margin-top: 11px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.mp-mini-grid .field-group {
    margin: 0;
}

.mp-mini-grid .field-group label {
    font-size: 10px;
}

.mp-mini-grid .field-group input {
    min-height: 40px;
    font-size: 11px;
}

.mp-card-loading {
    padding: 22px 8px;
    color: #697386;
    text-align: center;
    font-size: 11px;
}

.mp-card-loading i {
    margin-right: 6px;
    color: var(--primary-color);
}

.mp-card-error {
    margin-top: 9px;
    padding: 9px 11px;
    color: #a51d1d;
    background: #fff1f0;
    border: 1px solid #ffd7d3;
    border-radius: 8px;
    font-size: 10px;
    line-height: 1.45;
}

.mp-security-note {
    margin-top: 11px;
    display: flex;
    gap: 7px;
    align-items: flex-start;
    color: #6f7889;
    font-size: 9.5px;
    line-height: 1.45;
}

.mp-security-note i {
    margin-top: 2px;
    color: #15803d;
}

.mp-security-note strong {
    color: #4a5568;
}

#cardPaymentBrick_container {
    min-height: 120px;
}

.btn-checkout.is-online-payment {
    box-shadow: 0 8px 20px rgba(11, 48, 103, .18);
}

@media (max-width: 520px) {
    .mp-transparent-box { padding: 13px; }
    .mp-mini-grid { grid-template-columns: 1fr; }
    .mp-method-option > span { min-height: 66px; padding: 9px; }
}
