/* =========================================================
   Organic Special — design tokens & shared styles
   Palette drawn from the brand mark: forest greens + a
   warm, kraft-paper neutral (seed-packet feel), not a
   generic SaaS or dark-dashboard look.
   ========================================================= */

:root {
  --os-forest: #1F5F3F;      /* primary — deep leaf green (from logo) */
  --os-forest-dark: #123822; /* pressed / headings on light bg */
  --os-leaf: #6FA84B;        /* mid accent — logo gradient green */
  --os-lime: #C7DD5B;        /* small-leaf highlight, used sparingly */
  --os-ink: #23261F;         /* body text, warm near-black */
  --os-paper: #fff;       /* app background — kraft/paper tone */
  --os-sand: #F6F6F6;        /* card / section surface */
  --os-sand-line: #E1D8BC;   /* hairline borders on sand */
  --os-white: #FFFFFF;
  --os-danger: #B3452F;

  --os-radius-tile: 14px;
  --os-radius-pill: 999px;
  --os-shadow: 0 6px 18px rgba(18, 56, 34, 0.10);

  --bs-primary: var(--os-forest);
  --bs-primary-rgb: 31, 95, 63;
  --bs-body-color: var(--os-ink);
  --bs-body-bg: var(--os-paper);
  --bs-border-radius: 10px;
  --bs-font-sans-serif: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  background: var(--os-paper);
  color: var(--os-ink);
  font-family: var(--bs-font-sans-serif);
}

/* One typeface (Cairo) for both English and Arabic keeps a single
   visual identity instead of swapping fonts across languages. */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--os-forest-dark); }
.text-forest { color: var(--os-forest) !important; }

a { color: var(--os-forest); }
a:hover { color: var(--os-forest-dark); }

/* Buttons */
.btn-forest {
  background: var(--os-forest);
  border-color: var(--os-forest);
  color: var(--os-white);
}
.btn-forest:hover, .btn-forest:focus {
  background: var(--os-forest-dark);
  border-color: var(--os-forest-dark);
  color: var(--os-white);
}
.btn-outline-forest {
  border-color: var(--os-forest);
  color: var(--os-forest);
  background: transparent;
}
.btn-outline-forest:hover {
  background: var(--os-forest);
  color: var(--os-white);
}
.btn, .form-control, .form-select {
  border-radius: 10px;
}
.btn:focus-visible, .form-control:focus, .form-select:focus,
a:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid var(--os-lime);
  outline-offset: 2px;
  box-shadow: none;
}

/* Logo mark used in every top bar (storefront + admin). Not scoped to a
   single parent class so it stays a consistent size everywhere it's used. */
.os-logo-mark {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

/* =========================================================
   Announcement bar (thin strip above the main header)
   ========================================================= */
.os-announce {
  background: var(--os-forest-dark);
  color: #eaf2e4;
  text-align: center;
  font-size: 0.78rem;
  padding: 7px 0;
  letter-spacing: 0.2px;
}

/* =========================================================
   Top bar (shared across storefront pages)
   ========================================================= */
.os-topbar {
  background: #fbfbfb;
  /*border-bottom: 1px solid var(--os-sand-line);*/
}
.os-topbar .brand-name {
  font-weight: 700;
  color: var(--os-forest-dark);
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}
.brand-name-wrap { line-height: 1.15; }
.brand-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  color: #7c8172;
  font-weight: 700;
}
.os-cart-btn {
  position: relative;
}
.os-cart-count {
  position: absolute;
  top: -6px;
  inset-inline-end: -8px;
  background: var(--os-leaf);
  color: var(--os-forest-dark);
  border-radius: var(--os-radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--os-white);
}

