/* SINGLE PRODUCT PAGE CSS */
/* Layout & Whitespace */
.single-product div.product {
    margin-bottom: 3em;
    padding: 2em;
    background: rgba(25, 25, 25, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}
@media (max-width: 768px) {
    .single-product div.product { padding: 1em; }
}
/* Gallery */
.single-product div.product .woocommerce-product-gallery {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
    border-color: var(--lujo-dorado);
}
/* Price */
.single-product div.product .summary p.price, .single-product div.product .summary span.price {
    font-size: 2rem !important;
    color: var(--lujo-dorado) !important;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/* Add to Cart Button */
.single-product div.product form.cart .button {
    background: linear-gradient(135deg, var(--lujo-dorado), var(--lujo-dorado-oscuro)) !important;
    color: #111 !important;
    font-size: 1.1rem !important;
    font-weight: bold;
    padding: 15px 30px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    width: auto;
}
@media (max-width: 768px) {
    .single-product div.product form.cart .button { width: 100%; margin-top: 10px; }
}
.single-product div.product form.cart .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212,175,55,0.4) !important;
}
/* Quantity Input */
.single-product div.product form.cart div.quantity {
    margin-right: 15px;
}
.single-product div.product form.cart div.quantity input.qty {
    background: rgba(0,0,0,0.5);
    color: var(--lujo-blanco);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    height: 50px;
    font-size: 1.1rem;
}
/* Tabs */
.woocommerce-tabs ul.tabs li {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 8px 8px 0 0 !important;
}
.woocommerce-tabs ul.tabs li.active {
    background: rgba(212,175,55,0.1) !important;
    border-bottom-color: transparent !important;
}
.woocommerce-tabs ul.tabs li a {
    color: var(--lujo-texto) !important;
}
.woocommerce-tabs ul.tabs li.active a {
    color: var(--lujo-dorado) !important;
    font-weight: bold;
}
/* Technical Specifications Table */
.woocommerce-Tabs-panel--description table, .woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}
.woocommerce-Tabs-panel--description table th, .woocommerce-Tabs-panel--description table td,
.woocommerce-product-attributes th, .woocommerce-product-attributes td {
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--lujo-texto);
}
.woocommerce-Tabs-panel--description table tr:nth-child(even), .woocommerce-product-attributes tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}
/* Related Products */
.related.products h2 {
    color: var(--lujo-dorado);
    font-size: 1.5rem;
    margin-bottom: 1.5em;
    text-transform: uppercase;
}
.related.products ul.products li.product {
    background: rgba(25, 25, 25, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.related.products ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Mobile Adjustments for Product Page Layout */
@media (max-width: 768px) {
    /* Related products prices size and wrapping constraints */
    .related.products ul.products li.product .price,
    .single-product div.product .related.products span.price,
    .single-product div.product .related.products span.price span,
    .single-product div.product .related.products span.price bdi {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }

    /* Product description lists alignment & spacing */
    .woocommerce-product-details__short-description ul,
    .woocommerce-product-details__short-description ol,
    .woocommerce-tabs .woocommerce-Tabs-panel ul,
    .woocommerce-tabs .woocommerce-Tabs-panel ol {
        margin-left: 1.5em !important;
        padding-left: 0 !important;
    }
    .woocommerce-product-details__short-description li,
    .woocommerce-tabs .woocommerce-Tabs-panel li {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* Clean styles for product technical specifications tables */
.woocommerce-Tabs-panel table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.woocommerce-Tabs-panel table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.woocommerce-Tabs-panel table tr:last-child {
    border-bottom: none !important;
}

.woocommerce-Tabs-panel table td {
    padding: 12px 15px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
    color: var(--lujo-texto) !important;
    width: auto !important;
}

.woocommerce-Tabs-panel table td strong,
.woocommerce-Tabs-panel table td span[style*="font-weight: bold"],
.woocommerce-Tabs-panel table td span[style*="font-weight: 700"] {
    color: var(--lujo-blanco) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    .woocommerce-Tabs-panel table td {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 8px 15px !important;
    }
    .woocommerce-Tabs-panel table td:first-child {
        padding-top: 12px !important;
        font-weight: bold !important;
        background: rgba(255, 255, 255, 0.01) !important;
    }
    .woocommerce-Tabs-panel table td:last-child {
        padding-bottom: 12px !important;
        border-bottom: none !important;
    }
}


