/* Cart Page Styles */

/* Continue Shopping Button */
.continue-shopping-wrapper {
    margin-bottom: 25px;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
}

.btn-continue-shopping:hover {
    background: #555;
    color: #fff;
    transform: translateX(-3px);
}

.btn-continue-shopping i {
    font-size: 12px;
    transition: transform 0.2s;
}

.btn-continue-shopping:hover i {
    transform: translateX(-3px);
}

/* Page Header */
.page-header {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    color: #ffd700;
}

/* Cart Section */
.cart-section {
    background: #f8f9fa;
}

/* Cart Items Table */
.cart-items-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.shop_table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.shop_table thead th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #333;
}

.shop_table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.shop_table tbody td {
    padding: 20px 10px;
    vertical-align: middle;
}

/* Product Remove */
.product-remove a {
    color: #dc3545;
    font-size: 18px;
    transition: color 0.3s;
}

.product-remove a:hover {
    color: #c82333;
}

/* Product Thumbnail */
.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* Product Name */
.product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.product-name a:hover {
    color: #007bff;
}

.product-name dl.variation {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}

.product-name dl.variation dt {
    float: left;
    clear: left;
    margin-right: 5px;
    font-weight: 600;
}

/* Product Price */
.product-price {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Product Quantity */
.product-quantity .quantity {
    display: inline-block;
}

.product-quantity input[type="number"] {
    width: 80px;
    padding: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Product Subtotal */
.product-subtotal {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

/* Cart Actions */
.actions {
    padding: 20px 10px !important;
    background: #f8f9fa;
}

.actions .coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.actions .coupon label {
    margin: 0;
    font-weight: 600;
}

.actions .coupon input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    width: 200px;
}

.actions button[type="submit"] {
    padding: 8px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
    text-transform: uppercase;
}

.actions button[type="submit"]:hover {
    background: #555;
}

/* Cart Totals */
.cart-totals-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.cart_totals h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
}

.cart_totals .shop_table {
    margin-bottom: 20px;
}

.cart_totals .shop_table th,
.cart_totals .shop_table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.cart_totals .shop_table th {
    text-align: left;
    font-weight: 600;
    width: 40%;
}

.cart_totals .shop_table td {
    text-align: right;
    font-weight: 500;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    border-bottom: none;
    padding-top: 20px;
}

.cart_totals .order-total td {
    color: #28a745;
}

/* Proceed to Checkout */
.wc-proceed-to-checkout {
    margin-top: 20px;
}

.wc-proceed-to-checkout a {
    display: block;
    padding: 15px;
    background: #28a745;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    transition: background 0.3s;
}

.wc-proceed-to-checkout a:hover {
    background: #218838;
}

/* Shipping Calculator */
.shipping-calculator-form {
    margin-top: 15px;
}

.shipping-calculator-button {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

/* Coupon Remove */
.cart-discount a.woocommerce-remove-coupon {
    color: #dc3545;
    text-decoration: none;
    margin-left: 10px;
    font-size: 12px;
}

.cart-discount a.woocommerce-remove-coupon:hover {
    text-decoration: underline;
}

/* Empty Cart Message */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty .wc-empty-cart-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.return-to-shop a {
    display: inline-block;
    padding: 12px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.return-to-shop a:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-totals-wrapper {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }

    .shop_table thead {
        display: none;
    }

    .shop_table tbody tr {
        display: block;
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 4px;
    }

    .shop_table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border: none;
    }

    .shop_table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
    }

    .product-thumbnail {
        text-align: center;
    }

    .product-thumbnail img {
        width: 100px;
        height: 100px;
    }

    .actions {
        display: block !important;
    }

    .actions .coupon {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 15px;
    }

    .actions .coupon input[type="text"] {
        width: 100%;
    }

    .actions button[type="submit"] {
        width: 100%;
        margin-top: 10px;
    }
}