/*
Theme Name: 5D Sports Displays
Theme URI: https://5dsportsdisplays.com
Author: 5D Studio
Author URI: https://5dsportsdisplays.com
Description: Premium WordPress theme for 5D Sports Displays - Transform trading cards into stunning 5D lenticular displays with motion and depth.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 5dsportsdisplays
Tags: custom-logo, custom-menu, featured-images, footer-widgets, theme-options, wide-blocks
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
*/

/* ============================================
   Cart Page Styles
   ============================================ */

/* Cart Table Layout */
.fiveds-cart-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    margin-bottom: 3rem;
}

.shop_table.cart {
    width: 100%;
    border-collapse: collapse;
}

.shop_table.cart thead th {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.shop_table.cart thead th.product-total {
    text-align: right;
}

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

.shop_table.cart tbody td {
    padding: 1.25rem 0.75rem;
    vertical-align: top;
}

/* Product Thumbnail */
.product-thumbnail {
    width: 100px;
    padding-right: 1rem;
}

.product-thumbnail img {
    width: 100px;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Product Details Column */
.product-details {
    padding-right: 2rem;
}

.fiveds-product-info {
    margin-bottom: 0.75rem;
}

.fiveds-product-info .product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.fiveds-product-info .product-title:hover {
    color: #0066cc;
}

.product-unit-price {
    font-size: 12px;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Product Meta Information */
.cart-item-meta {
    margin: 0.5rem 0 0 0;
}

.cart-item-meta .meta-item {
    font-size: 12px;
    color: #555;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.cart-item-meta .meta-label {
    font-weight: 600;
    color: #333;
    margin-right: 0.15rem;
}

.cart-item-meta .meta-value {
    font-size: 12px;
    color: #555;
}

/* Cart Actions (Quantity + Remove) */
.fiveds-cart-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Quantity Input */
.quantity-wrapper {
    display: inline-flex;
}

.quantity {
    display: inline-flex;
    align-items: center;
}

.quantity input.qty {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    padding: 0.25rem;
}

/* Remove Link */
.remove-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.remove-link:hover {
    color: #d32f2f;
    text-decoration: underline;
}

/* Product Subtotal */
.product-subtotal {
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Actions Row */
.shop_table.cart .actions {
    padding: 1.25rem 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.button-update {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button-update:hover {
    background-color: #0052a3;
}

/* Cart Collaterals (Totals Sidebar) */
.cart-collaterals {
    min-width: 350px;
}

/* Responsive */
@media (max-width: 991px) {
    .fiveds-cart-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-collaterals {
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    .product-thumbnail {
        width: 80px;
    }

    .product-thumbnail img {
        width: 80px;
    }

    .fiveds-product-info .product-title {
        font-size: 15px;
    }

    .product-unit-price {
        font-size: 13px;
    }

    .wc-item-meta li {
        font-size: 12px;
    }

    .fiveds-cart-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* Variation meta (dl.variation) - 2 column grid layout */
dl.variation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 0.5rem;
    margin: 0.5rem 0 0 0;
}

dl.variation dt,
dl.variation dd {
    font-size: 12px;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

dl.variation dt {
    font-weight: 600;
    color: #333;
    grid-column: 1;
}

dl.variation dd {
    color: #555;
    grid-column: 2;
}

dl.variation dd p {
    margin: 0;
    font-size: 12px;
}

.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals{
    float: none !important;
    width: 100% !important;
}

.woocommerce .container{
    padding: 0 !important;
}

.woocommerce-cart-form__cart-item .product-thumbnail{
    display: table-cell !important;
}