/* ─── Cart & Checkout Styles ─── */
.qty-btn-group {
    display: none;
    align-items: center;
    gap: 10px;
}

body.ordering-mode .qty-btn-group.inline-qty {
    display: flex;
}

.mh {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl {
    flex: 1;
    border-bottom: 2px dotted #C9A84C;
    margin: 0 5px;
    height: 12px;
}

.qty-btn-group button {
    background: #f4eee1;
    border: 1px solid #C9A84C;
    color: #2D5016;
    width: 25px;
    height: 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-group button:active {
    background: #e4dec1;
}

.qty-display {
    font-family: var(--font-body);
    font-size: 14px;
    min-width: 15px;
    text-align: center;
}

.floating-cart {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #2D5016;
    color: #fff;
    padding: 15px 20px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: bottom 0.3s ease;
    z-index: 1000;
}

.floating-cart.active {
    bottom: 20px;
}

#checkout-modal,
#addons-modal,
#variants-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
}

#addons-modal {
    z-index: 2100;
}

#variants-modal {
    z-index: 2050;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FCFAF5;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    font-family: var(--font-body);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.modal-content h3,
.modal-content h2 {
    font-family: var(--font-heading);
    color: #2D5016;
    margin-top: 0;
    text-align: center;
}

.co-items {
    max-height: 250px;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.co-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.co-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 20px;
}

.co-actions {
    display: flex;
    gap: 10px;
}

.co-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
}

.addons-list {
    margin: 20px 0;
    max-height: 200px;
    overflow-y: auto;
}

.addon-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
}

.addon-option:last-child {
    border-bottom: none;
}

.addon-option input {
    width: 18px;
    height: 18px;
}

.variant-btn {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #C9A84C;
    background: white;
    color: #2D5016;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-weight: bold;
    transition: 0.2s;
}

.variant-btn:hover {
    background: #fdfaf4;
    transform: translateY(-2px);
}

@media print {

    #floating-cart,
    #checkout-modal,
    #addons-modal,
    #variants-modal,
    .track-btn,
    .qty-btn-group {
        display: none !important;
    }
}