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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

/* ──── NAVBAR ──── */
.navbar {
    background: linear-gradient(90deg, #c41e3a 0%, #ffd700 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: bold;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .navbar .nav-link:hover {
        color: #3a0a12 !important;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 6px;
        transform: scale(1.05);
    }
/* ──── HERO SECTION ──── */
.hero {
    position: relative;
    height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9), rgba(255, 215, 0, 0.8));
}

canvas#fireworks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.5rem;
    animation: bounce 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s both;
}

.btn-festive {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-weight: bold;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: fadeInUp 1s ease 0.6s both;
}

    .btn-festive:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
        color: #000;
    }

/* ──── MAIN SECTION ──── */
.main-section {
    padding: 0;
    background: #111;
    min-height: calc(100vh - 45vh);
}

/* ──── SECTION HEADER WITH CART INFO AND ACTIONS ──── */
.section-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(196, 30, 58, 0.05));
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(196, 30, 58, 0.2);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(4px);
}

.section-title {
    text-align: left;
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    display: block;
    margin: 0;
    flex: 0 0 auto;
}

    .section-title::after {
        display: none;
    }

.header-cart-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 400px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cart-display {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(90deg, #0f0f1e, #1a1a2e);
    border: 2px solid #c41e3a;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
    white-space: nowrap;
}

.cart-label {
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
}

.cart-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border-left: 3px solid #ffd700;
    white-space: nowrap;
}

.action-buttons-top {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ──── PRODUCTS TABLE STYLES ──── */
.products-table-wrapper {
    background: linear-gradient(135deg, #0f0f1e, #1a1a2e);
    border: 2px solid #c41e3a;
    border-radius: 15px;
    overflow: auto;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
    margin-bottom: 2rem;
    max-height: calc(100vh - 280px);
    scroll-behavior: smooth;
    position: relative;
}

    /* Scrollbar Styling */
    .products-table-wrapper::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .products-table-wrapper::-webkit-scrollbar-track {
        background: #0f0f1e;
        border-radius: 10px;
    }

    .products-table-wrapper::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #c41e3a, #ffd700);
        border-radius: 10px;
        border: 2px solid #0f0f1e;
    }

        .products-table-wrapper::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #ffd700, #c41e3a);
        }

/* Firefox scrollbar */
.products-table-wrapper {
    scrollbar-color: #c41e3a #0f0f1e;
    scrollbar-width: thin;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    table-layout: fixed;
}

    /* ──── TABLE HEADER ──── */
    .products-table thead {
        background: linear-gradient(90deg, #c41e3a, #ffd700);
        position: sticky;
        top: 0;
        z-index: 10;
        display: table-header-group;
        box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    }

.header-row {
    display: table-row;
}

    .header-row th {
        color: #000;
        font-weight: 700;
        padding: 1rem;
        text-align: center;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        display: table-cell;
        white-space: nowrap;
    }

        .header-row th:last-child {
            border-right: none;
        }

.col-rowno {
    width: 60px;
}

.col-item {
    width: 100px;
}

.col-video {
    width: 80px;
}

.col-product {
    width: auto;
    min-width: 160px;
    text-align: left;
}

.col-price {
    width: 100px;
}

.col-perbox {
    width: 100px;
}

.col-quantity {
    width: 140px;
}

.col-total {
    width: 120px;
}

/* ──── TABLE BODY ──── */
.products-table tbody {
    display: table-row-group;
}

/* ──── CATEGORY HEADER ROW ──── */
.category-header-row {
    display: table-row;
}

    .category-header-row td {
        background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(196, 30, 58, 0.1));
        border-top: 2px solid #c41e3a;
        border-bottom: 2px solid #c41e3a;
        padding: 1rem 1.5rem;
        display: table-cell;
        text-align: left;
    }

.category-header-cell {
    display: table-cell !important;
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.category-icon {
    font-size: 1.5rem;
    color: #ffd700;
    flex-shrink: 0;
}

.category-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    min-width: 150px;
}

