/* =========================
   GRIPIX CART - FLATSOME STYLE
========================= */

body.woocommerce-cart {
    background: #0b0b0b !important;
    color: #fff !important;
}

/* PAGE LAYOUT */
.gripix-cart-page {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.gripix-cart-row {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

/* ===========================
   TABLE RESET
=========================== */
.woocommerce-cart table.shop_table {
    border: none !important;
    border-collapse: collapse !important;
    background: transparent !important;
    width: 100% !important;
}

/* THEAD */
.woocommerce-cart table.shop_table thead tr {
    background: transparent !important;
    border-bottom: 1px solid rgba(212,175,55,0.2) !important;
}

.woocommerce-cart table.shop_table thead th {
    color: #d4af37 !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 0 0 14px 0 !important;
    background: transparent !important;
    border: none !important;
    font-weight: 600 !important;
}

.woocommerce-cart table.shop_table thead th.product-name { text-align: left !important; }
.woocommerce-cart table.shop_table thead th.product-price,
.woocommerce-cart table.shop_table thead th.product-quantity,
.woocommerce-cart table.shop_table thead th.product-subtotal { text-align: center !important; }

/* TBODY ROWS */
.woocommerce-cart table.shop_table tbody tr.woocommerce-cart-form__cart-item {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.woocommerce-cart table.shop_table tbody tr.woocommerce-cart-form__cart-item td {
    padding: 24px 8px !important;
    background: transparent !important;
    border: none !important;
    vertical-align: middle !important;
}

/* REMOVE */
.woocommerce-cart td.product-remove a {
    color: rgba(255,255,255,0.3) !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: block !important;
    text-align: center !important;
}

.woocommerce-cart td.product-remove a:hover { color: #d4af37 !important; }

/* THUMBNAIL */
.woocommerce-cart td.product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}

/* PRODUCT NAME */
.woocommerce-cart td.product-name a {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.woocommerce-cart td.product-name a:hover { color: #d4af37 !important; }

/* VARIATION DATA */
.woocommerce-cart td.product-name dl.variation {
    margin: 8px 0 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px 12px !important;
}

.woocommerce-cart td.product-name dl.variation dt {
    color: rgba(255,255,255,0.4) !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
}

.woocommerce-cart td.product-name dl.variation dd { margin: 0 !important; }

.woocommerce-cart td.product-name dl.variation dd p {
    color: #fff !important;
    font-size: 13px !important;
    margin: 0 !important;
}

/* MOBILE PRICE — hidden on desktop */
.mobile-product-price { display: none !important; }

/* PRICE */
.woocommerce-cart td.product-price { text-align: center !important; }
.woocommerce-cart td.product-price .woocommerce-Price-amount {
    color: #d4af37 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* QUANTITY */
.woocommerce-cart td.product-quantity { text-align: center !important; }
.woocommerce-cart td.product-quantity .quantity input.qty {
    background: #1a1a1a !important;
    border: 1px solid rgba(212,175,55,0.3) !important;
    color: #fff !important;
    width: 65px !important;
    height: 42px !important;
    border-radius: 10px !important;
    text-align: center !important;
    font-size: 15px !important;
    box-shadow: none !important;
}

/* SUBTOTAL */
.woocommerce-cart td.product-subtotal { text-align: center !important; }
.woocommerce-cart td.product-subtotal .woocommerce-Price-amount {
    color: #d4af37 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* ACTIONS ROW */
.woocommerce-cart table.shop_table tbody tr td.actions {
    border: none !important;
    background: transparent !important;
    padding: 16px 0 0 !important;
}

/* ===========================
   SIDEBAR / TOTALS
=========================== */
.gripix-col-sidebar .cart_totals {
    background: #1a1a1a !important;
    border: 1px solid rgba(212,175,55,0.15) !important;
    border-radius: 20px !important;
    padding: 28px !important;
}

.gripix-col-sidebar .cart_totals h2 {
    color: #d4af37 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 20px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(212,175,55,0.15) !important;
    font-family: 'Poppins', sans-serif !important;
}

.gripix-col-sidebar .cart_totals table {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
}

.gripix-col-sidebar .cart_totals th,
.gripix-col-sidebar .cart_totals td {
    color: #fff !important;
    border: none !important;
    padding: 10px 0 !important;
    background: transparent !important;
}

.gripix-col-sidebar .cart_totals .order-total th,
.gripix-col-sidebar .cart_totals .order-total td {
    color: #d4af37 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    border-top: 1px solid rgba(212,175,55,0.15) !important;
    padding-top: 16px !important;
}

/* CHECKOUT BUTTON */
.gripix-col-sidebar .wc-proceed-to-checkout a {
    background: linear-gradient(135deg, #d4af37, #f4d03f) !important;
    color: #000 !important;
    border-radius: 50px !important;
    padding: 16px 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 16px !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gripix-col-sidebar .wc-proceed-to-checkout a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(212,175,55,0.5) !important;
}

/* STRIPE EXPRESS */
#wc-stripe-express-checkout-element { margin-top: 16px !important; }

/* NOTICES */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
    background: #1a1a1a !important;
    border-top-color: #d4af37 !important;
    color: #fff !important;
    border-radius: 12px !important;
    margin-bottom: 24px !important;
}

/* ===========================
   MOBILE
=========================== */
@media (max-width: 768px) {
    .gripix-cart-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gripix-cart-page {
        margin: 20px auto;
        padding: 0 12px;
    }

    /* Hide desktop columns on mobile */
    .woocommerce-cart table.shop_table thead { display: none !important; }

    .woocommerce-cart table.shop_table tbody tr.woocommerce-cart-form__cart-item {
        display: block !important;
        background: #1a1a1a !important;
        border: 1px solid rgba(212,175,55,0.15) !important;
        border-radius: 16px !important;
        padding: 16px !important;
        margin-bottom: 16px !important;
        position: relative !important;
    }

    .woocommerce-cart table.shop_table tbody tr.woocommerce-cart-form__cart-item td {
        display: block !important;
        padding: 0 !important;
        text-align: left !important;
        border: none !important;
    }

    .woocommerce-cart td.product-remove {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
    }

    .woocommerce-cart td.product-thumbnail {
        display: none !important;
    }

    .woocommerce-cart td.product-name {
        padding-right: 30px !important;
        margin-bottom: 12px !important;
    }

    .woocommerce-cart td.product-name dl.variation {
        grid-template-columns: 1fr !important;
    }

    /* Show mobile price */
    .mobile-product-price {
        display: block !important;
        color: #aaa !important;
        font-size: 13px !important;
        margin-top: 8px !important;
    }

    .mobile-product-price .woocommerce-Price-amount { color: #d4af37 !important; }

    /* Hide desktop-only columns */
    .woocommerce-cart td.product-price,
    .woocommerce-cart td.product-quantity,
    .woocommerce-cart td.product-subtotal {
        display: inline-block !important;
        padding: 0 12px 0 0 !important;
        text-align: left !important;
    }

    .woocommerce-cart td.product-quantity .quantity input.qty {
        width: 55px !important;
        height: 38px !important;
    }

    .woocommerce-cart td.product-price .woocommerce-Price-amount,
    .woocommerce-cart td.product-subtotal .woocommerce-Price-amount {
        font-size: 15px !important;
    }

    .woocommerce-cart table.shop_table tbody tr td.actions {
        display: block !important;
    }
}





/* === CHECKOUT === */
.woocommerce-checkout {
    background: #0b0b0b !important;
}

.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-form-coupon-toggle .woocommerce-info {
    background: #1a1a1a !important;
    border-top-color: #d4af37 !important;
    color: #fff !important;
    border-radius: 12px !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle a {
    color: #d4af37 !important;
}

.woocommerce-checkout .form-row label {
    color: #aaa !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    background: #1a1a1a !important;
    border: 1px solid rgba(212,175,55,0.2) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #d4af37 !important;
    outline: none !important;
}

.woocommerce-checkout select option {
    background: #1a1a1a !important;
    color: #fff !important;
}

.woocommerce-checkout h3 {
    color: #d4af37 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(212,175,55,0.2) !important;
    margin-bottom: 20px !important;
}

.woocommerce-checkout #payment {
    background: #1a1a1a !important;
    border-radius: 16px !important;
    border: 1px solid rgba(212,175,55,0.2) !important;
    padding: 24px !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    color: #fff !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #111 !important;
    color: #aaa !important;
    border-radius: 8px !important;
}

.woocommerce-checkout #payment #place_order {
    background: linear-gradient(135deg, #d4af37, #f4d03f) !important;
    color: #000 !important;
    font-weight: 800 !important;
    border-radius: 50px !important;
    padding: 18px 40px !important;
    font-size: 18px !important;
    width: 100% !important;
    border: none !important;
    margin-top: 16px !important;
    transition: all 0.3s ease !important;
}

.woocommerce-checkout #payment #place_order:hover {
    box-shadow: 0 8px 30px rgba(212,175,55,0.6) !important;
    transform: translateY(-2px) !important;
}

.woocommerce-checkout #order_review table {
    background: transparent !important;
    border: none !important;
}

.woocommerce-checkout #order_review table th,
.woocommerce-checkout #order_review table td {
    color: #fff !important;
    background: transparent !important;
    border-color: rgba(255,255,255,0.06) !important;
    padding: 10px 0 !important;
}

.woocommerce-checkout #order_review .order-total th,
.woocommerce-checkout #order_review .order-total td {
    color: #d4af37 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .woocommerce-checkout #payment #place_order {
        font-size: 16px !important;
        padding: 16px !important;
    }
}