/* =====================================================
   PRODUCTS / PACKING SUPPLIES PAGE
   ====================================================== */

/* Opaque, so the rounded lip reads against the banner behind it. */
.prod-page {
    background: #fffdf8;
}

/* =====================================================
   TOOLBAR
   ====================================================== */
.prod-toolbar-wrap {
    position: sticky;
    /* Clears the navbar plus the contact strip above it. */
    top: calc(56px + var(--topbar-h, 36px));
    z-index: 500;
    background: rgba(255, 253, 248, .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #f0eade;
    border-bottom: 1px solid #f0eade;
    padding: 16px 24px;
}

.prod-toolbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.prod-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.prod-filter {
    padding: 9px 18px;
    border: 1px solid #e8e2d6;
    border-radius: 100px;
    background: #ffffff;
    color: #56524a;
    font-size: 13px;
    font-weight: 700;
    transition: all 280ms cubic-bezier(.2, .8, .2, 1);
}

.prod-filter:hover {
    border-color: rgba(254, 111, 1, .45);
    color: var(--orange-dark, #cb5901);
    transform: translateY(-1px);
}

.prod-filter.active {
    background: var(--black, #171714);
    border-color: var(--black, #171714);
    color: #ffffff;
}

.prod-search {
    position: relative;
    flex: 0 1 300px;
    min-width: 220px;
}

.prod-search svg {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: #a8a294;
    pointer-events: none;
}

.prod-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #e8e2d6;
    border-radius: 100px;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    color: var(--black, #171714);
    outline: none;
    transition: border-color 260ms ease, box-shadow 260ms ease;
}

.prod-search input::placeholder {
    color: #a8a294;
}

.prod-search input:focus {
    border-color: rgba(254, 111, 1, .6);
    box-shadow: 0 0 0 4px rgba(254, 111, 1, .12);
}

/* =====================================================
   GRID
   ====================================================== */
.prod-section {
    padding: 46px 24px 90px;
    background: #fffdf8;
}

.prod-container {
    max-width: 1200px;
    margin: 0 auto;
}

.prod-count {
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--gray, #706b61);
}

.prod-count strong {
    color: var(--black, #171714);
    font-weight: 700;
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* ---- Card ---- */
.prod-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ebe5da;
    border-radius: 22px;
    overflow: hidden;
    transition: transform 380ms cubic-bezier(.2, .8, .2, 1),
                box-shadow 380ms cubic-bezier(.2, .8, .2, 1),
                border-color 380ms ease;
}

.prod-card:hover {
    transform: translateY(-6px);
    border-color: rgba(254, 111, 1, .4);
    box-shadow: 0 26px 54px rgba(23, 23, 20, .10);
}

.prod-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(160deg, #fdf8ee 0%, #f4efe4 100%);
    overflow: hidden;
}

.prod-media img {
    width: 100%;
    mix-blend-mode: multiply;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 500ms cubic-bezier(.2, .8, .2, 1);
}

.prod-card:hover .prod-media img {
    transform: scale(1.06);
}

.prod-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(23, 23, 20, .06);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #777063;
}

.prod-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

.prod-name {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--black, #171714);
}

.prod-desc {
    margin-top: 5px;
    font-size: 13px;
    color: var(--gray, #706b61);
    line-height: 1.5;
    flex: 1;
}

.prod-price-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 16px 0 14px;
    padding-top: 14px;
    border-top: 1px dashed #eee7d9;
}

.prod-price {
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.8px;
    color: var(--black, #171714);
}

.prod-price small {
    font-size: 12px;
    font-weight: 700;
    color: var(--orange-dark, #cb5901);
    margin-right: 2px;
}

.prod-unit {
    font-size: 12px;
    color: #918a7d;
    font-weight: 600;
}

/* ---- WhatsApp Button ---- */
.prod-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 100px;
    background: var(--black, #171714);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    transition: all 320ms cubic-bezier(.2, .8, .2, 1);
}

.prod-order i {
    font-size: 16px;
    transition: transform 320ms cubic-bezier(.2, .8, .2, 1);
}

.prod-order:hover {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(37, 211, 102, .32);
}

.prod-order:hover i {
    transform: scale(1.12);
}

/* ---- Empty State ---- */
.prod-empty {
    display: none;
    padding: 70px 24px;
    text-align: center;
    border: 1px dashed #e5ddcd;
    border-radius: 22px;
    background: #ffffff;
}

.prod-empty.show {
    display: block;
}

.prod-empty svg {
    width: 30px;
    height: 30px;
    color: var(--orange, #fe6f01);
}

.prod-empty h3 {
    margin-top: 14px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.prod-empty p {
    margin-top: 7px;
    color: var(--gray, #706b61);
    font-size: 14px;
}

/* =====================================================
   BULK ORDER CTA
   ====================================================== */
.prod-cta {
    padding: 0 24px 90px;
    background: #fffdf8;
}

.prod-cta-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 48px;
    border-radius: 28px;
    background: linear-gradient(120deg, #1b1a16 0%, #2b2822 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    flex-wrap: wrap;
}

.prod-cta-inner::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 111, 1, .28), transparent 68%);
    pointer-events: none;
}

.prod-cta-text {
    position: relative;
    max-width: 620px;
}

.prod-cta-text span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange-light, #ff9445);
}

.prod-cta-text h2 {
    margin-top: 12px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.1px;
    color: #ffffff;
}

.prod-cta-text p {
    margin-top: 12px;
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
    line-height: 1.65;
}

.prod-cta-actions {
    position: relative;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.prod-cta-primary,
.prod-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    transition: all 320ms cubic-bezier(.2, .8, .2, 1);
}

.prod-cta-primary {
    background: var(--orange, #fe6f01);
    color: var(--black, #171714);
}

.prod-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(254, 111, 1, .36);
}

.prod-cta-secondary {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #ffffff;
}

.prod-cta-secondary:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-2px);
}

.prod-cta-primary i,
.prod-cta-secondary i,
.prod-cta-primary svg,
.prod-cta-secondary svg {
    width: 17px;
    height: 17px;
    font-size: 16px;
}

/* =====================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1080px) {
    .prod-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .prod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prod-toolbar {
        justify-content: flex-start;
    }
    .prod-search {
        flex: 1 1 100%;
    }
    .prod-cta-inner {
        padding: 34px 26px;
    }
}

@media (max-width: 520px) {
    .prod-toolbar-wrap {
        top: 84px;
    }
    .prod-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .prod-section {
        padding: 34px 20px 64px;
    }
    .prod-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .prod-filters::-webkit-scrollbar {
        display: none;
    }
    .prod-filter {
        white-space: nowrap;
    }
}

/*
 * SR#16 — the bundle price, under the individual price.
 *
 * The individual price stays the card's primary figure; this is the secondary line beneath it, and
 * it is only filled in for products whose operator configured a pack size and a pack price. The
 * slot is reserved whether or not it has text, because the cards sit in a grid and a line that
 * appeared on only some of them would leave the "Order on WhatsApp" buttons out of line along the
 * row.
 */
.prod-pack {
    min-height: 17px;
    margin: -8px 0 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--orange-dark, #cb5901);
    line-height: 17px;
}
