/* dont need entire content only need that element container */

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

.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: inherit;
}

.loader.global-loader {
    position: fixed;
    z-index: 9999;
    height: 100vh;
}

body.loader-locked {
    overflow: hidden;
}

.loader .loader-spinner {
    width: 48px;
    height: 48px;
    animation: loader-rotate 2s linear infinite;
}

.loader .loader-path {
    stroke: var(--primary);
    stroke-linecap: round;
    animation: loader-dash 1.5s ease-in-out infinite;
}

@keyframes loader-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loader-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.spinner-border .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* Modal wrapper */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

/* Show modal when targeted */
.modal:target {
    opacity: 1;
    animation: fadeIn 0.2s ease-in forwards;
}

.modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    transform: translate(0%, -20%);
}

/* Modal content */
.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 0px;
    min-width: 320px;
    max-width: 800px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0px solid var(--Lgray);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    padding-bottom: 14px;
        margin-bottom: 0px;
        padding: 14px 24px 14px 24px;z-index: 9;
}
.modal-body{padding: 24px 24px;}
.modal-header .title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    cursor: pointer;
}

/* .modal-close {    
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .5;
} */

.form-errors {
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
}

.text-danger {
    color: #dc3545 !important;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.important-notice .modal-header h4 {
    font-size: 18px;
    line-height: 1.3;
    color: #fb3f3f;
}

.important-notice .modal-body {
    text-align: center;
}

.important-notice .modal-body h6 {
    font-size: 14px;
    line-height: 1.3;
    color: #444;
    margin-bottom: 15px;
}

.important-notice .modal-body h2 {
    font-size: 16px;
    line-height: 1.3;
    color: #fb3f3f;
    margin-bottom: 15px;
}

.important-notice .modal-body h3 {
    font-size: 15px;
    line-height: 1.3;
    color: #444;
    margin-bottom: 15px;
}

