/* Premium Single Product Overrides for WooCommerce */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

.single-product div.product {
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 13px !important;
    color: #9CA3AF !important;
    margin-bottom: 20px !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.woocommerce-breadcrumb a {
    color: #6B7280 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.woocommerce-breadcrumb a:hover {
    color: #C5A880 !important;
}

/* Brand Prefix above title */
.fm-product-brand-prefix {
    display: block !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #C5A880 !important; /* Champagne Gold */
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

/* Product Title */
.single-product div.product .product_title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 38px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
    color: #111827 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

/* Premium Typographic Price for Single Product Page */
.single-product .wp-block-woocommerce-product-price,
.single-product .wc-block-components-product-price,
.single-product div.product p.price,
.single-product div.product span.price {
    font-family: 'Outfit', sans-serif !important;
    font-size: 30px !important;
    font-weight: 600 !important;
    color: #111827 !important; /* Elegant Charcoal */
    margin: 12px 0 24px 0 !important;
    display: block !important;
    text-align: left !important;
    letter-spacing: -0.02em !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.single-product .wp-block-woocommerce-product-price del,
.single-product .wc-block-components-product-price del,
.single-product div.product p.price del,
.single-product div.product span.price del {
    color: #9CA3AF !important;
    font-size: 0.7em !important;
    font-weight: 400 !important;
    margin-right: 8px !important;
    text-decoration: line-through !important;
}

.single-product .wp-block-woocommerce-product-price ins,
.single-product .wc-block-components-product-price ins,
.single-product div.product p.price ins,
.single-product div.product span.price ins {
    text-decoration: none !important;
    color: #111827 !important;
}

/* Enable Quantity Selector on Single Product Page */
.single-product div.product form.cart .quantity,
.single-product div.product form.cart .fm-qty-container {
    display: inline-flex !important;
}

/* Hide Stock Status on Single Product Page */
.single-product div.product .stock {
    display: none !important;
}

.single-product div.product .stock::before {
    content: "✓" !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.single-product div.product .stock.out-of-stock {
    color: #DC2626 !important; /* Red */
}

.single-product div.product .stock.out-of-stock::before {
    content: "✕" !important;
}

/* Excerpt/Short Description spacing */
.woocommerce-product-details__short-description {
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #4B5563 !important;
    margin-bottom: 24px !important;
}

/* Gallery Wrapper */
.single-product div.product .woocommerce-product-gallery__wrapper {
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.single-product div.product .woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}

/* Cart Form and Action Block */
.single-product div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 30px !important;
    margin-top: 15px !important;
    flex-wrap: wrap !important; /* Allow items (like the GDPR message) to wrap below buttons */
}

/* Custom Unified Quantity Box styling */
.fm-qty-container {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 48px !important;
    background: #ffffff !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    width: 120px !important; /* Ensure the quantity buttons/input do not get squished */
}

/* GDPR Consent/Cart Tracking message placement styling */
#wcal_gdpr_message_block {
    width: 100% !important;
    flex-basis: 100% !important;
    margin-top: 12px !important;
    line-height: 1.6 !important;
}

#wcal_gdpr_message_block p {
    margin: 0 !important;
}

#wcal_gdpr_message_block small {
    font-size: 13px !important;
    color: #4B5563 !important;
}

#wcal_gdpr_message_block a {
    color: #C5A880 !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

#wcal_gdpr_message_block a:hover {
    color: #111827 !important;
}


.fm-qty-container input.qty,
.fm-qty-container input[name="quantity"],
.fm-qty-container input[type="number"],
.fm-qty-container input {
    width: 48px !important;
    height: 100% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
    box-sizing: border-box !important;
}

.fm-qty-container input::-webkit-outer-spin-button,
.fm-qty-container input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.fm-qty-btn {
    width: 36px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    font-size: 18px !important;
    color: #6B7280 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s !important;
    outline: none !important;
    padding: 0 !important;
}

.fm-qty-btn:hover {
    background-color: #F3F4F6 !important;
    color: #111827 !important;
}

/* Gold checkout button */
.single-product div.product form.cart button.single_add_to_cart_button {
    height: 48px !important;
    background: #C5A880 !important; /* Gold */
    border: 2px solid #C5A880 !important;
    color: #ffffff !important;
    padding: 0 35px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.15) !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.single-product div.product form.cart button.single_add_to_cart_button:hover {
    background-color: #111827 !important; /* Dark Charcoal */
    border-color: #111827 !important;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.15) !important;
    transform: translateY(-1px);
}

