﻿/* Grid Layout */
.cart-grid {
    display: grid;
    justify-content: space-between;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 12px;
}

.cart-item {
    background: white;
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

    .cart-item:hover {
        box-shadow: 0 10px 40px -10px rgba(242, 116, 151, 0.3);
    }

.item-content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.item-image {
    width: 7rem;
    height: 7rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    background: #f5f5f7;
}
    .item-image.small {
        width: 3rem;
        height: 3rem;
        border-radius: 0.35rem;
    }

    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.item-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-black);
    margin-bottom: .5rem;
}
.item-title {
    font-size: 0.8rem;
    font-weight: 600;
}
.item-size {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgb(238 182 193 / 50%), rgb(238 182 193 / 50%));
    color: var(--text-black);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
}
.item-details.small .item-size, .item-details.small .modifier-tag, .item-details.small .addon-tag, .item-details.small .item-price {
    font-size: 0.725rem;
}
.item-details.small .section-title {
    font-size: 0.5rem;
}
.item-details.small .item-total {
    font-size: 1rem;
}
.item-price-box {
    text-align: left;
    margin-top: 0.5rem;
}

.price-label {
    font-size: 0.65rem;
    color: var(--text-light-gray);
}

.item-price {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-dark);
}

/* Addons and Modifiers */
.item-section {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.addons-list {
    background: rgba(212, 184, 223, 0.3);
    border-radius: 5px;
    padding: 0.25rem 0.75rem;
}

.addon-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    /* background: rgba(212, 184, 223, 0.3); */
    /* border-radius: 9999px; */
    font-size: 0.875rem;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-right: 0;
}

.addon-name {
    color: #1D1D1F;
    font-weight: 500;
}

.addon-price {
    color: #F27497;
    font-weight: 600;
}

.modifiers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modifier-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(243, 181, 192, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #1D1D1F;
}

/* Item Actions */
.item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(243, 181, 192, 0.3);
    border-radius: 0.75rem;
    padding: 0.25rem;
}

.qty-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 0;
    color: #ffffff;
    padding: 0;
    min-width: 0;
}

    .qty-btn:hover {
        background: #F27497;
        color: white;
    }

    .qty-btn:active {
        transform: scale(0.95);
    }

.quantity {
    width: 2rem;
    text-align: center;
    font-weight: 600;
    color: #1D1D1F;
}

.action-btn {
    padding: 0.5rem;
    background: var(--bg-main);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
}

