/* Cart Layout CSS */

.cart-bg {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: 80vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.cart-card {
    background: #fff;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 576px) {
    .cart-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.item-detail-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.item-detail-wrapper img {
    border-radius: 4px;
    object-fit: cover;
    background: #f1f1f1;
}

.item-details .basket-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.item-details .basket-title a {
    color: inherit;
    text-decoration: none;
}

.item-details .basket-title a:hover {
    text-decoration: underline;
}

.proadded-weight {
    color: #666;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 1px;
    display: flex;
    gap: 6px;
}

.weight-title {
    font-weight: 500;
    color: #444;
}

.item-price-label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    display: flex;
    gap: 8px;
}

.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-top: 12px;
    padding: 0;
    font-weight: 500;
    transition: color 0.2s;
}

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

.remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Item Actions (Quantity & Price) */
.item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (min-width: 576px) {
    .item-actions {
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        width: auto;
        gap: 15px;
    }
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quantity-control:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(4, 148, 221, 0.2);
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    transition: background 0.2s;
}

.quantity-btn:hover:not(:disabled) {
    background: #e9ecef;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 44px;
    height: 34px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    -moz-appearance: textfield;
}

.quantity-input:focus {
    outline: none;
}

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

.item-price {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

/* Order Summary */
.order-summary {
    background: #fff;
    padding: 28px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    align-self: start;
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    color: #222;
}

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

.summary-total {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    align-items: center;
}

.total-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-top: 4px;
}

/* Checkout Buttons */
.add-to-basket-dark {
    width: 100%;
    background: #222;
    color: #fff;
    border: none;
    padding: 16px;
    margin-top: 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: background 0.3s, transform 0.1s;
}

.add-to-basket-dark:hover:not(:disabled) {
    background: #000;
}

.add-to-basket-dark:active:not(:disabled) {
    transform: scale(0.98);
}

.continue-btn {
    width: 100%;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: background 0.3s;
}

.continue-btn:hover:not(:disabled) {
    background: #f1f1f1;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Override global h1 span style for basket count */
.cart-header h1 span {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Empty Cart */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

/* Trust Badges */
.trust-badges {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.trust-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.trust-item:last-child {
    margin-bottom: 0;
}

.trust-icon {
    flex-shrink: 0;
    background: #f8f9fa;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.trust-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}
