/* Rolim Trading (K) Limited — responsive site stylesheet */

:root {
  --green-900: #084c3b;
  --green-700: #08785a;
  --green-500: #13a274;
  --gold: #f5b942;
  --ink: #18231f;
  --muted: #5f6b65;
  --surface: #ffffff;
  --surface-soft: #f2f7f4;
  --line: #dce7e0;
  --shadow: 0 12px 32px rgba(12, 59, 43, .12);
  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font: 16px/1.6 Arial, Helvetica, sans-serif; }
body.drawer-open { overflow: hidden; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0 0 .55rem; color: var(--green-900); line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
address { font-style: normal; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: 5rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; padding: .65rem 1rem; color: #fff; background: var(--green-900); z-index: 100; }
.skip-link:focus { top: 1rem; }
.eyebrow { margin-bottom: .4rem; color: var(--green-700); font-size: .8rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.text-link { font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .7rem 1.1rem; border: 1px solid transparent; border-radius: 8px; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--green-700); box-shadow: 0 5px 13px rgba(8,120,90,.2); }
.button-primary:hover { color: #fff; background: var(--green-900); }
.button-secondary, .button-outline { color: var(--green-900); background: transparent; border-color: currentColor; }
.button-light { color: var(--green-900); background: #fff; }
.button-small { min-height: 38px; padding: .5rem .75rem; font-size: .88rem; }
.button-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.utility-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem max(1rem, calc((100% - var(--container)) / 2)); color: #fff; background: var(--green-900); font-size: .82rem; }
.utility-bar p { margin: 0; }
.utility-actions { display: flex; gap: 1rem; align-items: center; }
.utility-actions a { color: #fff; }
.utility-actions button { padding: 0; color: #fff; border: 0; background: transparent; }
.header-main { display: flex; min-height: 76px; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--green-900); line-height: 1.05; text-decoration: none; white-space: nowrap; }
.brand-logo { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; background: var(--green-700); color: #fff; font-size: 1.35rem; }
.brand strong, .brand small { display: block; }
.brand small { font-size: .75rem; }
.primary-nav { display: flex; flex: 1; justify-content: center; gap: 1.35rem; }
.primary-nav a { color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--green-700); }
.header-tools { display: flex; gap: .45rem; }
.icon-button, .menu-toggle { min-width: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; color: var(--green-900); background: var(--surface); font-weight: 800; }
.menu-toggle { display: none; font-size: 1.25rem; }

/* Hero and search */
.hero { color: #fff; background: var(--green-900); }
.hero-slider { position: relative; min-height: 520px; }
.hero-slide { min-height: 520px; padding: 7.5rem 0 5rem; background: radial-gradient(circle at 85% 10%, rgba(245,185,66,.3), transparent 25%), linear-gradient(120deg, var(--green-900), #096d52); }
.hero-slide:nth-child(2) { background: radial-gradient(circle at 20% 25%, rgba(245,185,66,.28), transparent 26%), linear-gradient(120deg, #0a5e69, var(--green-900)); }
.hero-slide:nth-child(3) { background: radial-gradient(circle at 82% 25%, rgba(255,255,255,.13), transparent 25%), linear-gradient(120deg, #103f32, #08785a); }
.hero-content { max-width: 720px; }
.hero h1, .hero h2 { color: #fff; }
.hero p { max-width: 590px; color: rgba(255,255,255,.88); font-size: 1.1rem; }
.hero .eyebrow { color: var(--gold); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.slider-control { position: absolute; top: 50%; z-index: 1; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: rgba(0,0,0,.15); font-size: 2rem; line-height: 1; transform: translateY(-50%); }
.slider-control:hover { background: rgba(0,0,0,.35); }
.previous { left: 1rem; }.next { right: 1rem; }
.slider-dots { position: absolute; bottom: 1.6rem; left: 50%; display: flex; gap: .5rem; transform: translateX(-50%); }
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); }.slider-dots .is-active { background: #fff; }
.search-section { padding-block: 2rem; background: var(--surface-soft); }.search-section h2 { font-size: 1.25rem; }
.search-form { display: flex; max-width: 760px; gap: .55rem; }.search-form input { flex: 1; }
.search-status { min-height: 1.5rem; margin-top: .5rem; color: var(--muted); font-size: .9rem; }

/* Product cards */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.2rem; }.section-heading.centered { display: block; text-align: center; }.section-heading.centered > p:not(.eyebrow) { max-width: 620px; margin-inline: auto; color: var(--muted); }
.product-grid, .blog-grid, .policy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.product-card, .blog-card, .card-form, .order-summary, .policy-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 14px rgba(25,56,44,.05); }
.product-card { transition: transform .2s, box-shadow .2s; }.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.placeholder-image { display: grid; min-height: 190px; place-items: center; color: var(--green-700); background: linear-gradient(135deg, #dcefe7, #f6fbf8); font-size: 4rem; }
.product-card-body { padding: 1rem; }.product-category, .post-meta { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }.product-price { margin: .35rem 0 .85rem; color: var(--green-900); font-size: 1.13rem; font-weight: 800; }
.product-actions { display: flex; align-items: center; gap: .5rem; }.wishlist-toggle { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; color: var(--green-700); background: var(--surface); font-size: 1.35rem; }.wishlist-toggle.is-saved { color: #c8294b; }

/* Promotion and generic layouts */
.offer-section { color: #fff; background: var(--green-900); }.offer-section h2, .offer-section .eyebrow { color: #fff; }.offer-layout, .two-column, .checkout-layout, .newsletter-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.countdown { display: flex; justify-content: center; gap: .75rem; }.countdown div { display: grid; width: 104px; height: 104px; place-content: center; text-align: center; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; background: rgba(255,255,255,.1); }.countdown strong { font-size: 2.25rem; line-height: 1; }.countdown span { margin-top: .35rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.about-section, .account-section, .faq-section { background: var(--surface-soft); }.about-image { min-height: 330px; }.check-list { padding: 0; list-style: none; }.check-list li { margin-bottom: .65rem; }.check-list li::before { content: "✓"; display: inline-grid; width: 1.3rem; height: 1.3rem; place-items: center; margin-right: .5rem; border-radius: 50%; color: #fff; background: var(--green-700); font-size: .75rem; }

/* Forms */
.form-grid { display: grid; max-width: 980px; grid-template-columns: 1.25fr .75fr; gap: 1.5rem; margin: 2.5rem auto 0; }.card-form, .checkout-form { padding: 1.5rem; }.card-form h3 { margin-bottom: 1.2rem; }
label { display: block; margin: .75rem 0 .35rem; font-weight: 700; font-size: .9rem; } input, select, textarea { width: 100%; padding: .7rem .75rem; border: 1px solid #baccc2; border-radius: 7px; color: var(--ink); background: var(--surface); } input:focus, select:focus, textarea:focus { outline: 3px solid rgba(19,162,116,.22); border-color: var(--green-500); }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.password-field { position: relative; }.password-field input { padding-right: 3rem; }.password-toggle { position: absolute; top: 50%; right: .3rem; padding: .35rem; border: 0; background: transparent; transform: translateY(-50%); }.form-hint { margin: .3rem 0; color: var(--muted); font-size: .78rem; }.checkbox-label { display: flex; align-items: start; gap: .5rem; margin: 1rem 0; font-weight: 400; }.checkbox-label input { width: auto; margin-top: .3rem; }.form-message { min-height: 1.5rem; margin: .7rem 0 0; font-size: .9rem; }

/* Cart and checkout */
.cart-drawer { position: fixed; z-index: 60; top: 0; right: 0; display: flex; width: min(100%, 430px); height: 100dvh; flex-direction: column; padding: 1.25rem; background: var(--surface); box-shadow: -12px 0 30px rgba(0,0,0,.18); transform: translateX(105%); transition: transform .25s ease; }.cart-drawer.is-open { transform: translateX(0); }.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }.drawer-close { border: 0; color: var(--ink); background: transparent; font-size: 2rem; }.cart-items { flex: 1; overflow: auto; padding: 1rem 0; }.empty-state { color: var(--muted); text-align: center; }.cart-summary { border-top: 1px solid var(--line); padding-top: 1rem; }.cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 1rem; }.drawer-backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(0,0,0,.45); }
.checkout-section { background: var(--surface-soft); }.checkout-layout { align-items: start; }.checkout-form, .order-summary { background: var(--surface); }.checkout-form fieldset { margin: 0 0 1.25rem; padding: 0 0 1rem; border: 0; border-bottom: 1px solid var(--line); }.checkout-form legend { padding: 0; color: var(--green-900); font-weight: 800; font-size: 1.15rem; }.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }.payment-options label { display: flex; align-items: center; gap: .45rem; margin: 0; padding: .65rem; border: 1px solid var(--line); border-radius: 7px; font-weight: 400; }.payment-options input { width: auto; }.order-summary { padding: 1.5rem; position: sticky; top: 105px; }.order-summary dl { margin: 1rem 0 0; }.order-summary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }.order-summary dt, .order-summary dd { margin: 0; }.order-summary .total { color: var(--green-900); font-size: 1.15rem; font-weight: 800; }
.receipt-card { max-width: 800px; padding: clamp(1.25rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }.receipt-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }.receipt-heading > div { display: flex; align-items: center; gap: .8rem; }.receipt-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 2rem; padding: 1rem 0; border-block: 1px solid var(--line); }.receipt-details div { display: flex; gap: .5rem; }.receipt-details dt { color: var(--muted); }.receipt-details dd { margin: 0; font-weight: 700; }.receipt-total { margin: 1.5rem 0 0; font-size: 1.3rem; }

/* Other content */
.map-placeholder { display: grid; min-height: 150px; place-items: center; border-radius: var(--radius); color: var(--green-900); background: #dcefe7; font-weight: 700; }.faq-list details { padding: 1rem 0; border-bottom: 1px solid var(--line); }.faq-list summary { cursor: pointer; color: var(--green-900); font-weight: 800; }.faq-list details p { margin: .75rem 0 0; color: var(--muted); }.blog-grid { grid-template-columns: repeat(3, 1fr); }.blog-card { padding-bottom: 1.25rem; }.blog-image { min-height: 170px; }.blog-card > div:last-child { padding: 1.2rem 1.2rem 0; }.blog-card h3 { margin-top: .55rem; }.blog-card h3 a { color: var(--green-900); text-decoration: none; }.blog-card p:last-child { color: var(--muted); }.policy-grid article { padding: 1.3rem; }.policy-grid h2 { font-size: 1.25rem; }.policy-grid p { color: var(--muted); }
.newsletter-section { padding: 3.2rem 0; color: #fff; background: var(--green-700); }.newsletter-section h2 { color: #fff; font-size: 1.75rem; }.newsletter-section p { margin: 0; }.newsletter-form { position: relative; display: flex; gap: .5rem; }.newsletter-form input { background: #fff; }.newsletter-form .form-message { position: absolute; top: 100%; left: 0; color: #fff; }

/* Footer and utilities */
.site-footer { padding-top: 3.5rem; color: #d5e5dc; background: #12352b; }.site-footer .brand { color: #fff; }.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 2rem; }.footer-grid h2 { color: #fff; font-size: 1rem; }.footer-grid ul { margin: 0; padding: 0; list-style: none; }.footer-grid li { margin: .4rem 0; }.site-footer a { color: #d5e5dc; }.site-footer a:hover { color: #fff; }.nairobi-clock { margin-top: 1rem; }.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; }.footer-bottom p { margin: 0; }.back-to-top { position: fixed; z-index: 10; right: 1rem; bottom: 1rem; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--green-700); box-shadow: var(--shadow); font-size: 1.3rem; }.toast-region { position: fixed; z-index: 80; right: 1rem; bottom: 1rem; max-width: 350px; }.toast { margin-top: .5rem; padding: .8rem 1rem; border-radius: 8px; color: #fff; background: var(--green-900); box-shadow: var(--shadow); }

/* Dark mode is enabled by script.js adding this class to body. */
body.dark-mode { --ink: #eaf5ee; --muted: #afc3b7; --surface: #14221c; --surface-soft: #1b2d25; --line: #345145; --green-900: #d6f5e5; --green-700: #60d4a3; --green-500: #7ae0b4; --shadow: 0 12px 32px rgba(0,0,0,.28); }.dark-mode .hero, .dark-mode .offer-section, .dark-mode .newsletter-section, .dark-mode .site-footer { --green-900: #f0fff7; }.dark-mode .hero { background: #06281f; }.dark-mode .product-card, .dark-mode .blog-card, .dark-mode .card-form, .dark-mode .order-summary, .dark-mode .policy-grid article, .dark-mode .checkout-form, .dark-mode .cart-drawer { background: #1c3027; }.dark-mode input, .dark-mode select, .dark-mode textarea, .dark-mode .icon-button, .dark-mode .wishlist-toggle { color: var(--ink); background: #16271f; }.dark-mode .button-primary { color: #073122; background: #60d4a3; }.dark-mode .button-light { color: #073122; }.dark-mode .placeholder-image { background: linear-gradient(135deg, #234436, #193027); }

@media (max-width: 900px) {
  .primary-nav { gap: .8rem; }.product-grid { grid-template-columns: repeat(2, 1fr); }.form-grid { grid-template-columns: 1fr; }.footer-grid { grid-template-columns: repeat(2, 1fr); }.policy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .section { padding: 3.5rem 0; }.utility-bar { display: none; }.header-main { min-height: 66px; gap: .65rem; }.menu-toggle { display: block; margin-left: auto; }.primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; padding: 1rem; background: var(--surface); box-shadow: 0 8px 16px rgba(0,0,0,.1); }.primary-nav.is-open { display: flex; }.header-tools { gap: .2rem; }.icon-button { min-width: 36px; font-size: .8rem; }.brand-logo { width: 36px; height: 36px; }.brand strong { font-size: .9rem; }.brand small { font-size: .65rem; }.hero-slider, .hero-slide { min-height: 460px; }.hero-slide { padding-top: 6rem; }.slider-control { display: none; }.search-form, .newsletter-form { flex-direction: column; }.section-heading { display: block; }.section-heading .text-link { display: inline-block; margin-top: .5rem; }.two-column, .offer-layout, .checkout-layout, .newsletter-layout { grid-template-columns: 1fr; gap: 2rem; }.countdown { justify-content: start; }.countdown div { width: 88px; height: 88px; }.countdown strong { font-size: 1.8rem; }.form-row, .payment-options { grid-template-columns: 1fr; }.order-summary { position: static; }.product-grid, .blog-grid, .policy-grid { grid-template-columns: 1fr; }.product-card { display: grid; grid-template-columns: 130px 1fr; }.product-card .placeholder-image { min-height: 100%; font-size: 2.5rem; }.receipt-heading, .footer-bottom { align-items: start; flex-direction: column; }.receipt-details { grid-template-columns: 1fr; }.footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 380px) { .header-tools .icon-button span { display: none; }.countdown { gap: .35rem; }.countdown div { width: 76px; height: 76px; } }
@media print { body * { visibility: hidden; }.receipt-section, .receipt-section * { visibility: visible; }.receipt-section { position: absolute; inset: 0; padding: 0; }.receipt-card { width: 100%; border: 0; box-shadow: none; }.receipt-heading button { display: none; } }