.edit-btn:hover {
    background: rgba(212, 184, 223, 0.3);
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.item-total-box {
    text-align: right;
}

.item-total {
    font-size: 1.25rem;
    font-weight: bold;
    background: var(--primary-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #F3B5C0;
    animation: scaleIn 0.5s ease-out;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--text-black);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #1D1D1F;
}

    .summary-row.total {
        font-size: 1.25rem;
        font-weight: bold;
        padding-top: 1rem;
        border-top: 1px solid;
        border-image: linear-gradient(90deg, #F3B5C0, #F27497, #D4B8DF) 1;
    }

        .summary-row.total .amount {
            background: var(--text-black);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

.checkout-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--secondary-dark);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    max-width: none;
}

    .checkout-btn:hover:not(:disabled) {
        transform: scale(1.02);
        background: var(--secondary-dark);
    }

    .checkout-btn:active:not(:disabled) {
        transform: scale(0.98);
        background: var(--secondary-dark);
    }

    .checkout-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
.total span {
    font-size: 1.08rem;
}
.continue-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #f5f5f7;
    color: var(--text-black);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: none;
}
.voucher-card-checkout {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 14px 16px;
}
.voucher-left-checkout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.voucher-icon-checkout {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}
.voucher-title-checkout {
    font-size: 0.82rem;
    font-weight: bold;
    background: var(--text-black);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
}
.voucher-sub-checkout {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.btn-outline-checkout {
    padding: 8px 18px;
    font-size: 0.88rem;
    background: var(--secondary-dark);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
    white-space: nowrap;
    min-width: 0;
    max-width: none;
}
    .continue-btn:hover {
        background: rgba(243, 181, 192, 0.2);
        border-color: #F27497;
    }

/* Empty Cart */
.empty-cart {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #F3B5C0;
}

    .empty-cart svg {
        width: 4rem;
        height: 4rem;
        color: #6E6E72;
        margin: 0 auto 1rem;
    }

    .empty-cart p {
        font-size: 1.25rem;
        color: #6E6E72;
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (min-width: 640px) {
    .container {
        padding: 2rem 1.5rem;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .item-content {
        flex-direction: row;
    }

    .item-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }

    .item-price-box {
        text-align: right;
        margin-top: 0;
    }

    .item-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .item-controls {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .cart-grid {
        grid-template-columns: 2fr 1fr;
    }

    .order-summary {
        position: sticky;
        top: 2rem;
    }

    .header h1 {
        font-size: 3rem;
    }
}
.hideAbove468 {
    display: none;
}
@media (max-width: 464px) {
    .item-content {
        flex-direction: row;
    }
    .hideOn468{
        display:none;
    }
    .hideAbove468 {
        display: flex;
    }
    .item-image {
        width: 4rem;
        height: 4rem;
    }
    .item-title {
        font-size: 0.825rem;
    }
    .addon-tag, .modifier-tag, .item-size {
        font-size: 0.675rem;
    }
    .qty-btn {
        width: 1.75rem;
        height: 1.75rem;
    }
    .action-btn {
        width: 2rem;
        height: 2rem;
        padding: 0;
    }
}
    /* Icons (using SVG) */
    .icon {
        width: 1.25rem;
        height: 1.25rem;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.voucher-applied-card {
    background-color: hsl(283.64deg 35.48% 93.92%); /* reward background */
    border: 1px solid hsla(320, 60%, 40%, 0.2); /* reward-foreground with opacity */
    border-radius: 1rem;
    padding: 1.5rem;
/*    max-width: 400px;*/
}

.voucher-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.icon-container {
    flex-shrink: 0;
    background-color: hsl(150, 60%, 50%); /* success color */
    border-radius: 50%;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-container svg {
        width: 20px;
        height: 20px;
        color: white;
    }

.voucher-text {
    flex: 1;
}

.voucher-title {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(150, 60%, 50%); /* success color */
    margin-bottom: 0.25rem;
}

.voucher-description {
    font-size: 0.875rem;
    color: hsl(320, 60%, 40%); /* reward-foreground */
    line-height: 1.4;
}

.voucher-details {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .detail-row + .detail-row {
        margin-top: 0.75rem;
    }

    .detail-row.total {
        border-top: 1px solid hsl(280, 10%, 90%);
        padding-top: 1rem;
        margin-top: 1rem;
    }

.detail-label {
    font-size: 0.875rem;
    color: hsl(280, 8%, 50%); /* muted-foreground */
}

.detail-value {
    font-weight: 500;
    color: hsl(280, 10%, 20%); /* foreground */
}

.detail-label.bold {
    font-weight: 500;
    color: hsl(280, 10%, 20%);
}

.detail-value.discount {
    font-weight: 700;
    font-size: 1.125rem;
    color: hsl(150, 60%, 50%); /* success color */
}

/*Upsize*/
.item-upsize {
    grid-column: 2 / 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f4eef7;
    padding: .75rem;
    border-width: 1px;
    border-radius: .75rem;
    border-color: #b087c533;
}

.upsize-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
}

    .upsize-option input[type="radio"] {
        accent-color: #f97316;
    }

.upsize-label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: #1D1D1F;
}

    .upsize-label span.title {
        font-weight: 600;
        line-height: 1.25rem;
    }

    .upsize-label span.subtitle {
        font-size: 12px;
        color: #9ca3af;
        line-height: 1.25rem;
    }

.upsize-tag {
    font-size: 11px;
    /* padding: 3px 8px; */
    border-radius: 10px;
    background: var(--secondary-dark);
    color: #ffffff;
    border: 1px solid var(--secondary-dark);
    padding: 0.5rem;
    cursor: pointer;
}

.upsize-tag.applied {
        background: #ecfdf5;
        border-color: #34d399;
        color: #047857;
}
.applied {
    background: #ecfdf5;
    border-color: #34d399;
    color: #047857;
}

/*Upsize*/
