:root {
    --green-dark:   #2D5016;
    --green-mid:    #4A7C28;
    --green-light:  #E8F2DC;
    --green-xlight: #F2F8EB;
    --amber:        #C8853A;
    --amber-light:  #FDF4E7;
    --cream:        #F7F3EC;
    --surface:      #FFFFFF;
    --dark:         #1C2017;
    --muted:        #6B6A5E;
    --muted-light:  #9A9890;
    --border:       #DDD5BC;
    --border-light: #EDE8DC;
    --shadow-sm:    0 2px 8px rgba(28,32,23,0.08);
    --shadow-md:    0 4px 20px rgba(28,32,23,0.12);
    --shadow-lg:    0 8px 32px rgba(28,32,23,0.16);
    --radius-sm:    10px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --radius-xl:    32px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Encode Sans Expanded", "Segoe UI", sans-serif;
    background: var(--cream);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ─── HEADER ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 10px 16px;
}

.site-header__inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-header__logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.site-header__translate {
    flex-shrink: 0;
}

.gt_switcher_wrapper {
    position: unset !important;
}
a.glink img {
    opacity: 1 !important;
    margin-right: 6px !important;
    width: 26px !important;
}

/* ─── HOME PAGE HERO ─── */
.home-hero {
    background: linear-gradient(145deg, var(--green-dark) 0%, #3d6b1f 50%, var(--green-mid) 100%);
    padding: 36px 20px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.home-hero__title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
    position: relative;
}

.home-hero__name {
    font-size: clamp(24px, 7vw, 38px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 6px;
    position: relative;
}

.home-hero__sub {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    position: relative;
    margin-bottom: 0;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.82);
    margin-top: 18px;
    position: relative;
}

.home-hero__badge::before {
    content: '🌿';
    font-size: 14px;
}

/* ─── SEARCH BAR ─── */
.search-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 16px 0;
}

.search-wrap {
    position: relative;
}

.search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    color: var(--dark);
    background: var(--surface);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-sm);
    -webkit-appearance: none;
}

.search-input::placeholder {
    color: var(--muted-light);
}

.search-input:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(74,124,40,0.12);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
}

.search-clear svg {
    position: static;
    transform: none;
    width: 14px;
    height: 14px;
    color: var(--muted);
}

.search-clear.visible {
    display: flex;
}

/* ─── CATEGORY SECTION ─── */
.categories-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 16px 80px;
}

.categories-section__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    padding-left: 2px;
}

.category-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 150px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.category-card:active {
    transform: scale(0.975);
    box-shadow: var(--shadow-md);
}

.category-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 30, 10, 0.82) 0%,
        rgba(20, 30, 10, 0.52) 55%,
        rgba(20, 30, 10, 0.22) 100%
    );
    border-radius: var(--radius-md);
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 20px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.category-card__name {
    font-size: clamp(17px, 5vw, 21px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.category-card__arrow {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.category-card__arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
}

/* No-results message */
.no-results {
    text-align: center;
    padding: 48px 20px;
    display: none;
}

.no-results__icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.no-results__text {
    font-size: 15px;
    color: var(--muted);
    font-weight: 400;
}

.no-results.visible {
    display: block;
}

/* ─── CATEGORY PAGE HEADER ─── */
.cat-page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    position: sticky;
    top: 56px;
    z-index: 90;
}

.cat-page-header__inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--green-light);
    border-radius: 50%;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.back-btn:active {
    background: #d0e8b8;
}

.back-btn svg {
    width: 18px;
    height: 18px;
}

.cat-page-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* ─── PRODUCT SEARCH BAR (category page) ─── */
.product-search-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 14px 16px 0;
}

/* ─── PRODUCTS SECTION ─── */
.products-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 14px 16px 88px;
}

/* Product count label */
.products-count {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    padding-left: 2px;
}

/* Grid layout for products */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Product card — horizontal layout */
.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

/* remove any pointer / active state — cards are non-interactive */
.product-card:hover,
.product-card:active,
.product-card:focus {
    text-decoration: none;
    color: inherit;
}

/* Image area — hidden until real photos are added */
.product-card__img-wrap {
    display: none;
}

/* Badge (popular, new, etc.) */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge--popular {
    background: var(--amber);
    color: #fff;
}

.product-badge--new {
    background: var(--green-mid);
    color: #fff;
}

/* Body */
.product-card__body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-width: 0;
}

.product-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__desc {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}

/* Footer row: price — always pinned to bottom of card body */
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 6px;
}

.product-card__price {
    display: inline-flex;
    align-items: center;
    background: var(--green-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* No price label */
.product-card__price--na {
    background: var(--border);
    color: var(--muted);
}

/* No results state (product page) */
.products-no-results {
    display: none;
    text-align: center;
    padding: 48px 20px;
    grid-column: 1 / -1;
}

.products-no-results__icon {
    font-size: 38px;
    margin-bottom: 12px;
}

.products-no-results__text {
    font-size: 15px;
    color: var(--muted);
}

.products-no-results.visible {
    display: block;
}

/* ─── FOOTER ─── */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 9px 20px;
    text-align: center;
    z-index: 80;
    box-shadow: 0 -2px 12px rgba(28,32,23,0.07);
}

.site-footer__text {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}

.site-footer__text strong {
    color: var(--green-dark);
    font-weight: 600;
}