.category-badge {
    background: linear-gradient(135deg, #c41e3a, #ff6b6b);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
    flex-shrink: 0;
}

/* ──── PRODUCT ROW ──── */
.product-row {
    display: table-row;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

    .product-row:hover {
        background: rgba(255, 215, 0, 0.05);
    }

    .product-row td {
        padding: 1rem;
        vertical-align: middle;
        display: table-cell;
        border-right: 1px solid #222;
    }

        .product-row td:last-child {
            border-right: none;
        }

/* ──── CELLS ──── */
.cell-rowno {
    text-align: center;
    font-weight: bold;
    color: #ffd700;
    font-size: 1.1rem;
}

.cell-item {
    text-align: center;
}

.item-image {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

    .item-image:hover {
        transform: scale(1.1);
    }

.no-image {
    color: #666;
    font-size: 0.8rem;
}

.cell-product {
    text-align: left;
}

.product-name {
    font-weight: bold;
    color: #ffd700;
    font-size: 1rem;
    word-break: break-word;
    white-space: normal;
    min-width: 120px;
}

.cell-price {
    text-align: center;
}

.price-value {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    border-left: 3px solid #ffd700;
    display: inline-block;
    white-space: nowrap;
}

.cell-perbox {
    text-align: center;
}

.perbox-value {
    background: rgba(196, 30, 58, 0.1);
    color: #ffd700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    border-left: 3px solid #c41e3a;
    display: inline-block;
    white-space: nowrap;
}

.cell-video {
    text-align: center;
}

.video-btn {
    background: #c41e3a;
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
}

    .video-btn:hover {
        background: #ffd700;
        color: #000;
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    }

.no-video {
    color: #666;
}

.cell-quantity {
    text-align: center;
}

/* ──── QUANTITY CONTROL ──── */
.qty-control-group {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    background: #0f0f1e;
    border: 2px solid #c41e3a;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

.qty-btn {
    background: #c41e3a;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

    .qty-btn:hover {
        background: #ffd700;
        color: #000;
        transform: scale(1.1);
    }

.qty-input {
    background: #1a1a2e;
    color: #ffd700;
    border: none;
    padding: 0.4rem 0.6rem;
    text-align: center;
    font-weight: bold;
    width: 60px;
    height: 32px;
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

    .qty-input::-webkit-outer-spin-button,
    .qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .qty-input:focus {
        outline: none;
        background: #0f0f1e;
        box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.2);
    }

.cell-total {
    text-align: center;
    font-weight: bold;
}

.total-value {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 1.1rem;
    border-left: 3px solid #ffd700;
    display: inline-block;
    white-space: nowrap;
}

/* ──── ACTION BUTTONS ──── */
.btn-action {
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-save {
    background: #16213e;
    color: #ffd700;
    border: 2px solid #ffd700;
    border-radius: 10px;
}

    .btn-save:hover {
        background: #ffd700;
        color: #000;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    }

.btn-submit {
    background: linear-gradient(135deg, #c41e3a, #ff6b6b);
    color: #fff;
    border-radius: 10px;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(196, 30, 58, 0.5);
    }

/* ──── MODAL STYLES ──── */
.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #c41e3a;
}

.modal-header {
    border-bottom: 1px solid #333;
    background: rgba(196, 30, 58, 0.1);
}

.modal-title {
    color: #ffd700;
    font-weight: bold;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

.form-label {
    color: #ffd700;
    font-weight: bold;
}

.form-control {
    background: #0f0f1e;
    border: 2px solid #c41e3a;
    color: #fff;
}

    .form-control:focus {
        background: #0f0f1e;
        border-color: #ffd700;
        color: #fff;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    }

.text-danger {
    color: #ff6b6b !important;
}

.d-none {
    display: none !important;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: rgba(255, 215, 0, 0.05);
}

.table-striped tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.table thead th {
    border-bottom: 2px solid #c41e3a;
    color: #ffd700;
}

/* Neutralize Bootstrap CSS vars on confirm table so dark bg shows */
#confirmedItemsTable {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
    --bs-table-color: #e8e8e8;
    --bs-table-striped-color: #e8e8e8;
}

/* ──── CONFIRM ORDER MODAL TABLE ──── */
#confirmModal .modal-dialog {
    max-width: 680px;
}

#confirmModal .modal-body {
    padding: 1.5rem;
    background: transparent;
}

#confirmedItemsTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 0;
}

    #confirmedItemsTable thead tr {
        background: linear-gradient(90deg, #c41e3a 0%, #ff6b35 50%, #ffd700 100%);
    }

    #confirmedItemsTable thead th {
        color: #000 !important;
        font-weight: 700;
        padding: 0.9rem 1.1rem;
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        border: none !important;
        white-space: nowrap;
    }

        #confirmedItemsTable thead th:first-child {
            border-radius: 0;
            text-align: center;
            width: 50px;
        }

        #confirmedItemsTable thead th:last-child {
            border-radius: 0;
        }

    #confirmedItemsTable tbody tr {
        transition: background 0.2s ease;
    }

        #confirmedItemsTable tbody tr:nth-child(odd) {
            background: #16213e !important;
        }

        #confirmedItemsTable tbody tr:nth-child(even) {
            background: #1a1a2e !important;
        }

        #confirmedItemsTable tbody tr:hover {
            background: #1e2d50 !important;
        }

    #confirmedItemsTable tbody td {
        color: #e8e8e8 !important;
        background: transparent !important;
        padding: 0.85rem 1.1rem;
        vertical-align: middle;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
        font-size: 0.95rem;
    }

        #confirmedItemsTable tbody td:first-child {
            color: #ffd700;
            font-weight: 700;
            font-size: 1rem;
            text-align: center;
            width: 50px;
        }

        #confirmedItemsTable tbody td.confirm-qty {
            text-align: center;
            font-weight: 600;
        }

        #confirmedItemsTable tbody td.confirm-price,
        #confirmedItemsTable tbody td.confirm-total {
            text-align: right;
        }

