/* Xiya's Organic shared styles: header, footer, order basket and the inner pages.
   Colours: Deep Leaf #3a5a3a, Leaf Green #4d7c4d, Forest #2f4a33, Order Green #187a4f,
   Cream #fefdf9, Linen #f5f1e8, Mist #e9efdc, Bark #6f6354, Ink #3b3b3b */

/* ---------- Announcement bar ---------- */
.sx-top { background: #2f4a33; color: #e9efe0; text-align: center; font: 500 .82rem/1.3 Karla, system-ui, sans-serif; padding: 9px 16px; }
.sx-top a { color: inherit; text-decoration: none; }
.sx-top a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.sx-header { position: sticky; top: 0; z-index: 100; background: rgba(254, 253, 249, .96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(180, 160, 140, .25); font-family: Karla, system-ui, sans-serif; }
.sx-bar { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 12px 24px; }
.sx-logo { font: 700 1.5rem Fraunces, Georgia, serif; color: #3a5a3a; text-decoration: none; margin-right: auto; white-space: nowrap; }
.sx-links { display: flex; gap: 26px; }
.sx-links a { text-decoration: none; color: #5a4a3a; font-weight: 500; font-size: .93rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.sx-links a:hover, .sx-links a:focus-visible, .sx-links a[aria-current="page"] { color: #3a5a3a; border-bottom-color: #3a5a3a; outline: none; }
.sx-actions { display: flex; gap: 10px; align-items: center; }
.sx-basket-btn { display: inline-flex; gap: 8px; align-items: center; background: #3a5a3a; color: #fff; border: 0; border-radius: 40px; padding: 10px 16px; font: 700 .85rem Karla, system-ui, sans-serif; cursor: pointer; }
.sx-basket-btn:hover { background: #2f4a33; }
.sx-basket-btn svg { width: 18px; height: 18px; }
.sx-count { background: #fefdf9; color: #3a5a3a; border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .78rem; padding: 0 5px; }
.sx-burger { display: none; width: 42px; height: 42px; border: 1px solid #d9d2c0; border-radius: 12px; background: #fff; cursor: pointer; place-items: center; padding: 0; }
.sx-burger span, .sx-burger span::before, .sx-burger span::after { display: block; width: 18px; height: 2px; background: #3a5a3a; border-radius: 2px; position: relative; content: ""; transition: transform .2s, opacity .2s; }
.sx-burger span::before { position: absolute; top: -6px; }
.sx-burger span::after { position: absolute; top: 6px; }
.sx-burger[aria-expanded="true"] span { background: transparent; }
.sx-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.sx-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .sx-bar { gap: 12px; padding: 10px 16px; }
  .sx-logo { font-size: 1.3rem; }
  .sx-burger { display: inline-grid; }
  .sx-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fefdf9; border-bottom: 1px solid #ece6d6; box-shadow: 0 18px 30px rgba(0, 0, 0, .08); padding: 6px 20px 16px; }
  .sx-links.open { display: flex; }
  .sx-links a { padding: 14px 0; border-bottom: 1px solid #ece6d6; font-size: 1.02rem; }
  .sx-links a:last-child { border-bottom: 0; }
  .sx-top .sx-top-more { display: none; }
}

/* ---------- Shared buttons ---------- */
.sx-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; background: #187a4f; color: #fff; border: 2px solid #187a4f; border-radius: 40px; padding: 12px 26px; font: 700 .95rem Karla, system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.sx-btn:hover, .sx-btn:focus-visible { background: #10603d; border-color: #10603d; transform: translateY(-1px); outline: none; }
.sx-btn-o { background: transparent; color: #3a5a3a; border-color: #3a5a3a; }
.sx-btn-o:hover, .sx-btn-o:focus-visible { background: #3a5a3a; border-color: #3a5a3a; color: #fff; }
.sx-btn-sm { padding: 9px 18px; font-size: .85rem; }
.sx-btn svg { width: 18px; height: 18px; }
.sx-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Add to order buttons on pages that keep their own button styles */
.btn.add-btn { background: transparent; color: #3a5a3a; border: 2px solid #3a5a3a; }
.btn.add-btn:hover, .btn.add-btn:focus { background: #3a5a3a; color: #fff; }
.product-card .add-btn { position: relative; z-index: 2; margin-top: 8px; }
button.btn.o { font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Inner pages ---------- */
.sx-body { margin: 0; font: 400 16px/1.6 Karla, system-ui, sans-serif; background: #fefdf9; color: #3b3b3b; }
.sx-body *, .sx-body *::before, .sx-body *::after { box-sizing: border-box; }
.sx-body a:focus-visible, .sx-body button:focus-visible, .sx-body summary:focus-visible { outline: 3px solid #3a5a3a; outline-offset: 3px; }
.sx-skip { position: absolute; top: -48px; left: 0; background: #4d7c4d; color: #fff; padding: 8px 16px; z-index: 300; }
.sx-skip:focus { top: 0; }
.sx-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.sx-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.sx-hero { background: linear-gradient(180deg, #eef3e4, #fefdf9); padding: 56px 24px 36px; text-align: center; }
.sx-hero h1 { font: 600 clamp(2.1rem, 5vw, 3.3rem)/1.1 Fraunces, Georgia, serif; color: #3a5a3a; margin: 0 0 12px; }
.sx-hero p { max-width: 640px; margin: 0 auto; color: #5b5448; font-size: 1.08rem; }
.sx-kicker { color: #4d7c4d; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin: 0 0 10px; }
.sx-section { padding-top: 48px; padding-bottom: 48px; }
.sx-section h2, .sx-h2 { font: 600 clamp(1.6rem, 3.4vw, 2.2rem)/1.2 Fraunces, Georgia, serif; color: #3a5a3a; margin: 0 0 18px; }
.sx-section h3 { font: 600 1.25rem/1.3 Fraunces, Georgia, serif; color: #3a5a3a; margin: 26px 0 8px; }
.sx-section p { margin: 0 0 14px; }
.sx-center { text-align: center; }
.sx-crumbs { padding: 18px 24px 0; font-size: .85rem; color: #6f6354; max-width: 1100px; margin: 0 auto; }
.sx-crumbs a { color: #3a5a3a; }

/* Filter chips */
.sx-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 30px; }
.sx-chip { border: 2px solid #3a5a3a; background: transparent; color: #3a5a3a; border-radius: 40px; padding: 8px 20px; font: 700 .9rem Karla, system-ui, sans-serif; cursor: pointer; }
.sx-chip[aria-pressed="true"] { background: #3a5a3a; color: #fff; }

/* Product cards */
.sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.sx-card { background: #fff; border-radius: 4px 32px 4px 32px; box-shadow: 0 12px 32px rgba(60, 80, 50, .09); overflow: hidden; display: flex; flex-direction: column; }
.sx-card[hidden] { display: none; }
.sx-card-img { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: #e9efdc; }
.sx-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.sx-card:hover .sx-card-img img { transform: scale(1.05); }
.sx-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.sx-line { color: #4d7c4d; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.sx-card h3 { font: 600 1.3rem/1.25 Fraunces, Georgia, serif; margin: 4px 0 4px; color: #3a5a3a; }
.sx-card h3 a { color: inherit; text-decoration: none; }
.sx-tag { color: #3a5a3a; font-weight: 700; font-size: .85rem; margin: 0 0 8px; }
.sx-card p { margin: 0 0 8px; font-size: .95rem; color: #55504a; }
.sx-size { color: #6f6354; font-size: .85rem !important; }
.sx-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sx-price { font: 600 1.4rem Fraunces, Georgia, serif; color: #4d7c4d; }
.sx-more-link { color: #3a5a3a; font-size: .88rem; }

/* Steps and tiles */
.sx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 26px 0 8px; padding: 0; list-style: none; counter-reset: s; }
.sx-step { background: #f5f1e8; border-radius: 22px; padding: 22px 20px; position: relative; counter-increment: s; }
.sx-step::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #3a5a3a; color: #fff; font: 600 1.05rem Fraunces, Georgia, serif; margin-bottom: 12px; }
.sx-step h3 { font: 600 1.1rem Fraunces, Georgia, serif; color: #3a5a3a; margin: 0 0 6px; }
.sx-step p { margin: 0; font-size: .92rem; color: #55504a; }
.sx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.sx-tile { position: relative; display: block; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; color: #fff; background: #3a5a3a; }
.sx-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.sx-tile:hover img { transform: scale(1.06); }
.sx-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; background: linear-gradient(0deg, rgba(31, 52, 36, .88), rgba(31, 52, 36, 0)); }
.sx-tile b { display: block; font: 600 1.45rem Fraunces, Georgia, serif; }
.sx-tile small { font-size: .9rem; opacity: .92; }
@media (max-width: 900px) { .sx-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .sx-steps { grid-template-columns: 1fr; }
  .sx-tiles { grid-template-columns: 1fr; }
  .sx-tile { aspect-ratio: 16 / 9; }
}

/* Info boxes, tables, FAQ, CTA */
.sx-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 18px; }
.sx-box { background: #f5f1e8; border-radius: 22px; padding: 24px; }
.sx-box h3 { margin: 0 0 8px !important; }
.sx-box p:last-child { margin-bottom: 0; }
.sx-table-wrap { overflow-x: auto; }
.sx-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(60, 80, 50, .07); }
.sx-table th, .sx-table td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 1px solid #ece6d6; }
.sx-table th { background: #3a5a3a; color: #fff; font-weight: 700; font-size: .9rem; }
.sx-table tr:last-child td { border-bottom: 0; }
.sx-note { background: #eef3e4; border-left: 4px solid #4d7c4d; border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.sx-faq details { border: 1px solid #ece6d6; border-radius: 16px; background: #fff; margin-bottom: 10px; }
.sx-faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: #3a5a3a; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.sx-faq details[open] summary::after { transform: rotate(45deg); }
.sx-faq .sx-answer { padding: 0 22px 18px; color: #55504a; }
.sx-faq .sx-answer p { margin: 0 0 10px; }
.sx-faq h2 { margin-top: 38px; }
.sx-cta { background: #2f4a33; color: #e9efe0; text-align: center; padding: 48px 24px; border-radius: 28px; }
.sx-cta h2 { color: #fff !important; margin-bottom: 10px; }
.sx-cta p { max-width: 560px; margin: 0 auto 22px; }
.sx-cta .sx-btn-o { color: #fff; border-color: #fff; }
.sx-cta .sx-btn-o:hover { background: #fff; color: #2f4a33; }
.sx-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* About page */
.sx-about { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.sx-portrait { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 16px 36px rgba(0, 0, 0, .14); position: sticky; top: 110px; }
.sx-quote { font: 500 clamp(1.3rem, 2.8vw, 1.8rem)/1.35 Fraunces, Georgia, serif; color: #3a5a3a; border-left: 4px solid #4d7c4d; padding: 4px 0 4px 22px; margin: 28px 0; }
@media (max-width: 800px) { .sx-about { grid-template-columns: 1fr; gap: 24px; } .sx-portrait { max-width: 240px; margin: 0 auto; position: static; } }

/* Contact page */
.sx-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.sx-contact-grid .sx-box h3 { font-size: 1.15rem; }
.sx-contact-grid a:not(.sx-btn) { color: #3a5a3a; font-weight: 700; }
.sx-ask-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ---------- Footer ---------- */
.sx-footer { background: #2f4a33; color: #e9efe0; margin-top: 56px; font-family: Karla, system-ui, sans-serif; }
.sx-footer-in { max-width: 1100px; margin: 0 auto; padding: 48px 24px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.sx-footer h4 { font: 600 1rem Fraunces, Georgia, serif; color: #fff; margin: 0 0 12px; }
.sx-footer p { margin: 0 0 8px; font-size: .92rem; opacity: .92; }
.sx-footer ul { list-style: none; padding: 0; margin: 0; }
.sx-footer li { margin-bottom: 8px; }
.sx-footer a { color: #e9efe0; text-decoration: none; font-size: .92rem; }
.sx-footer a:hover, .sx-footer a:focus-visible { text-decoration: underline; color: #fff; }
.sx-footer .sx-brand { font: 700 1.5rem Fraunces, Georgia, serif; color: #fff; margin-bottom: 8px; }
.sx-footer-bottom { max-width: 1100px; margin: 0 auto; padding: 18px 24px 26px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; opacity: .85; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .sx-footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sx-footer-in { grid-template-columns: 1fr; padding-top: 36px; } }

/* ---------- Order basket ---------- */
.sx-overlay { position: fixed; inset: 0; background: rgba(20, 30, 22, .5); z-index: 290; opacity: 0; pointer-events: none; transition: opacity .25s; }
.sx-overlay.open { opacity: 1; pointer-events: auto; }
.sx-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: #fefdf9; z-index: 300; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; box-shadow: -18px 0 40px rgba(0, 0, 0, .15); font-family: Karla, system-ui, sans-serif; color: #3b3b3b; }
.sx-drawer.open { transform: none; visibility: visible; }
.sx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #ece6d6; }
.sx-drawer-head h2 { font: 600 1.4rem Fraunces, Georgia, serif; color: #3a5a3a; margin: 0; }
.sx-x { border: 0; background: #f5f1e8; width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #3a5a3a; }
.sx-list { list-style: none; margin: 0; padding: 8px 22px; overflow-y: auto; flex: 1; }
.sx-empty { padding: 30px 0; text-align: center; color: #6f6354; }
.sx-item { padding: 14px 0; border-bottom: 1px solid #ece6d6; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.sx-item b { font-weight: 700; color: #3a5a3a; }
.sx-item small { color: #6f6354; display: block; }
.sx-qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.sx-qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #c9c1ae; background: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; color: #3a5a3a; }
.sx-qty span { min-width: 26px; text-align: center; font-weight: 700; }
.sx-line-total { font-weight: 700; text-align: right; }
.sx-remove { border: 0; background: none; color: #8a5a4a; font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 2px 0; }
.sx-drawer-foot { padding: 18px 22px 22px; border-top: 1px solid #ece6d6; background: #f5f1e8; }
.sx-total-row { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: 6px; }
.sx-total-row strong { font: 600 1.4rem Fraunces, Georgia, serif; color: #3a5a3a; }
.sx-fine { font-size: .82rem; color: #6f6354; margin: 0 0 14px; }
.sx-drawer-foot .sx-btn { width: 100%; }
.sx-clear { display: block; margin: 12px auto 0; border: 0; background: none; color: #6f6354; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.sx-toast { position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px); background: #2f4a33; color: #fff; padding: 10px 20px; border-radius: 40px; font: 600 .9rem Karla, system-ui, sans-serif; z-index: 280; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.sx-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .sx-drawer, .sx-overlay, .sx-toast, .sx-card-img img, .sx-tile img, .sx-btn { transition: none; }
}
