@font-face {
    font-family: Prompt;
    src: url('../fonts/prompt/Prompt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: Prompt;
    src: url('../fonts/prompt/Prompt-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap
}

@font-face {
    font-family: Prompt;
    src: url('../fonts/prompt/Prompt-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap
}

:root {
    --green: #145821;
    --green-dark: #0e4519;
    --surface: #fff;
    --placeholder: #d9d9d9;
    --muted: #606060;
    --line: #e7e7e7;
    --max: 1280px
}

* {
    box-sizing: border-box
}

html {
    background: #fff
}

body {
    margin: 0;
    color: #111;
    background: #fff;
    font-family: Prompt, Arial, sans-serif;
    font-size: 12px;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit
}

button,
input {
    font: inherit
}

.site-shell,
.search-box,
.home-banner,
.category-card,
.product-card {
    box-shadow: none !important
}

.site-shell {
    width: 100%;
    max-width: var(--max);
    min-height: 0;
    margin: auto;
    padding-bottom: 24px;
    background: #fff
}

.search-box {
    display: flex;
    height: 46px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--green);
    border-radius: 28px;
    background: #fff
}

.search-box input {
    min-width: 0;
    flex: 1;
    height: 100%;
    padding: 0 8px 0 23px;
    border: 0;
    outline: 0;
    color: #222;
    background: transparent;
    font-size: 12px
}

.search-box input::placeholder {
    color: #cfcfcf;
    opacity: 1
}

.search-box button {
    position: relative;
    width: 54px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer
}

.search-box button span {
    position: absolute;
    top: 11px;
    left: 14px;
    width: 18px;
    height: 18px;
    border: 1.7px solid var(--green);
    border-radius: 50%
}

.search-box button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-box svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: #0f6535;
}

.search-box button span::after {
    position: absolute;
    right: -7px;
    bottom: -5px;
    width: 9px;
    height: 1.7px;
    background: var(--green);
    content: "";
    transform: rotate(47deg);
    transform-origin: left
}

.hero-placeholder {
    width: 100%;
    aspect-ratio: 379/160;
    margin-top: 8px;
    border-radius: 19px;
    background: var(--placeholder)
}

.site-main {
    padding: 26px 13px 20px
}

.is-home+.site-main {
    padding-top: 26px
}

.content-section+.content-section {
    margin-top: 14px
}

.section-heading {
    display: flex;
    min-height: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 11px
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 400
}

.section-heading a {
    text-decoration: none
}

.product-list-heading>span {
    color: var(--muted)
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 11px;
    text-decoration: none;

    border: 0.5px solid var(--line);
}

.category-card img,
.category-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.category-card strong {
    position: absolute;
    right: 7px;
    bottom: 7px;
    left: 7px;
    overflow: hidden;
    padding: 5px 7px;
    border-radius: 7px;
    color: #fff;
    background: rgba(20, 88, 33, .9);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap
}

.product-list {
    display: grid
}

.product-card {
    display: grid;
    grid-template-columns: 63px minmax(0, 1fr) auto;
    min-height: 69px;
    gap: 19px;
    align-items: start;
    padding: 4px 6px 4px 0;

    border-bottom: 1px solid var(--line);
    padding-left: 5px;
}

.product-image {
    width: 63px;
    height: 63px;
    overflow: hidden;
    border-radius: 11px;
    background: var(--placeholder);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.product-info {
    min-width: 0;
    padding-top: 1px
}

.product-info h2 {
    overflow: hidden;
    margin: 0 0 3px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap
}

.product-info p {
    margin: 0;
    line-height: 1.65
}

.product-info p span {
    color: var(--muted)
}

.product-price {
    align-self: end;
    margin-bottom: 3px;
    padding: 2px 7px;
    border-radius: 6px;
    color: #fff;
    background: var(--green);
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap
}

.empty-state {
    padding: 60px 20px;
    border: 1px dashed #d6d9d6;
    border-radius: 12px;
    color: var(--muted);
    text-align: center
}

/* =========================
   BOTTOM NAV
========================= */

.bottom-nav {
    display: none;
}

.bottom-nav a {
    display: flex;
    min-width: 0;
    min-height: 50px;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;

    color: rgba(255, 255, 255, .72);

    font-size: 11px;
    text-decoration: none;

    border: 1px solid transparent;
    border-radius: 14px;
}

.bottom-nav a.active {
    color: #fff;

    background: rgba(255, 255, 255, .12);

    border: 1px solid rgba(255, 255, 255, .22);
}


/* ICON */

.nav-icon {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    color: inherit;
}

.nav-icon svg {
    display: block;

    width: 20px;
    height: 20px;

    fill: currentColor;
}





/* =========================
   MOBILE ONLY
========================= */

@media (max-width: 700px) {

    .bottom-nav {
        position: fixed;

        left: 50%;
        bottom: 10px;

        z-index: 9999;

        display: grid;
        grid-template-columns: repeat(3, 1fr);

        width: calc(100% - 24px);
        max-width: 420px;

        padding: 6px;

        background: #146b32;

        border-radius: 18px;

        box-shadow: 0 10px 25px rgba(0, 0, 0, .16);

        transform: translateX(-50%);
    }

    /* Reserve space for the floating product navigation inside the footer,
       not below the entire document (which created a white strip). */
    body.page-product .corp-footer,
    body.page-category .corp-footer,
    body.page-list-product .corp-footer {
        padding-bottom: calc(20px + 85px);
    }
}

@media(min-width:600px) {
    body {
        font-size: 14px
    }

    .site-main {
        padding-right: 24px;
        padding-left: 24px
    }

    .category-grid {
        gap: 12px
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: 14px
    }

    .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px
    }

    .product-card {
        grid-template-columns: 76px minmax(0, 1fr) auto;
        min-height: 84px
    }

    .product-image {
        width: 76px;
        height: 76px
    }

    .product-info h2,
    .product-info p,
    .product-price {
        font-size: 13px
    }
}

@media(min-width:900px) {
    .site-shell {
        padding-bottom: 34px;
        box-shadow: none
    }

    .hero-placeholder {
        grid-column: 1/-1;
        aspect-ratio: 1100/300;
        margin-top: 10px
    }

    .site-main,
    .is-home+.site-main {
        padding: 34px 40px 50px
    }

    .category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px
    }

    .category-card strong {
        font-size: 12px
    }

    .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 32px
    }
}

