/* 
 * Jazzinator Product Page Dark Theme
 * Applies modern dark theme to WooCommerce product pages
 */

/* Base dark theme */
body.single-product,
body.woocommerce-page {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    color: #ffffff;
}

/* Shop page title */
.woocommerce-page .entry-header .entry-title,
.woocommerce .page-title,
.woocommerce-page .page-title,
.archive.woocommerce .page-title {
    color: #ffffff !important;
}

.woocommerce div.product,
.single-product .woocommerce div.product,
body.single-product div.product,
.woocommerce-page div.product {
    background: rgba(15, 15, 35, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
}

/* Product title */
.woocommerce div.product .product_title {
    color: #ffffff !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1.5rem 0;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none;
}

/* Product description */
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .product_meta {
    color: #a0a0b8;
    line-height: 1.8;
}

/* Add to cart button and all CTA buttons */
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt,
.woocommerce a.button,
.woocommerce a.button.alt,
.woocommerce button.button,
.woocommerce button.button.alt,
.woocommerce input.button,
.woocommerce input.button.alt,
.woocommerce .product .button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
    text-transform: none !important;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4) !important;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    margin: 0 1rem 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #a0a0b8;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.woocommerce div.product .woocommerce-tabs .panel {
    color: #a0a0b8;
    padding: 2rem 0;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    color: #ffffff !important;
    margin-bottom: 1rem;
}

/* Hide "Description" heading */
.woocommerce div.product .woocommerce-tabs .panel#tab-description h2,
.woocommerce div.product #tab-description h2 {
    display: none;
}

/* Product images */
.woocommerce div.product div.images {
    border-radius: 15px;
    overflow: hidden;
}

.woocommerce div.product div.images img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Product meta */
.woocommerce div.product .product_meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.woocommerce div.product .product_meta a {
    color: #667eea;
    transition: all 0.3s ease;
}

.woocommerce div.product .product_meta a:hover {
    color: #764ba2;
}

/* Quantity input */
.woocommerce div.product form.cart div.quantity {
    margin-right: 1rem;
}

.woocommerce div.product form.cart div.quantity input.qty {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.75rem;
}

/* Related products */
.woocommerce .related.products {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
}

.woocommerce .related.products h2 {
    color: #ffffff !important;
}

.woocommerce .related.products .product {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.woocommerce .related.products .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #ffffff;
}

.woocommerce ul.products li.product .price {
    color: #667eea;
}

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
    color: #a0a0b8;
    margin-bottom: 2rem;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce div.product {
        padding: 1.5rem;
    }

    .woocommerce div.product .product_title {
        font-size: 2rem;
    }

    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: 2rem;
    }
}

/* ========================================
   CART PAGE DARK THEME
   ======================================== */

/* Cart table */
.woocommerce-cart table.cart {
    background: rgba(15, 15, 35, 0.6) !important;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-cart table.cart thead {
    background: rgba(102, 126, 234, 0.1);
}

.woocommerce-cart table.cart th {
    color: #ffffff !important;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3) !important;
    padding: 1.5rem 1rem !important;
}

.woocommerce-cart table.cart td {
    color: #a0a0b8 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.5rem 1rem !important;
}

.woocommerce-cart table.cart .product-name a {
    color: #ffffff !important;
    font-weight: 600;
}

.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
    color: #667eea !important;
    font-weight: 700;
}

/* Cart totals */
.cart-collaterals .cart_totals {
    background: rgba(15, 15, 35, 0.6) !important;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.cart-collaterals .cart_totals h2 {
    color: #ffffff !important;
    margin-bottom: 1.5rem;
}

.cart-collaterals .cart_totals table {
    background: transparent !important;
    border: none !important;
}

.cart-collaterals .cart_totals th,
.cart-collaterals .cart_totals td {
    color: #a0a0b8 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1rem !important;
}

.cart-collaterals .cart_totals .order-total th,
.cart-collaterals .cart_totals .order-total td {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
}

.cart-collaterals .cart_totals .order-total .amount {
    color: #667eea !important;
}

/* Cart buttons */
.woocommerce-cart .wc-proceed-to-checkout .button,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1.2rem 3rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
    text-transform: none !important;
}

.woocommerce-cart .wc-proceed-to-checkout .button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4) !important;
}

/* Update cart button */
.woocommerce-cart table.cart input[type="submit"] {
    background: rgba(102, 126, 234, 0.2) !important;
    color: #667eea !important;
    border: 1px solid #667eea !important;
    padding: 0.8rem 2rem !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
}

.woocommerce-cart table.cart input[type="submit"]:hover {
    background: rgba(102, 126, 234, 0.3) !important;
}

/* Quantity inputs */
.woocommerce-cart .quantity input.qty {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 0.5rem;
}

/* Remove button */
.woocommerce-cart table.cart a.remove {
    background: rgba(255, 76, 76, 0.2) !important;
    color: #ff4c4c !important;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 26px !important;
    text-align: center;
}

.woocommerce-cart table.cart a.remove:hover {
    background: rgba(255, 76, 76, 0.4) !important;
}

/* Empty cart message */
.woocommerce-info,
.woocommerce-message {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #ffffff !important;
    border-top: 3px solid #667eea !important;
    border-radius: 10px;
}

.woocommerce-info::before,
.woocommerce-message::before {
    color: #667eea !important;
}

/* Cart page title */
.woocommerce-cart .entry-header .entry-title {
    color: #ffffff !important;
}

/* Force white text on all cart elements */
.woocommerce-cart,
.woocommerce-cart * {
    color: inherit;
}

.woocommerce-cart h1,
.woocommerce-cart h2,
.woocommerce-cart h3,
.woocommerce-cart .woocommerce-page-title,
.woocommerce-cart .product-name,
.woocommerce-cart label {
    color: #ffffff !important;
}

/* Force all buttons to have purple gradient - EXCEPT menu toggle */
.woocommerce-cart button:not(.menu-toggle),
.woocommerce-cart .button:not(.menu-toggle),
.woocommerce-cart input[type="submit"],
.woocommerce-cart a.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
}

.woocommerce-cart button:not(.menu-toggle):hover,
.woocommerce-cart .button:not(.menu-toggle):hover,
.woocommerce-cart input[type="submit"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4) !important;
}

/* ========================================
   SHOP PAGE DARK THEME
   ======================================== */

/* Shop product grid */
body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: rgba(15, 15, 35, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px;
    padding: 1.5rem !important;
    transition: all 0.3s ease;
}

body.woocommerce-shop ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover,
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2) !important;
}

/* Product titles in shop */
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    color: #ffffff !important;
    font-weight: 600;
}

/* Product prices in shop */
body.woocommerce-shop ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount {
    color: #667eea !important;
    font-weight: 700;
    font-size: 1.5rem !important;
}

/* Read more buttons */
body.woocommerce-shop ul.products li.product .button,
body.post-type-archive-product ul.products li.product .button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product .button,
.woocommerce-page ul.products li.product a.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.8rem 2rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
    text-transform: none !important;
    width: 100%;
    margin-top: 1rem;
    display: inline-block !important;
}

body.woocommerce-shop ul.products li.product .button:hover,
body.post-type-archive-product ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

/* Product images in shop */
body.woocommerce-shop ul.products li.product img,
body.post-type-archive-product ul.products li.product img,
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
    border-radius: 10px;
    margin-bottom: 1rem;
}