/* ==========================================
   CART PAGE
   ========================================== */

.cart-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 24px 80px;
}

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

.cart-title {
    font-size: 34px;
    font-weight: 400;
    color: #191919;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.cart-item-count {
    font-size: 14px;
    color: #999;
}

/* Cart Items */
.cart-items {
    border-top: 1px solid #e4e4e4;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e4e4e4;
}

.cart-item-image {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
    background: #f7f7f8;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #191919;
    margin-bottom: 4px;
}

.cart-item-size {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-size-select {
    padding: 4px 8px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-family: 'Arimo', sans-serif;
    font-size: 13px;
    color: #191919;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.cart-size-select:hover,
.cart-size-select:focus {
    border-color: #191919;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 500;
    color: #191919;
}

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

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #ddd;
}

.cart-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    color: #191919;
    font-family: 'Arimo', sans-serif;
    transition: background 0.2s;
}

.cart-qty-btn:hover {
    background: #f0f0f0;
}

.cart-qty-value {
    width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-left: 1.5px solid #ddd;
    border-right: 1.5px solid #ddd;
}

.cart-remove-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Arimo', sans-serif;
    padding: 0;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: #a33;
}

.cart-item-line-total {
    font-size: 15px;
    font-weight: 600;
    color: #191919;
}

/* Promo Code */
.promo-section {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.promo-input {
    flex: 1;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-family: 'Arimo', sans-serif;
    font-size: 14px;
    color: #191919;
    background: #fff;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: border-color 0.2s;
}

.promo-input:focus {
    border-color: #191919;
}

.promo-input::placeholder {
    text-transform: none;
    color: #aaa;
}

.promo-btn {
    padding: 12px 20px;
    background: #fff;
    color: #191919;
    border: 1.5px solid #191919;
    font-family: 'Arimo', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.promo-btn:hover {
    background: #191919;
    color: #fff;
}

.promo-error {
    font-size: 13px;
    color: #a33;
    min-height: 18px;
    margin-bottom: 12px;
}

.promo-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.promo-tag {
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    letter-spacing: 0.04em;
}

.promo-remove {
    background: none;
    border: none;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
    font-family: 'Arimo', sans-serif;
    transition: color 0.2s;
}

.promo-remove:hover {
    color: #a33;
}

.cart-summary-row.discount {
    color: #166534;
}

/* Summary */
.cart-summary {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 2px solid #191919;
}

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

.cart-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #191919;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e4e4e4;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 18px;
    margin-top: 24px;
    background: #191919;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Arimo', sans-serif;
    transition: background 0.3s;
    text-align: center;
}

.checkout-btn:hover {
    background: #333;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
    text-decoration: underline;
    transition: color 0.2s;
}

.continue-shopping:hover {
    color: #191919;
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 80px 0;
}

.cart-empty-icon {
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-size: 24px;
    font-weight: 400;
    color: #191919;
    margin-bottom: 10px;
}

.cart-empty p {
    font-size: 15px;
    color: #888;
    margin-bottom: 28px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 767px) {
    .cart-page {
        padding: 30px 16px 60px;
    }

    .cart-title {
        font-size: 26px;
    }

    .cart-item {
        gap: 16px;
    }

    .cart-item-image {
        width: 80px;
        height: 104px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-actions {
        gap: 8px;
    }

    .cart-qty-btn {
        width: 32px;
        height: 32px;
    }

    .cart-qty-value {
        width: 34px;
        height: 32px;
        font-size: 13px;
    }
}
