.qm-filter-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.qm-filter-search input {
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.qm-filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qm-category-btn {
    padding: 8px 14px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qm-category-btn:hover {
    background: #e9e9e9;
}

.qm-category-btn.active {
    background: #25406d;
    border-color: #25406d;
    color: #fff;
}

.qm-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* GRID */
.qm-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* =========================
   QM PRODUCT RESULT CARDS
========================= */

.qm-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.qm-product-card:hover {
    border-color: #d3d3d3;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
    transform: translateY(-4px);
}

.qm-product-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #e1251b;
    transition: width 0.25s ease;
    pointer-events: none;
}

.qm-product-card:hover::after {
    width: 100%;
}

.qm-product-image {
    padding: 12px 12px 4px;
}

.qm-product-image img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.qm-product-card:hover .qm-product-image img {
    transform: scale(1.035);
}

.qm-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 8px 14px 14px;
}

.qm-product-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.18;
    font-weight: 700;
}

.qm-product-title a {
    color: #171717;
    text-decoration: none;
}

.qm-product-title a:hover {
    color: #e1251b;
}

.qm-product-price {
    margin-top: auto;
    padding-top: 4px;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    color: #e1251b;
}

.qm-wishlist-status {
    font-size: 12px;
    color: #2c7a7b;
    margin-bottom: 4px;
    animation: qmFadeIn 0.2s ease-in;
}

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





/* =========================
   PAGINATION
========================= */
.qm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
}

.qm-pagination span {
    color: #555;
}

.qm-pagination button {
    appearance: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.qm-pagination button:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.qm-pagination button:disabled {
    opacity: .5;
    cursor: not-allowed;
}


/* =========================
   WISHLIST BUTTON
========================= */
.qm-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.qm-wishlist-btn:hover {
    background: #f9f9f9;
    border-color: #bbb;
}

/* Heart icon */
.qm-wishlist-icon {
    font-size: 15px;
    line-height: 1;
    color: #bbb;
    transition: color .2s ease, transform .2s ease;
}

/* Active / added to wishlist */
.qm-wishlist-btn[aria-pressed="true"] {
    border-color: #e63946;
    background: #fff5f6;
    color: #e63946;
}

.qm-wishlist-btn[aria-pressed="true"] .qm-wishlist-icon {
    color: #e63946;
    transform: scale(1.1);
}

/* Subtle tap feedback */
.qm-wishlist-btn:active .qm-wishlist-icon {
    transform: scale(0.95);
}


/* =========================
   OPTIONAL: CARD ALIGNMENT
========================= */
.qm-wishlist-btn {
    align-self: flex-start;
}




/* ===============================
   QM FILTER – COMPACT SELECT FIX
   =============================== */

/* Attribute grid stays clean */
.qm-filter-attributes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* Attribute card */
.qm-filter-attribute {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

/* Label */
.qm-filter-attribute label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
}

/* COMPACT SELECT DEFAULT */
.qm-attribute-select {
    width: 100%;
    height: 42px;              /* compact default */
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.3;

    background-color: #fafafa;
    border: 1px solid #d1d5db;
    border-radius: 8px;

    overflow-y: hidden;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* EXPAND ON FOCUS / INTERACTION */
.qm-attribute-select:focus,
.qm-attribute-select:active {
    height: 160px;             /* expand only when used */
    overflow-y: auto;
    background: #fff;
}

/* Selected option */
.qm-attribute-select option:checked {
    background: #25406d;
    color: #fff;
}

/* Hover / focus polish */
.qm-attribute-select:hover {
    border-color: #9ca3af;
}

.qm-attribute-select:focus {
    outline: none;
    border-color: #25406d;
    box-shadow: 0 0 0 2px rgba(37,64,109,0.15);
}


/* =====================================================
   QM FILTER – 3 PER ROW + SCROLLABLE SELECTS
   ===================================================== */

/* Force 3 columns on desktop */
.qm-filter-attributes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* Responsive fallbacks */
@media (max-width: 1024px) {
    .qm-filter-attributes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .qm-filter-attributes {
        grid-template-columns: 1fr;
    }
}

/* Attribute card */
.qm-filter-attribute {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

/* Label */
.qm-filter-attribute label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
}

/* Compact + scrollable select */
.qm-attribute-select {
    width: 100%;
    height: 100%;               /* compact default */
    max-height: 140px;          /* scroll limit */
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1.3;

    background-color: #fafafa;
    border: 1px solid #d1d5db;
    border-radius: 8px;

    overflow-y: auto;           /* 🔑 SCROLLABLE */
    cursor: pointer;

    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Expand on interaction */
.qm-attribute-select:focus,
.qm-attribute-select:active {
    height: 140px;
    background: #fff;
}

/* Selected option */
.qm-attribute-select option:checked {
    background: #25406d;
    color: #fff;
}

/* Hover / focus polish */
.qm-attribute-select:hover {
    border-color: #9ca3af;
}

.qm-attribute-select:focus {
    outline: none;
    border-color: #25406d;
    box-shadow: 0 0 0 2px rgba(37,64,109,0.15);
}






/* Hero area */
.custom-cat-hero {
    background: #f7f7f7;
    text-align: center;
    padding: 50px 20px;
    border-bottom: 1px solid #ddd;
}

.cat-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin: 0;
    color: #222;
    text-transform: uppercase;
}

.cat-description {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #555;
}

/* Products grid */
.custom-product-loop .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    transition: 0.25s ease;
}

.product-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.product-image img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 12px;
}

