/* Cart Page Styles */

.cart-page-wrapper {
    background: #f9f9f9;
    padding: 60px 0 80px;
    padding: 2em;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* Cart Items Section */
.cart-items {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.item-title a:hover {
    color: #5865F2;
}

.item-price {
    font-size: 16px;
    color: #5865F2;
    font-weight: 600;
}

.item-price .amount {
    color: #5865F2;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-controls .quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls input.qty {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    padding: 0 10px;
}

.quantity-controls input.qty:focus {
    outline: none;
    border-color: #5865F2;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.item-total {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.item-total .amount {
    color: #333;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    transition: opacity 0.3s;
    padding: 0;
}

.remove-btn:hover {
    opacity: 0.7;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 15px;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row .amount {
    color: #666;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 10px;
    border-top: 2px solid #5865F2;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.summary-total .amount {
    color: #333;
}

.wc-proceed-to-checkout {
    margin-top: 20px;
}

.wc-proceed-to-checkout .checkout-button {
    display: none;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    color: #000;
}

.btn-continue {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #5865F2;
    border: 2px solid #5865F2;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-continue:hover {
    background: #5865F2;
    color: #fff;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-cart h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.woocommerce-message {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.woocommerce-error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

.woocommerce-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

.proceed-to-checkout-button, .wc-block-cart__submit-container{
    padding: 14px 40px;
    background: #FFD700;
    text-decoration: none !important;
    color: #000 !important;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.wc-block-cart__submit-container > a > div, .wc-block-cart__submit-button {
    color: #000 !important;
    text-decoration: none !important;

}

/* Responsive Styles */
@media (max-width: 1024px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .cart-page-wrapper {
        padding: 40px 0 60px;
    }

    .page-title {
        font-size: 32px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .item-image {
        width: 80px;
        height: 80px;
    }

    .item-actions {
        grid-column: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cart-items {
        padding: 20px;
    }

    .cart-summary {
        padding: 20px;
    }

    .summary-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .item-image {
        width: 100%;
        height: 200px;
    }

    .item-actions {
        grid-column: 1;
    }

    .item-title {
        font-size: 16px;
    }

    .item-price {
        font-size: 15px;
    }

    .quantity-controls input.qty {
        width: 50px;
        height: 32px;
    }

    .btn-checkout {
        padding: 14px;
        font-size: 16px;
    }

    .btn-continue {
        padding: 12px;
        font-size: 15px;
    }
}