:root {
    --primary: #212529;
    --secondary: #6c757d;
}



body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
}

.product-card {
    transition: box-shadow 0.2s;
    border-radius: 4px;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.product-card .card-img-top {
    transition: transform 0.3s;
}

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

.home-quick-buy-btn {
    color: #fff;
    background: linear-gradient(135deg, #28a745 0%, #1e8f3a 100%);
    border: 1px solid #1e8f3a;
    font-weight: 400;
}

.home-quick-buy-btn:hover,
.home-quick-buy-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #22963d 0%, #167c30 100%);
    border-color: #167c30;
}

.home-filter-card {
    border-radius: 14px;
}

.store-categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.store-category-pill {
    flex: 0 0 auto;
    text-decoration: none;
    color: #273142;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #d8dde6;
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff;
    line-height: 1.2;
}

.store-category-pill:hover {
    color: #1f2833;
    border-color: #bfc8d6;
}

.store-category-pill.active {
    color: #fff;
    background: #212529;
    border-color: #212529;
}

.store-category-pill .badge {
    font-weight: 600;
}

.store-category-pill.active .badge {
    background: rgba(255,255,255,0.22) !important;
}

.home-stories {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.home-story {
    min-width: 86px;
    max-width: 86px;
    text-align: center;
}

.home-story-image-wrap {
    width: 74px;
    height: 74px;
    margin: 0 auto 6px;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(135deg, #d8dde6 0%, #c8cfdb 100%);
}

.home-story-image-wrap.active {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
}

.home-story-image {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #79808f;
    font-size: 24px;
}

.home-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-story-name {
    color: #1f2833;
    font-size: 12px;
    line-height: 1.2;
}

.home-sort-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-sort-chip {
    text-decoration: none;
    color: #273142;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #d8dde6;
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff;
}

.home-sort-chip:hover {
    color: #1f2833;
    border-color: #bfc8d6;
}

.home-sort-chip.active {
    color: #fff;
    background: #212529;
    border-color: #212529;
}

.product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em;
}

.cart-item {
    transition: background-color 0.2s;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.payment-btn, .delivery-btn {
    min-width: 100px;
    transition: all 0.2s;
}

.payment-btn.active, .delivery-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.variation-btn.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

#searchResults .card {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.toast-container {
    z-index: 1050;
}

.badge {
    font-weight: 500;
}

.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, #495057 50%, var(--primary) 100%);
}

.opacity-90 {
    opacity: .9;
}

.cart-page {
    --cart-border: #e7e9ee;
}

.cart-header {
    background: linear-gradient(135deg, #ffffff 0%, #f7f8fa 100%);
    border: 1px solid var(--cart-border);
    border-radius: 14px;
    padding: 18px 20px;
}

.cart-card {
    border: 1px solid var(--cart-border);
    border-radius: 14px;
}

.cart-thumb-link {
    text-decoration: none;
}

.cart-thumb {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eceff4;
    display: inline-block;
}

.cart-thumb-empty {
    background: #f4f6f8;
    color: #8c94a3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cart-price {
    font-weight: 700;
    color: #1f2833;
}

.cart-qty-group {
    width: 118px;
}

.cart-qty-input {
    background: #fff;
}

.cart-summary {
    border: 1px solid var(--cart-border);
    border-radius: 14px;
    position: sticky;
    top: 92px;
}

.cart-checkout-btn {
    border-radius: 10px;
    font-weight: 700;
}

.cart-continue-btn {
    border-radius: 10px;
    font-weight: 600;
}

.cart-checkout-selected-btn {
    border-radius: 10px;
    font-weight: 700;
}

.product-buy-btn {
    color: #fff;
    background: linear-gradient(135deg, #28a745 0%, #1e8f3a 100%);
    border: 1px solid #1e8f3a;
    font-weight: 400;
}

.product-buy-btn:hover,
.product-buy-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #22963d 0%, #167c30 100%);
    border-color: #167c30;
}

.product-buy-btn:disabled {
    color: #fff;
    background: #6c757d;
    border-color: #6c757d;
}

.buy-cart-selection {
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    padding: 10px;
    background: #fafbfd;
}

.buy-cart-items {
    max-height: 190px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.buy-modal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    padding: 7px 8px;
    cursor: pointer;
}

.buy-modal-item-image {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e8edf3;
    flex-shrink: 0;
}

.buy-modal-item-image-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f6fa;
    color: #8a95a5;
}

.buy-modal-item-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.buy-modal-item-text {
    font-size: 14px;
    color: #253142;
    line-height: 1.2;
}

.buy-modal-item-price {
    color: #5f6773;
    font-size: 12px;
}

.buy-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #d8dee8;
    padding-top: 8px;
}