.confirm-qty-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    font-weight: 700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.95rem;
    min-width: 40px;
    text-align: center;
}

.confirm-price-val {
    color: #c8c8c8;
    font-size: 0.9rem;
}

.confirm-total-val {
    color: #ffd700;
    font-weight: 700;
    font-size: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    display: inline-block;
    border-left: 3px solid #ffd700;
    white-space: nowrap;
}

#confirmModal .modal-footer {
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    align-items: center;
}

#confirmModal .total-cart {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.12), rgba(196, 30, 58, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-left: 4px solid #ffd700;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffd700 !important;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

#confirmModal .btn-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ccc;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

    #confirmModal .btn-secondary:hover {
        background: rgba(255,255,255,0.15);
        color: #fff;
    }

#confirmModal .btn-success,
#confirmModal #finalSubmit {
    background: linear-gradient(135deg, #1a8a1a, #28a745);
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.4rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    #confirmModal .btn-success:hover,
    #confirmModal #finalSubmit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
    }

/* ──── CATEGORY HEADER ROW ──── */
.category-header-row {
    display: table-row;
}

    .category-header-row td {
        background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(196, 30, 58, 0.1));
        border-top: 2px solid #c41e3a;
        border-bottom: 2px solid #c41e3a;
        padding: 1rem 1.5rem;
        display: table-cell;
        text-align: left;
    }

.category-header-cell {
    display: table-cell !important;
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.category-icon {
    font-size: 1.5rem;
    color: #ffd700;
    flex-shrink: 0;
}

.category-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    min-width: 150px;
}

