/* Spinner animation for image loading */
@keyframes stuller-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Stuller Frontend — Price Display, Ring Size, Trust Strip
   Design system: Matches Flatsome theme on diamondsbymonet.com

   Palette:
     --gold:         #b8860b   (dark goldenrod — site accent)
     --gold-hover:   #9a7209   (darker gold for hover)
     --gold-bg:      #fdf8ef   (warm cream for selected states)
     --gold-border:  #e8dcc8   (warm gold border)
     --black:        #000000   (primary text, buttons)
     --text:         #1a1a1a   (body text)
     --text-mid:     #666666   (secondary text)
     --text-light:   #999999   (tertiary/muted text)
     --border:       #e0d6c8   (warm gray borders)
     --border-light: #f0ebe3   (subtle dividers)
     --bg-warm:      #fdf8ef   (warm off-white — selected states)
     --bg-neutral:   #fafaf7   (neutral background)
     --white:        #ffffff

   Typography:
     Font: 'Kumbh Sans', sans-serif (loaded by Flatsome)
     Headings: weight 300, letter-spacing 3px, uppercase
     Body: weight 300
     Emphasis: weight 400 (max used on site)

   Spacing scale (Flatsome rhythm):
     xs:  0.44rem  (~7px)
     sm:  0.88rem  (~14px)
     md:  1.31rem  (~21px)
     lg:  1.75rem  (~28px)
     xl:  2.63rem  (~42px)
     2xl: 3.5rem   (~56px)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. ENGAGEMENT RING PRICE DISPLAY
   -------------------------------------------------------------------------- */

/* Price display — "Complete rings from $X,XXX" */
.stuller-price-display {
    margin-bottom: 0.75rem;
}

.stuller-price-label {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.3px;
}

.stuller-price-sub {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #444444;
    margin-top: 6px;
    line-height: 1.5;
}