/* Center nav links */
.os-nav-links { gap: 2rem; }
.os-nav-link {
  color: var(--os-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.os-nav-link:hover { color: var(--os-forest); }
.os-nav-link.active { color: var(--os-forest); border-color: var(--os-leaf); }

/* Social icons in the header */
.os-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--os-sand);
  color: var(--os-forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.os-social-btn:hover { background: var(--os-forest); color: var(--os-white); }

/* Mobile menu */
.os-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--os-forest-dark);
  padding: 2px 6px;
  border-radius: 10px;
}
.os-burger:hover, .os-burger[aria-expanded="true"] { background: var(--os-sand); }
.os-mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  width: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px 12px;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  background: var(--os-white);
  border-top: 1px solid var(--os-sand-line);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--os-shadow);
}
@media (max-width: 991.98px) {
  .os-mobile-nav.show { display: flex; }
}
.os-mobile-nav a {
  display: block;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  color: var(--os-ink);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}
.os-mobile-nav a:hover,
.os-mobile-nav a:focus-visible,
.os-mobile-nav a.active { background: var(--os-sand); color: var(--os-forest); }

/* =========================================================
   Splash screen
   ========================================================= */
.os-splash {
  min-height: 100vh;
  background: radial-gradient(circle at 30% 30%, #16321f 0%, #0d1a10 65%, #090f0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.os-splash-logo {
  width: 150px;
  height: 150px;
  opacity: 0;
  transform: scale(0.85);
  animation: osSplashReveal 1.1s cubic-bezier(.2,.7,.3,1) forwards;
  border-radius: 8px;
}
@keyframes osSplashReveal {
  0%   { opacity: 0; transform: scale(0.8) translateY(6px); }
  60%  { opacity: 1; transform: scale(1.04) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.os-splash-tagline {
  color: #cfe6cf;
  letter-spacing: 2px;
  font-size: 0.78rem;
  text-align: center;
  margin-top: 18px;
  opacity: 0;
  animation: osFadeIn 0.8s ease forwards;
  animation-delay: 0.7s;
}
@keyframes osFadeIn { to { opacity: 1; } }

/* Home loading screen: replay on every visit and refresh. */
.os-home-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  transition: opacity 0.3s ease;
}
body.os-home-loading { overflow: hidden; }
.os-home-loading .os-home-loader { display: flex; }
.os-home-loading:not(.os-home-revealing) > :not(.os-home-loader) { visibility: hidden; }
.os-home-revealing .os-home-loader { opacity: 0; }
.os-loading-track {
  width: 150px;
  height: 3px;
  margin: 20px auto 0;
  overflow: hidden;
  border-radius: var(--os-radius-pill);
  background: rgba(199, 221, 91, 0.2);
}
.os-loading-track span {
  display: block;
  height: 100%;
  background: var(--os-lime);
  transform: scaleX(0);
  transform-origin: left;
  animation: osLoadingProgress 2.7s linear forwards;
}
[dir="rtl"] .os-loading-track span { transform-origin: right; }
@keyframes osLoadingProgress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .os-home-loader { transition: none; }
  .os-home-loader .os-splash-logo,
  .os-home-loader .os-splash-tagline,
  .os-loading-track span {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Language picker (appears after splash, same dark canvas) */
.os-lang-screen {
  min-height: 100vh;
  background: radial-gradient(circle at 30% 30%, #16321f 0%, #0d1a10 65%, #090f0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.os-lang-card {
  width: 100%;
  max-width: 420px;
  padding: 0 1rem;
}
.os-lang-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.os-lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: rgba(247, 244, 234, 0.06);
  border: 1px solid rgba(199, 221, 91, 0.35);
  color: var(--os-white);
  border-radius: var(--os-radius-tile);
  padding: 12px 10px;
  text-align: start;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.os-lang-option:hover, .os-lang-option:focus-visible {
  background: rgba(199, 221, 91, 0.14);
  border-color: var(--os-lime);
  color: var(--os-white);
}
.os-lang-option .bi {
  font-size: 1.15rem;
  color: var(--os-lime);
}
.os-lang-option .lang-native {
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}
.os-lang-option .lang-sub {
  font-size: 0.72rem;
  color: #c9d9c3;
}

/* =========================================================
   Hero section — big slider + two stacked side panels
   ========================================================= */
.os-hero-section { padding-top: 1.75rem; }
.os-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}
.os-hero-slider { position: relative; min-height: 440px; }
.os-hero-slider .os-hero { height: 100%; }

.os-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--os-white);
  /*border: 1px solid var(--os-sand-line);*/
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: var(--os-shadow);
  cursor: pointer;
}
.os-hero-slide {
  display: none;
  background-image: linear-gradient(rgb(255 255 255 / 86%), rgb(255 255 255 / 86%)), var(--os-slide-background);
  background-size: cover;
  background-position: center;
  padding-bottom: 5.75rem;
}
#featuredSection { --os-slide-background: url('../img/hero/slide-1-bg.jpg'); }
.os-hero-slide-static { --os-slide-background: url('../img/hero/slide-2-bg.jpg'); }
.os-hero-slide.os-hero-slide-active { display: flex; }
.os-hero-slide-static { cursor: default; }

.os-hero-media {
  position: relative;
  flex: 0 0 240px;
  width: 240px;
  height: 240px;
  border-radius: 63% 37% 54% 46% / 46% 41% 59% 54%;
  background: linear-gradient(135deg, var(--os-sand) 0%, #e4dbc0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.os-hero-media .os-photo img { object-fit: cover; }
.os-hero-media .bi { font-size: 5rem; color: var(--os-forest); }
.os-hero-content { flex: 1; min-width: 0; }
.os-hero-badge {
  display: inline-block;
  background: var(--os-lime);
  color: var(--os-forest-dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: var(--os-radius-pill);
  margin-bottom: 0.7rem;
}
.os-hero-name {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}
.os-hero-desc {
  color: var(--os-ink);
  max-width: 56ch;
  margin-bottom: 1.2rem;
}
.os-hero-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.os-hero-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--os-forest);
}

/* Slider prev/next + dots, bottom-end corner of the big panel */
.os-hero-controls {
  position: absolute;
  inset-inline-end: 1.75rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.os-hero-dots { display: flex; align-items: center; gap: 6px; }
.os-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--os-sand-line);
}
.os-hero-dot.active {
  width: 20px;
  border-radius: 5px;
  background: var(--os-forest);
  transition: width 0.2s ease;
}
.os-hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--os-white);
  border: 1px solid var(--os-sand-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--os-forest-dark);
  box-shadow: var(--os-shadow);
}
.os-hero-arrow:hover { background: var(--os-forest); color: var(--os-white); border-color: var(--os-forest); }