.product-title {
    font-size: 1.2rem;
    color: #111;
    margin: 12px 0 8px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0071a1;
}

.btn.view-product {
    background: #0071a1;
    color: #fff;
    display: inline-block;
    padding: 8px 15px;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
}

.btn.view-product:hover {
    background: #005b83;
}

/* ===============================
   FILTER BAR WRAPPER
=============================== */
.qm-filters-wrap {
    background: #f6f7f8;
    border: 1px solid #e1e3e6;
    padding: 16px 20px;
    margin: 20px 0 30px;
    border-radius: 6px;
}

/* ===============================
   FILTER FORM LAYOUT
=============================== */
.qm-filters {
	padding: 20px 0px 0px 0px;
    display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   SELECTS
=============================== */
.qm-filters select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px;
    border: 1px solid #cfd4da;
    background-color: #fff;
    color: #222;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #555 50%),
        linear-gradient(135deg, #555 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% - 3px),
        calc(100% - 11px) calc(50% - 3px);
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.qm-filters select:focus {
    outline: none;
    border-color: #25406d;
    box-shadow: 0 0 0 2px rgba(37,64,109,0.15);
}

/* ===============================
   BUTTON
=============================== */
.qm-filters button {
    padding: 11px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #25406d;
    color: #fff;
    transition: background 0.2s ease, transform 0.1s ease;
}

.qm-filters button:hover {
    background: #1d3255;
}

.qm-filters button:active {
    transform: translateY(1px);
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 900px) {
    .qm-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .qm-filters {
        grid-template-columns: 1fr;
    }
}




 .qm-shop-banner{
        background:#e9e9e9;
        text-align:center;
        padding:60px 20px;
        border-bottom:1px solid #d8d8d8;
    }

    .qm-shop-title{
        margin:0;
        font-size:48px;
        letter-spacing:3px;
        font-weight:700;
        text-transform:uppercase;
        font-family:Georgia, serif;
    }



.qm-shop-title{
	font-weight: 700 !important;
  text-transform: uppercase;
  color: #000 !important;
  font-size: 2.8rem !important;
  text-align: center;
}


.post-type-archive-product #main-content{
	display:none;
}


.qm-products-wrapper{
    max-width:1480px;
    margin:0 auto;
    padding: 20px 20px 20px 20px;
}

.qm-layout{
    display:flex;
    gap:40px;
}

.qm-sidebar{
    width:260px;
    flex-shrink:0;
}

.qm-products{
    flex:1;
}

.qm-product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:24px;
}

/* =========================
   FILTER UPDATE GRID
========================= */

.filter-update {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.filter-update .qm-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
}

