/* Namaya Jewels - Cart Page */

.namaya-cart-container {
    font-family: var(--namaya-font-body);
    background-color: var(--namaya-bg);
    color: #222222;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cart-header {
    text-align: center;
    margin-bottom: 25px;
}

.cart-header h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cart-header p {
    font-size: 13px;
    color: #666;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    align-items: start;
}

.cart-items-wrapper {
    background: #ffffff;
    border: 1px solid var(--namaya-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.cart-item-card {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0ece1;
    align-items: center;
}

.cart-item-card:last-child {
    border-bottom: none;
}

.item-img-wrap {
    width: 90px;
    height: 90px;
    background: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #f0ece1;
}

.item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-title a {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.item-price {
    font-size: 14px;
    color: var(--namaya-gold);
    font-weight: 700;
}

.item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.option-tag {
    font-size: 11px;
    color: #777;
    background: #f4f0e8;
    padding: 2px 8px;
    border-radius: 10px;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    transition: color 0.2s ease;
}

.remove-btn:hover {
    color: #e53935;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d0c8b8;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.qty-control .qty-btn {
    background-color: #f4f0e8;
    color: #222222;
    border: none;
    width: 26px;
    height: 26px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.qty-control .qty-btn:hover {
    background-color: var(--namaya-gold);
    color: #ffffff;
}

.qty-control .qty-input {
    width: 28px;
    height: 26px;
    border: none;
    border-left: 1px solid #d0c8b8;
    border-right: 1px solid #d0c8b8;
    text-align: center;
    font-family: var(--namaya-font-body);
    font-size: 12px;
    font-weight: 600;
    color: #111;
    outline: none;
    background: #fff;
    padding: 0;
}

.coupon-box {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--namaya-border);
}

.coupon-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dcd6cd;
    border-radius: 4px;
    font-family: var(--namaya-font-body);
    font-size: 12px;
    outline: none;
    text-transform: uppercase;
}

.coupon-btn {
    padding: 8px 16px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--namaya-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.coupon-btn:hover {
    background: var(--namaya-gold);
}

.coupon-msg {
    font-size: 11px;
    margin-top: 6px;
    display: block;
}

.coupon-msg.success { color: #4caf50; }
.coupon-msg.error { color: #e53935; }

.summary-card {
    background: #ffffff;
    border: 1px solid var(--namaya-border);
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.summary-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--namaya-gold);
    margin-bottom: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 10px;
    color: #555;
}

.summary-row.discount-row {
    color: #e53935;
}

.summary-row.total-row {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    border-top: 1px solid var(--namaya-border);
    padding-top: 10px;
    margin-top: 10px;
}

.total-price {
    color: var(--namaya-gold);
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: var(--namaya-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 14px;
    transition: background 0.2s ease;
    display: block;
    text-align: center;
}

.checkout-btn:hover {
    background: var(--namaya-gold);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.continue-btn {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.continue-btn:hover {
    color: var(--namaya-gold);
}

.empty-cart-state {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 1px solid var(--namaya-border);
    border-radius: 8px;
}

.empty-cart-state h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-cart-state a {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 20px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .cart-item-card {
        grid-template-columns: 75px 1fr;
        gap: 12px;
        position: relative;
    }
    .item-img-wrap {
        width: 75px;
        height: 75px;
    }
    .item-actions {
        grid-column: span 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 6px;
        padding-top: 10px;
        border-top: 1px dashed #eee;
    }
    .remove-btn { order: 2; }
    .qty-control { order: 1; }
}
