.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;
}

/* CARD */
.qm-product-card {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.qm-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* IMAGE */
.qm-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* BODY */
.qm-product-body {
    padding: 14px;
}

.qm-product-title {
    font-size: 16px;
    margin: 0 0 6px;
}

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

.qm-product-price {
    font-weight: 600;
    color: #111;
}


.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-product-body {
    display: flex;
    flex-direction: column;
}

.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*/

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

.filter-update .product_card{
    position:relative;
    display:flex;
    flex-direction:column;
}

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

.filter-update .et_pb_image_wrap img{
    width:100%;
    height:auto;
    display:block;
}

@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;
}



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

.filter-update .product_card {
	height: auto !important;
	min-height: 0 !important;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.filter-update .product_card .et_pb_image,
.filter-update .product_card .et_pb_image_wrap {
	margin-bottom: 15px;
}

.filter-update .product_card img {
	width: 100%;
	height: 220px;
	object-fit: contain;
	display: block;
}

.filter-update .product_card .et_pb_text {
	margin-bottom: 8px;
}

.filter-update .product_card .et_pb_text:last-child {
	margin-bottom: 0;
}



/* =========================
   FORCE PRODUCT CARD BORDERS (AJAX + INITIAL)
========================= */

/* target BOTH your versions */
.product_card,
.qm-product-card,
.filter-update .product_card {
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px !important;
    background: #fff !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* hover */
.product_card:hover,
.qm-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* kill Divi interference */
.product_card.et_pb_group,
.filter-update .et_pb_group {
    border: 1px solid #e2e2e2 !important;
    box-shadow: none !important;
    background: #fff !important;
}

/* ensure inner spacing doesn't collapse look */
.product_card > * {
    position: relative;
    z-index: 2;
}

/* fix overlay killing visuals */
.qm-card-link-overlay {
    z-index: 5;
}

/* ensure card container behaves */
.filter-update .product_card {
    display: flex !important;
    flex-direction: column !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);
    }
}

/* shortcode functions */



.qm-tax-debug ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qm-tax-debug li {
    margin: 6px 0;
}

.qm-tax-debug label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qm-tax-debug input[type="checkbox"] {
    flex: 0 0 auto;
}

.filter-update {
    align-content: flex-start !important;
    justify-content: flex-start !important;
    grid-auto-rows: max-content !important;
    row-gap: 20px !important;
}

.filter-update .product_card {
    align-self: flex-start !important;
    margin-bottom: 0 !important;
}





