.checkout-page {
    --checkout-accent: var(--primary);
    --checkout-bg: #f5f6f8;
    --checkout-border: #e7e9ee;
    --checkout-muted: #5f6773;
}

.checkout-header {
    background: linear-gradient(135deg, #ffffff 0%, #f7f8fa 100%);
    border: 1px solid var(--checkout-border);
    border-radius: 14px;
    padding: 18px 20px;
}

.checkout-card {
    border: 1px solid var(--checkout-border);
    border-radius: 14px;
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section-title h6 {
    color: #1f2833;
    letter-spacing: .1px;
}

.checkout-step {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    color: var(--checkout-accent);
    background: #fff;
    border: 1px solid #d7dde6;
    box-shadow: inset 0 0 0 3px #f1f3f6;
}

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

.checkout-option {
    margin: 0;
    cursor: pointer;
}

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

.checkout-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    border: 1px solid var(--checkout-border);
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
    transition: all .2s ease;
}

.checkout-option-content:hover {
    border-color: #ccd3de;
    transform: translateY(-1px);
}

.checkout-option-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--checkout-accent);
    background: rgba(33, 37, 41, .08);
}

.checkout-option-text {
    font-weight: 600;
    color: #1f2833;
}

.checkout-option.selected .checkout-option-content {
    border-color: var(--checkout-accent);
    box-shadow: 0 0 0 2px rgba(33, 37, 41, .10);
}

.checkout-option.selected .checkout-option-icon {
    background: var(--checkout-accent);
    color: #fff;
}

.delivery-option-card .checkout-option-content {
    min-height: 64px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.delivery-option-card .checkout-option-icon {
    border-radius: 999px;
    background: #eef1f5;
}

.delivery-option-card.selected .checkout-option-content {
    border-color: #212529;
    box-shadow: 0 0 0 2px rgba(33, 37, 41, .12);
    background: linear-gradient(180deg, #f8fafc 0%, #f2f5f8 100%);
}

.pix-box {
    border: 1px dashed #cfd5df;
    border-radius: 12px;
    background: #fafbfc;
    padding: 14px;
}

.pix-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 236px;
    min-width: 236px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--checkout-border);
    padding: 8px;
}

.checkout-summary {
    border: 1px solid var(--checkout-border);
    border-radius: 14px;
    position: sticky;
    top: 92px;
}

.checkout-summary-items {
    max-height: 280px;
    overflow: auto;
    padding-right: 4px;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f6;
}

.checkout-summary-item:last-child {
    border-bottom: 0;
}

.checkout-summary-name {
    font-weight: 600;
    color: #1f2833;
}

.checkout-total-value {
    color: var(--checkout-accent);
}

.checkout-submit-btn {
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .cart-summary {
        position: static;
        top: auto;
    }

    .checkout-summary {
        position: static;
        top: auto;
    }
}

@media (max-width: 767.98px) {
    .cart-header {
        padding: 14px;
    }

    .cart-card .card-body,
    .cart-summary .card-body {
        padding: 16px !important;
    }

    .cart-thumb {
        width: 78px;
        height: 78px;
    }

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

    .checkout-header {
        padding: 14px;
    }

    .checkout-card .card-body,
    .checkout-summary .card-body {
        padding: 16px !important;
    }

    .pix-qr {
        min-height: 200px;
        min-width: 200px;
    }
}
