/* Farm to Door storefront — mobile-first, bilingual and dependency-free */
:root {
    --green-950: #073d24;
    --green-900: #0b4c2c;
    --green-800: #0f6036;
    --green-700: #137a3b;
    --green-100: #e7f0e8;
    --green-050: #f3f8f2;
    --orange-600: #dc5c0a;
    --orange-500: #f36b15;
    --orange-100: #fff0e4;
    --ivory: #fffaf0;
    --page-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #17251d;
    --text-muted: #5b6961;
    --border: #c8d2ca;
    --product-border: #246742;
    --product-card-border: #92b3a1;
    --input-border: #77887d;
    --danger: #a61b2b;
    --warning: #7b430d;
    --shadow-sm: 0 4px 14px rgba(7, 61, 36, 0.07);
    --shadow-md: 0 14px 36px rgba(7, 61, 36, 0.11);
    --radius-sm: 9px;
    --radius: 14px;
    --radius-lg: 22px;
    --content-width: 1360px;
    --reading-width: 940px;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 118px;
    scroll-padding-bottom: 128px;
}

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
    padding-bottom: calc(102px + env(safe-area-inset-bottom));
    background: var(--page-bg);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

html[dir="rtl"] body {
    font-family: Tahoma, Arial, sans-serif;
}

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

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

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

.skip-link {
    position: fixed;
    inset-block-start: 8px;
    inset-inline-start: 12px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--green-950);
    color: white;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--orange-500);
    outline-offset: 3px;
}

button,
a,
input,
textarea,
[tabindex="0"] {
    scroll-margin-block-start: 124px;
    scroll-margin-block-end: 118px;
}

main:focus {
    outline: none;
}

#home,
#shop-section,
#all-products-title,
#basket-review,
#customer-details,
#order-review-section,
#about-us {
    scroll-margin-block-start: 124px;
    scroll-margin-block-end: 118px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(7, 61, 36, 0.1);
    box-shadow: 0 3px 16px rgba(7, 61, 36, 0.06);
}

.header-inner {
    width: min(100%, var(--content-width));
    min-height: 70px;
    margin-inline: auto;
    padding: 8px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand language";
    align-items: center;
    gap: 10px;
}

.brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    max-width: 100%;
    color: var(--green-950);
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
}

