/* ============================================
   PRODUCT DETAIL PAGE IMPROVEMENTS
   ============================================ */

/* Product Page Quantity Selector with +/- Buttons */
.single-product .quantity {
    display: inline-flex !important;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0;
    overflow: hidden;
    margin-right: 15px;
}

.single-product .quantity input.qty {
    width: 60px !important;
    height: 44px;
    border: none !important;
    background: white !important;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    margin: 0 !important;
    padding: 0 10px !important;
    -moz-appearance: textfield;
}

.single-product .quantity input.qty::-webkit-outer-spin-button,
.single-product .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Product Tabs - Full Width Modern Design */
.woocommerce-tabs {
    margin-top: 60px !important;
    border-top: 2px solid #f0f0f0;
    padding-top: 40px;
    width: 100% !important;
    max-width: 100% !important;
    clear: both;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 3px solid #f0f0f0;
    margin-bottom: 30px !important;
    padding: 0 !important;
    list-style: none;
    width: 100%;
}

.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0;
    background: transparent !important;
    border: none !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 30px !important;
    font-weight: 600;
    font-size: 15px;
    color: #666 !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    background: transparent !important;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
    background: transparent !important;
}

.woocommerce-tabs .panel {
    padding: 30px 0;
    line-height: 1.8;
    font-size: 15px;
    width: 100% !important;
    max-width: 100% !important;
}

.woocommerce-tabs .panel h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.woocommerce-tabs .panel p {
    margin-bottom: 15px;
    color: #555;
}

/* Product Description Styling */
.woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 20px 0 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

/* Related Products - Carousel at Bottom */
.related.products {
    margin-top: 80px !important;
    padding: 60px 0;
    border-top: 2px solid #f0f0f0;
    clear: both;
    width: 100% !important;
    background: #fafafa;
}

.related.products h2 {
    font-size: 32px !important;
    margin-bottom: 40px !important;
    text-align: center;
    color: #222;
    font-weight: 700;
}

.related.products ul.products {
    display: flex !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    list-style: none !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e0e0e0;
}

/* Custom Scrollbar for Related Products */
.related.products ul.products::-webkit-scrollbar {
    height: 8px;
}

.related.products ul.products::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.related.products ul.products::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.related.products ul.products::-webkit-scrollbar-thumb:hover {
    background: #e65100;
}

.related.products .product {
    min-width: 280px !important;
    max-width: 280px !important;
    margin: 0 !important;
    padding: 20px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.related.products .product:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.related.products .product img {
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    height: auto;
}

.related.products .product .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.related.products .product .price {
    font-size: 18px !important;
    font-weight: 700;
    color: var(--primary);
}

/* Add scroll hint for carousel */
.related.products::after {
    content: '→ Scroll to see more';
    display: block;
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 15px;
    font-style: italic;
}

/* Product Meta (SKU, Category, Tags) */
.product_meta {
    margin-top: 30px !important;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #777;
}

.product_meta span {
    display: block;
    margin-bottom: 8px;
}

.product_meta a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.product_meta a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .woocommerce-tabs {
        margin-top: 40px !important;
    }

    .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }

    .woocommerce-tabs ul.tabs li a {
        padding: 12px 20px !important;
        font-size: 14px;
    }

    .related.products {
        padding: 40px 0;
        margin-top: 50px !important;
    }

    .related.products h2 {
        font-size: 24px !important;
        margin-bottom: 25px !important;
    }

    .related.products .product {
        min-width: 220px !important;
        max-width: 220px !important;
    }
}