/*
 * ELMP shop archive v180
 * Scope: body.elmp-shop-experience-v179 only.
 * WooCommerce core and templates remain untouched.
 */
body.elmp-shop-experience-v179 .elmp-page-hero.elmp-woo-hero {
    /* Explicitly preserve the established v175 hero dimensions and layout. */
}

body.elmp-shop-experience-v179 .elmp-page-wrap {
    padding-top: clamp(28px, 3vw, 48px);
}

body.elmp-shop-experience-v179 .elmp-page-card.elmp-woo-card {
    padding: clamp(16px, 2.4vw, 38px);
    overflow: visible;
    background: linear-gradient(160deg, rgba(31,32,36,.98), rgba(16,18,21,.99));
}

body.elmp-shop-experience-v179 .elmp-shop-v179 {
    margin: 0 0 28px;
    color: #f7f4ef;
}

body.elmp-shop-experience-v179 .elmp-shop-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 22px;
    padding: 2px;
    overflow: visible;
}

body.elmp-shop-experience-v179 .elmp-shop-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.035);
    box-shadow: inset 0 1px rgba(255,255,255,.035);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

body.elmp-shop-experience-v179 .elmp-shop-category:hover,
body.elmp-shop-experience-v179 .elmp-shop-category:focus-visible {
    color: #fff;
    border-color: rgba(239,106,37,.82);
    background: rgba(239,106,37,.11);
    transform: translateY(-1px);
}

body.elmp-shop-experience-v179 .elmp-shop-category.is-active {
    color: #ff8b45;
    border-color: #ef6a25;
    background: rgba(239,106,37,.13);
    box-shadow: 0 0 22px rgba(239,106,37,.1), inset 0 0 0 1px rgba(239,106,37,.08);
}

body.elmp-shop-experience-v179 .elmp-shop-category-icon {
    margin-right: 8px;
    font-size: 17px;
}

body.elmp-shop-experience-v179 .elmp-shop-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    align-items: stretch;
    width: min(1320px, 100%);
    margin: 0 auto 22px;
    border: 1px solid rgba(239,106,37,.72);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(38,40,44,.98), rgba(27,29,33,.98));
    box-shadow: 0 12px 32px rgba(0,0,0,.25), 0 0 24px rgba(239,106,37,.07);
    overflow: hidden;
}

body.elmp-shop-experience-v179 .elmp-shop-search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 54px;
    margin: 0;
    padding: 0 18px 0 50px;
    border: 0 !important;
    outline: 0;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px;
}

body.elmp-shop-experience-v179 .elmp-shop-search input[type="search"]::placeholder {
    color: rgba(255,255,255,.58);
    opacity: 1;
}