@media (max-width: 1200px) {
    .filter-update {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .filter-update {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .filter-update {
        grid-template-columns: 1fr;
    }
}


.qm-layout,
.qm-sidebar,
.qm-sidebar::before,
.qm-sidebar::after,
.qm-layout::before,
.qm-layout::after,
.et_pb_text_inner::before,
.et_pb_text_inner::after{
    background: transparent !important;
    box-shadow: none !important;
}



.filters-container{
	padding: 20px;
}

.qm-products ul.products.columns-3 {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding: 0;
}

.qm-products ul.products.columns-3 li.product {
  width: 21.333% !important;
  margin: 0 0 30px 0 !important;
  padding: 0 15px;
  clear: none !important;
  box-sizing: border-box;
}

.qm-products ul.products.columns-3 li.product.first,
.qm-products ul.products.columns-3 li.product.last {
    clear: none !important;
}



/* ==========================================================
   WICKED TRIGGER PRODUCT CARDS
   Divi loop cards + AJAX filter results
========================================================== */

.product_card,
.filter-update .product_card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.product_card:hover,
.filter-update .product_card:hover {
    transform: translateY(-4px);
    border-color: #d3d3d3 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10) !important;
}

/* Wicked Trigger red hover accent */
.product_card::after,
.filter-update .product_card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: 0;
    height: 3px;
    background: #e1251b;
    transition: width 0.25s ease;
    pointer-events: none;
}

.product_card:hover::after,
.filter-update .product_card:hover::after {
    width: 100%;
}

/* Keep Divi modules above the card background/accent */
.product_card > * {
    position: relative;
    z-index: 2;
}

/* Full-card click overlay used by AJAX/filter output */
.qm-card-link-overlay {
    z-index: 5;
}

/* Product image area */
.product_card .et_pb_image {
    width: 100%;
    margin: 0 !important;
    padding: 12px 12px 4px !important;
}

.product_card .et_pb_image_wrap {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 5 / 4;
    margin: 0 !important;
    overflow: hidden;
}

.product_card .et_pb_image img,
.filter-update .product_card img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product_card:hover .et_pb_image img {
    transform: scale(1.035);
}

/* Text modules */
.product_card .et_pb_text {
    width: 100%;
    margin: 0 !important;
}

/* Product title */
.product_card h5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    padding: 8px 14px 4px;
    font-size: clamp(13px, 0.85vw, 16px);
    line-height: 1.18;
    font-weight: 700;
    color: #171717;
}

/* Push price module to the bottom so cards align */
.product_card > .et_pb_text:last-child {
    margin-top: auto !important;
}

.product_card .et_pb_text p {
    margin: 0;
    padding: 0;
}

.product_card .woocommerce-Price-amount {
    display: block;
    padding: 8px 14px 14px;
    font-size: clamp(14px, 0.9vw, 17px);
    line-height: 1;
    font-weight: 700;
    color: #e1251b;
}

/* Divi can inject card styles on the Group module; force our card surface */
.product_card.et_pb_group,
.filter-update .et_pb_group.product_card {
    background: #fff !important;
    border: 1px solid #e2e2e2 !important;
}

@media (max-width: 767px) {
    .product_card,
    .filter-update .product_card {
        border-radius: 6px !important;
    }

    .product_card .et_pb_image {
        padding: 10px 10px 2px !important;
    }

    .product_card h5 {
        padding: 7px 10px 3px;
        font-size: 13px;
        line-height: 1.2;
    }

    .product_card .woocommerce-Price-amount {
        padding: 7px 10px 12px;
        font-size: 14px;
    }
}


/* ==========================================================
   DEFAULT WOOCOMMERCE / DIVI SHOP PRODUCT CARDS
   Matches the Wicked Trigger custom product-card treatment
========================================================== */

.woocommerce ul.products li.product,
.et_pb_shop ul.products li.product {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.woocommerce ul.products li.product:hover,
.et_pb_shop ul.products li.product:hover {
    transform: translateY(-4px);
    border-color: #d3d3d3 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

/* Wicked Trigger red hover accent */
.woocommerce ul.products li.product::after,
.et_pb_shop ul.products li.product::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 4;
    width: 0;
    height: 3px;
    background: #e1251b;
    transition: width 0.25s ease;
    pointer-events: none;
}

.woocommerce ul.products li.product:hover::after,
.et_pb_shop ul.products li.product:hover::after {
    width: 100%;
}

/* Make the product link fill the full card */
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
.et_pb_shop ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    margin: 0 !important;
    color: inherit;
    text-decoration: none;
}

