/* ========================================
   SINGLE PRODUCT PAGE - JEWELRY STYLE
======================================== */

.jewelry-single-product {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Main Product Container */
.jewelry-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* ========================================
   GALLERY SECTION (LEFT)
======================================== */

.jewelry-product-gallery-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.jewelry-product-gallery-section .woocommerce-product-gallery {
    opacity: 1 !important;
}

.jewelry-product-gallery-section .woocommerce-product-gallery__image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

.jewelry-product-gallery-section .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
}

.jewelry-product-gallery-section .flex-control-thumbs li {
    flex: 1;
    max-width: 100px;
}

.jewelry-product-gallery-section .flex-control-thumbs img {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
}

.jewelry-product-gallery-section .flex-control-thumbs img:hover,
.jewelry-product-gallery-section .flex-control-thumbs img.flex-active {
    border-color: #000;
}

/* ========================================
   INFO SECTION (RIGHT)
======================================== */

.jewelry-product-info-section {
    display: flex;
    flex-direction: column;
}

/* Product Title */
.jewelry-single-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

/* Price Section */
.jewelry-single-price {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-with-discount {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.original-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.sale-price,
.regular-price-only {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

.save-badge {
    background: #ff4444;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Short Description */
.jewelry-short-description {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
}

.jewelry-short-description p {
    margin-bottom: 12px;
}

/* Stock Info */
.jewelry-stock-info {
    margin: 10px 0;
}

.in-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #059669;
    font-weight: 500;
    font-size: 15px;
}

.in-stock svg {
    color: #059669;
}

.out-of-stock {
    color: #dc2626;
    font-weight: 500;
    font-size: 15px;
}

/* ========================================
   ADD TO CART SECTION
======================================== */

.jewelry-cart-section {
    padding: 25px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.jewelry-cart-section .cart {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.jewelry-cart-section .quantity {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.jewelry-cart-section .quantity input {
    width: 80px;
    text-align: center;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.jewelry-cart-section .quantity input:focus {
    outline: none;
}

.jewelry-cart-section button.single_add_to_cart_button {
    flex: 1;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jewelry-cart-section button.single_add_to_cart_button:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.jewelry-cart-section button.single_add_to_cart_button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   PRODUCT META
======================================== */

.jewelry-product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    font-size: 14px;
}

.jewelry-product-meta .meta-item {
    display: flex;
    gap: 10px;
}

.jewelry-product-meta .meta-label {
    font-weight: 600;
    color: #000;
    min-width: 90px;
}

.jewelry-product-meta .meta-value {
    color: #666;
}

.jewelry-product-meta .meta-value a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jewelry-product-meta .meta-value a:hover {
    color: #000;
}

/* ========================================
   PRODUCT TABS
======================================== */

.jewelry-product-tabs-wrapper {
    margin-top: 60px;
}

.woocommerce-tabs {
    border-top: 2px solid #e0e0e0;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #e0e0e0;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.woocommerce-page div.product div.images {
    width: 100%;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: #000;
    border-bottom-color: #000;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 40px 0;
}

.woocommerce-tabs h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ========================================
   RELATED PRODUCTS
======================================== */

.related.products {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.related.products h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

.related.products .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
    .jewelry-product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .jewelry-product-gallery-section {
        position: relative;
        top: 0;
    }
    
    .jewelry-single-title {
        font-size: 28px;
    }
    
    .sale-price,
    .regular-price-only {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .jewelry-single-product {
        padding: 20px 15px;
    }
    
    .jewelry-cart-section .cart {
        flex-direction: column;
    }
    
    .jewelry-cart-section .quantity input {
        width: 100%;
    }
    
    .jewelry-cart-section button.single_add_to_cart_button {
        width: 100%;
    }
    
    .woocommerce-tabs ul.tabs {
        gap: 20px;
        overflow-x: auto;
    }
    
    .woocommerce-tabs ul.tabs li a {
        white-space: nowrap;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .jewelry-single-title {
        font-size: 24px;
    }
    
    .sale-price,
    .regular-price-only {
        font-size: 24px;
    }
    
    .original-price {
        font-size: 16px;
    }
    
    .price-with-discount {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.woocommerce-tabs {
        border:none !important;
}

.woocommerce-tabs ul.tabs li.active a, .woocommerce-tabs ul.tabs li a:hover{
    border:none !important;
}

.woocommerce-product-gallery__wrapper
  .woocommerce-product-gallery__image:first-child img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Thumbnails (all images except first) */
.woocommerce-product-gallery__wrapper
  .woocommerce-product-gallery__image:not(:first-child) img{
    width: 100px !important;
    height: 100px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    margin-top: 22px !important;
    object-fit: cover !important;
}


.woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
    width:20% !important;
}

.woocommerce div.product p.stock {
        display: none;
}