.important-notice .modal-body h4 {
    font-size: 18px;
    line-height: 1.3;
    color: #444;
    margin-bottom: 15px;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

.payment-method-info .details {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.selected-method .details {
    display: block;
}

/* Variant Selection Styles - Radio Button Design */
.variants.color > .variant_option_name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    margin-top: 15px;
}

.variant-fieldset {
    display: flex;
    align-items: center;
}

.variant-radio {
    display: none;
}

.variant-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-swatch .swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    position: relative;
    transition: all 0.2s ease;
    background-color: var(--swatch-color, #000);
}

.variant-swatch.checked .swatch,
.variant-radio:checked + .variant-swatch .swatch {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--swatch-color, #000);
}

.variant-swatch .variant-name {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    text-align: center;
    margin-top: 4px;
}

.variant-swatch.checked .variant-name,
.variant-radio:checked + .variant-swatch .variant-name {
    color: #333;
    font-weight: 500;
}

/* Hover effect */
.variant-swatch:hover .swatch {
    transform: scale(1.05);
}

/* Special handling for white/light colors to ensure visibility */
.variant-swatch .swatch[style*="--swatch-color: #ffffff"],
.variant-swatch .swatch[style*="--swatch-color: #fff"],
.variant-swatch .swatch[style*="--swatch-color: white"],
.variant-swatch .swatch[style*="--swatch-color: #FFFFFF"],
.variant-swatch .swatch[style*="--swatch-color: #FFF"] {
    border: 1px solid #e5e7eb;
}

.form-check {
    display: block;
    margin-bottom: 15px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
}

.form-check input[type="checkbox"] + label,
.form-check input[type="radio"] + label {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.form-check input[type="checkbox"] + label:before,
.form-check input[type="radio"] + label:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    background-color: transparent;
    border: 2px solid #0079bf;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 -15px 10px -12px rgba(0, 0, 0, 0.05);
}

.form-check input[type="checkbox"] + label:before {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.form-check input[type="radio"] + label:before {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.form-check input[type="checkbox"]:checked + label:after {
    content: '';
    display: block;
    position: absolute;
    top: 2px;
    left: 9px;
    width: 6px;
    height: 14px;
    border: solid #0079bf;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    background-color: #0079bf;
    border-radius: 50%;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

    .modal-backdrop {
        z-index: 1050 !important;
    }

    .modal {
        z-index: 1055 !important;
    }

    .offcanvas-backdrop {
        z-index: 1040 !important;
    }

    .offcanvas {
        z-index: 1045 !important;
    }

/* ============================================================
   PRODUCT CARD
============================================================ */

/* ============================================================
   Modern product card — sibling of the .shopcat-card system.
   style.css loads LAST (variables→home→main→product→style), so this
   wins per-property over the leaks in main.css / variables.css. main1.css
   is NOT loaded. The .category-products .product !important block in
   main.css is DEAD (live markup uses .category-products-with-sidebar /
   .product-item — different tokens), so no overrides are needed for it.
   Every leaked property is explicitly reset below. Restyle-in-place only
   (no markup/class renames), so the shared .product/.cnt/.amount/.price/
   .rating usages in other components are untouched.
   ============================================================ */

/* ---- Card shell (1:1 with .shopcat-card) ---- */
.product {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--white);
    border: 1px solid #f0f1f3;
    border-radius: 18px;
    overflow: visible;                         /* not hidden: the hover bridge (::after) sits outside the card; .product-img rounds its own top corners */
    isolation: isolate;
    text-decoration: none !important;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(44,62,80,.04), 0 10px 26px -10px rgba(44,62,80,.12);
    transition: transform .38s cubic-bezier(.22,.68,0,1.2), box-shadow .38s ease;
}
.product, .product:hover, .product:focus { text-decoration: none !important; color: var(--primary); }
.product:hover, .product:focus-within {
    transform: translateY(-7px);
    box-shadow: 0 6px 14px -6px rgba(44,62,80,.10), 0 26px 50px -16px rgba(44,62,80,.22);
    border-color: #f0f1f3;                     /* reset old amber-border hover */
}
.product:active { transform: translateY(-2px) scale(.995); }

/* hover bridge — the -7px lift slides the card off a cursor resting on its bottom edge
   (under the button): it un-hovers, drops back, re-hovers… = flicker. This invisible
   strip fills the gap the lift leaves, so the card stays hovered. */
.product:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
}

/* amber top-accent removed; product cards keep the hover zoom only */

/* keyboard ring — !important beats the global *:focus{outline:none!important} */
.product:focus-visible { outline: 2px solid var(--secondary) !important; outline-offset: 3px; }

/* ---- Media plinth (matches .shopcat-card__media/__img) ---- */
.product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 17px 17px 0 0;              /* card radius 18 − 1px border (the card no longer clips it) */
    background: linear-gradient(160deg, #fafbfc, #f4f6f8);   /* reset #f9f9f9 */
    box-shadow: inset 0 0 0 1px #f0f1f4;
}
/* reset main.css `.product img{width:100%!important;object-fit:contain;margin:auto}`
   (+ any height:auto!important) — re-assert at equal specificity; style.css wins by load order */
.product .product-img img,
.product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    padding: 14px;
    margin: 0;
    display: block;
    transition: transform .45s cubic-bezier(.2,.6,.2,1);
}
.product:hover .product-img img,
.product:focus-within .product-img img { transform: scale(1.05); }
.product-img::after { content: none; }                        /* drop old amber wash overlay */

/* ---- Badge (.prize-bage) — near-black tag + amber status dot ---- */
.prize-bage {
    position: absolute; top: 12px; left: 12px; z-index: 4;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px 6px 11px;
    border-radius: 8px;                        /* reset 50px pill */
    background: linear-gradient(135deg, var(--secondary), #f4b743);   /* orange gradient price badge */
    color: #16181d;
    font-family: "Poppins", sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: .3px; line-height: 1;
    box-shadow: 0 6px 16px -4px rgba(0,0,0,.38);
}
.prize-bage::before {
    content: ""; flex: 0 0 auto;
    width: 5px; height: 5px; border-radius: 50%;
    background: #16181d;
    box-shadow: 0 0 0 2px rgba(22,24,29,.18);
}

/* ---- Body (.cnt) ---- */
.product .cnt {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px;
    flex: 1;
    padding: 12px 12px 4px;                    /* compact body */
    border-top: 1px solid #f2f2f2;
    text-align: center;
}
/* .product .cnt .title (0,3,0) BEATS main.css `.product .cnt .title` rather than relying on order */
.product .cnt .title,
.product .title {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13.5px;                         /* reset main.css 16px */
    line-height: 1.4; letter-spacing: .1px;
    color: var(--steel-blue);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; overflow-wrap: anywhere;
    min-height: 2.7em;                         /* reserve 2 lines → short+long names align */
}

/* ---- Rating row (optional; Blade gates on avg_rating>0) ---- */
.product .rating {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0; padding: 0;                     /* reset main.css padding-top:4px + variables.css gap:12px */
    line-height: 1;
}
.product .star-rating {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 13px;                           /* reset main.css 14px + variables.css 24px */
    color: var(--secondary);                  /* filled stars amber (fixes undefined var(--yellow)) */
}
.product .star-rating .icon-star-brd { color: #d9dde2; }      /* muted empty stars */
.product .rating-count {
    font-family: "Poppins", sans-serif;
    font-size: 12px; font-weight: 500;
    color: var(--Dgray);
    opacity: 1;                                /* reset main.css opacity:.8 */
}
.product .rating-count span { font-weight: 600; color: var(--steel-blue); }

/* ---- Bottom region (.product-btn) ---- */
.product-btn {
    display: flex; flex-direction: column; gap: 9px;
    margin-top: auto;                          /* bottom-align price+CTA → equal-height cards */
    padding: 2px 12px 14px;                    /* compact footer */
}

/* ---- Price block (purchasable) — baseline row, price is hero ---- */
.product .amount {
    display: flex; flex-wrap: wrap;
    align-items: baseline; justify-content: center;
    column-gap: 9px; row-gap: 3px;
    margin: 0; padding: 0;                     /* reset old margins + variables.css paddings */
    font-size: initial;
}
.product .amount > div { display: inline-flex; align-items: baseline; gap: 6px; padding: 0; }
.product .price {
    font-family: "Poppins", sans-serif;
    font-size: 25px;                           /* highlighted hero price */
    font-weight: 800; line-height: 1;
    margin: 0;                                 /* reset main.css margin-bottom:12px */
    letter-spacing: -.4px;
    color: #16181d;
}
.product .dollar {
    font-family: "Poppins", sans-serif;
    font-size: 14px;                           /* reset variables.css 32px + main.css 24px */
    font-weight: 700; opacity: 1;
    color: #16181d;
    position: relative; top: -.55em;           /* small raised superscript $ */
    margin-right: 1px;
}
.product .normal-price {
    font-family: "Poppins", sans-serif;
    font-size: 13px;                           /* reset main.css 14px */
    font-weight: 500;
    color: var(--Lgray);
    opacity: 1;                                /* reset variables.css opacity:.5 */
    text-decoration: line-through;
    line-height: 1;
}
/* offer/discount → corner BADGE pinned to the card's top-right (amber tag,
   sibling of the near-black .prize-bage at top-left). Pulled out of the footer
   flow via absolute positioning — markup unchanged. Only renders when there's a
   compare_price (the Blade @if), i.e. only for discounted products. */
.product .discount {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 4;
    display: inline-flex; align-items: center;
    font-family: "Poppins", sans-serif;
    font-size: 11.5px; font-weight: 800; line-height: 1; letter-spacing: .4px;
    text-transform: uppercase;                 /* "40% OFF" — punchier */
    padding: 6px 11px;
    border-radius: 8px;
    color: #fff;                               /* white on the deep rose → WCAG AA (~4.7:1+) */
    background: linear-gradient(135deg, #C81E43, #9F1239);   /* vivid "sale" gradient — pops off the amber/neutral card (white text ≥5.6:1) */
    border: none;
    box-shadow: 0 7px 18px -3px rgba(190,18,60,.55), inset 0 1px 0 rgba(255,255,255,.30);
    white-space: nowrap;
    transition: transform .3s cubic-bezier(.22,.68,0,1.2);
}
.product:hover .discount,
.product:focus-within .discount { transform: scale(1.07); }   /* subtle pop with the card */

/* ---- CTA (.btn) — full-width grey → near-black (matches .shopcat-card__cta).
   Markup carries .btn .btn-border .btn-border-Dgray .btnH-secondary w-100; we
   override all four, incl. the variables.css .btnH-secondary:hover white-on-amber
   (WCAG fail) via higher specificity here. ---- */
.product .product-btn .btn {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0;                                 /* reset main.css margin-top:6px */
    padding: 9px 14px;                         /* compact CTA */
    border: 1px solid transparent;            /* neutralise .btn-border hairline */
    border-radius: 10px;                       /* reset main.css 6px / variables.css 4px / old 50px */
    font-family: "Poppins", sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: .3px;
    text-transform: none; white-space: nowrap;
    color: var(--steel-blue);                 /* reset .btn-border-Dgray colour */
    background: #f3f4f6;
    cursor: pointer;
    transition: background .28s ease, color .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.product:hover .product-btn .btn,
.product:focus-within .product-btn .btn,
.product .product-btn .btn:hover,
.product .product-btn .btn:focus-visible,
.product .product-btn .btn.btnH-secondary:hover {
    background: linear-gradient(135deg, var(--secondary), #f4b743);
    border-color: transparent;
    color: #16181d;                            /* dark on amber = WCAG-safe */
    box-shadow: 0 10px 22px -8px rgba(232,154,14,.45);
}
.product .product-btn .btn:focus-visible { outline: 2px solid var(--secondary) !important; outline-offset: 2px; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .product .product-img img { padding: 12px; }
}
@media (max-width: 767px) {
    .product .cnt        { padding: 12px 10px 4px; }
    .product-btn         { padding: 2px 10px 12px; gap: 8px; }
    .product .cnt .title,
    .product .title      { font-size: 13px; }
    .product .price      { font-size: 22px; }   /* keep price prominent on mobile */
    .product .dollar     { font-size: 13px; }
    .product .product-btn .btn { padding: 9px 12px; font-size: 11.5px; border-radius: 9px; }

    /* OVERRIDE home.css mobile price-hide — price is the trust signal and the
       compact block fits at 2-across. style.css loads after home.css so equal
       !important specificity wins by order. */
    .product .amount        { display: flex !important; }
    .product .price,
    .product .dollar,
    .product .normal-price  { display: inline-block !important; }
    .product .discount      { display: inline-flex !important; top: 10px; right: 10px; font-size: 11px; padding: 5px 9px; border-radius: 8px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .product, .product .product-img img,
    .product .product-btn .btn, .product .discount { transition: none; }
    .product:hover, .product:focus-within, .product:active { transform: none; }
    .product:hover .product-img img,
    .product:focus-within .product-img img { transform: none; }
    .product:hover .discount, .product:focus-within .discount { transform: none; }
}

.btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px !important;
    background-color: transparent !important;
    border: 0 !important;
    opacity: 0.5;
    width: 1em;
    height: 1em;
    cursor: pointer;

}

.btn-close:hover {
    opacity: 1;
}

.offcanvas-header .btn-close {
    margin-top: 5px;
    margin-right: 2px;
}

#quoteCanvas .d-flex.gap-2 .btn-border-Dgray {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-header {
    box-shadow: none;
    align-items: center;
}

.modal .btn-close {
    margin-top: 4px;
    margin-right: 4px;
    padding: 0;
}

/* =========================
   QUOTE BUTTON LOADER FIX
========================= */

.quote-submit-btn {
    position: relative;
    min-width: 170px;
    height: 46px;
}

.quote-submit-btn .btn-text,
.quote-submit-btn .btn-loader {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quote-submit-btn .btn-text {
    display: flex;
}

.quote-submit-btn .btn-loader {
    display: none;
}

.quote-submit-btn .btn-loader.active {
    display: flex;
}

.quote-submit-btn .btn-text.hidden {
    display: none;
}

/* IMPORTANT: override global spinner only here */
.quote-submit-btn .spinner-border {
    width: 16px !important;
    height: 16px !important;
    border-width: 2px !important;
}