/* Banner slider */
.home-banner {
    position: relative;
    z-index: 5;

    width: 100%;

    margin-bottom: 50px;

    overflow: hidden;

    border-radius: 20px;

    background: #ffffff;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);

    transform: translateY(40px);
}

.home-banner-track {
    position: relative;

    width: 100%;

    aspect-ratio: 379 / 160;

    overflow: hidden;

    border-radius: 20px;
}

.home-banner-slide {
    position: absolute;
    inset: 0;

    visibility: hidden;
    opacity: 0;

    transition: opacity .45s ease;

    overflow: hidden;

    border-radius: 20px;
}

.home-banner-slide.active {
    visibility: visible;
    opacity: 1;
}

.home-banner-slide a,
.home-banner-slide img {
    display: block;

    width: 100%;
    height: 100%;

    border-radius: 20px;
}

.home-banner-slide img {
    object-fit: cover;
    object-position: center center;
}


/* =========================
   DESKTOP
========================= */

@media (min-width: 1024px) {

    .home-banner-track {
        height: 480px;
        aspect-ratio: auto;
    }

    .home-banner-slide,
    .home-banner-slide a,
    .home-banner-slide img {
        height: 100%;
    }

}


/* =========================
   MOBILE / TABLET
========================= */

@media (max-width: 1023px) {

    .home-banner {
        margin-bottom: 40px;
        transform: translateY(30px);
    }

    .home-banner-track {
        height: auto;
        aspect-ratio: 379 / 160;
    }

}

.home-banner-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .34);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.home-banner-arrow.prev {
    left: 10px
}

.home-banner-arrow.next {
    right: 10px
}

.home-banner-dots {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 10px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 6px
}

.home-banner-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer
}

.home-banner-dots button.active {
    width: 20px;
    border-radius: 5px;
    background: #fff
}

@media(min-width:900px) {
    .home-banner {
        border-radius: 0
    }

    .home-banner-track {
        aspect-ratio: 1100/330
    }
}

@media(min-width:1200px) {
    .product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 30px
    }

    .category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr))
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important
    }
}

/* Product pagination and consistent Pichet form focus */
.search-box:focus-within {
    border-color: var(--green-dark);
    outline: 2px solid #b9dec1;
    outline-offset: 2px
}

.search-box input::placeholder {
    color: #6d806f
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 24px 0 8px
}

.pagination a,
.pagination .is-current,
.pagination-ellipsis {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #a8c9b0;
    border-radius: 8px;
    color: var(--green);
    font-size: 13px;
    text-decoration: none
}

.pagination a:hover {
    background: #edf6ef
}

.pagination .is-current {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 600
}

.pagination-ellipsis {
    border-color: transparent
}

/* Page size selector */
.page-size-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px
}

.page-size-control select {
    min-height: 36px;
    padding: 6px 30px 6px 10px;
    border: 1px solid #a8c9b0;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: var(--green);
    font-family: inherit;
    cursor: pointer
}

.page-size-control select:focus {
    border-color: var(--green-dark);
    outline: 2px solid #b9dec1;
    outline-offset: 1px
}

.page-size-control span {
    margin-left: 4px;
    color: var(--muted)
}

@media(max-width:599px) {
    .page-size-control {
        justify-content: flex-start
    }
}

/* =====================================================
   BREADCRUMB / MOBILE BOTTOM NAV / DESKTOP PRODUCT BALANCE
===================================================== */
.frontend-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 12px;
}

.frontend-breadcrumb a {
    color: var(--green);
    text-decoration: none;
}

.frontend-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #a3a3a3;
}

/* Desktop/tablet: never show mobile bottom bar */
.bottom-nav {
    display: none;
}