/* Right column: "discover" teaser + the bundle ticket, stacked */
.os-hero-right { display: flex; flex-direction: column; gap: 1.25rem; }
.os-discover {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--os-sand);
  border-radius: 20px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}
.os-discover-icon {
  position: absolute;
  inset-inline-end: -12px;
  bottom: -16px;
  font-size: 6.5rem;
  color: rgba(31, 95, 63, 0.09);
}
.os-discover-title { font-size: 1.2rem; margin: 0; }
.os-discover-desc { font-size: 0.86rem; color: var(--os-ink); margin: 0 0 0.3rem; max-width: 26ch; }
.os-discover-link { font-weight: 700; color: var(--os-forest); text-decoration: underline; font-size: 0.9rem; }

/* Bundle ticket, forced into a compact vertical layout for the side column */
.os-hero-right .os-offer {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 1.35rem 1.35rem 1.5rem;
}
.os-hero-right .os-offer-info { padding-inline-end: 0; margin-bottom: 1rem; }
.os-hero-right .os-offer-items { justify-content: center; }
.os-hero-right .os-offer-deal {
  border-inline-start: none;
  border-top: 1px dashed var(--os-forest);
  padding-inline-start: 0;
  padding-top: 1rem;
  text-align: center;
  width: 100%;
}
.os-hero-right .os-offer-deal::before, .os-hero-right .os-offer-deal::after { display: none; }
.os-hero-right .os-offer-prices { justify-content: center; }