/* Consistent product-image area */
.woocommerce ul.products li.product .et_shop_image,
.et_pb_shop ul.products li.product .et_shop_image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 5 / 4;
    margin: 0 !important;
    padding: 12px 12px 4px;
    overflow: hidden;
    background: #fff;
}

.woocommerce ul.products li.product .et_shop_image img,
.et_pb_shop ul.products li.product .et_shop_image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover .et_shop_image img,
.et_pb_shop ul.products li.product:hover .et_shop_image img {
    transform: scale(1.035);
}

/* Soften Divi's default image overlay and remove the hover icon */
.woocommerce ul.products li.product .et_overlay,
.et_pb_shop ul.products li.product .et_overlay {
    border: 0 !important;
    background: rgba(255,255,255,0.04) !important;
}

.woocommerce ul.products li.product .et_overlay::before,
.et_pb_shop ul.products li.product .et_overlay::before {
    display: none !important;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.et_pb_shop ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0 !important;
    padding: 8px 14px 4px !important;
    font-size: clamp(13px, 0.85vw, 16px) !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    color: #171717 !important;
}

/* Price sits at the bottom of the card */
.woocommerce ul.products li.product .price,
.et_pb_shop ul.products li.product .price {
    display: flex !important;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4em;
    margin: auto 0 0 !important;
    padding: 8px 14px 14px !important;
    font-size: clamp(14px, 0.9vw, 17px) !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: #e1251b !important;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.et_pb_shop ul.products li.product .price .woocommerce-Price-amount,
.woocommerce ul.products li.product .price ins,
.et_pb_shop ul.products li.product .price ins {
    color: #e1251b !important;
    font-weight: 700 !important;
    text-decoration: none;
}

.woocommerce ul.products li.product .price del,
.et_pb_shop ul.products li.product .price del {
    color: #777 !important;
    opacity: 0.75;
    font-size: 0.88em;
    font-weight: 500;
}

/* Keep WooCommerce sale badges above the image/card */
.woocommerce ul.products li.product .onsale,
.et_pb_shop ul.products li.product .onsale {
    z-index: 5;
}

@media (max-width: 767px) {
    .woocommerce ul.products li.product,
    .et_pb_shop ul.products li.product {
        border-radius: 6px !important;
    }

    .woocommerce ul.products li.product .et_shop_image,
    .et_pb_shop ul.products li.product .et_shop_image {
        padding: 10px 10px 2px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .et_pb_shop ul.products li.product .woocommerce-loop-product__title {
        padding: 7px 10px 3px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .woocommerce ul.products li.product .price,
    .et_pb_shop ul.products li.product .price {
        padding: 7px 10px 12px !important;
        font-size: 14px !important;
    }
}




/* shortcode functions */

.qm-product-specs {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qm-spec-row {
    font-size: 18px;
    line-height: 1.2;
}

.qm-spec-label {
    font-weight: 700;
    color: #111;
    margin-right: 8px;
}

.qm-spec-value {
    font-weight: 400;
    color: #444;
}

.qm-price-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qm-price-sale {
    font-size: 32px;
    font-weight: 700;
    color: #2f5e9e; /* adjust to match */
}

.qm-price-retail {
    font-size: 20px;
    color: #888;
}

.qm-price-retail s {
    color: #888;
}


.qm-add-to-cart-bar {
    display: flex;
    gap: 14px;
    align-items: stretch;
    flex-wrap: wrap;
}


.qm-qty-select {
    width: 100%;
    padding: 15px 25px;
    padding-right: 55px;
    border: 0;
    background: #fff;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    border-radius: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #111 50%),
        linear-gradient(135deg, #111 50%, transparent 50%);
    background-position: calc(100% - 34px) 23px, calc(100% - 24px) 23px;
    background-size: 10px 10px, 10px 10px;
    background-repeat: no-repeat;
}

.qm-atc-btn.button.alt,
.qm-atc-btn.button {
    padding: 15px 25px!important;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--gcid-body-color) !important;
    color: var(--gcid-a3h0yn1b48) !important;
    font-size: 0;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    line-height: 1;
}

.qm-atc-btn.button.alt:hover,
.qm-atc-btn.button:hover,
.qm-atc-btn.button.alt:focus,
.qm-atc-btn.button:focus {
    color: var(--gcid-a3h0yn1b48) !important;
    border: 0 !important;
    box-shadow: none !important;
}

button.single_add_to_cart_button.button.alt.qm-atc-btn:hover { padding: 15px 25px; }
button.single_add_to_cart_button.button.alt.qm-atc-btn:after { display:none; }

.qm-atc-btn__text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
    line-height: 1;
    display: inline-block;
}

.qm-atc-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    line-height: 1;
}

.qm-atc-btn__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

@media (max-width: 767px) {
    .qm-add-to-cart-bar {
        flex-direction: column;
    }

    .qm-qty-wrap,
    .qm-atc-btn.button.alt,
    .qm-atc-btn.button {
        width: 100%;
        min-width: 0;
    }
}


.woocommerce div.product form.cart::before {
    content: none !important;
}


.qm-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.qm-gallery-item {
    display: block;
    background: #fff;
}

.qm-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Mobile */
@media (max-width: 980px) {
    .qm-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================
   Featured Category Navigation
   Shortcode: [wtf_featured_categories]
========================================================== */

.wtf-featured-categories {
    --wtf-featured-count: 5;

    display: grid;
    grid-template-columns: repeat(var(--wtf-featured-count), minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    overflow: visible;
}

/* Dynamic child/sibling rows can contain fewer categories than the curated root row.
   Cap their width so one or two cards do not stretch across the entire page. */
.wtf-featured-categories--child,
.wtf-featured-categories--sibling {
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 380px)
    );
    justify-content: center;
}

.wtf-featured-category-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    aspect-ratio: 3 / 1;
    padding: 20px;
    overflow: visible;
    isolation: isolate;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    text-decoration: none !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

/* Deeper navigation is intentionally a little more compact than the Shop/root cards. */
.wtf-featured-category-card--child,
.wtf-featured-category-card--sibling {
    aspect-ratio: 4 / 1;
    min-height: 88px;
    padding: 16px 18px;
}

.wtf-featured-category-card__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: rgba(0, 0, 0, 0.46);
    transition: background-color .2s ease;
}

.wtf-featured-category-card:hover,
.wtf-featured-category-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.wtf-featured-category-card:hover .wtf-featured-category-card__overlay,
.wtf-featured-category-card:focus-visible .wtf-featured-category-card__overlay {
    background: rgba(0, 0, 0, 0.34);
}

.wtf-featured-category-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.wtf-featured-category-card__title {
    color: #f9f9f9;
    font-size: clamp(18px, 1.45vw, 30px);
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.70);
}

