:root {
    --primary: #97744b;
    --primary-contrast: #fff;
    --accent: #dbc1a3;
    --bg: #ffffff;
    --muted: #6b7280;
    --border: rgba(0,0,0,.12);
    --radius: 16px;
    --shadow: 0 6px 24px rgba(0,0,0,.08);
}

html, body {
    background: #faf9f7
}

.container {
    max-width: 980px
}

/* Tabs */
.tabs-elegant {
    border: 0;
    gap: .35rem;
    padding: .25rem;
    background: #fff;
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    margin-bottom: 1rem
}

    .tabs-elegant .nav-link {
        border: 1px solid transparent;
        border-radius: 999px;
        font-weight: 600;
        color: #374151;
        padding: .55rem 1rem
    }

        .tabs-elegant .nav-link.active {
            color: var(--primary);
            background: linear-gradient(180deg,#fff,#f7f4ef);
            border-color: var(--border);
            box-shadow: 0 4px 14px rgba(0,0,0,.06) inset
        }

        .tabs-elegant .nav-link:hover {
            color: var(--primary)
        }

/* Card-like */
.card-like {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.form-label {
    font-weight: 600;
    color: #374151
}

.form-control, .form-select {
    border-radius: 12px;
    border-color: var(--border)
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 .2rem rgba(151,116,75,.15)
    }

.btn-success {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-contrast);
    border-radius: 12px
}

    .btn-primary:hover {
        filter: brightness(.96)
    }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff
}

    .btn-icon:hover {
        background: #f7f4ef
    }

.price-badge {
    font-weight: 700
}

#sum-pay {
    color: #198754
}

.link-emph {
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: underline
}

/* Items list */
.items-list {
    min-height: 160px
}

/* Cart row */
.cart-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title price"
        "subtitle qty";
    gap: .4rem .6rem;
    padding: .7rem .6rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    margin-bottom: .55rem;
}

.cart-title {
    grid-area: title;
    font-weight: 800;
    line-height: 1.2
}

.cart-price {
    grid-area: price;
    align-self: start;
    font-weight: 900;
    font-size: 1.05rem;
    color: #2b2b2b;
    display: flex; /* amount + remove inline */
    align-items: center;
    gap: 2.1rem;
}

    .cart-price .amount {
        color: var(--primary)
    }

.cart-sub {
    grid-area: subtitle;
    font-size: .9rem;
    color: var(--muted)
}

.cart-qty {
    grid-area: qty;
    display: flex;
    align-items: center;
    gap: .35rem;
    justify-self: end
}

    .cart-qty .qty-num {
        min-width: 32px;
        text-align: center;
        font-weight: 700
    }

    .cart-qty .btn-icon {
        width: 36px;
        height: 36px
    }

/* Remove button (inline next to price) */
.btn-remove {
    background: transparent;
    color: #dc3545;
    height: 32px;
    width: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-remove:hover {
        opacity: .85
    }

    .btn-remove .fa-xmark {
        font-size: 1.05rem
    }

/* Fixed rows (gift/delivery) */
.cart-row.fixed-row .cart-qty {
    display: none
}

/* Responsive */
@media (max-width:560px) {
    .cart-price {
        font-size: 1.0rem
    }
}

/* Container width on lg+ */
@media (min-width:992px) {
    .container {
        max-width: 1080px
    }
}



#giftSelect.form-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7f9 0%, #ffeef5 100%);
    border: 1px solid #ffd6e5;
    color: #b3005a;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(255, 0, 102, 0.08);
    animation: gift-pop .28s ease-out;
}

#giftSelect .fa-gift {
    font-size: 1rem;
    opacity: .95;
}

#giftSelect .gift-text {
    letter-spacing: .2px;
    white-space: nowrap;
}

/* Hover/focus */
#giftSelect.form-label:hover,
#giftSelect.form-label:focus {
    border-color: #ffb3cf;
    box-shadow: 0 4px 14px rgba(255, 0, 102, 0.12);
    transform: translateY(-1px);
}

/* Subtle entry animation */
@keyframes gift-pop {
    0% {
        transform: scale(.96);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Optional dark-ish background support */
@media (prefers-color-scheme: dark) {
    #giftSelect.form-label {
        background: linear-gradient(180deg, #2b1f26 0%, #241922 100%);
        border-color: #513244;
        color: #ffd0e3;
        box-shadow: 0 2px 10px rgba(0,0,0,.25);
    }

        #giftSelect.form-label:hover,
        #giftSelect.form-label:focus {
            border-color: #7b4d67;
            box-shadow: 0 4px 14px rgba(0,0,0,.35);
        }
}

.fireworks {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity .15s ease-out;
}

    .fireworks.active {
        opacity: 1;
    }


#row-credit {
    align-items: center;
}

#btnRemoveDiscount {
    min-width: 42px;
}


.boxnow-dropdown-menu {
    min-width: 100%;
}

.boxnow-options {
    max-height: 260px; /* ~7 rows */
    overflow-y: auto;
    padding: 4px 0;
}

.boxnow-option {
    display: block;
    padding: 4px 12px;
    cursor: pointer;
    white-space: normal;
}

    .boxnow-option:hover {
        background-color: #f1f3f5;
    }

.boxnow-map-icon {
    font-size: 1rem;
    flex: 0 0 auto;
    opacity: .7;
    cursor: pointer;
    color: #198754;
}

.boxnow-option:hover .boxnow-map-icon {
    opacity: 1;
}

.boxnow-map-icon:focus {
    outline: none;
}

.boxnow-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.boxnow-text {
    flex: 1 1 auto;
    white-space: normal;
}