@media (max-width: 991.98px) {
  .os-hero-grid { grid-template-columns: 1fr; }
  .os-hero-slider { min-height: 380px; }
}

/* =========================================================
   Bundle offer
   Styled like a coupon/ticket rather than another rounded
   card, so it reads as a distinct "deal" rather than just
   another product tile.
   ========================================================= */
.os-offer {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--os-sand);
  border: 1px dashed var(--os-forest);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  cursor: pointer;
}
.os-offer-info {
  flex: 1;
  min-width: 0;
  padding-inline-end: 1.5rem;
}
.os-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--os-forest);
  color: var(--os-white);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--os-radius-pill);
  margin-bottom: 0.85rem;
}
.os-offer-items {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.os-offer-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--os-white);
  border: 1px solid var(--os-sand-line);
  border-radius: var(--os-radius-pill);
  padding: 6px 14px;
  font-weight: 700;
  color: var(--os-forest-dark);
}
.os-offer-item .bi { color: var(--os-forest); font-size: 1rem; }
.os-offer-item > .os-photo { width: 24px; height: 24px; flex: 0 0 24px; }
.os-offer-plus {
  font-weight: 700;
  color: var(--os-forest);
  font-size: 1.1rem;
}
.os-offer-deal {
  position: relative;
  flex: 0 0 auto;
  text-align: end;
  padding-inline-start: 1.75rem;
  border-inline-start: 1px dashed var(--os-forest);
}
/* Punched-hole circles where the dashed divider meets the card edges,
   reinforcing the "ticket" shape. */
.os-offer-deal::before,
.os-offer-deal::after {
  content: "";
  position: absolute;
  inset-inline-start: -13px;
  width: 26px;
  height: 26px;
  background: var(--os-paper);
  border: 1px dashed var(--os-forest);
  border-radius: 50%;
}
.os-offer-deal::before { top: -13px; }
.os-offer-deal::after { bottom: -13px; }
.os-offer-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: flex-end;
}
.os-offer-old {
  color: #8a8f7d;
  text-decoration: line-through;
  font-size: 0.95rem;
}
.os-offer-new {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--os-forest);
}
.os-offer-save {
  font-size: 0.8rem;
  color: var(--os-forest-dark);
  font-weight: 700;
  margin-top: 2px;
}

@media (max-width: 767.98px) {
  .os-hero { flex-direction: column; text-align: center; padding: 1.5rem 1.5rem 5.75rem; }
  .os-hero-media { width: 180px; height: 180px; flex-basis: auto; }
  .os-hero-footer { justify-content: center; }
  .os-hero-desc { max-width: 100%; }

  .os-offer { flex-direction: column; text-align: center; }
  .os-offer-info { padding-inline-end: 0; margin-bottom: 1.25rem; }
  .os-offer-items { justify-content: center; }
  .os-offer-deal {
    border-inline-start: none;
    border-top: 1px dashed var(--os-forest);
    padding-inline-start: 0;
    padding-top: 1.25rem;
    text-align: center;
    width: 100%;
  }
  .os-offer-prices { justify-content: center; }
  .os-offer-deal::before, .os-offer-deal::after { display: none; }
}

/* =========================================================
   Product grid
   ========================================================= */