.brand-copy span {
    margin-top: 4px;
    color: var(--green-700);
    font-size: 0.52rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html[dir="rtl"] .brand-copy span {
    letter-spacing: 0;
    text-transform: none;
}

.lang-switch {
    grid-area: language;
    display: flex;
    gap: 5px;
    justify-self: end;
}

.lang-switch button {
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--green-100);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lang-switch button.active {
    background: var(--green-950);
    color: white;
}

/* Page frame */
main {
    width: min(100%, var(--content-width));
    margin-inline: auto;
    padding: 14px 10px 52px;
}

/* Hero */
.storefront-hero {
    overflow: hidden;
    display: grid;
    margin-bottom: 12px;
    border: 1px solid rgba(7, 61, 36, 0.12);
    border-radius: var(--radius-lg);
    background: var(--ivory);
    box-shadow: var(--shadow-md);
}

.hero-copy {
    padding: 26px 20px 22px;
    text-align: start;
}

.hero-copy h1 {
    max-width: 14ch;
    margin-top: 0;
    color: var(--green-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 10vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

html[dir="rtl"] .hero-copy h1 {
    max-width: 18ch;
    font-family: Tahoma, Arial, sans-serif;
    letter-spacing: 0;
    line-height: 1.25;
}

.hero-copy h1 span {
    display: block;
}

.hero-copy h1 span + span {
    margin-top: 5px;
}

.hero-description {
    max-width: 48ch;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.trust-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
    list-style: none;
}

.trust-points li {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: var(--green-950);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.trust-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--green-100);
    color: var(--green-900);
}

.trust-icon svg {
    width: 23px;
    height: 23px;
}

.hero-cta {
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    background: var(--orange-500);
    color: white;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(220, 92, 10, 0.22);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hero-cta svg {
    width: 21px;
    height: 21px;
}

.hero-media {
    min-height: 270px;
    background: #f5efe3;
}

.hero-media,
.hero-media picture,
.hero-media img {
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
    object-position: center;
}

/* Dynamic delivery status */
.delivery-status {
    margin: 0 0 26px;
    padding: 13px 14px;
    border: 1px solid #a9bea8;
    border-inline-start: 5px solid var(--green-700);
    border-radius: var(--radius);
    background: var(--green-100);
    color: var(--green-950);
    box-shadow: var(--shadow-sm);
}

.delivery-status.is-order-window {
    border-color: #89ad91;
    border-inline-start-color: var(--green-700);
}

.delivery-status.is-outside-window {
    border-color: #e2b88f;
    border-inline-start-color: var(--orange-500);
    background: #fff5ea;
}

.delivery-status-facts {
    display: grid;
    gap: 10px;
}

.delivery-fact {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.delivery-fact > span:last-child {
    min-width: 0;
}

.delivery-fact strong {
    margin-inline-end: 3px;
}

.delivery-fact-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: white;
    color: var(--green-900);
}

.delivery-fact-icon svg {
    width: 19px;
    height: 19px;
}

.delivery-divider {
    display: none;
}

.delivery-advisory {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid currentColor;
    color: var(--text-main);
    font-size: 0.78rem;
    line-height: 1.45;
    opacity: 0.86;
}

/* Shopping tools */
.shop-section {
    margin-bottom: 34px;
}

.shop-intro {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.shop-intro h2,
.all-products-heading h3,
.popular-title,
.section-heading h2,
.about-section h2 {
    color: var(--green-950);
    line-height: 1.18;
}

.shop-intro h2 {
    margin-top: 0;
    font-size: clamp(1.65rem, 7vw, 2.35rem);
}

.vat-notice {
    align-self: end;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    background: var(--orange-100);
    color: var(--warning);
    font-size: 0.78rem;
    font-weight: 650;
}

.controls {
    margin-bottom: 24px;
    padding: 10px;
    border: 1px solid rgba(7, 61, 36, 0.12);
    border-radius: var(--radius);
    background: rgba(244, 244, 244, 0.97);
    box-shadow: 0 8px 18px rgba(7, 61, 36, 0.06);
}

.search-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.search-shell > svg {
    position: absolute;
    inset-inline-start: 15px;
    width: 21px;
    height: 21px;
    color: var(--green-900);
    pointer-events: none;
}

#search-bar {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px 12px 46px;
    border: 1.5px solid var(--input-border);
    border-radius: 999px;
    background: white;
    color: var(--text-main);
    font-size: 0.93rem;
}

html[dir="rtl"] #search-bar {
    padding: 12px 46px 12px 14px;
}

#search-bar:focus {
    border-color: var(--green-700);
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 122, 59, 0.14);
}

.categories {
    display: flex;
    gap: 8px;
    margin-top: 9px;
    padding-bottom: 1px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    min-width: 86px;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid #d7e1d7;
    border-radius: 999px;
    background: white;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cat-btn.active {
    border-color: var(--green-900);
    background: var(--green-900);
    color: white;
}

/* Popular products */
.popular-section {
    margin-bottom: 32px;
}

.popular-section-header,
.all-products-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 13px;
}

.popular-title,
.all-products-heading h3 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 6vw, 2rem);
}

html[dir="rtl"] .popular-title,
html[dir="rtl"] .all-products-heading h3,
html[dir="rtl"] .about-section h2 {
    font-family: Tahoma, Arial, sans-serif;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--green-900);
    font-size: 0.79rem;
    font-weight: 750;
    text-underline-offset: 4px;
}

.popular-product-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(154px, 46vw);
    gap: 10px;
    overflow-x: auto;
    padding: 3px 3px 12px;
    scroll-snap-type: inline mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--product-border) transparent;
}

