/* Storefront product catalog */
.trending-products-section {
    padding: 90px 24px 110px;
    background: #f6f2ea;
}

.trending-products-section .center-heading {
    margin-bottom: 44px;
}

.dynamic-showcase-container {
    max-width: 1200px;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e2d8;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(31,46,39,.11);
}

.staples-layout {
    display: grid !important;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 0 !important;
    align-items: stretch !important;
    margin: 0 !important;
}

.staples-sidebar {
    width: auto !important;
    min-height: 610px;
    background: #fbfaf7 !important;
    border: 0 !important;
    border-right: 1px solid #e8e2d8 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.sidebar-header {
    min-height: 76px;
    padding: 22px !important;
    color: #fff !important;
    background: #173d31 !important;
    border: 0 !important;
    font-size: 13px !important;
    letter-spacing: .7px;
}

.category-list { max-height: none !important; }

.cat-item {
    position: relative;
    padding: 18px 22px !important;
    color: #59645e !important;
    background: transparent !important;
    border-bottom: 1px solid #ebe6dc !important;
    font-size: 13px;
    transition: color .2s, background .2s, padding .2s !important;
}

.cat-item:hover {
    padding-left: 27px !important;
    color: #173d31 !important;
    background: #f3eee5 !important;
}

.cat-item.active {
    color: #fff !important;
    background: #b52b24 !important;
}

.cat-item.active::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    width: 16px;
    height: 16px;
    background: #b52b24;
    transform: translateY(-50%) rotate(45deg);
}

.staples-content {
    position: relative;
    width: auto !important;
    min-width: 0;
    padding: 34px !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.product-showcase { position: relative; z-index: 1; }

.showcase-top-row {
    position: relative;
    min-height: 210px;
    margin-bottom: 28px !important;
    padding: 32px !important;
    overflow: hidden;
    align-items: flex-start !important;
    border-radius: 17px;
    /* Show the product image at its original brightness (without a dark overlay). */
    background-image: var(--showcase-bg);
    background-size: cover;
    background-position: center;
}

.showcase-info-left {
    position: relative;
    z-index: 2;
    max-width: 640px !important;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .78);
    border-radius: 12px;
}

#mainShowcaseTitle {
    margin-bottom: 10px !important;
    color: #000;
    text-shadow: none !important;
    font: 700 clamp(30px, 3vw, 43px)/1.1 Georgia, serif !important;
    letter-spacing: -1px;
}

#mainShowcaseBubble {
    margin-bottom: 13px !important;
    color: #6d4a0d !important;
    background: #f4d28b !important;
    border: 0 !important;
}

#mainShowcaseDesc {
    max-width: 610px;
    color: #000;
    text-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

.showcase-arrows { position: relative; z-index: 2; }
.showcase-arrow-btn {
    width: 42px !important;
    height: 42px !important;
    color: #173d31 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.category-product-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 0 10px;
}

.category-product-grid::-webkit-scrollbar { display: none; }

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0 20px;
}