/* Image boxes reserve their space while loading or showing fallback icons. */
.os-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}
.os-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  border-radius: 16px;
}
.os-photo.is-loaded img { opacity: 1; }
.os-photo.is-loaded > .bi { visibility: hidden; }
.os-product-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  height: 100%;
}
.product-card {
  position: relative;
  background: #fbfbfb;
  /*border: 1px solid var(--os-sand-line);*/
  border-radius: var(--os-radius-tile);
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover, .product-card:focus-within {
  box-shadow: var(--os-shadow);
  transform: translateY(-2px);
}
.product-card .product-media {
  background: var(--os-sand);
  border-radius: var(--os-radius-tile) var(--os-radius-tile) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 180px;
  padding: 0;
  overflow: hidden;
}
.product-card .product-media .os-photo img {
  object-fit: cover;
  object-position: center;
}
.product-card .product-media .bi {
  font-size: 2.75rem;
  color: var(--os-forest);
}
.product-card .product-category-tag {
  position: absolute;
  z-index: 1;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--os-forest);
  color: var(--os-white);
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: var(--os-radius-pill);
}
.product-card .product-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .product-name {
  font-weight: 700;
  color: var(--os-forest-dark);
  margin-bottom: 2px;
}
.product-card .product-unit {
  font-size: 0.8rem;
  color: #6b6f63;
  margin-bottom: 0.6rem;
}
.product-card .product-price {
  font-weight: 700;
  color: var(--os-forest);
  white-space: nowrap;
}
.product-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}
.product-details-button {
  padding: 0;
  border: 0;
  background: none;
  text-align: start;
  font: inherit;
}
.product-details-button::after { content: ''; position: absolute; inset: 0; border-radius: var(--os-radius-tile); }
.product-details-button:focus-visible { outline: none; }
.product-details-button:focus-visible::after { outline: 3px solid var(--os-forest); outline-offset: 3px; }
.product-quick-add {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
}

/* Product detail modal */
.product-modal-icon {
  background: var(--os-sand);
  border-radius: var(--os-radius-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 220px;
  overflow: hidden;
}
.product-modal-icon .os-photo img {
  object-fit: cover;
  object-position: center;
}
.product-modal-icon .bi { font-size: 4rem; color: var(--os-forest); }
.product-gallery { position: relative; width: 100%; height: 100%; touch-action: pan-y; }
.product-gallery-slide { width: 100%; height: 100%; }
.product-gallery-slide[hidden] { display: none; }
.product-gallery img { -webkit-user-drag: none; user-select: none; }
.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--os-forest-dark);
  font-size: 2rem;
  line-height: 1;
}
.product-gallery-prev { inset-inline-start: 10px; }
.product-gallery-next { inset-inline-end: 10px; }
[dir="rtl"] .product-gallery-arrow span { display: inline-block; transform: scaleX(-1); }
.product-gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  max-width: calc(100% - 32px);
  overflow-x: auto;
  padding: 0 4px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
}
.product-gallery-dots button { flex: 0 0 30px; height: 30px; padding: 10px; border: 0; background: none; }
.product-gallery-dots button::after { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: #a3aaa1; }
.product-gallery-dots button[aria-pressed="true"]::after { background: var(--os-forest); }
.product-gallery :focus-visible { outline: 3px solid var(--os-forest); outline-offset: -3px; }
.product-ingredients { padding: 1rem; background: var(--os-sand); border-radius: 12px; }
.product-ingredients p { white-space: pre-line; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--os-sand-line);
  border-radius: var(--os-radius-pill);
  overflow: hidden;
}
.qty-stepper button {
  border: none;
  background: var(--os-sand);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  color: var(--os-forest-dark);
}
.qty-stepper input {
  width: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
}
.qty-stepper input:focus { outline: none; }

/* =========================================================
   About section
   ========================================================= */
