:root {
    --background: #ffffff;
    --foreground: #374151;
    --card: #f5f5dc;
    --card-foreground: #374151;
    --primary: #a8d5ba;
    --secondary: #6b8e23;
    --muted: #6b7280;
    --border: #d1d5db;
    --destructive: #dc2626;
    --success: #16a34a;
    --shadow: 0 12px 28px rgba(55, 65, 81, 0.08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--foreground);
    background: var(--background);
}

a {
    color: inherit;
    text-decoration: none;
}

[x-cloak] {
    display: none !important;
}

[class^="icon-"]:before,
[class*=" icon-"]:before {
    margin-left: 0;
    margin-right: 0;
}

.button [class^="icon-"],
.button [class*=" icon-"],
.account-icon,
.cart-icon,
.menu-toggle [class^="icon-"],
.whatsapp-toggle [class^="icon-"] {
    line-height: 1;
}


img {
    display: block;
    max-width: 100%;
}

input,
select,
textarea,
button {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.center {
    text-align: center;
}

.narrow {
    max-width: 760px;
}

.site-body {
    padding-top: 64px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(212, 238, 214, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(132, 181, 118, 0.28);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.site-logo img {
    width: 96px;
    height: auto;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-list a:hover,
.social-row a:hover,
.breadcrumbs a:hover {
    color: var(--secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-link,
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.account-link:hover,
.cart-link:hover {
    background: rgba(107, 142, 35, 0.12);
    color: var(--secondary);
}

.account-icon,
.cart-icon {
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: #e4f4e2;
}

.mobile-nav.is-open {
    display: flex;
}

.alerts {
    padding-top: 1rem;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(168, 213, 186, 0.25);
    margin-bottom: 0.75rem;
}

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(168, 213, 186, 0.15), rgba(107, 142, 35, 0.15));
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 5rem 0;
}

.hero-copy-block {
    max-width: 880px;
    margin: 0 auto;
}

.hero-copy-block h1,
.page-hero h1,
.page-head h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.12;
}

.hero-copy-block p,
.page-hero p,
.section-heading p,
.lead {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-actions,
.dual-actions,
.card-actions,
.feature-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions {
    justify-content: center;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--secondary);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.button:hover {
    opacity: 0.92;
}

.button-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.button-whatsapp,
.button-whatsapp-outline {
    border-color: #16a34a;
}

.button-whatsapp-outline {
    background: transparent;
    color: #16a34a;
}

.button-ghost {
    background: transparent;
    color: var(--foreground);
    border-color: transparent;
}

.button-small {
    min-height: 38px;
    padding: 0.55rem 0.9rem;
    font-size: 0.92rem;
}

.light-outline {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.section,
.shop-page,
.product-page {
    padding: 4rem 0;
}

.section-card {
    background: var(--card);
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading.center {
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.page-hero {
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, rgba(168, 213, 186, 0.15), rgba(107, 142, 35, 0.15));
}

.page-head.with-back {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-topbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.card-grid,
.feature-grid,
.product-grid,
.footer-grid,
.story-grid,
.contact-grid,
.cart-layout,
.shop-layout,
.product-detail-layout,
.info-grid {
    display: grid;
    gap: 1.5rem;
}

.categories-grid,
.feature-grid,
.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.two-col,
.story-grid,
.contact-grid,
.product-detail-layout,
.info-grid,
.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-layout {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: start;
}

.panel,
.category-card,
.product-card,
.feature-card,
.info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel,
.feature-card,
.info-card {
    padding: 1.5rem;
}

.category-card,
.product-card {
    position: relative;
    overflow: hidden;
}

.card-body {
    padding: 1.25rem;
}

.product-card .card-body {
    padding: 0.9rem;
}

.card-body h3,
.feature-card h3,
.info-card h3,
.panel h2,
.order-summary h2 {
    margin: 0 0 0.75rem;
}

.media-frame {
    overflow: hidden;
    background: #f3f4f6;
}

.media-frame img,
.product-media-panel img,
.cart-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-frame.square {
    aspect-ratio: 1 / 1;
}

.media-frame.large-frame {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
}

.category-card:hover img,
.product-card:hover img {
    transform: scale(1.04);
    transition: transform 0.3s ease;
}

.sale-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: var(--destructive);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.price-row strong {
    font-size: 1.8rem;
    color: var(--secondary);
}

.price-row.small strong {
    font-size: 1.2rem;
}

.muted {
    color: var(--muted);
}

.strike {
    text-decoration: line-through;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

.feature-card,
.info-card {
    text-align: center;
}

.feature-icon,
.feature-inline-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: rgba(168, 213, 186, 0.25);
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-inline-icon {
    margin: 0;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.mission-band {
    background: var(--secondary);
    color: #fff;
}

.mission-band p {
    color: rgba(255, 255, 255, 0.85);
}

.rich-copy p {
    margin-top: 0;
    color: var(--muted);
    line-height: 1.75;
}

.filter-form,
.form-stack,
.checkout-stack {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid .full-span {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.checkbox-list {
    display: grid;
    gap: 0.6rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.checkbox-row input {
    width: auto;
    margin: 0;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.category-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.category-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
}

.category-nav__link.is-active,
.category-nav__link:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.results-bar {
    color: var(--muted);
    margin: 0;
}

.product-card .media-frame.square {
    aspect-ratio: 1 / 0.92;
}

.product-card h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.product-card p {
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 0.7rem;
}

.product-card .price-row.small {
    gap: 0.45rem;
    margin: 0.7rem 0;
}

.product-card .price-row.small strong {
    font-size: 1rem;
}

.card-actions {
    gap: 0.5rem;
}

.card-actions .button,
.card-actions form {
    flex: 1;
}

.card-actions .button {
    width: 100%;
    padding-inline: 0.7rem;
}

.breadcrumbs {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.product-info h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.stock-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.stock-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.in-stock {
    background: var(--success);
}

.out-of-stock {
    background: var(--destructive);
}

.feature-row {
    color: var(--muted);
    font-size: 0.95rem;
}

.bullet-list {
    margin: 0;
    padding-left: 1.1rem;
}

.bullet-list li {
    margin-bottom: 0.6rem;
}

.cart-items {
    display: grid;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.cart-item__media {
    width: 88px;
    height: 88px;
    overflow: hidden;
    border-radius: 12px;
}

.cart-item__content h3 {
    margin: 0 0 0.5rem;
}

.cart-item__content p,
.cart-item__total small,
.footer-brand p,
.footer-bottom p,
.contact-list small {
    color: var(--muted);
}

.cart-item__actions,
.quantity-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quantity-form input {
    width: 84px;
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.quantity-stepper__button {
    min-width: 38px;
    padding-inline: 0;
}

.quantity-stepper__value {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.cart-item__total {
    text-align: right;
}

.order-summary {
    position: sticky;
    top: 84px;
}

.order-summary-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.order-summary-actions .button {
    width: 100%;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.total-row {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.1rem;
}

.contact-side,
.contact-list {
    display: grid;
    gap: 1rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.form-error {
    display: block;
    margin-top: 0.35rem;
    color: var(--destructive);
}

.success-panel {
    max-width: 640px;
    margin: 0 auto;
}

.center-actions {
    justify-content: center;
}

.site-footer {
    background: var(--secondary);
    color: #fff;
    padding-top: 3rem;
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

.footer-brand p,
.footer-list a,
.footer-bottom p,
.social-row a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.social-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
}

.whatsapp-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
}

.whatsapp-panel {
    display: none;
    width: 320px;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.whatsapp-panel.is-open {
    display: block;
}

.whatsapp-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.whatsapp-panel__header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
}

.whatsapp-list {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0;
}

.whatsapp-list a {
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.whatsapp-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.empty-state {
    padding: 4rem 1rem;
}

@media (max-width: 1024px) {
    .categories-grid,
    .feature-grid,
    .four-col,
    .three-col,
    .two-col,
    .story-grid,
    .contact-grid,
    .info-grid,
    .footer-grid,
    .cart-layout,
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .shop-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-body {
        padding-top: 64px;
    }

    .hero-copy-block h1,
    .page-hero h1,
    .page-head h1 {
        font-size: 2.2rem;
    }

    .form-grid,
    .price-grid {
        grid-template-columns: 1fr;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-head.with-back {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .cart-item__total {
        text-align: left;
    }

    .whatsapp-widget {
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-panel {
        width: min(320px, calc(100vw - 2rem));
    }
}

/* Live Herbcafe-inspired shop layout */
.shop-hero {
    padding-bottom: 2.5rem;
}

.shop-layout {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 84px;
}

.filter-heading,
.shop-toolbar,
.sort-form {
    display: flex;
    align-items: center;
}

.filter-heading {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-heading h2 {
    margin: 0;
    font-size: 1.25rem;
}

.filter-heading a {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.shop-content {
    min-width: 0;
}

.compact-category-nav {
    margin-bottom: 1rem;
}

.shop-toolbar {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sort-form {
    gap: 0.7rem;
    white-space: nowrap;
}

.sort-form label {
    margin: 0;
    color: var(--muted);
}

.sort-form select {
    width: auto;
    min-width: 160px;
    padding-block: 0.6rem;
}

.filter-form .button {
    width: 100%;
}

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sort-form,
    .sort-form select {
        width: 100%;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.journal-search {
    display: flex;
    gap: 0.5rem;
    min-width: min(420px, 100%);
}

.journal-search input {
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.journal-card {
    overflow: hidden;
    padding: 0;
}

.journal-card .media-frame {
    border-radius: 0;
}

.journal-card__body {
    padding: 1.25rem;
}

.journal-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.journal-meta a {
    color: var(--secondary);
    font-weight: 700;
}

.journal-card h2,
.journal-card h3 {
    margin: 0 0 0.75rem;
}

.journal-card p {
    color: var(--muted);
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--secondary);
    font-weight: 700;
}

.journal-detail-section {
    padding-top: 5rem;
}

.journal-detail {
    padding: 2rem;
}

.journal-detail h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
}

.journal-detail__image {
    margin: 2rem 0;
}

.journal-content {
    color: var(--foreground);
    font-size: 1.05rem;
    line-height: 1.85;
}

.related-section {
    padding-bottom: 0;
}

.compact-journal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rotate-left:before {
    transform: rotate(-90deg);
}

@media (max-width: 1024px) {
    .journal-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .journal-grid,
    .compact-journal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .journal-grid,
    .compact-journal-grid {
        grid-template-columns: 1fr;
    }

    .journal-search {
        flex-direction: column;
    }

    .journal-detail {
        padding: 1.25rem;
    }
}