/* Fallback for non-engagement ring products */
.stuller-starting-at {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

.stuller-setting-only {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #444444;
}

.stuller-setting-note {
    font-family: 'Kumbh Sans', sans-serif;
    color: #444444;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    display: block;
    margin-top: 6px;
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   1b. QUICK PICKS — Good / Better / Best
   -------------------------------------------------------------------------- */

.stuller-quick-picks h4 {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666666;
    margin: 0 0 1rem 0;
}

.stuller-quick-pick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.88rem;
    margin-bottom: 1rem;
}

.stuller-quick-pick {
    border: 1px solid #e8dcc8;
    padding: 1.15rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #fdfcfa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
}

.stuller-quick-pick:hover {
    border-color: #b8860b;
    background: #fdf8ef;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.1);
    transform: translateY(-1px);
}

.stuller-quick-pick.selected {
    border-color: #b8860b;
    background: #fdf8ef;
    box-shadow: inset 0 0 0 1px #b8860b, 0 4px 12px rgba(184, 134, 11, 0.12);
}

.stuller-qp-tier {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b8860b;
    margin-bottom: 0.6rem;
}

.stuller-qp-carat {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 0.3rem;
}

.stuller-qp-type {
    display: inline-block;
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666666;
    background: #f0ebe3;
    padding: 2px 8px;
    margin-bottom: 0.4rem;
}

.stuller-qp-details {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 0.75rem;
}

.stuller-qp-price {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

.stuller-qp-note {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.stuller-browse-all {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    text-align: center;
    margin: 0.88rem 0 0 0;
}

.stuller-browse-all a {
    color: #b8860b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.stuller-browse-all a:hover {
    border-bottom-color: #b8860b;
}

/* --------------------------------------------------------------------------
   1c. HELP CTA
   -------------------------------------------------------------------------- */

.stuller-help-cta {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #444444;
    text-align: center;
    margin: 1rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid #f0ebe3;
}

.stuller-help-cta a {
    color: #b8860b;
    text-decoration: none;
    font-weight: 400;
}

.stuller-help-cta a:hover {
    text-decoration: underline;
}


/* --------------------------------------------------------------------------
   2. RING SIZE SELECTOR (Pill-style size buttons)
   -------------------------------------------------------------------------- */

.stuller-size-options {
    display: flex;
    gap: 0.88rem;
    margin-top: 0.88rem;
}

.stuller-size-option {
    cursor: pointer;
}

.stuller-size-option input[type="radio"] {
    display: none;
}

.stuller-size-label {
    display: block;
    padding: 0.6rem 1.25rem;
    border: 1px solid #e0d6c8;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 1px;
    text-align: center;
    color: #1a1a1a;
    transition: all 0.25s ease;
    background: #ffffff;
}

.stuller-size-option input:checked + .stuller-size-label {
    border-color: #b8860b;
    background: #fdf8ef;
    color: #b8860b;
    box-shadow: inset 0 0 0 1px #b8860b;
}

.stuller-size-label:hover {
    border-color: #b8860b;
    color: #b8860b;
}


/* Ring Size is now a standard WooCommerce variation attribute.
   No custom dropdown styling needed — WooCommerce/Flatsome handles it natively. */


/* --------------------------------------------------------------------------
   2b. STEP 1 CARD — Ring Size selector (engagement rings only)
   -------------------------------------------------------------------------- */

.stuller-step1-card {
    margin: 1.75rem 0 0 0;
    padding: 1.75rem;
    background: #ffffff;
    border: 1px solid #e0d6c8;
}

.stuller-step1-card h3 {
    margin: 0 0 0.44rem 0;
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.stuller-step1-subtitle {
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #666666;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

/* Hide the original WooCommerce variations table — dropdown moved to Step 1 card via JS */
body.stuller-engagement-ring .variations_form .variations {
    display: none !important;
}

/* Step 1 dropdown row layout */
.stuller-step1-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.stuller-step1-label {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #444444;
    white-space: nowrap;
}

.stuller-step1-row select {
    width: 100%;
    font-family: 'Kumbh Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    border: 1px solid #e0d6c8 !important;
    padding: 0.65rem 2rem 0.65rem 0.88rem !important;
    min-height: 44px !important;
    background-color: #ffffff !important;
    letter-spacing: 0.3px !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23b8860b'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.88rem center !important;
    background-size: 8px 5px !important;
    max-width: none;
}

/* Resizing note below dropdown */
.stuller-step1-note {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: #999999;
    letter-spacing: 0.3px;
    margin-top: 0.25rem;
}

/* Setting price display — appears after selecting a size */
.stuller-step1-price {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0ebe3;
    font-family: 'Kumbh Sans', sans-serif;
}

.stuller-step1-price-label {
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    letter-spacing: 0.3px;
}

.stuller-step1-price-value {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-left: 0.5rem;
    letter-spacing: 0.3px;
}


/* --------------------------------------------------------------------------
   3. TRUST STRIP — Below add-to-cart on all Stuller products

   Larger text, styled SVG-based icons via CSS pseudo-elements.
   Feels like a Tiffany confidence bar, not a footnote.
   -------------------------------------------------------------------------- */

.stuller-trust-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.31rem;
    padding: 1.15rem 0;
    border-top: 1px solid #e0d6c8;
}

.stuller-trust-item {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.5px;
}

.stuller-trust-sep {
    color: #b8860b;
    font-size: 16px;
}

/* Replace tiny unicode with properly sized, styled icons */
.stuller-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0; /* Hide unicode fallback */
    position: relative;
}

/* Shared base for pseudo-element icons */
.stuller-trust-icon::before {
    display: block;
    font-size: 16px;
    line-height: 1;
    color: #b8860b;
}

/* Shipping: checkmark in circle via CSS */
.stuller-trust-item:nth-child(1) .stuller-trust-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 1.5px solid #b8860b;
    border-radius: 50%;
    background: transparent;
    position: relative;
}

.stuller-trust-item:nth-child(1) .stuller-trust-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 8px;
    border: solid #b8860b;
    border-width: 0 1.5px 1.5px 0;
    transform: translate(-50%, -58%) rotate(45deg);
}

/* Returns: circular arrows via unicode, but properly sized */
.stuller-trust-item:nth-child(2) .stuller-trust-icon::before {
    content: "\21BA";
    font-size: 18px;
    color: #b8860b;
}

/* Satisfaction: star, properly sized */
.stuller-trust-item:nth-child(3) .stuller-trust-icon::before {
    content: "\2605";
    font-size: 18px;
    color: #b8860b;
}


/* SVG trust icons (replaces unicode pseudo-elements when SVGs are used) */
.stuller-trust-svg {
    width: 20px;
    height: 20px;
    color: #b8860b;
    flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   IN-CART NOTICE — Shown when ring is already in cart
   -------------------------------------------------------------------------- */

.stuller-in-cart-notice {
    margin: 1.31rem 0;
    padding: 1.15rem 1.31rem;
    background: #fdf8ef;
    border: 1px solid #e8dcc8;
    border-top: 2px solid #b8860b;
}

.stuller-in-cart-inner {
    text-align: center;
}

.stuller-in-cart-text {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #1a1a1a;
    margin: 0 0 0.88rem 0;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

.stuller-in-cart-text strong {
    font-weight: 400;
}

.stuller-in-cart-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.88rem;
}

.stuller-in-cart-btn {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #000000;
    color: #ffffff;
    padding: 0.6rem 1.31rem;
    text-decoration: none;
    transition: background 0.25s ease;
}

.stuller-in-cart-btn:hover {
    background: #333333;
    color: #ffffff;
}

.stuller-in-cart-divider {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666666;
}

.stuller-in-cart-alt {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #444444;
    letter-spacing: 0.3px;
}


/* --------------------------------------------------------------------------
   16. SIZE NOTE — Below diamond selector
   -------------------------------------------------------------------------- */

.stuller-size-note {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    margin-top: 1rem;
    letter-spacing: 0.3px;
}

.stuller-size-note a {
    color: #b8860b;
    text-decoration: none;
    font-weight: 400;
}

.stuller-size-note a:hover {
    text-decoration: underline;
}


/* --------------------------------------------------------------------------
   WOOCOMMERCE PRODUCT SUMMARY — Style overrides for Stuller products
   Brings the Ring Size dropdown, variation price, and short description
   into the same design language as the rest of the product page.
   -------------------------------------------------------------------------- */

/* Ring Size label */
body.single-product .variations .label label {
    font-family: 'Kumbh Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #1a1a1a !important;
}

/* Ring Size dropdown */
body.single-product .variations select {
    font-family: 'Kumbh Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    border: 1px solid #e0d6c8 !important;
    padding: 0.65rem 2rem 0.65rem 0.88rem !important;
    min-height: 44px !important;
    background-color: #ffffff !important;
    letter-spacing: 0.3px !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23b8860b'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.88rem center !important;
    background-size: 8px 5px !important;
}

body.single-product .variations select:focus {
    border-color: #b8860b !important;
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.2) !important;
}

/* Clear link — subtle, matches our style */
body.single-product .reset_variations {
    font-family: 'Kumbh Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #666666 !important;
    text-decoration: none !important;
}

body.single-product .reset_variations:hover {
    color: #b8860b !important;
}

/* Variation price display — refined typography */
body.single-product .woocommerce-variation-price .price {
    font-family: 'Kumbh Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    letter-spacing: 0.5px !important;
}

/* Hide the bare WooCommerce variation price on engagement ring pages.
   Our custom price display and price breakdown handle pricing contextually.
   Body class 'stuller-engagement-ring' added by class-stuller-frontend.php. */
body.stuller-engagement-ring .woocommerce-variation-price {
    display: none !important;
}

/* Hide quantity selector on engagement rings — always 1 */
body.stuller-engagement-ring .quantity {
    display: none !important;
}

/* Short description / excerpt — subtle and refined */
body.single-product .product .woocommerce-product-details__short-description {
    font-family: 'Kumbh Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1a1a1a !important;
    letter-spacing: 0.3px !important;
    line-height: 1.6 !important;
    margin-bottom: 0.88rem !important;
    padding-bottom: 0.88rem !important;
    border-bottom: 1px solid #f0ebe3 !important;
}

/* Variations table — remove default borders, tighten spacing */
body.single-product .variations {
    margin-bottom: 1rem !important;
}

body.single-product .variations td {
    padding: 0.5rem 0 !important;
    border: none !important;
}

body.single-product .variations tr {
    border: none !important;
}

/* Quantity + Add to cart row — refined */
body.single-product .single_add_to_cart_button {
    font-family: 'Kumbh Sans', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
}

body.stuller-engagement-ring .single_add_to_cart_button {
    width: 100% !important;
    display: block !important;
    padding: 0.88rem 1.75rem !important;
    min-height: 50px !important;
}

/* Quantity input — match the design */
body.single-product .quantity input[type="number"] {
    font-family: 'Kumbh Sans', sans-serif !important;
    font-weight: 300 !important;
    border: 1px solid #e0d6c8 !important;
    border-radius: 0 !important;
}

body.single-product .quantity .minus,
body.single-product .quantity .plus {
    border: 1px solid #e0d6c8 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #666666 !important;
}


/* --------------------------------------------------------------------------
   5. RESPONSIVE — Mobile (max-width: 600px)

   Quick pick cards get min-height for tap targets.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   DIAMOND SPECS — Per-variation dynamic display (ER products)

   Table displayed above add-to-cart, populated by JS when a variation
   is selected. Shows Total CTW, Center Stone, Color, Clarity, etc.
   -------------------------------------------------------------------------- */

.stuller-diamond-specs {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #f0ebe3;
    border-bottom: 1px solid #f0ebe3;
}

.stuller-diamond-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Kumbh Sans', sans-serif;
}