.os-about { padding: 3.5rem 0; }
.os-about-header { max-width: 640px; }
.os-about-desc { color: var(--os-ink); }
.os-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.os-about-card {
  background: var(--os-white);
  border: 1px solid #f4f4f4;
  border-radius: var(--os-radius-tile);
  padding: 1.5rem;
}
.os-about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--os-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--os-forest);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}
.os-about-card h6 { font-weight: 700; margin-bottom: 0.4rem; }
.os-about-card p { font-size: 0.88rem; color: #6b6f63; margin: 0; }

@media (max-width: 767.98px) {
  .os-about-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Contact section
   ========================================================= */
.os-contact { padding: 3.5rem 0; background: var(--os-sand); }
.os-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.os-contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.os-contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.os-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--os-white);
  border: 1px solid var(--os-sand-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--os-forest);
  flex-shrink: 0;
  font-size: 1rem;
}
.os-contact-list strong { display: block; color: var(--os-forest-dark); font-size: 0.82rem; }
.os-contact-list span, .os-contact-list a { color: var(--os-ink); text-decoration: none; font-size: 0.92rem; }
.os-contact-list a:hover { color: var(--os-forest); }
.os-contact-logo-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--os-sand-line);
  box-shadow: var(--os-shadow);
  min-height: 320px;
}
.os-contact-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767.98px) {
  .os-contact-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Trust / contact bar — sits right above the footer
   ========================================================= */
.os-trust-bar { background: var(--os-forest-dark); padding: 1.9rem 0; }
.os-trust-item { display: flex; align-items: center; gap: 14px; color: var(--os-white); }
.os-trust-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--os-lime);
  color: var(--os-forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.os-trust-title { font-weight: 700; font-size: 0.95rem; }
.os-trust-sub { font-size: 0.8rem; color: #cfe0c9; }
.os-trust-sub a { color: #cfe0c9; text-decoration: none; }
.os-trust-sub a:hover { color: var(--os-lime); }

/* =========================================================
   Footer
   ========================================================= */
.os-footer { background: var(--os-forest-dark); color: #c3d6bc; }
.os-footer-top { padding-block: 3rem 2rem; }
.os-footer a, .os-contact-list a, .os-trust-sub { overflow-wrap: anywhere; }
.os-contact-list li > :last-child, .os-trust-item > :last-child { min-width: 0; }
.os-footer h6 { color: var(--os-white); font-weight: 700; font-size: 0.85rem; margin-bottom: 1.1rem; letter-spacing: 0.3px; }
.os-footer-desc { font-size: 0.88rem; color: #b7ccae; max-width: 32ch; margin-bottom: 1.1rem; }
.os-footer a {
  color: #c3d6bc;
  text-decoration: none;
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}
.os-footer a:hover { color: var(--os-lime); }
.os-footer-social { display: flex; gap: 10px; margin-top: 0.5rem; }
.os-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.os-footer-social a:hover { background: var(--os-lime); color: var(--os-forest-dark); }
.os-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 0;
  font-size: 0.8rem;
  color: #9fb797;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}
.os-payment-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.os-payment-badge {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: #dfe9da;
}

/* =========================================================
   Cart page
   ========================================================= */
.cart-line {
  background: var(--os-white);
  border: 1px solid var(--os-sand-line);
  border-radius: var(--os-radius-tile);
  padding: 0.9rem 1rem;
}
.cart-line .cart-line-icon {
  width: 56px;
  height: 56px;
  background: var(--os-sand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-line .cart-line-icon .bi { font-size: 1.5rem; color: var(--os-forest); }
.cart-summary {
  background: var(--os-sand);
  border-radius: var(--os-radius-tile);
  padding: 1.1rem 1.25rem;
}
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b6f63;
}
.cart-empty .bi { font-size: 3rem; color: var(--os-sand-line); }

/* =========================================================
   Auth / admin login
   ========================================================= */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--os-paper);
  padding: 1rem;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--os-white);
  border: 1px solid var(--os-sand-line);
  border-radius: var(--os-radius-tile);
  padding: 2rem;
  box-shadow: var(--os-shadow);
}

/* =========================================================
   Admin dashboard
   ========================================================= */
.admin-shell { min-height: 100vh; }
.admin-topbar {
  background: var(--os-forest-dark);
  color: var(--os-white);
}
.admin-topbar .brand-name { color: var(--os-white); }
.stat-tile {
  background: var(--os-white);
  border: 1px solid var(--os-sand-line);
  border-radius: var(--os-radius-tile);
  padding: 1rem 1.25rem;
}
.stat-tile .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--os-forest-dark);
}
.stat-tile .stat-label {
  font-size: 0.8rem;
  color: #6b6f63;
}
.orders-table thead th {
  font-size: 0.78rem;
  color: #6b6f63;
  border-bottom: 2px solid var(--os-sand-line);
  white-space: nowrap;
}
.orders-table tbody tr { cursor: pointer; }
.orders-table tbody tr:hover { background: var(--os-sand); }

/* Editable order-status dropdown, shown in the table row and in the order
   details modal. Color reflects the selected status so the table stays
   scannable at a glance. */
.status-select {
  border: none;
  border-radius: var(--os-radius-pill);
  font-weight: 700;
  font-size: 0.78rem;
  padding-block: 4px;
  padding-inline-start: 10px;
  padding-inline-end: 28px;
  min-width: 112px;
  cursor: pointer;
}
.status-select:focus {
  box-shadow: none;
  outline: 2px solid var(--os-forest-dark);
  outline-offset: 1px;
}
.status-select-pending { background-color: #E9CE7A; color: #5b4a10; }
.status-select-confirmed { background-color: var(--os-lime); color: #3c4a12; }
.status-select-completed { background-color: #8FBFE0; color: #16425b; }
.status-select-delivered { background-color: var(--os-leaf); color: #ffffff; }
.status-select-returned { background-color: #E7B4A6; color: var(--os-danger); }

/* Utility */
.text-muted-soft { color: #6b6f63; }
.divider-sand { border-color: var(--os-sand-line); }
.max-w-720 { max-width: 720px; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .os-splash-logo, .os-splash-tagline { animation: none !important; opacity: 1 !important; transform: none !important; }
  .os-hero-dot.active { transition: none !important; }
}

/* Admin catalog and bulk order actions */
[hidden] { display: none !important; }
.bulk-order-bar { background: var(--os-sand); border-radius: 12px; padding: 1rem; }
.bulk-order-bar .form-select { min-width: 170px; }
.order-checkbox-cell { width: 44px; text-align: center; }
.order-checkbox-cell .form-check-input { width: 1.2em; height: 1.2em; cursor: pointer; }
.orders-table tr.order-selected > td { background: #edf5ec; }
.admin-products-table { min-width: 690px; }
.admin-product-photo { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 10px; background: var(--os-sand); display: grid; place-items: center; overflow: hidden; color: var(--os-forest); }
.admin-product-photo img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-name { max-width: 320px; overflow-wrap: anywhere; }
#productEditorFields { min-width: 0; }

/* Dashboard content editing */
.content-editor-section { padding: 1.5rem; margin-bottom: 1.5rem; background: #fff; border: 1px solid var(--os-sand-line); border-radius: 16px; }
.content-slide { padding: 1.25rem; margin-bottom: 1.25rem; border: 1px solid var(--os-sand-line); border-radius: 12px; }
.content-image-preview { width: 120px; height: 90px; object-fit: contain; border-radius: 10px; background: var(--os-sand); }
.content-save-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem; background: #fff; border-top: 1px solid var(--os-sand-line); z-index: 10; }
.content-editor-section input, .content-editor-section textarea { min-width: 0; }
.os-hero-desc, .os-about-desc, .os-about-card p, .os-contact [data-i18n="contact_desc"] { white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .content-editor-section, .content-slide { padding: 1rem; } }

/* Keep size labels and both quantity buttons usable on narrow screens. */
.cart-line .qty-stepper { flex-shrink: 0; }
.cart-line-info { min-width: 0; overflow-wrap: anywhere; }
.product-card-actions { flex-wrap: wrap; }
@media (max-width: 575.98px) {
  .cart-line.d-flex { display: grid !important; grid-template-columns: 56px minmax(0, 1fr); }
  .cart-line .cart-line-icon { grid-column: 1; grid-row: 1; }
  .cart-line-info { grid-column: 2; grid-row: 1; }
  .cart-line .qty-stepper { grid-column: 1 / 3; grid-row: 2; justify-self: start; }
  .cart-line-total { grid-column: 2; grid-row: 2; justify-self: end; }
}