.popular-product-row .product-item {
    scroll-snap-align: start;
}

.popular-product-row:focus-visible {
    border-radius: var(--radius-sm);
}

.product-result-count {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.empty-products,
.basket-empty {
    grid-column: 1 / -1;
    padding: 26px 16px;
    border: 1px dashed var(--input-border);
    border-radius: var(--radius);
    background: white;
    color: var(--text-muted);
    text-align: center;
}

.basket-empty a {
    display: inline-flex;
    margin-top: 10px;
    color: var(--green-800);
    font-weight: 750;
    text-underline-offset: 3px;
}

.product-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 9px;
    border: 1.4px solid var(--product-card-border);
    border-radius: 13px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-item.is-selected {
    background: var(--green-050);
}

.product-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 10px;
}

.product-image-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: transparent;
    isolation: isolate;
}

.product-image-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, #edf2eb 20%, #fafcf9 42%, #edf2eb 64%);
    background-size: 220% 100%;
    animation: product-image-loading 1.3s ease-in-out infinite;
    transition: opacity 180ms ease;
}

.product-image-shell.is-loaded::before,
.product-image-shell.has-error::before {
    opacity: 0;
    animation: none;
    pointer-events: none;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 220ms ease, transform 300ms ease;
}

.product-image-shell.is-loaded .product-image {
    opacity: 1;
    transform: scale(1);
}

@keyframes product-image-loading {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

.product-content {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-info {
    width: 100%;
}

.product-name {
    margin-bottom: 3px;
    color: var(--green-950);
    font-size: clamp(0.92rem, 3.6vw, 1.04rem);
    font-weight: 800;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

.product-origin {
    display: block;
    color: var(--text-muted);
    font-size: 0.77rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-price {
    margin-top: auto;
    padding-top: 9px;
    color: var(--green-800);
    font-size: clamp(0.91rem, 3.5vw, 1.04rem);
    font-weight: 800;
    line-height: 1.35;
}

.product-purchase-note {
    width: 100%;
    margin-top: 7px;
    padding: 6px;
    border-radius: 7px;
    background: var(--orange-100);
    color: var(--warning);
    font-size: 0.71rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.currency-amount {
    display: inline-flex;
    align-items: center;
    gap: 0.26em;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.dirham-symbol {
    width: 1.03em;
    height: 0.9em;
    flex: 0 0 auto;
}

.qty-controls,
.basket-item-controls {
    direction: ltr;
}

.qty-controls {
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 3px;
    border: 1.5px solid var(--product-border);
    border-radius: var(--radius-sm);
    background: white;
}

.qty-btn {
    width: 43px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--green-950);
    font-size: 1.35rem;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.qty-btn:active {
    background: rgba(19, 122, 59, 0.12);
}

.qty-btn.is-pulsing {
    animation: quantity-button-pulse 280ms ease-out;
}

@keyframes quantity-button-pulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.17); }
}

.qty-display {
    min-width: 0;
    max-width: 100%;
    padding-inline: 2px;
    flex: 1 1 auto;
    color: var(--text-main);
    font-size: clamp(0.73rem, 2.7vw, 0.88rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.item-total {
    min-height: 21px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-align: center;
}

/* Checkout */
.checkout-steps,
.checkout-card {
    width: min(100%, var(--reading-width));
    margin-inline: auto;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 14px;
}

.checkout-steps a {
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: white;
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.step-number,
.section-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--green-900);
    color: white;
    font-weight: 800;
}

.step-number {
    width: 25px;
    height: 25px;
    font-size: 0.72rem;
}

.section-step {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
}

.checkout-card {
    margin-bottom: 18px;
    padding: 18px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e6e1;
}

.section-heading h2 {
    margin-top: 1px;
    font-size: clamp(1.25rem, 5vw, 1.65rem);
}

.section-help,
.profile-save-note,
.required-note {
    color: var(--text-muted);
    font-size: 0.83rem;
}

.section-help {
    margin-bottom: 14px;
}

.profile-save-note {
    margin-bottom: 5px;
}

.required-note {
    margin-bottom: 15px;
}

/* Basket review */
.basket-items {
    display: grid;
    gap: 9px;
    margin-bottom: 14px;
}

.basket-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
    border: 1px solid #d6dfd7;
    border-radius: var(--radius);
    background: var(--green-050);
}

.basket-item-image {
    width: 66px;
    height: 66px;
    align-self: start;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: white;
}

.basket-item-copy {
    min-width: 0;
}

.basket-item-copy h3 {
    color: var(--green-950);
    font-size: 0.92rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.basket-item-copy p {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.basket-item-controls {
    grid-column: 1 / -1;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px auto;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--product-border);
    border-radius: var(--radius-sm);
    background: white;
    padding: 3px;
}

.basket-line-total {
    min-width: 78px;
    padding-inline: 7px;
    border-inline-start: 1px solid #d7e0d8;
    color: var(--green-800);
    font-size: 0.85rem;
    font-weight: 800;
    text-align: end;
}

.price-breakdown {
    padding: 14px;
    border: 1px solid #cbd8cc;
    border-radius: var(--radius);
    background: var(--green-050);
}

.price-breakdown h3 {
    margin-bottom: 7px;
    color: var(--green-950);
    font-size: 0.95rem;
}

.price-breakdown dl > div,
.customer-review dl > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding-block: 5px;
}

.price-breakdown dt,
.customer-review dt {
    color: var(--text-muted);
}

.price-breakdown dd,
.customer-review dd {
    min-width: 0;
    margin: 0;
    flex: 0 1 auto;
    text-align: end;
    overflow-wrap: anywhere;
}

.price-breakdown-total {
    margin-top: 5px;
    padding-top: 11px !important;
    border-top: 1px solid var(--border);
    color: var(--green-900);
    font-size: 1.02rem;
    font-weight: 850;
}

/* Customer details */
.form-grid {
    display: grid;
    gap: 0 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 750;
}

input[type="text"],
input[type="tel"],
input[type="search"],
textarea {
    width: 100%;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-sm);
    background: #fffefa;
    color: var(--text-main);
}

input[type="text"],
input[type="tel"],
textarea {
    min-height: 48px;
    padding: 11px 12px;
}

textarea {
    min-height: 104px;
    resize: vertical;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--green-700);
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 122, 59, 0.14);
}

