/* Jewelry Products - Custom Styles */

.jewelry-products-wrapper {
    width: 100%;
    padding: 40px 0;
}

.jewelry-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Product Card */
.jewelry-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.jewelry-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.jewelry-product-image {
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1;
}

.jewelry-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.jewelry-product-card:hover .jewelry-product-image img {
    transform: scale(1.1);
}

/* Badges */
.jewelry-sale-badge,
.jewelry-out-of-stock {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.jewelry-sale-badge {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5a0 100%);
    color: #1a1a1a;
}

.jewelry-out-of-stock {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* Product Overlay */
.jewelry-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    padding: 20px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.jewelry-product-card:hover .jewelry-product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.jewelry-quick-view,
.jewelry-add-to-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 13px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.jewelry-quick-view {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
}

.jewelry-quick-view:hover {
    background: #fff;
    color: #d4af37;
}

.jewelry-add-to-cart {
    background: linear-gradient(135deg, #d4af37 0%, #c19a2b 100%);
    color: #fff;
}

.jewelry-add-to-cart:hover {
    background: linear-gradient(135deg, #c19a2b 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.jewelry-add-to-cart:active {
    transform: translateY(0);
}

.jewelry-add-to-cart.adding {
    opacity: 0.7;
    pointer-events: none;
}

/* Product Info */
.jewelry-product-info {
    padding: 10px;
}

.jewelry-product-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.jewelry-product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jewelry-product-title a:hover {
    color: #d4af37;
}

/* Product Rating */
.jewelry-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.jewelry-product-rating .star-rating {
    font-size: 14px;
}

.jewelry-product-rating .star-rating span {
    color: #d4af37;
}

.jewelry-product-rating .rating-count {
    font-size: 13px;
    color: #666;
}

/* Product Price */
.jewelry-product-price {
    margin-top: 10px;
}

.jewelry-price-wrapper {
    display: flex;
    gap: 5px;
    align-items: center;
}

.jewelry-regular-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.jewelry-sale-price {
    font-size: 20px;
    font-weight: 700;
    color: #d4af37;
}

.jewelry-regular-price-only {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.jewelry-discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
}

/* Legacy price styles for compatibility */
.jewelry-product-price del {
    font-size: 14px;
    color: #999;
    margin-right: 8px;
    font-weight: 400;
}

.jewelry-product-price ins {
    text-decoration: none;
    color: #d4af37;
    font-size: 20px;
    font-weight: 700;
}

/* No Products Message */
.jewelry-no-products {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
}

/* Variation Swatches */
.jewelry-variations {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.jewelry-variation-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jewelry-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jewelry-variation-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 6px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
}

.jewelry-variation-swatch:hover {
    border-color: #d4af37;
    color: #d4af37;
    background: #fffbf0;
}

.jewelry-variation-swatch.selected {
    border-color: #d4af37;
    background: linear-gradient(135deg, #d4af37 0%, #c19a2b 100%);
    color: #fff;
}

.jewelry-variation-swatch.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Color swatches - if attribute name contains 'color' */
.jewelry-variation-swatches[data-attribute*="color"] .jewelry-variation-swatch,
.jewelry-variation-swatches[data-attribute*="colour"] .jewelry-variation-swatch {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.jewelry-variation-swatches[data-attribute*="color"] .jewelry-variation-swatch::after,
.jewelry-variation-swatches[data-attribute*="colour"] .jewelry-variation-swatch::after {
    content: attr(data-value);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.jewelry-variation-swatches[data-attribute*="color"] .jewelry-variation-swatch:hover::after,
.jewelry-variation-swatches[data-attribute*="colour"] .jewelry-variation-swatch:hover::after {
    opacity: 1;
    bottom: -30px;
}

/* Select Options Button Style */
.jewelry-select-options {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.jewelry-select-options:hover {
    background: linear-gradient(135deg, #357abd 0%, #4a90e2 100%);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .jewelry-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .jewelry-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .jewelry-product-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
    }
    
    .jewelry-quick-view,
    .jewelry-add-to-cart {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .jewelry-quick-view svg,
    .jewelry-add-to-cart svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .jewelry-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .jewelry-product-info {
        padding: 15px;
    }
    
    .jewelry-product-title {
        font-size: 14px;
    }
    
    .jewelry-product-price {
        font-size: 16px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.jewelry-add-to-cart.adding::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.jewelry-quick-view:focus,
.jewelry-add-to-cart:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .jewelry-product-overlay {
        display: none;
    }
}

.home-product-section .section-header{
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Shop Page Layout */
.woocommerce-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.jewelry-archive-container {
    width: 100%;
}

/* Page Header */
.jewelry-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.jewelry-archive-header .page-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.category-description {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Toolbar (Result Count + Sorting) */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.result-count-wrapper {
    font-size: 14px;
    color: #666;
}

.catalog-ordering-wrapper select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Products Grid */
.products-wrapper {
    margin-bottom: 50px;
}

.products-wrapper .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual Product Card */
.products-wrapper .product {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-wrapper .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.products-wrapper .product img {
    width: 100%;
    height: 100%;
    display: block;
}

.products-wrapper .product .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 500;
    margin: 15px;
    color: #000;
}

.products-wrapper .product .price {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0 15px 15px;
}

.products-wrapper .product .button {
    display: block;
    width: calc(100% - 30px);
    /* margin: 0 15px 15px; */
    padding: 12px;
    background: #000;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.products-wrapper .product .button:hover {
    background: #333;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 50px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.woocommerce-pagination li {
    display: inline-block;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
}

.woocommerce-pagination .current {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .shop-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .jewelry-archive-header .page-title {
        font-size: 28px;
    }
}

.woocommerce ul.products::before {
    display:none;
}
.jewelry-product-overlay .add_to_cart_button{
    background: linear-gradient(135deg, #d4af37 0%, #c19a2b 100%) !important;
    color: #fff !important;
    font-size: 13px !important;
    padding: 12px 16px !important
}

.woocommerce nav.woocommerce-pagination ul {
        display: inline-flex !important;
        border:none !important;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
    background: #ffffff !important;
    padding: 1em 0 1em !important;
    margin: 0px !important;
}


    