.stuller-diamond-specs-table th,
.stuller-diamond-specs-table td {
    padding: 0.4rem 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    border: none;
    vertical-align: top;
}

.stuller-diamond-specs-table th {
    color: #666666;
    text-align: left;
    width: 45%;
    letter-spacing: 0.3px;
}

.stuller-diamond-specs-table td {
    color: #1a1a1a;
    text-align: left;
}


@media (max-width: 600px) {

    /* Quick picks: single column on mobile, tappable size */
    .stuller-quick-pick-grid {
        grid-template-columns: 1fr;
        gap: 0.66rem;
    }

    .stuller-quick-pick {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 0.88rem;
        padding: 0.88rem;
        min-height: 56px;
    }

    .stuller-qp-tier {
        min-width: 70px;
        margin-bottom: 0;
    }

    .stuller-qp-carat,
    .stuller-qp-details {
        margin-bottom: 0;
    }

    .stuller-qp-price {
        margin-left: auto;
        white-space: nowrap;
    }

    .stuller-qp-note {
        display: none;
    }

    /* Size buttons: slightly smaller */
    .stuller-size-label {
        padding: 0.5rem 1rem;
        font-size: 12px;
    }

    /* Trust strip: stack vertically on mobile */
    .stuller-trust-strip {
        flex-direction: column;
        align-items: center;
        gap: 0.66rem;
    }
}