.category-badge {
    background: linear-gradient(135deg, #c41e3a, #ff6b6b);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
    flex-shrink: 0;
}

/* ──── PRODUCT ROW ──── */
.product-row {
    display: table-row;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

    .product-row:hover {
        background: rgba(255, 215, 0, 0.05);
    }

    .product-row td {
        padding: 1rem;
        vertical-align: middle;
        display: table-cell;
        border-right: 1px solid #222;
    }

        .product-row td:last-child {
            border-right: none;
        }

/* ──── CELLS ──── */
.cell-rowno {
    text-align: center;
    font-weight: bold;
    color: #ffd700;
    font-size: 1.1rem;
}

.cell-item {
    text-align: center;
}

.item-image {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

    .item-image:hover {
        transform: scale(1.1);
    }

.no-image {
    color: #666;
    font-size: 0.8rem;
}

.cell-product {
    text-align: left;
}

.product-name {
    font-weight: bold;
    color: #ffd700;
    font-size: 1rem;
    word-break: break-word;
    white-space: normal;
    min-width: 120px;
}

.cell-price {
    text-align: center;
}

.price-value {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    border-left: 3px solid #ffd700;
    display: inline-block;
    white-space: nowrap;
}

.cell-perbox {
    text-align: center;
}

.perbox-value {
    background: rgba(196, 30, 58, 0.1);
    color: #ffd700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    border-left: 3px solid #c41e3a;
    display: inline-block;
    white-space: nowrap;
}

.cell-video {
    text-align: center;
}

.video-btn {
    background: #c41e3a;
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
}

    .video-btn:hover {
        background: #ffd700;
        color: #000;
        transform: scale(1.15);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
    }

.no-video {
    color: #666;
}

.cell-quantity {
    text-align: center;
}

/* ──── QUANTITY CONTROL ──── */
.qty-control-group {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    background: #0f0f1e;
    border: 2px solid #c41e3a;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

.qty-btn {
    background: #c41e3a;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

    .qty-btn:hover {
        background: #ffd700;
        color: #000;
        transform: scale(1.1);
    }

.qty-input {
    background: #1a1a2e;
    color: #ffd700;
    border: none;
    padding: 0.4rem 0.6rem;
    text-align: center;
    font-weight: bold;
    width: 60px;
    height: 32px;
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

    .qty-input::-webkit-outer-spin-button,
    .qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .qty-input:focus {
        outline: none;
        background: #0f0f1e;
        box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.2);
    }

.cell-total {
    text-align: center;
    font-weight: bold;
}

.total-value {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 1.1rem;
    border-left: 3px solid #ffd700;
    display: inline-block;
    white-space: nowrap;
}

/* ──── ACTION BUTTONS ──── */
.btn-action {
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-save {
    background: #16213e;
    color: #ffd700;
    border: 2px solid #ffd700;
    border-radius: 10px;
}

    .btn-save:hover {
        background: #ffd700;
        color: #000;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    }

.btn-submit {
    background: linear-gradient(135deg, #c41e3a, #ff6b6b);
    color: #fff;
    border-radius: 10px;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(196, 30, 58, 0.5);
    }

/* ──── RESUME ORDER MODAL STYLES ──── */
.modal-resume-order {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #c41e3a;
}

.modal-resume-header {
    background: linear-gradient(90deg, #c41e3a, #ffd700);
    border-bottom: 2px solid #c41e3a;
    padding: 1.5rem;
}

    .modal-resume-header .modal-title {
        color: #000;
        font-weight: bold;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.modal-resume-body {
    padding: 2rem;
    background: #111;
}

    .modal-resume-body .form-label {
        color: #ffd700;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .modal-resume-body .form-label i {
            font-size: 1rem;
        }

    .modal-resume-body .form-control {
        background: #0f0f1e;
        border: 2px solid #c41e3a;
        color: #fff;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .modal-resume-body .form-control:focus {
            background: #0f0f1e;
            border-color: #ffd700;
            color: #fff;
            box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
        }

        .modal-resume-body .form-control::placeholder {
            color: #666;
        }

    .modal-resume-body .form-text {
        color: #aaa !important;
        font-size: 0.85rem;
    }

.modal-resume-footer {
    background: linear-gradient(90deg, #0f0f1e, #1a1a2e);
    border-top: 2px solid #c41e3a;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

    .modal-resume-footer .btn {
        flex: 1;
        padding: 0.7rem 1.5rem;
        font-weight: bold;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .modal-resume-footer .btn-secondary {
        background: #16213e;
        color: #ffd700;
        border: 2px solid #ffd700;
    }

        .modal-resume-footer .btn-secondary:hover {
            background: #ffd700;
            color: #000;
            transform: translateY(-2px);
        }

    .modal-resume-footer .btn-success {
        background: linear-gradient(135deg, #00a86b, #00c878);
        color: #fff;
        border: none;
    }

        .modal-resume-footer .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 200, 136, 0.4);
        }

/* Responsive */
@media (max-width: 768px) {
    .modal-resume-body {
        padding: 1.5rem;
    }

    .modal-resume-footer {
        flex-direction: column;
    }

        .modal-resume-footer .btn {
            width: 100%;
        }
}

/* ──── WELCOME MODAL ──── */
.modal-welcome .modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #c41e3a;
}

.modal-welcome-header {
    background: linear-gradient(90deg, #c41e3a, #ffd700);
    border-bottom: none;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center;
}

    .modal-welcome-header .modal-title {
        color: #000;
        font-size: 1.2rem;
        margin: 0 0 4px;
    }

    .modal-welcome-header .modal-welcome-subtitle {
        color: rgba(0, 0, 0, 0.65);
        font-size: 0.85rem;
        margin: 0;
    }

.modal-welcome-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
}

.modal-welcome-footer {
    border-top: none;
    justify-content: center;
    padding-top: 0;
    background: transparent;
}

    .modal-welcome-footer small {
        color: #888;
        font-size: 0.75rem;
    }

/* Welcome option buttons — dark-theme aware */
.welcome-option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

    .welcome-option-btn:hover {
        border-color: #ffd700;
        background: rgba(255, 215, 0, 0.08);
        transform: translateY(-2px);
    }

.welcome-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}

    .welcome-icon-wrap.icon-new {
        background: rgba(0, 200, 120, 0.15);
        border: 1px solid rgba(0, 200, 120, 0.35);
        color: #00c878;
    }

    .welcome-icon-wrap.icon-resume {
        background: rgba(13, 202, 240, 0.15);
        border: 1px solid rgba(13, 202, 240, 0.35);
        color: #0dcaf0;
    }

.welcome-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-option-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffd700; /* gold — always visible on dark bg */
}

.welcome-option-sub {
    font-size: 0.78rem;
    color: #aaa; /* muted grey — readable on dark bg */
    line-height: 1.4;
}
/* ──── INFO BANNER ──── */
.alert-info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(90deg, rgba(13, 202, 240, 0.12), rgba(13, 202, 240, 0.05));
    border: 1px solid rgba(13, 202, 240, 0.4);
    border-left: 4px solid #0dcaf0;
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    margin: 0.75rem 1rem 0;
    animation: fadeInDown 0.4s ease;
}

.alert-info-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #7de8f8;
    font-size: 0.95rem;
    font-weight: 500;
}

    .alert-info-content i {
        font-size: 1.1rem;
        flex-shrink: 0;
        color: #0dcaf0;
    }

.alert-info-close {
    background: transparent;
    border: none;
    color: #0dcaf0;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.2s;
}

    .alert-info-close:hover {
        background: rgba(13, 202, 240, 0.15);
    }
/* ──── CUSTOM TOAST NOTIFICATION ──── */
#gc-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.gc-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: 380px;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border-left: 4px solid;
    background: #1a1a2e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    pointer-events: all;
    animation: gc-toast-in 0.3s ease forwards;
    position: relative;
    overflow: hidden;
}

    .gc-toast.removing {
        animation: gc-toast-out 0.3s ease forwards;
    }

    /* progress bar that shrinks over the toast lifetime */
    .gc-toast::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        width: 100%;
        background: currentColor;
        opacity: 0.35;
        animation: gc-toast-bar var(--gc-toast-duration, 4s) linear forwards;
    }

@keyframes gc-toast-in {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gc-toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(60px);
    }
}

@keyframes gc-toast-bar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* variants */
.gc-toast.warning {
    border-color: #ffd700;
    color: #ffd700;
}

.gc-toast.error {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.gc-toast.success {
    border-color: #00c878;
    color: #00c878;
}

.gc-toast.info {
    border-color: #0dcaf0;
    color: #0dcaf0;
}

.gc-toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.gc-toast-body {
    flex: 1;
}

.gc-toast-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: inherit;
}

.gc-toast-message {
    font-size: 0.82rem;
    color: #ccc;
    line-height: 1.45;
}

.gc-toast-close {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
    transition: color 0.2s;
}

    .gc-toast-close:hover {
        color: #fff;
    }

/* ──── SMART ORDER BANNER ──── */
.smart-order-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.12), rgba(196, 30, 58, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-left: 4px solid #ffd700;
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    margin: 0.75rem 1rem 0;
    animation: fadeInDown 0.4s ease;
}

.smart-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffd700;
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
}

.smart-banner-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.smart-banner-content strong {
    color: #fff;
}

.smart-banner-close {
    background: transparent;
    border: none;
    color: #ffd700;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.2s;
}

    .smart-banner-close:hover {
        background: rgba(255, 215, 0, 0.15);
    }

/* Smart Order option — gold accent */
.welcome-icon-wrap.icon-smart {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

/* Recommended badge next to title */
.welcome-option-badge {
    display: inline-block;
    background: linear-gradient(135deg, #c41e3a, #ff6b6b);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.4rem;
    vertical-align: middle;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ──── SCROLLBAR ALIGNMENT FIX ──── */
.products-table-wrapper {
    scrollbar-gutter: stable;
}

/* ──── TABLE LAYOUT IMPROVEMENT ──── */
.products-table {
    min-width: 700px;
}

/* ──── SECTION HEADER RESPONSIVE ──── */
@media (max-width: 768px) {
    .section-header-top {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .header-cart-actions {
        min-width: unset;
        width: 100%;
    }

    .cart-amount {
        font-size: 1.2rem;
    }

    .btn-action {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .col-product {
        min-width: 120px;
    }

    .col-rowno {
        width: 40px;
    }

    .col-item {
        width: 60px;
    }

    .col-video {
        width: 50px;
    }

    .col-price {
        width: 80px;
    }

    .col-perbox {
        width: 70px;
    }

    .col-total {
        width: 90px;
    }
}

/* ──── MODAL CONFIRM ORDER ──── */
.modal-confirm-order {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #c41e3a;
}

.modal-confirm-header {
    background: linear-gradient(90deg, #c41e3a, #ffd700);
    border-bottom: none;
}

    .modal-confirm-header .modal-title {
        color: #000;
        font-weight: bold;
    }

.modal-confirm-body {
    background: transparent;
    padding: 1.5rem;
}

.modal-confirm-footer {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,215,0,0.15);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.total-cart-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.total-label {
    color: #aaa;
    font-size: 0.9rem;
}

/* ──── HERO COLLAPSE ANIMATION ──── */
.hero {
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease;
    will-change: height, opacity;
    overflow: hidden;
}

    .hero.collapsed {
        height: 0 !important;
        opacity: 0;
        padding: 0;
        pointer-events: none;
    }

/* Products section expands when hero is collapsed */
.main-section {
    transition: min-height 0.5s ease;
}

body.products-focused .main-section {
    min-height: 100vh;
}

/* Scroll-to-top button — shows when hero is hidden */
#heroRevealBtn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 200;
    background: linear-gradient(135deg, #c41e3a, #ffd700);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(196,30,58,0.4);
    display: none;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    #heroRevealBtn.visible {
        display: flex;
    }

    #heroRevealBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(196,30,58,0.5);
    }

/* Smooth table height expansion */
.products-table-wrapper {
    transition: max-height 0.5s ease;
}

body.products-focused .products-table-wrapper {
    max-height: calc(100vh - 180px);
}

/* Section header stays sticky and visible */
body.products-focused .section-header-top {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-summary {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cat-summary-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.cat-summary-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 215, 0, 0.6);
}

.cat-summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
}

.cat-summary-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 215, 0, 0.3);
}

@media (max-width: 576px) {
    .category-summary {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        gap: 20px;
        margin-top: 6px;
    }

    .cat-summary-block {
        align-items: flex-start;
    }
}

/* ────── CATEGORY COLLAPSE CHEVRON ────── */
/*.category-chevron {
	color: #ffd700;
	font-size: 0.9rem;
	transition: transform 0.25s ease;
	display: inline-flex;
}

.category-header-row.collapsed .category-chevron {
	transform: rotate(-90deg);
}

.category-header-row {
	user-select: none;
}*/

/* ────── COLLAPSE +/- TOGGLES (master + per-category) ────── */
.master-toggle,
.category-toggle {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 1rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* master sits on the red/orange header — darker border for contrast */
.master-toggle {
    border-color: rgba(58, 10, 18, 0.5);
    color: #3a0a12;
}

    .master-toggle:hover,
    .category-toggle:hover {
        background: rgba(255, 215, 0, 0.15);
    }

.category-header-row {
    user-select: none;
}


/* ────── CONTACT MODAL ────── */
.modal-contact {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #c41e3a;
}

.modal-contact-header {
    background: linear-gradient(90deg, #c41e3a, #ffd700);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

    .modal-contact-header .modal-title {
        color: #000;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.modal-contact-body {
    padding: 1.25rem 1.5rem;
    background: #111;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    text-decoration: none;
}

.contact-action {
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

    .contact-action:hover {
        border-color: #ffd700;
        background: rgba(255, 215, 0, 0.08);
        transform: translateY(-2px);
    }

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-icon-wa {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25d366;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.contact-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffd700;
}

.contact-value {
    font-size: 0.82rem;
    color: #bbb;
    line-height: 1.4;
}

.contact-arrow {
    color: #666;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.category-header-row {
    cursor: pointer;
}

.category-header-row:hover td {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.22), rgba(196, 30, 58, 0.15));
}
/* ────── SMART ORDER NAV HIGHLIGHT ────── */
.navbar .nav-link.nav-smart-order {
    position: relative;
    background: #1a1a2e;
    color: #ffd700 !important;
    font-weight: 600 !important;
    padding: 0.45rem 1rem !important;
    border-radius: 20px;
    box-shadow: 0 0 0 2px #ffd700, 0 0 12px rgba(255, 215, 0, 0.6);
    animation: smartPulse 2s ease-in-out infinite;
    overflow: visible;
}
.navbar .nav-link.nav-smart-order:hover {
    background: #ffd700 !important;
    color: #1a1a2e !important;
    transform: scale(1.05);
    box-shadow: 0 0 0 2px #ffd700, 0 0 18px rgba(255, 215, 0, 0.85);
}

@keyframes smartPulse {
    0%, 100% {
        box-shadow: 0 0 0 2px #ffd700, 0 0 8px rgba(255, 215, 0, 0.45);
    }

    50% {
        box-shadow: 0 0 0 2px #ffd700, 0 0 18px rgba(255, 215, 0, 0.85);
    }
}

/* "Try it" badge */
.smart-try-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    background: #25d366;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* On small screens (collapsed navbar) calm it down */
@media (max-width: 991px) {
    .nav-smart-order {
        display: inline-block;
        margin: 0.3rem 0;
        animation: none;
    }

    .smart-try-badge {
        position: static;
        margin-left: 0.5rem;
    }
}