body.elmp-shop-experience-v179 .elmp-shop-search-icon,
body.elmp-shop-experience-v179 .elmp-shop-search button span {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

body.elmp-shop-experience-v179 .elmp-shop-search-icon {
    position: absolute;
    z-index: 2;
    left: 20px;
    top: 50%;
    color: rgba(255,255,255,.74);
    transform: translateY(-50%);
    pointer-events: none;
}

body.elmp-shop-experience-v179 .elmp-shop-search-icon::after,
body.elmp-shop-experience-v179 .elmp-shop-search button span::after {
    content: '';
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}

body.elmp-shop-experience-v179 .elmp-shop-search button {
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: linear-gradient(145deg, #ff812f, #e75b16);
    box-shadow: none;
    cursor: pointer;
}

body.elmp-shop-experience-v179 .elmp-shop-search button:hover,
body.elmp-shop-experience-v179 .elmp-shop-search button:focus-visible {
    background: linear-gradient(145deg, #ff9145, #f06a25);
}


body.elmp-shop-experience-v179 .elmp-shop-live-search {
    position: relative;
    width: min(1320px, 100%);
    margin: 0 auto 22px;
    z-index: 30;
}

body.elmp-shop-experience-v179 .elmp-shop-live-search .elmp-shop-search {
    width: 100%;
    margin-bottom: 0;
}

body.elmp-shop-experience-v179 .elmp-shop-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(520px, 70vh);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(239,106,37,.5);
    border-radius: 14px;
    background: rgba(15,17,20,.985);
    box-shadow: 0 22px 55px rgba(0,0,0,.55), 0 0 28px rgba(239,106,37,.09);
}

body.elmp-shop-experience-v179 .elmp-shop-search-results[hidden] {
    display: none !important;
}

body.elmp-shop-experience-v179 .elmp-shop-search-result {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 76px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

body.elmp-shop-experience-v179 .elmp-shop-search-result:hover,
body.elmp-shop-experience-v179 .elmp-shop-search-result:focus-visible {
    color: #fff;
    background: rgba(239,106,37,.11);
    transform: translateX(2px);
}

body.elmp-shop-experience-v179 .elmp-shop-search-result + .elmp-shop-search-result {
    border-top: 1px solid rgba(255,255,255,.07);
}

body.elmp-shop-experience-v179 .elmp-shop-search-thumb {
    width: 64px;
    height: 64px;
    border-radius: 9px;
    overflow: hidden;
    background: #111317;
}

body.elmp-shop-experience-v179 .elmp-shop-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.elmp-shop-experience-v179 .elmp-shop-search-copy strong,
body.elmp-shop-experience-v179 .elmp-shop-search-copy small {
    display: block;
}

body.elmp-shop-experience-v179 .elmp-shop-search-copy strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
}

body.elmp-shop-experience-v179 .elmp-shop-search-copy small {
    margin-top: 4px;
    color: #ff9a5b;
    font-size: 14px;
    font-weight: 800;
}

body.elmp-shop-experience-v179 .elmp-shop-search-arrow {
    color: #f2752b;
    font-size: 22px;
}

body.elmp-shop-experience-v179 .elmp-shop-search-status,
body.elmp-shop-experience-v179 .elmp-shop-search-empty {
    margin: 0;
    padding: 18px;
    color: rgba(255,255,255,.75);
    text-align: center;
}

body.elmp-shop-experience-v179 .elmp-shop-search-all {
    display: block;
    margin: 6px 4px 2px;
    padding: 12px;
    border-radius: 9px;
    color: #fff;
    background: rgba(239,106,37,.16);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

body.elmp-shop-experience-v179 .elmp-shop-search-all:hover,
body.elmp-shop-experience-v179 .elmp-shop-search-all:focus-visible {
    color: #fff;
    background: rgba(239,106,37,.28);
}

body.elmp-shop-experience-v179 .elmp-shop-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 22px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
    overflow: hidden;
}

body.elmp-shop-experience-v179 .elmp-shop-benefit {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 18px 24px;
}

body.elmp-shop-experience-v179 .elmp-shop-benefit + .elmp-shop-benefit::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    width: 1px;
    height: 56%;
    background: rgba(255,255,255,.1);
}

body.elmp-shop-experience-v179 .elmp-shop-benefit strong,
body.elmp-shop-experience-v179 .elmp-shop-benefit small {
    display: block;
}

body.elmp-shop-experience-v179 .elmp-shop-benefit strong {
    margin: 0 0 4px;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
}

body.elmp-shop-experience-v179 .elmp-shop-benefit small {
    color: rgba(255,255,255,.66);
    font-size: 13px;
    line-height: 1.45;
}

body.elmp-shop-experience-v179 .elmp-shop-benefit-icon {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    color: #f2752b;
}

body.elmp-shop-experience-v179 .elmp-benefit-museum::before {
    content: '⌂';
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 9px;
    font-size: 25px;
    font-weight: 700;
}

body.elmp-shop-experience-v179 .elmp-benefit-support::before {
    content: '♥';
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 20px;
}

body.elmp-shop-experience-v179 .elmp-benefit-shipping::before {
    content: '→';
    display: grid;
    place-items: center;
    width: 38px;
    height: 30px;
    margin-top: 4px;
    border: 2px solid currentColor;
    border-radius: 7px;
    font-size: 22px;
    font-weight: 800;
}

body.elmp-shop-experience-v179 .elmp-shop-collections {
    margin: 0 0 26px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    background: rgba(4,6,8,.24);
}

body.elmp-shop-experience-v179 .elmp-shop-collections h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(20px, 1.6vw, 27px);
    line-height: 1.2;
}

body.elmp-shop-experience-v179 .elmp-shop-collections-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.elmp-shop-experience-v179 .elmp-shop-collection {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 164px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    color: #fff;
    background-color: #17191d;
    background-position: center;
    background-size: cover;
    text-decoration: none;
    isolation: isolate;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body.elmp-shop-experience-v179 .elmp-shop-collection::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 70% 20%, rgba(239,106,37,.30), transparent 35%),
        linear-gradient(145deg, rgba(59,34,22,.85), rgba(10,13,17,.96));
}