@media (max-width: 700px) {
    .bottom-nav {
        position: fixed;
        left: 50%;
        bottom: max(10px, env(safe-area-inset-bottom));
        z-index: 9999;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: calc(100% - 24px);
        max-width: 420px;
        min-height: 60px;
        padding: 6px;
        background: var(--green);
        border-radius: 18px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .18) !important;
        transform: translateX(-50%);
    }

    .bottom-nav a {
        min-height: 48px;
        border-radius: 13px;
    }

    .site-shell {
        padding-bottom: 0;
    }

    .frontend-breadcrumb {
        margin-bottom: 14px;
        font-size: 11px;
    }
}

/* Product/category hover feedback */
.product-card,
.category-card {
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.product-card:hover,
.category-card:hover {
    box-shadow: 0 8px 22px rgba(20, 88, 33, .10) !important;
    transform: translateY(-2px);
    background: #fff;
}

/* Desktop product list: balanced 2-column layout; mobile remains unchanged */
@media (min-width: 900px) {
    .page-list-product .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 24px !important;
        align-items: stretch;
    }

    .page-list-product .product-card {
        min-height: 104px;
        grid-template-columns: 86px minmax(0, 1fr) auto;
        gap: 16px;
        align-items: center;
        padding: 10px 12px;
        border: 1px solid #edf0ed;
        border-radius: 14px;
        background: #fff;
    }

    .page-list-product .product-image {
        width: 86px;
        height: 86px;
    }

    .page-list-product .product-info {
        padding-top: 0;
    }

    .page-list-product .product-info h2 {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.45;
    }

    .page-list-product .product-price {
        align-self: center;
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .page-list-product .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 30px !important;
    }
}

/* =====================================================
   SEARCH RESULT GROUPING / PRODUCT CARD REFINEMENT
===================================================== */

/* Cards remain visually stable: shadow only on hover */
.product-card,
.category-card {
    transition: none !important;
}

.product-card {
    border: 1px solid #e7ebe8;
    border-radius: 12px;
    background: #fff;
}

.product-card:hover,
.category-card:hover {
    transform: none !important;
    box-shadow: 0 8px 20px rgba(20, 88, 33, .10) !important;
}

.search-category-results {
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e7ebe8;
}

.search-category-results .section-heading h2 {
    color: var(--green);
    font-weight: 600;
}

/* Product listing becomes a true card grid on PC only. Mobile keeps original list. */
@media (min-width: 900px) {
    .page-list-product .product-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
        align-items: stretch;
    }

    .page-list-product .product-card {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        padding: 0;
        overflow: hidden;
        border: 1px solid #e3e8e4;
        border-radius: 14px;
        background: #fff;
    }

    .page-list-product .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 0;
        border-bottom: 1px solid #eef1ef;
        background: #fff;
    }

    .page-list-product .product-image img {
        width: 100%;
        height: 100%;
        padding: 16px;
        object-fit: contain;
        background: #fff;
    }

    .page-list-product .product-info {
        flex: 1;
        width: 100%;
        padding: 14px 14px 8px;
    }

    .page-list-product .product-info h2 {
        margin-bottom: 8px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14px;
        line-height: 1.45;
    }

    .page-list-product .product-info p {
        font-size: 12px;
        line-height: 1.65;
    }

    .page-list-product .product-price {
        align-self: flex-start;
        margin: 0 14px 14px;
        padding: 5px 9px;
    }
}

@media (min-width: 1200px) {
    .page-list-product .product-list {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}

/* Pichet shared cart and quotation pages */
.pichet-flow {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 20px 65px;
    font-family: inherit
}

.pichet-flow h1 {
    font-size: 26px;
    color: #145821;
    margin: 0 0 24px
}

.pichet-cart-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8e2
}

.pichet-cart-row p {
    margin: 4px 0;
    color: #667
}

.pichet-cart-row form {
    display: flex;
    align-items: center;
    gap: 10px
}

.pichet-cart-row input[type=number] {
    width: 75px;
    padding: 9px;
    border: 1px solid #cbd8cd;
    border-radius: 6px
}

.pichet-flow button,
.pichet-flow-button,
.pichet-add-cart button {
    display: inline-block;
    background: #145821;
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    font: inherit;
    cursor: pointer;
    text-decoration: none
}

.pichet-add-cart {
    padding: 12px
}

.pichet-add-cart button {
    width: 100%;
    font-size: 13px
}

.pichet-quote-form {
    max-width: 640px;
    display: grid;
    gap: 16px;
    margin-top: 24px
}

.pichet-quote-form label {
    display: grid;
    gap: 6px
}

.pichet-quote-form input,
.pichet-quote-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd8cd;
    border-radius: 8px;
    font: inherit
}

.pichet-quote-form textarea {
    min-height: 100px
}

@media(max-width:600px) {
    .pichet-flow {
        padding: 24px 16px 48px
    }

    .pichet-flow h1 {
        font-size: 21px
    }

    .pichet-cart-row {
        align-items: flex-start;
        flex-direction: column
    }
}