/* AJAX state: Loading */
.single-product div.product form.cart button.single_add_to_cart_button.loading {
    color: transparent !important;
    pointer-events: none !important;
}

.single-product div.product form.cart button.single_add_to_cart_button.loading::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin-left: -10px !important;
    margin-top: -10px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    animation: fm-btn-spin 0.6s linear infinite !important;
    display: block !important;
}

/* AJAX state: Added success */
.single-product div.product form.cart button.single_add_to_cart_button.added {
    background-color: #16A34A !important; /* Success Green */
    border-color: #16A34A !important;
    color: transparent !important; /* Hide original text */
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
    pointer-events: none !important;
}

.single-product div.product form.cart button.single_add_to_cart_button.added::after {
    content: "✓ Added to Cart" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

/* Hide Wishlist elements completely */
.single-product div.product .tinv-wraper,
.single-product div.product .tinvwl-after-add-to-cart,
.single-product div.product .tinvwl_add_to_wishlist_button,
.single-product div.product .add_to_wishlist,
.tinv-wraper,
.tinvwl-after-add-to-cart {
    display: none !important;
}

/* Trust Badges Panel */
.fm-trust-badges {
    display: flex !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin: 25px 0 !important;
    padding: 16px !important;
    background: #F9FAFB !important;
    border: 1px solid #F3F4F6 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

.fm-badge-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
}

.fm-badge-icon {
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.fm-badge-text {
    display: flex !important;
    flex-direction: column !important;
}

.fm-badge-text strong {
    font-family: 'Outfit', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

.fm-badge-text span {
    font-family: 'Outfit', sans-serif !important;
    font-size: 10px !important;
    color: #6B7280 !important;
    margin-top: 1px !important;
}

/* Vertical Tab Accordions */
.woocommerce-tabs {
    margin-top: 45px !important;
    border-top: 1px solid #E5E7EB !important;
    padding-top: 20px !important;
    grid-column: 1 / -1 !important;
}

.fm-accordion-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #E5E7EB !important;
    cursor: pointer !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    transition: color 0.2s ease !important;
    user-select: none !important;
}

.fm-accordion-header:hover {
    color: #C5A880 !important;
}

.fm-accordion-header.active {
    border-bottom-color: transparent !important;
    color: #C5A880 !important;
}

.fm-accordion-icon {
    position: relative !important;
    width: 12px !important;
    height: 12px !important;
    color: #9CA3AF !important;
}

.fm-accordion-header:hover .fm-accordion-icon,
.fm-accordion-header.active .fm-accordion-icon {
    color: #C5A880 !important;
}

.fm-accordion-icon::before,
.fm-accordion-icon::after {
    content: "" !important;
    position: absolute !important;
    background-color: currentColor !important;
    transition: transform 0.25s ease-out !important;
}

/* Horizontal line of plus sign */
.fm-accordion-icon::before {
    top: 5px !important;
    left: 0 !important;
    width: 12px !important;
    height: 2px !important;
}

/* Vertical line of plus sign */
.fm-accordion-icon::after {
    top: 0 !important;
    left: 5px !important;
    width: 2px !important;
    height: 12px !important;
}

.fm-accordion-header.active .fm-accordion-icon::after {
    transform: rotate(90deg) scaleY(0) !important; /* Turns plus into minus */
}

.woocommerce-Tabs-panel {
    padding: 8px 0 24px 0 !important;
    border-bottom: 1px solid #E5E7EB !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #4B5563 !important;
    animation: fmSlideDown 0.2s ease-out forwards !important;
}

@keyframes fmSlideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Beautiful Fragrance Profile Box inside Description */
.fragrance-profile {
    margin-top: 25px !important;
    padding: 24px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #E5E7EB !important;
    border-left: 5px solid #C5A880 !important; /* Gold bar */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04) !important;
}

.fragrance-profile h4 {
    margin: 0 0 16px 0 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    border-bottom: 1px solid #F3F4F6 !important;
    padding-bottom: 10px !important;
    letter-spacing: -0.01em !important;
}

.fragrance-profile ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.fragrance-profile li {
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #4B5563 !important;
    display: flex !important;
    align-items: flex-start !important;
}

.fragrance-profile li strong {
    color: #111827 !important;
    font-weight: 600 !important;
    display: inline-block !important;
    width: 110px !important;
    flex-shrink: 0 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Product Meta List (SKU, Category, Tags - Inline & Minimal) */
.wc-block-components-product-sku,
.taxonomy-product_cat.wp-block-post-terms,
.taxonomy-product_tag.wp-block-post-terms {
    display: inline-flex !important;
    vertical-align: middle !important;
    align-items: center !important;
    border-top: 1px solid #E5E7EB !important;
    padding-top: 16px !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 13px !important;
    color: #6B7280 !important;
    letter-spacing: 0.02em !important;
    box-sizing: border-box !important;
}

.wc-block-components-product-sku {
    padding-right: 16px !important;
    margin-right: 0 !important;
}

.taxonomy-product_cat.wp-block-post-terms,
.taxonomy-product_tag.wp-block-post-terms {
    padding-left: 16px !important;
    margin-left: 0 !important;
    border-left: 1px solid #E5E7EB !important;
}

.wp-block-post-terms__prefix {
    margin-right: 6px !important;
    font-weight: 500 !important;
    color: #9CA3AF !important;
    display: inline-block !important;
}

.wc-block-components-product-sku .sku {
    color: #4B5563 !important;
    font-weight: 600 !important;
    display: inline-block !important;
}

.taxonomy-product_cat.wp-block-post-terms a,
.taxonomy-product_tag.wp-block-post-terms a {
    color: #111827 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-block !important;
    transition: color 0.2s ease !important;
    border-bottom: none !important;
}

.taxonomy-product_cat.wp-block-post-terms a:hover,
.taxonomy-product_tag.wp-block-post-terms a:hover {
    color: #C5A880 !important;
    text-decoration: none !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .single-product div.product {
        padding: 0 16px !important;
        margin-top: 20px !important;
    }
    
    .single-product div.product .product_title {
        font-size: 28px !important;
        margin-top: 15px !important;
    }
    
    .single-product div.product form.cart {
        flex-wrap: wrap !important;
    }
    
    .fm-trust-badges {
        flex-direction: column !important;
        gap: 12px !important;
    }
}

/* ---------------------------------------------------- */
/* Related Products Premium Overrides */
/* ---------------------------------------------------- */
.related.products,
.up-sells.products,
.wp-block-woocommerce-related-products {
    margin-top: 60px !important;
    padding-top: 40px !important;
    border-top: 1px solid #E5E7EB !important;
    width: 100% !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.related.products h2,
.up-sells.products h2,
.wp-block-woocommerce-related-products h2,
.related.products .wc-block-products-heading,
.wp-block-woocommerce-related-products .wc-block-products-heading {
    font-family: 'Playfair Display', serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 28px !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
}

/* Force Grid layout for Related Products list container & Equal Height Grid */
.related.products ul.products,
.up-sells.products ul.products,
.related.products ul.wp-block-woocommerce-product-template,
.up-sells.products ul.wp-block-woocommerce-product-template,
.wp-block-woocommerce-related-products ul.wp-block-woocommerce-product-template,
.wp-block-woocommerce-related-products ul.wc-block-product-template,
.wc-block-grid__products,
.wc-block-product-template {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Premium Card Design for Related Products */
.related.products ul.products li.product,
.up-sells.products ul.products li.product,
.related.products ul.wp-block-woocommerce-product-template li.wc-block-product,
.up-sells.products ul.wp-block-woocommerce-product-template li.wc-block-product,
.wp-block-woocommerce-related-products ul.wp-block-woocommerce-product-template li.wc-block-product,
.wp-block-woocommerce-related-products ul.wc-block-product-template li.wc-block-product,
.wc-block-grid__products li.wc-block-grid__product,
.wc-block-product-template li.wc-block-product,
.wc-block-product-template li.product,
.wp-block-woocommerce-related-products li.product {
    background: #ffffff !important;
    border: 1px solid #EDF2F7 !important;
    border-radius: 16px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important; /* Forces items to distribute, aligning buttons at the bottom */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01), 0 2px 4px rgba(0, 0, 0, 0.005) !important;
    height: 100% !important; /* Make card fill the grid item height */
}

/* Premium Hover State */
.related.products ul.products li.product:hover,
.up-sells.products ul.products li.product:hover,
.related.products ul.wp-block-woocommerce-product-template li.wc-block-product:hover,
.up-sells.products ul.wp-block-woocommerce-product-template li.wc-block-product:hover,
.wp-block-woocommerce-related-products ul.wp-block-woocommerce-product-template li.wc-block-product:hover,
.wp-block-woocommerce-related-products ul.wc-block-product-template li.wc-block-product:hover,
.wc-block-grid__products li.wc-block-grid__product:hover,
.wc-block-product-template li.wc-block-product:hover,
.wc-block-product-template li.product:hover,
.wp-block-woocommerce-related-products li.product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 30px rgba(197, 168, 128, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    border-color: #C5A880 !important; /* Gold hover border */
}

/* Related Product Image Container (Locked square aspect ratio) */
.related.products li.product .wc-block-components-product-image,
.related.products li.product .wc-block-grid__product-image,
.wp-block-woocommerce-related-products li.wc-block-product .wc-block-components-product-image,
.wp-block-woocommerce-related-products li.wc-block-product .wc-block-grid__product-image,
.related.products ul.products li.product a,
.up-sells.products ul.products li.product a,
.wc-block-grid__product-link,
.woocommerce-loop-product__link {
    background: #F9FAFB !important; /* Light grey backdrop */
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important; /* Force exact square aspect ratio */
    margin-bottom: 14px !important;
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Image Element inside Container */
.related.products li.product img,
.up-sells.products li.product img,
.wp-block-woocommerce-related-products li img,
.wc-block-grid__product img,
.wc-block-components-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Contain the bottle image without cropping */
    background: transparent !important;
    padding: 10px !important; /* Add space around product bottle */
    margin: 0 !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: block !important;
}

.related.products li.product:hover img,
.up-sells.products li.product:hover img,
.wp-block-woocommerce-related-products li:hover img,
.wc-block-grid__product:hover img {
    transform: scale(1.04) !important; /* Soft scale-up of perfume bottle on hover */
}

/* Product Titles (Uniform line clamp & Outfit font) */
.related.products li.product .wp-block-post-title,
.related.products li.product .woocommerce-loop-product__title,
.up-sells.products li.product .woocommerce-loop-product__title,
.wp-block-woocommerce-related-products li.wc-block-product .wp-block-post-title,
.wp-block-woocommerce-related-products li.wc-block-product .woocommerce-loop-product__title,
.wc-block-components-product-title,
.wc-block-grid__product-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.4 !important;
    height: 38px !important; /* Restricts title box to exactly 2 lines */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin: 0 0 10px 0 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.01em !important;
}

.related.products li.product .wp-block-post-title a,
.related.products li.product .woocommerce-loop-product__title a,
.wp-block-woocommerce-related-products li.wc-block-product .wp-block-post-title a,
.wc-block-components-product-title a {
    color: #111827 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.related.products li.product:hover .woocommerce-loop-product__title a,
.wc-block-components-product-title a:hover {
    color: #C5A880 !important;
}

/* Product Price Section */
.related.products li.product .wp-block-woocommerce-product-price,
.related.products li.product .wc-block-components-product-price,
.related.products li.product .price,
.up-sells.products li.product .price,
.wp-block-woocommerce-related-products li.wc-block-product .wp-block-woocommerce-product-price,
.wp-block-woocommerce-related-products li.wc-block-product .wc-block-components-product-price,
.wc-block-grid__product-price,
.wc-block-components-product-price {
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 14px !important;
    margin-top: auto !important; /* Pushes price above the button but aligned */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.related.products li.product .price ins,
.up-sells.products li.product .price ins,
.wc-block-components-product-price ins,
.wc-block-components-product-price__value {
    color: #111827 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.related.products li.product .price del,
.up-sells.products li.product .price del,
.wc-block-components-product-price del,
.wc-block-components-product-price__regular {
    color: #9CA3AF !important;
    font-size: 0.85em !important;
    font-weight: 400 !important;
    margin-right: 6px !important;
    text-decoration: line-through !important;
}

/* Reset Add to Cart Button Wrapper Containers (Make them transparent) */
.related.products li.product .wp-block-woocommerce-product-button,
.related.products li.product .wc-block-components-product-button,
.wp-block-woocommerce-related-products li.wc-block-product .wp-block-woocommerce-product-button,
.wp-block-woocommerce-related-products li.wc-block-product .wc-block-components-product-button,
.wp-block-woocommerce-related-products li.wc-block-product .wp-block-button,
.wc-block-components-product-button,
.wc-block-grid__product-add-to-cart {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    width: 100% !important;
    box-shadow: none !important;
    display: block !important;
}

/* Beautiful Premium Add to Cart Button on Cards */
.related.products li.product a.button,
.up-sells.products li.product a.button,
.wp-block-woocommerce-related-products li.wc-block-product a.button,
.wp-block-woocommerce-related-products li.wc-block-product .wp-block-button__link,
.wc-block-components-product-button a,
.wc-block-components-product-button__button,
.wc-block-grid__product-add-to-cart a,
.wp-block-woocommerce-product-template li.product a.button.add_to_cart_button,
.wp-block-woocommerce-related-products li.product a.button.add_to_cart_button {
    display: inline-flex !important;
    width: 100% !important;
    height: 40px !important;
    background: #C5A880 !important; /* Gold */
    border: 2px solid #C5A880 !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 50px !important; /* Pill style */
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 10px !important;
    text-decoration: none !important;
}

/* Hover state for actual button link */
.related.products li.product a.button:hover,
.up-sells.products li.product a.button:hover,
.wp-block-woocommerce-related-products li.wc-block-product a.button:hover,
.wp-block-woocommerce-related-products li.wc-block-product .wp-block-button__link:hover,
.wc-block-components-product-button a:hover,
.wc-block-components-product-button__button:hover,
.wc-block-grid__product-add-to-cart a:hover,
.wp-block-woocommerce-product-template li.product a.button.add_to_cart_button:hover,
.wp-block-woocommerce-related-products li.product a.button.add_to_cart_button:hover {
    background: #111827 !important; /* Charcoal Black */
    border-color: #111827 !important;
    color: #ffffff !important;
}

/* Hide/Style Star Ratings */
.related.products li.product .star-rating,
.up-sells.products li.product .star-rating,
.wp-block-woocommerce-related-products li.wc-block-product .star-rating,
.wc-block-grid__product-rating {
    margin: 0 auto 10px auto !important;
    font-size: 11px !important;
    color: #C5A880 !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .related.products ul.products,
    .up-sells.products ul.products,
    .related.products ul.wp-block-woocommerce-product-template,
    .up-sells.products ul.wp-block-woocommerce-product-template,
    .wp-block-woocommerce-related-products ul.wp-block-woocommerce-product-template,
    .wp-block-woocommerce-related-products ul.wc-block-product-template,
    .wc-block-grid__products,
    .wc-block-product-template {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
        gap: 12px !important;
    }
    
    .related.products ul.products li.product,
    .up-sells.products ul.products li.product,
    .related.products ul.wp-block-woocommerce-product-template li.wc-block-product,
    .up-sells.products ul.wp-block-woocommerce-product-template li.wc-block-product,
    .wp-block-woocommerce-related-products ul.wp-block-woocommerce-product-template li.wc-block-product,
    .wp-block-woocommerce-related-products ul.wc-block-product-template li.wc-block-product,
    .wc-block-grid__products li.wc-block-grid__product,
    .wc-block-product-template li.wc-block-product,
    .wc-block-product-template li.product,
    .wp-block-woocommerce-related-products li.product {
        padding: 12px !important;
        border-radius: 12px !important;
    }
    
    .related.products li.product .wp-block-post-title,
    .related.products li.product .woocommerce-loop-product__title,
    .up-sells.products li.product .woocommerce-loop-product__title,
    .wp-block-woocommerce-related-products li.wc-block-product .wp-block-post-title,
    .wp-block-woocommerce-related-products li.wc-block-product .woocommerce-loop-product__title,
    .wc-block-components-product-title,
    .wc-block-grid__product-title {
        font-size: 12px !important;
        height: 34px !important;
        margin-bottom: 8px !important;
    }
    
    .related.products li.product .price,
    .wc-block-grid__product-price {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .related.products li.product a.button,
    .wc-block-grid__product-add-to-cart a,
    .wp-block-woocommerce-product-template li.product a.button.add_to_cart_button {
        height: 36px !important;
        font-size: 11px !important;
    }
}