body.elmp-shop-experience-v179 .elmp-shop-collection-2::before { background: radial-gradient(circle at 68% 25%, rgba(255,190,0,.27), transparent 36%), linear-gradient(145deg,#2a2015,#0c1015); }
body.elmp-shop-experience-v179 .elmp-shop-collection-3::before { background: radial-gradient(circle at 72% 22%, rgba(77,116,255,.28), transparent 35%), linear-gradient(145deg,#171d32,#0b0e13); }
body.elmp-shop-experience-v179 .elmp-shop-collection-4::before { background: radial-gradient(circle at 70% 20%, rgba(239,106,37,.26), transparent 35%), linear-gradient(145deg,#281a18,#0b0e12); }

body.elmp-shop-experience-v179 .elmp-shop-collection:hover,
body.elmp-shop-experience-v179 .elmp-shop-collection:focus-visible {
    color: #fff;
    transform: translateY(-3px);
    border-color: rgba(239,106,37,.62);
    box-shadow: 0 16px 35px rgba(0,0,0,.28);
}

body.elmp-shop-experience-v179 .elmp-shop-collection-copy strong,
body.elmp-shop-experience-v179 .elmp-shop-collection-copy small {
    display: block;
    text-shadow: 0 2px 12px rgba(0,0,0,.75);
}

body.elmp-shop-experience-v179 .elmp-shop-collection-copy strong {
    margin-bottom: 4px;
    font-size: 20px;
}

body.elmp-shop-experience-v179 .elmp-shop-collection-copy small {
    color: rgba(255,255,255,.78);
    font-size: 13px;
}

body.elmp-shop-experience-v179 .elmp-shop-collection-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    color: #fff;
    background: #ec681f;
    font-size: 18px;
}

/* Native WooCommerce toolbar: visual change only. */
body.elmp-shop-experience-v179 .woocommerce-result-count {
    margin: 9px 0 22px;
    color: rgba(255,255,255,.78);
}

body.elmp-shop-experience-v179 .woocommerce-ordering {
    margin: 0 0 22px;
}

body.elmp-shop-experience-v179 .woocommerce-ordering select {
    min-width: min(360px, 78vw);
    min-height: 44px;
    padding: 8px 38px 8px 14px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 11px;
    color: #f8f8f8 !important;
    background-color: #292b2f !important;
    box-shadow: none;
}

/* Native select popup readability fix requested by the user. */
body.elmp-shop-experience-v179 .woocommerce-ordering select option,
body.elmp-shop-experience-v179 .woocommerce-ordering select optgroup {
    color: #202124 !important;
    background: #fff !important;
}

body.elmp-shop-experience-v179 ul.products {
    clear: both;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

body.elmp-shop-experience-v179 ul.products::before,
body.elmp-shop-experience-v179 ul.products::after {
    display: none;
}

body.elmp-shop-experience-v179 ul.products li.product {
    display: flex;
    flex-direction: column;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 17px;
    background: linear-gradient(180deg, rgba(30,32,36,.98), rgba(19,21,24,.99));
    box-shadow: 0 12px 28px rgba(0,0,0,.17);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.elmp-shop-experience-v179 ul.products li.product:hover {
    transform: translateY(-3px);
    border-color: rgba(239,106,37,.48);
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
}

body.elmp-shop-experience-v179 ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    color: #fff;
}

body.elmp-shop-experience-v179 ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 13px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(0,0,0,.16);
}

body.elmp-shop-experience-v179 ul.products li.product .woocommerce-loop-product__title {
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
}

body.elmp-shop-experience-v179 ul.products li.product .price {
    margin-top: auto;
    padding-top: 9px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

body.elmp-shop-experience-v179 ul.products li.product .button,
body.elmp-shop-experience-v179 ul.products li.product .added_to_cart,
body.elmp-shop-experience-v179 ul.products[class*="columns-"] > li.product .button,
body.elmp-shop-experience-v179 ul.products[class*="columns-"] > li.product .added_to_cart {
    align-self: flex-start !important;
    margin-top: 12px !important;
    padding: 12px 16px !important;
    border: 1px solid #ff8a3d !important;
    border-radius: 10px !important;
    color: #151515 !important;
    background: linear-gradient(145deg, #ff8b3d, #ef6a25) !important;
    box-shadow: 0 8px 18px rgba(239,106,37,.18) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

body.elmp-shop-experience-v179 ul.products li.product .button:hover,
body.elmp-shop-experience-v179 ul.products li.product .button:focus-visible,
body.elmp-shop-experience-v179 ul.products li.product .added_to_cart:hover,
body.elmp-shop-experience-v179 ul.products li.product .added_to_cart:focus-visible {
    color: #0b0b0b !important;
    background: linear-gradient(145deg, #ffa05f, #ff7a2b) !important;
    border-color: #ffad73 !important;
}

body.elmp-shop-experience-v179 nav.woocommerce-pagination {
    clear: both;
    padding-top: 28px;
}

@media (max-width: 1180px) {
    body.elmp-shop-experience-v179 .elmp-shop-benefits { grid-template-columns: 1fr; }
    body.elmp-shop-experience-v179 .elmp-shop-benefit + .elmp-shop-benefit::before { top: 0; left: 24px; width: calc(100% - 48px); height: 1px; }
    body.elmp-shop-experience-v179 .elmp-shop-collections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.elmp-shop-experience-v179 ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    body.elmp-shop-experience-v179 .elmp-page-card.elmp-woo-card { padding: 16px; }
    body.elmp-shop-experience-v179 ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    body.elmp-shop-experience-v179 .woocommerce-ordering,
    body.elmp-shop-experience-v179 .woocommerce-result-count { float: none; width: 100%; }
    body.elmp-shop-experience-v179 .woocommerce-ordering select { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
    body.elmp-shop-experience-v179 .elmp-shop-search { grid-template-columns: minmax(0, 1fr) 50px; }
    body.elmp-shop-experience-v179 .elmp-shop-search input[type="search"],
    body.elmp-shop-experience-v179 .elmp-shop-search button { height: 50px; }
    body.elmp-shop-experience-v179 .elmp-shop-benefit { grid-template-columns: 36px minmax(0,1fr); padding: 16px; }
    body.elmp-shop-experience-v179 .elmp-shop-collections { padding: 13px; }
    body.elmp-shop-experience-v179 .elmp-shop-collections-grid { grid-template-columns: 1fr; }
    body.elmp-shop-experience-v179 .elmp-shop-collection { min-height: 135px; }
    body.elmp-shop-experience-v179 ul.products { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    body.elmp-shop-experience-v179 .elmp-shop-category,
    body.elmp-shop-experience-v179 .elmp-shop-collection,
    body.elmp-shop-experience-v179 ul.products li.product { transition: none; }
}

/* v180: categories wrap naturally to additional rows as new terms are added. */
body.elmp-shop-experience-v179 .elmp-shop-categories {
    flex-wrap: wrap !important;
    overflow: visible !important;
}
body.elmp-shop-experience-v179 .elmp-shop-category {
    flex: 0 0 auto !important;
}

/* Product cards: target the native loop directly, regardless of wrapper markup. */
body.elmp-shop-experience-v179 ul.products[class*="columns-"] {
    clear: both !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
}
body.elmp-shop-experience-v179 ul.products[class*="columns-"] > li.product {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 17px !important;
    background: linear-gradient(180deg, rgba(31,33,37,.99), rgba(17,19,22,.99)) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.24) !important;
}
body.elmp-shop-experience-v179 ul.products[class*="columns-"] > li.product > a:first-child {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
}
body.elmp-shop-experience-v179 ul.products[class*="columns-"] > li.product img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    border-radius: 12px !important;
    background: rgba(0,0,0,.18);
}
body.elmp-shop-experience-v179 ul.products[class*="columns-"] > li.product:hover {
    transform: translateY(-3px);
    border-color: rgba(239,106,37,.58) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.34) !important;
}

@media (max-width: 1180px) {
    body.elmp-shop-experience-v179 ul.products[class*="columns-"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
    body.elmp-shop-experience-v179 .elmp-shop-categories { margin-inline: -2px; padding-bottom: 12px; }
    body.elmp-shop-experience-v179 .elmp-shop-category { min-height: 44px; padding-inline: 15px; }
    body.elmp-shop-experience-v179 ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}
@media (max-width: 560px) {
    body.elmp-shop-experience-v179 ul.products[class*="columns-"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 700px) {
    body.elmp-shop-experience-v179 .elmp-shop-categories {
        gap: 8px;
    }
    body.elmp-shop-experience-v179 .elmp-shop-category {
        min-height: 40px;
        padding: 8px 13px;
        font-size: 13px;
    }
    body.elmp-shop-experience-v179 .elmp-shop-search-results {
        max-height: 62vh;
    }
    body.elmp-shop-experience-v179 .elmp-shop-search-result {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 8px;
    }
    body.elmp-shop-experience-v179 .elmp-shop-search-thumb {
        width: 54px;
        height: 54px;
    }
}