input[aria-invalid="true"] {
    border-color: var(--danger);
    background: #fff8f8;
}

.field-help {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.field-error {
    margin-top: 5px;
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 650;
}

.form-subsection-title {
    margin: 5px 0 13px;
    padding-top: 13px;
    border-top: 1px solid #e0e6e1;
    color: var(--green-950);
    font-size: 1.02rem;
}

.location-group {
    padding: 13px;
    border: 1px solid #cbd8cc;
    border-radius: var(--radius);
    background: var(--green-050);
}

.location-button {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid var(--green-700);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--green-900);
    font-weight: 800;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.location-button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.location-icon,
.location-spinner {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.location-spinner {
    display: none;
    border: 2px solid rgba(15, 96, 54, 0.22);
    border-top-color: var(--green-800);
    border-radius: 50%;
    animation: location-spin 700ms linear infinite;
}

.location-button.is-loading .location-icon {
    display: none;
}

.location-button.is-loading .location-spinner {
    display: block;
}

@keyframes location-spin {
    to { transform: rotate(360deg); }
}

.location-status {
    margin-top: 8px;
    font-size: 0.79rem;
}

.location-status:empty {
    display: none;
}

.location-status.is-success { color: var(--green-800); }
.location-status.is-warning { color: var(--warning); }
.location-status.is-error { color: var(--danger); }
.location-status.is-info { color: var(--text-muted); }

.location-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-top: 8px;
}

.location-actions a,
.location-remove {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
    border: 0;
    background: none;
    color: var(--green-800);
    font-size: 0.79rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.location-remove {
    color: var(--text-muted);
}

/* Final review */
.customer-review {
    margin-bottom: 13px;
    padding: 13px;
    border: 1px solid #d4ddd5;
    border-radius: var(--radius);
    background: var(--green-050);
}

.customer-review h3 {
    margin-bottom: 6px;
    color: var(--green-950);
    font-size: 0.96rem;
}

.customer-review dl > div {
    align-items: flex-start;
    border-bottom: 1px solid #e0e7e1;
    font-size: 0.82rem;
}

.customer-review dl > div:last-child {
    border-bottom: 0;
}

.customer-review dt {
    flex: 0 0 30%;
    font-weight: 650;
}

.customer-review dd {
    font-weight: 700;
}

.customer-review a {
    color: var(--green-800);
    text-underline-offset: 3px;
}

.final-assurance {
    margin-bottom: 13px;
    padding: 11px 12px;
    border-inline-start: 4px solid var(--orange-500);
    border-radius: var(--radius-sm);
    background: var(--orange-100);
    color: var(--warning);
    font-size: 0.81rem;
    font-weight: 650;
}

.error-msg {
    margin-bottom: 13px;
    padding: 11px;
    border-radius: var(--radius-sm);
    background: #fbe4e7;
    color: var(--danger);
    font-size: 0.86rem;
    font-weight: 650;
}

.action-buttons {
    display: grid;
    gap: 9px;
}

.btn-primary,
.btn-secondary,
.btn-review {
    min-height: 50px;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 18px;
    background: var(--green-700);
    color: white;
    font-size: 1rem;
}

.btn-primary svg {
    width: 22px;
    height: 22px;
}

.btn-secondary {
    width: 100%;
    padding: 11px 14px;
    background: var(--green-950);
    color: white;
}

.order-fallback {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #dbe2dc;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.order-fallback > summary,
.technical-preview > summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    color: var(--green-800);
    font-weight: 750;
    cursor: pointer;
}

.order-fallback > p {
    margin: 2px 0 10px;
}

.technical-preview {
    margin-top: 8px;
}

#order-preview {
    width: 100%;
    min-height: 300px;
    margin-top: 7px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f2f5f2;
    color: var(--text-main);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: left;
    white-space: pre;
    overflow-x: auto;
}

.action-status {
    min-height: 1.4em;
    margin-top: 8px;
    color: var(--green-800);
    font-size: 0.81rem;
    text-align: center;
}

.action-status.is-error {
    color: var(--danger);
}

/* Outside-order-window confirmation */
.order-window-dialog {
    width: min(calc(100% - 28px), 540px);
    max-height: min(720px, calc(100dvh - 28px));
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow: 0 24px 70px rgba(4, 35, 20, 0.28);
}

.order-window-dialog:not([open]) {
    display: none;
}

.order-window-dialog::backdrop {
    background: rgba(7, 24, 15, 0.62);
    backdrop-filter: blur(3px);
}

.order-window-dialog-panel {
    padding: 25px 20px 20px;
}

.order-window-dialog-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--orange-100);
    color: var(--orange-600);
}