.catalog-toolbar > div { display: flex; flex-direction: column; }
.catalog-eyebrow { color: #9b8060; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.catalog-toolbar strong { color: #25332c; font-size: 18px; }

.catalog-search {
    width: min(280px, 42%);
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #faf8f3;
    border: 1px solid #e2ddd3;
    border-radius: 10px;
}

.catalog-search input { width: 100%; color: #29352f; background: transparent; border: 0; outline: 0; font-size: 12px; }
.catalog-toolbar > .catalog-scroll-controls {
    display: flex;
    flex-direction: row;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.catalog-scroll-controls button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #173d31;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.catalog-scroll-controls svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.catalog-scroll-controls button:hover { background: #b52b24; transform: translateY(-2px); }
.catalog-scroll-controls button:active { transform: translateY(0); }
.product-card-item { position: relative; }
.product-card-item[hidden] { display: none; }

.product-wishlist {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #425249;
    background: rgba(255,255,255,.94);
    border: 1px solid #e4dfd5;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.product-wishlist.saved { color: #b52b24; }
.product-card-badge { position: absolute; z-index: 2; top: 15px; left: 14px; padding: 5px 8px; color: #fff; background: #b52b24; border-radius: 5px; font-size: 8px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }

.product-pack-select { display: block; margin-bottom: 12px; }
.product-pack-select > span { display: block; margin-bottom: 5px; color: #7d8882; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.product-pack-select select { width: 100%; padding: 9px 10px; color: #34443b; background: #fff; border: 1px solid #ddd8cf; border-radius: 7px; outline: 0; font-size: 12px; }

.product-card-item {
    flex: 0 0 calc(33.333% - 12px);
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9e4da;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(31,46,39,.07);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    scroll-snap-align: start;
}

.product-card-item:hover {
    transform: translateY(-6px);
    border-color: rgba(181,43,36,.28);
    box-shadow: 0 18px 36px rgba(31,46,39,.13);
}

.product-card-img-wrap {
    height: 235px;
    padding: 22px;
    background: #faf8f3;
    border-bottom: 1px solid #eee9df;
}

.product-card-img-wrap img { transition: transform .3s; }
.product-card-item:hover .product-card-img-wrap img { transform: scale(1.05); }

.product-card-pack {
    margin: 14px 14px 10px;
    padding: 9px 11px;
    color: #39483f;
    background: #fff;
    border: 1px solid #ddd8cf;
    border-radius: 7px;
}

.product-card-pack::after { content: "In stock"; color: #31834c; font-size: 9px; text-transform: uppercase; }

.product-card-info { padding: 4px 14px 16px; }
.product-card-category { color: #9b8060; font-size: 9px; letter-spacing: 1px; }
.product-card-title { margin: 4px 0 13px; color: #202923; font-size: 15px; }

.product-card-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.product-card-meta span {
    padding: 4px 7px;
    color: #587066;
    background: #edf4f0;
    border-radius: 999px;
    font-size: 9px;
}

.product-card-order-btn {
    padding: 10px 13px;
    justify-content: space-between;
    background: #173d31;
    border-radius: 8px;
    font-size: 11px;
}

.product-card-order-btn:hover { background: #b52b24; }

@media (max-width: 900px) {
    .trending-products-section { padding: 65px 14px 80px; }
    .staples-layout { display: block !important; }
    .staples-sidebar { min-height: 0; border-right: 0 !important; border-bottom: 1px solid #e8e2d8 !important; }
    .category-list.open { max-height: 320px !important; }
    .cat-item.active::after { display: none; }
    .staples-content { padding: 18px !important; }
    .showcase-top-row { min-height: 250px; padding: 24px 20px !important; }
    .showcase-info-left { max-width: 100% !important; }
    .category-product-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
    .product-card-item { flex: 0 0 82% !important; scroll-snap-align: start; }
    .catalog-toolbar { align-items: stretch; flex-direction: column; }
    .catalog-search { width: 100%; }
    .catalog-scroll-controls { align-self: flex-end; }
}

/* Refined warm storefront cards */
.product-card-item {
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(31,46,39,.1);
}
.product-card-item:hover { transform: translateY(-7px); box-shadow: 0 22px 44px rgba(31,46,39,.16); }
.product-card-img-wrap {
    position: relative;
    height: 270px;
    padding: 28px 30px 22px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 42%, #fff 0 27%, #fbf2df 62%, #f3e4c4 100%);
    border: 0;
}
.product-card-img-wrap::after { content: ""; position: absolute; left: 17%; right: 17%; bottom: 20px; height: 17px; border-radius: 50%; background: rgba(49,42,27,.17); filter: blur(9px); }
.product-card-img-wrap img { position: relative; z-index: 1; max-width: 88%; mix-blend-mode: normal !important; filter: drop-shadow(0 13px 11px rgba(46,38,23,.18)); }
.product-card-info { position: relative; padding: 23px 20px 20px; }
.product-card-info::before { content: ""; position: absolute; top: 0; left: 20px; width: 40px; height: 3px; border-radius: 4px; background: #d79b2b; }
.product-card-category { color: #a77d3d; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.product-card-title { margin: 6px 0 17px; color: #173d31; font: 700 20px/1.2 Georgia, serif; }
.product-card-meta { margin-bottom: 17px; }
.product-card-meta span { padding: 5px 8px; color: #4a665a; background: #edf5f1; }
.product-card-order-btn { padding: 12px 15px; background: #b52b24; border-radius: 10px; font-size: 12px; }
.product-card-order-btn:hover { background: #173d31; }
.product-wishlist { top: 16px; right: 16px; width: 40px; height: 40px; border: 0; box-shadow: 0 8px 22px rgba(31,46,39,.12); }
.product-card-badge { top: 18px; left: 18px; padding: 7px 10px; color: #173d31; background: #efc778; border-radius: 999px; }
.product-pack-select > span { margin-bottom: 7px; font-weight: 800; letter-spacing: .5px; }
.product-pack-select select { padding: 11px 12px; background: #faf8f3; border-color: #e0d9ce; border-radius: 9px; }