.wtf-featured-category-card--child .wtf-featured-category-card__title,
.wtf-featured-category-card--sibling .wtf-featured-category-card__title {
    font-size: clamp(16px, 1.15vw, 22px);
}

.wtf-featured-category-card__count {
    color: rgba(255,255,255,0.86);
    font-size: clamp(11px, .72vw, 13px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}


/* ==========================================================
   Current / Hover Marker
========================================================== */

.wtf-featured-category-card::after {
    content: "";
    position: absolute;

    left: 50%;
    bottom: clamp(6px, 0.55vw, 12px);

    width: 0;
    height: 0;

    border: clamp(8px, 0.65vw, 11px) solid transparent;
    border-radius: 7px;

    transform: translateX(-50%);

    transition:
        bottom .35s ease,
        border-top-color .35s ease;
}

/* Exact current term is intentionally not clickable. */
.wtf-featured-category-card.is-current {
    pointer-events: none;
}

/* is-current-branch is used when the card represents an ancestor of the page. */
.wtf-featured-category-card.is-current::after,
.wtf-featured-category-card.is-current-branch::after,
.wtf-featured-category-card:hover::after,
.wtf-featured-category-card:focus-visible::after {
    bottom: clamp(2px, 0.3vw, 6px);
    border-top-color: #f9f9f9;
}


/* ==========================================================
   Fallback
========================================================== */

.wtf-featured-category-card.has-no-image {
    background: #222;
}


/* ==========================================================
   Tablet
========================================================== */

@media (max-width: 1100px) {

    /* Keep the curated Shop/root row responsive without overriding the
       max-width behavior of dynamic child/sibling navigation. */
    .wtf-featured-categories--root {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ==========================================================
   Mobile
   Horizontal swipe / scroll-snap layout
========================================================== */

@media (max-width: 767px) {

    .wtf-featured-categories,
    .wtf-featured-categories--child,
    .wtf-featured-categories--sibling {
        display: flex;
        flex-wrap: nowrap;

        gap: 10px;
        width: auto;

        overflow-x: auto;
        overflow-y: visible;

        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        -webkit-overflow-scrolling: touch;

        padding: 0 16px 8px;
        margin-left: -16px;
        margin-right: -16px;

        scrollbar-width: none;
    }

    .wtf-featured-categories::-webkit-scrollbar {
        display: none;
    }

    .wtf-featured-category-card,
    .wtf-featured-category-card--child,
    .wtf-featured-category-card--sibling {
        flex: 0 0 44vw;
        min-width: 44vw;

        aspect-ratio: 3 / 1;
        min-height: 76px;
        padding: 13px;

        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }

    .wtf-featured-category-card__title,
    .wtf-featured-category-card--child .wtf-featured-category-card__title,
    .wtf-featured-category-card--sibling .wtf-featured-category-card__title {
        font-size: clamp(14px, 4vw, 19px);
    }

    .wtf-featured-category-card__count {
        font-size: 10px;
    }

    .wtf-featured-category-card::after {
        bottom: clamp(4px, 1.4vw, 7px);
        border-width: clamp(7px, 2vw, 9px);
    }

    .wtf-featured-category-card.is-current::after,
    .wtf-featured-category-card.is-current-branch::after,
    .wtf-featured-category-card:hover::after,
    .wtf-featured-category-card:focus-visible::after {
        bottom: clamp(1px, 0.7vw, 4px);
    }

}

/* ==========================================================
   Category Navigation - Reveal On Upward Scroll
   The normal category row remains in document flow. A JS-created
   copy slides down from the top only after the user scrolls upward.
========================================================== */

.wtf-category-nav-floating {
    --wtf-category-nav-top: 0px;

    position: fixed;
    top: var(--wtf-category-nav-top);
    z-index: 9998;

    box-sizing: border-box;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);

    transform: translateY(calc(-100% - var(--wtf-category-nav-top) - 8px));
    opacity: 0;

    /* Keep the element visible long enough to animate all the way out. */
    transition:
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 180ms ease,
        visibility 0s linear 260ms;

    pointer-events: none;
    visibility: hidden;
    will-change: transform, opacity;
}

.wtf-category-nav-floating.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

.wtf-category-nav-floating .wtf-featured-categories {
    margin-top: 0;
    margin-bottom: 0;
}

/* The floating copy should feel like navigation, not a hover-lift card deck. */
.wtf-category-nav-floating .wtf-featured-category-card:hover,
.wtf-category-nav-floating .wtf-featured-category-card:focus-visible {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .wtf-category-nav-floating {
        transition: none;
    }
}

/* ==========================================================
   Header Account + Cart Icons
========================================================== */

.wtf-header-icons {
	display: flex;
	align-items: center;
	gap: 14px;
}

.wtf-header-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e21b1b;
	color: #fff;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		background-color 0.2s ease;
}

.wtf-header-icon:hover {
	color: #fff;
	transform: translateY(-1px);
}

.wtf-header-icon svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: currentColor;
}

/* Cart quantity badge */
.wtf-cart-count {
	position: absolute;
	top: -6px;
	right: -7px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-family: Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Don't show badge when cart is empty */
.wtf-cart-count.is-empty {
	display: none;
}