.order-window-dialog-icon svg {
    width: 28px;
    height: 28px;
}

.order-window-dialog-copy h2 {
    margin-top: 0;
    color: var(--green-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.18;
}

html[dir="rtl"] .order-window-dialog-copy h2 {
    font-family: Tahoma, Arial, sans-serif;
}

.order-window-dialog-copy > p:last-child {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.91rem;
}

.order-window-dialog-schedule {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #d6e0d7;
    border-radius: var(--radius);
    background: var(--green-050);
}

.order-window-dialog-schedule > div {
    padding: 11px 13px;
    display: grid;
    gap: 2px;
}

.order-window-dialog-schedule > div + div {
    border-top: 1px solid #d6e0d7;
}

.order-window-dialog-schedule dt {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.order-window-dialog-schedule dd {
    color: var(--green-950);
    font-size: 0.92rem;
    font-weight: 800;
}

.order-window-dialog-actions {
    margin-top: 20px;
    display: grid;
    gap: 9px;
}

.dialog-back-button,
.dialog-continue-button {
    min-height: 50px;
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
}

.dialog-back-button {
    border: 1.5px solid var(--green-800);
    background: white;
    color: var(--green-900);
}

.dialog-continue-button {
    border: 1.5px solid var(--green-900);
    background: var(--green-900);
    color: white;
}

.dialog-back-button:focus-visible,
.dialog-continue-button:focus-visible {
    outline: 3px solid rgba(243, 107, 21, 0.34);
    outline-offset: 2px;
}

/* About */
.about-section {
    margin-top: 38px;
    padding: 24px 18px;
    border-radius: var(--radius-lg);
    background: var(--green-950);
    color: white;
    box-shadow: var(--shadow-md);
}

.about-section h2 {
    max-width: 26ch;
    margin-top: 0;
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 7vw, 2.5rem);
}

.about-copy > p:last-child {
    max-width: 72ch;
    margin-top: 11px;
    color: rgba(255, 255, 255, 0.82);
}

.about-values {
    display: grid;
    gap: 9px;
    margin-top: 19px;
}

.about-values article {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
}

.about-values strong {
    color: white;
    font-size: 0.92rem;
}

.about-values p {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.8rem;
}

.about-shop-link {
    margin-top: 18px;
    color: white;
}

.site-footer {
    width: min(100%, var(--content-width));
    margin-inline: auto;
    padding: 0 14px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.76rem;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-brand img {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.footer-brand > span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.footer-brand strong {
    color: var(--green-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-brand small {
    margin-top: 3px;
    color: var(--green-700);
    font-size: 0.48rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[dir="rtl"] .footer-brand small {
    letter-spacing: 0;
    text-transform: none;
}

/* Sticky basket */
.sticky-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 90;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--green-950);
    color: white;
    box-shadow: 0 -7px 24px rgba(7, 61, 36, 0.2);
}

.sticky-inner {
    width: min(100%, var(--content-width));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.cart-indicator {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

.cart-indicator svg {
    width: 24px;
    height: 24px;
}

.cart-indicator span {
    position: absolute;
    inset-block-start: -6px;
    inset-inline-end: -5px;
    min-width: 22px;
    height: 22px;
    padding-inline: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--green-950);
    border-radius: 999px;
    background: var(--orange-500);
    color: white;
    font-size: 0.68rem;
    font-weight: 850;
}

.summary-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

#summary-items {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
}

.summary-total {
    margin-top: 2px;
    color: white;
    font-size: 1rem;
    font-weight: 850;
}

.summary-vat-note {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.61rem;
}

.btn-review {
    min-height: 48px;
    padding: 10px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--orange-500);
    color: white;
    font-size: 0.8rem;
    white-space: nowrap;
}

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

html[dir="rtl"] .hero-cta svg,
html[dir="rtl"] .btn-review svg {
    transform: rotate(180deg);
}

@media (hover: hover) {
    .lang-switch button:hover:not(.active) { background: #dce9dd; }
    .hero-cta:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-review:hover { filter: brightness(0.96); transform: translateY(-1px); box-shadow: 0 7px 18px rgba(7, 61, 36, 0.18); }
    .cat-btn:hover { border-color: var(--green-800); }
    .qty-btn:hover { background: rgba(19, 122, 59, 0.09); }
    .product-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 61, 36, 0.13); }
    .product-item:hover .product-image-shell.is-loaded .product-image { transform: scale(1.035); }
    .location-button:hover:not(:disabled) { background: #edf6ed; transform: translateY(-1px); }
}

@media (min-width: 560px) {
    .header-inner {
        min-height: 72px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand language";
        padding-inline: 20px;
    }

    .brand-mark { width: 50px; height: 50px; }
    .brand-copy strong { font-size: 1.28rem; }
    .brand-copy span { font-size: 0.57rem; }
    .lang-switch button { min-height: 42px; padding-inline: 13px; font-size: 0.84rem; }

    main { padding: 20px 18px 60px; }
    .storefront-hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
    .hero-copy { padding: 34px 28px; align-self: center; }
    .hero-copy h1 { font-size: clamp(2.4rem, 5.6vw, 4.7rem); }
    .hero-description { font-size: 1.02rem; }
    .hero-cta { width: max-content; min-width: 230px; }
    .hero-media { min-height: 500px; }
    .hero-media img { object-position: center; }

    .delivery-status { padding: 14px 18px; }
    .delivery-status-facts { grid-template-columns: 1fr auto 1fr; align-items: center; }
    .delivery-divider { width: 1px; height: 32px; display: block; background: rgba(7, 61, 36, 0.27); }
    .delivery-fact { justify-content: center; font-size: 0.96rem; }
    .delivery-advisory { text-align: center; }

    .shop-intro { grid-template-columns: minmax(0, 1fr) minmax(250px, auto); align-items: end; }
    .controls { top: 82px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px; }
    .categories { margin-top: 0; }
    .popular-product-row { grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

    .checkout-card { padding: 24px; }
    .checkout-steps { gap: 10px; margin-bottom: 18px; }
    .checkout-steps a { font-size: 0.84rem; }
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-group-wide { grid-column: 1 / -1; }
    .location-button { width: max-content; min-width: 250px; }

    .order-window-dialog-panel { padding: 30px; }
    .order-window-dialog-actions { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }

    .basket-item { grid-template-columns: 74px minmax(0, 1fr) minmax(300px, 0.9fr); align-items: center; }
    .basket-item-image { width: 74px; height: 74px; }
    .basket-item-controls { grid-column: auto; }
    .about-section { padding: 34px; }
    .about-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .sticky-bar { padding-inline: 18px; }
    .sticky-inner { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 13px; }
    .cart-indicator { width: 48px; height: 48px; }
    #summary-items { font-size: 0.76rem; }
    .summary-total { font-size: 1.12rem; }
    .summary-vat-note { font-size: 0.68rem; }
    .btn-review { min-width: 190px; padding-inline: 20px; font-size: 0.92rem; }
}

@media (min-width: 840px) {
    .hero-copy { padding: 44px 38px; }
    .trust-points li { font-size: 0.77rem; }
    .trust-icon { width: 46px; height: 46px; }
    .popular-product-row { grid-auto-columns: calc((100% - 39px) / 4); gap: 13px; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .checkout-card { margin-bottom: 22px; }
    .about-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
    .about-values { margin-top: 0; }
    .about-shop-link { grid-column: 1 / -1; }
}

@media (min-width: 1120px) {
    main { padding-inline: 24px; }
    .storefront-hero { min-height: 570px; }
    .hero-copy { padding: 54px 48px; }
    .hero-media { min-height: 570px; }
    .popular-product-row { grid-auto-columns: calc((100% - 56px) / 5); gap: 14px; }
    .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; }
    .product-item { padding: 11px; }
}

@media (max-width: 370px) {
    .header-inner { padding-inline: 9px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-copy strong { font-size: 0.96rem; }
    .brand-copy span { font-size: 0.47rem; }
    .lang-switch button { min-height: 38px; padding-inline: 8px; font-size: 0.72rem; }
    main { padding-inline: 7px; }
    .hero-copy { padding-inline: 16px; }
    .trust-points { gap: 6px; }
    .trust-points li { font-size: 0.63rem; }
    .product-grid { gap: 7px; }
    .product-item { padding: 7px; }
    .qty-btn { width: 38px; }
    .sticky-inner { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 7px; }
    .cart-indicator { width: 38px; height: 38px; }
    .cart-indicator svg { width: 21px; height: 21px; }
    .btn-review { padding-inline: 10px; font-size: 0.73rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .product-image-shell::before,
    .qty-btn.is-pulsing {
        animation: none;
    }
}
