/* ================================================================
   SOUL FOODS INDIA — sfi.css  v3.0
   Single stylesheet. No parent theme. Clean from scratch.
   ================================================================ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  --saffron:       #C4722A;
  --saffron-dk:    #A85E22;
  --saffron-lt:    #FFF8F0;
  --saffron-bd:    #F5DEB3;
  --green:         #2C7A3F;
  --footer-bg:     #3D2B1A;
  --amber:         #E8A045;
  --text:          #1A1A1A;
  --muted:         #6B6B6B;
  --border:        #E8E8E8;
  --white:         #ffffff;
  --radius:        6px;
  --radius-sm:     4px;
  --max-w:         1240px;
  --header-h:      58px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}

/* CRITICAL: override any theme/plugin body constraints */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  background: var(--white) !important;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.5;
}

/* Admin bar offset */
body.admin-bar { padding-top: 0; }
body.admin-bar #sfi-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar #sfi-header { top: 46px; }
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--saffron); text-decoration: none; }
a:hover { color: var(--saffron-dk); }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* Override any WP/WC wrapper width constraints */
#page, #content, #primary, #main, .site, .site-content,
.content-area, .entry-content, .woocommerce,
.wp-site-blocks, .wp-block-group {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* ── LAYOUT HELPER ───────────────────────────────────────────── */
.sfi-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER ──────────────────────────────────────────────────── */
#sfi-header {
  background: var(--saffron);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.sfi-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.sfi-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.sfi-logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.sfi-logo-name {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.3px;
  white-space: nowrap;
}

/* Search */
.sfi-search {
  flex: 1;
  display: flex;
  max-width: 580px;
}
.sfi-search-input {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  background: #fff;
  color: var(--text);
}
.sfi-search-btn {
  height: 36px;
  width: 42px;
  background: #8B4513;
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sfi-search-btn:hover { background: #6B3410; }

/* Header actions */
.sfi-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.sfi-header-actions a {
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.sfi-header-actions a:hover { opacity: .8; }
.sfi-cart-link { position: relative; }
.sfi-cart-count {
  background: #fff;
  color: var(--saffron);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── PRIMARY NAV ─────────────────────────────────────────────── */
#sfi-nav {
  background: var(--white);
  border-bottom: 2px solid var(--saffron);
  overflow: hidden;
}
.sfi-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.sfi-nav-inner::-webkit-scrollbar { display: none; }
.sfi-nav-inner a,
#sfi-nav .menu-item a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s;
}
.sfi-nav-inner a:hover,
#sfi-nav .current-menu-item > a,
#sfi-nav .current-cat > a {
  color: var(--saffron);
  border-bottom-color: var(--saffron);
}

/* ── HERO ────────────────────────────────────────────────────── */
.sfi-hero {
  background: var(--saffron-lt);
  border-bottom: 1px solid var(--saffron-bd);
  padding: 40px 0;
  width: 100%;
}
.sfi-hero .sfi-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sfi-hero-text { flex: 1; }
.sfi-hero-text h1 {
  font-size: 28px;
  font-weight: 500;
  color: #7A3B0A;
  line-height: 1.3;
  margin: 0 0 8px;
}
.sfi-hero-text p {
  font-size: 14px;
  color: #A0522D;
  margin: 0 0 18px;
}
.sfi-btn {
  display: inline-block;
  background: var(--saffron);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background .15s;
  border: none;
  cursor: pointer;
}
.sfi-btn:hover { background: var(--saffron-dk) !important; }
.sfi-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sfi-badge {
  background: #fff;
  border: 1px solid var(--saffron);
  color: #8B4513;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}
.sfi-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.sfi-stat {
  background: var(--saffron);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 18px;
  text-align: center;
  min-width: 90px;
}
.sfi-stat strong { display: block; font-size: 20px; font-weight: 500; }
.sfi-stat span   { font-size: 11px; opacity: .85; }

/* ── SHOP LAYOUT ─────────────────────────────────────────────── */
.sfi-shop-layout {
  display: flex;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px;
  align-items: flex-start;
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sfi-sidebar {
  width: 210px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 10px);
}
.sfi-sidebar .widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.sfi-sidebar .widget-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: .7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--saffron-bd);
  margin-bottom: 10px;
}
.sfi-sidebar .widget ul li { margin-bottom: 3px; }
.sfi-sidebar .widget ul li a {
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  gap: 4px;
}
.sfi-sidebar .widget ul li a:hover { color: var(--saffron); }
.sfi-sidebar .widget ul li.current-cat > a,
.sfi-sidebar .widget ul li.chosen a { color: var(--saffron); font-weight: 500; }
/* Price filter */
.widget_price_filter .ui-slider { background: var(--saffron-bd); height: 4px; border-radius: 2px; border: none; }
.widget_price_filter .ui-slider .ui-slider-range { background: var(--saffron); }
.widget_price_filter .ui-slider .ui-slider-handle {
  background: var(--saffron); border: none; width: 14px; height: 14px;
  top: -5px; border-radius: 50%; cursor: pointer; outline: none;
}
.widget_price_filter .price_slider_amount {
  display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
}
.widget_price_filter .price_slider_amount .button {
  background: var(--saffron) !important; color: #fff !important; border: none !important;
  border-radius: var(--radius-sm) !important; padding: 4px 12px !important; font-size: 12px !important;
}
/* Layered nav */
.woocommerce-widget-layered-nav ul li a,
.woocommerce-widget-layered-nav ul li span { font-size: 12px; }

/* ── SHOP MAIN ───────────────────────────────────────────────── */
.sfi-shop-main { flex: 1; min-width: 0; }

.sfi-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}
.woocommerce-result-count { margin: 0; }
.woocommerce-ordering select {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
  background: var(--white) !important;
  color: var(--text) !important;
  cursor: pointer;
}

/* ── PRODUCT GRID ────────────────────────────────────────────── */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (max-width: 1024px) { ul.products { grid-template-columns: repeat(3,1fr) !important; } }
@media (max-width: 640px)  { ul.products { grid-template-columns: repeat(2,1fr) !important; } }

/* ── PRODUCT CARD ────────────────────────────────────────────── */
ul.products li.product {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
  transition: border-color .15s, box-shadow .15s !important;
}
ul.products li.product:hover {
  border-color: var(--saffron) !important;
  box-shadow: 0 2px 8px rgba(196,114,42,.1) !important;
}
/* Image */
ul.products li.product a img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  border-bottom: 1px solid var(--saffron-bd) !important;
  background: var(--saffron-lt) !important;
  margin: 0 !important;
  display: block !important;
}
/* Sale badge */
ul.products li.product .onsale {
  background: var(--saffron) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  padding: 2px 7px !important;
  top: 8px !important; left: 8px !important;
  min-height: auto !important; min-width: auto !important;
  line-height: 1.5 !important;
}
/* Title */
ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  line-height: 1.3 !important;
  padding: 10px 10px 4px !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 44px !important;
}
/* Rating */
ul.products li.product .star-rating {
  padding: 2px 10px 0 !important;
  margin: 0 !important;
  display: block !important;
}
/* Price */
ul.products li.product .price {
  display: block !important;
  padding: 2px 10px 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--saffron) !important;
  margin: 0 !important;
}
ul.products li.product .price del { color: var(--muted) !important; font-size: 11px !important; font-weight: 400 !important; }
ul.products li.product .price ins { text-decoration: none !important; background: none !important; }
/* Add to Cart */
ul.products li.product .button,
ul.products li.product a.button {
  display: block !important;
  width: calc(100% - 20px) !important;
  margin: auto 10px 10px !important;
  background: var(--saffron) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  height: 34px !important;
  line-height: 34px !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-align: center !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: background .15s !important;
  float: none !important;
}
ul.products li.product .button:hover { background: var(--saffron-dk) !important; color: #fff !important; }

/* ── PAGINATION ──────────────────────────────────────────────── */
.woocommerce-pagination { margin: 24px 0; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 4px; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--muted);
  text-decoration: none;
}
.woocommerce-pagination ul li .current,
.woocommerce-pagination ul li a:hover {
  background: var(--saffron); color: #fff; border-color: var(--saffron);
}

/* ── TRUST BAR ───────────────────────────────────────────────── */
.sfi-trust-bar {
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.sfi-trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  font-size: 12px;
  color: var(--muted);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sfi-trust-item:last-child { border-right: none; }
.sfi-trust-item svg { color: var(--saffron); flex-shrink: 0; }

/* ── SINGLE PRODUCT ──────────────────────────────────────────── */
.woocommerce-page.single-product div.product {
  max-width: var(--max-w);
  margin: 24px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 640px) { .woocommerce-page.single-product div.product { grid-template-columns: 1fr; } }
.woocommerce-page .product_title { font-size: 24px !important; font-weight: 500 !important; }
.woocommerce-page div.product p.price,
.woocommerce-page div.product span.price { font-size: 22px !important; color: var(--saffron) !important; font-weight: 500 !important; }
.woocommerce-page div.product .single_add_to_cart_button {
  background: var(--saffron) !important; color: #fff !important; border: none !important;
  border-radius: var(--radius-sm) !important; padding: 12px 28px !important;
  font-size: 15px !important; font-weight: 500 !important; cursor: pointer !important;
}
.woocommerce-page div.product .single_add_to_cart_button:hover { background: var(--saffron-dk) !important; }

/* ── WC BLOCKS — CART & CHECKOUT COMMON ─────────────────────── */
/* Give blocks some breathing room */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  max-width: var(--max-w) !important;
  margin: 20px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* WC Block buttons → saffron */
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: var(--saffron) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}
.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: var(--saffron-dk) !important;
  color: #fff !important;
}

/* Totals footer */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--saffron) !important;
  font-weight: 500 !important;
}

/* Radio options (shipping, payment) */
.wc-block-components-radio-control__option:has(input:checked),
.wc-block-components-radio-control__option--checked {
  border-color: var(--saffron) !important;
  background: var(--saffron-lt) !important;
}
.wc-block-components-radio-control__option input[type="radio"] {
  accent-color: var(--saffron) !important;
}

/* Input focus */
.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus {
  border-color: var(--saffron) !important;
  box-shadow: 0 0 0 2px rgba(196,114,42,.1) !important;
  outline: none !important;
}

/* Floating label inputs — prevent overlap */
.wc-block-components-text-input,
.wc-block-components-select { position: relative !important; }
.wc-block-components-text-input input,
.wc-block-components-select select {
  height: 52px !important;
  padding-top: 20px !important;
  padding-bottom: 6px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  font-size: 13px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  width: 100% !important;
  background: var(--white) !important;
  box-shadow: none !important;
}
.wc-block-components-text-input label,
.wc-block-components-select label {
  position: absolute !important;
  top: 7px !important;
  left: 12px !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transform: none !important;
  margin: 0 !important;
}

/* Checkout 50/50 split */
.wc-block-components-sidebar-layout.wc-block-checkout {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px !important;
  width: 100% !important;
  padding: 0 !important;
}
.wc-block-components-sidebar-layout .wc-block-components-main,
.wc-block-components-sidebar-layout .wc-block-checkout__main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  min-width: 0 !important;
}
.wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  min-width: 0 !important;
  position: sticky !important;
  top: calc(var(--header-h) + 10px) !important;
}
@media (max-width: 768px) {
  .wc-block-components-sidebar-layout.wc-block-checkout {
    grid-template-columns: 1fr !important;
  }
}

/* Checkout step cards */
.wc-block-components-checkout-step {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
}
.wc-block-components-checkout-step__heading,
.wc-block-components-checkout-step__heading h2 {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  margin: 0 0 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--border) !important;
}

/* Checkout order summary */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  background: var(--white) !important;
}
.wc-block-components-totals-item {
  display: flex !important;
  justify-content: space-between !important;
  padding: 7px 16px !important;
  font-size: 13px !important;
  border: none !important;
}
.wc-block-components-totals-footer-item {
  border-top: 1px solid var(--border) !important;
  padding: 12px 16px !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 16px !important;
  font-weight: 500 !important;
}

/* Place Order button */
.wc-block-components-checkout-place-order-button {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  font-size: 15px !important;
  margin-top: 14px !important;
}

/* Checkout page title */
.woocommerce-checkout h1.entry-title,
.woocommerce-checkout .entry-title { display: none !important; }
.woocommerce-checkout .entry-content,
.wp-block-woocommerce-checkout { margin-top: 0 !important; padding-top: 0 !important; }

/* Square payment box */
.sfi-payment-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.sfi-payment-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
#card-container { min-height: 90px; }
.sfi-payment-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.sfi-payment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.sfi-pci-badge {
  font-size: 10px;
  color: var(--muted);
  background: #F5F5F5;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}
.sfi-card-logos {
  display: flex;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.sfi-card-logos span {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
}
.sfi-checkout-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── CART PAGE ───────────────────────────────────────────────── */
.woocommerce-cart h1 {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  padding: 20px 0 0 0 !important;
  margin: 0 !important;
}

/* Classic cart table */
table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.shop_table thead th {
  background: var(--saffron-lt);
  border-bottom: 1px solid var(--saffron-bd);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--saffron);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
}
table.shop_table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.shop_table tbody tr:last-child td { border-bottom: none; }
table.shop_table .product-thumbnail img {
  width: 60px !important; height: 60px !important;
  object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--saffron-bd); background: var(--saffron-lt);
}
table.shop_table .product-name a { font-weight: 500; color: var(--text); }
table.shop_table .product-name a:hover { color: var(--saffron); }
table.shop_table .product-price,
table.shop_table .product-subtotal { color: var(--saffron); font-weight: 500; }
table.shop_table .product-remove a { color: #ccc !important; font-size: 20px !important; background: none !important; border: none !important; padding: 0 !important; }
table.shop_table .product-remove a:hover { color: #c0392b !important; }
table.shop_table .quantity input.qty { width: 58px !important; text-align: center; }
.cart_totals h2 { font-size: 15px !important; font-weight: 500 !important; margin-bottom: 14px !important; }
.cart_totals .order-total td { color: var(--saffron) !important; }
.wc-proceed-to-checkout .checkout-button {
  display: block !important; width: 100% !important; text-align: center !important;
  background: var(--saffron) !important; color: #fff !important;
  padding: 13px !important; font-size: 14px !important; font-weight: 500 !important;
  border-radius: var(--radius-sm) !important; border: none !important; margin-top: 14px !important;
  text-decoration: none !important;
}
.wc-proceed-to-checkout .checkout-button:hover { background: var(--saffron-dk) !important; }

/* WC Block cart */
.wp-block-woocommerce-cart .wc-block-cart {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) { .wp-block-woocommerce-cart .wc-block-cart { grid-template-columns: 1fr; } }
.wc-block-cart-item__image img {
  width: 70px !important; height: 70px !important;
  object-fit: cover !important; border-radius: var(--radius-sm) !important;
  border: 1px solid var(--saffron-bd) !important;
}
.wc-block-cart__sidebar {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  position: sticky !important;
  top: calc(var(--header-h) + 10px) !important;
}
.wc-block-cart__submit-container { padding: 0 16px 14px; }
.wc-block-cart__submit-button {
  display: block !important; width: 100% !important;
  padding: 12px !important; font-size: 14px !important;
}

/* ── NOTICES ─────────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--saffron) !important;
  background: var(--saffron-lt) !important;
  color: #7A3B0A !important;
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--saffron) !important; }
.woocommerce-error { border-top-color: #c0392b !important; }

/* ── GLOBAL BUTTONS ──────────────────────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--saffron) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background .15s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--saffron-dk) !important; color: #fff !important; }

/* ── GLOBAL FORM FIELDS ──────────────────────────────────────── */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce select,
.woocommerce textarea {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  background: var(--white) !important;
  color: var(--text) !important;
}
.woocommerce input:focus, .woocommerce select:focus, .woocommerce textarea:focus {
  border-color: var(--saffron) !important;
  box-shadow: 0 0 0 3px rgba(196,114,42,.1) !important;
  outline: none !important;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
#sfi-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.75);
  padding: 32px 0 0;
  margin-top: 0;
}
.sfi-footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 24px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.sfi-footer-col { flex: 1; min-width: 120px; }
.sfi-footer-brand { font-size: 16px; font-weight: 500; color: var(--amber); margin-bottom: 4px; }
.sfi-footer-loc   { font-size: 12px; color: rgba(255,255,255,.6); }
.sfi-footer-chip  {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 10px; padding: 2px 9px; border-radius: 4px; margin-top: 8px;
}
.sfi-footer-col h5 {
  font-size: 11px; font-weight: 600; color: var(--amber);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px;
}
.sfi-footer-col a {
  display: block; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 5px;
}
.sfi-footer-col a:hover { color: var(--amber); text-decoration: none; }
.sfi-footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px; color: rgba(255,255,255,.35);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.sfi-footer-bottom a { color: rgba(255,255,255,.35); }
.sfi-footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ── PAGE / BREADCRUMB ───────────────────────────────────────── */
.sfi-page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 32px 20px; }
.sfi-page-title { font-size: 24px; font-weight: 500; margin-bottom: 16px; }
.woocommerce-breadcrumb {
  max-width: var(--max-w); margin: 10px auto; padding: 0 20px;
  font-size: 12px; color: var(--muted);
}
.woocommerce-breadcrumb a { color: var(--saffron); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sfi-shop-layout { flex-direction: column; padding: 12px; gap: 12px; }
  .sfi-sidebar { width: 100%; position: static; }
  .sfi-hero .sfi-inner { flex-direction: column; }
  .sfi-hero-stats { flex-direction: row; }
  .sfi-header-inner { gap: 10px; }
  .sfi-search { max-width: 100%; }
  .sfi-trust-bar { flex-wrap: wrap; }
  .sfi-trust-item { flex: 1 1 48%; border-right: none; border-bottom: 1px solid var(--border); }
  .sfi-footer-grid { gap: 20px; }
  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout { padding: 0 12px !important; }
}

/* ── SCREEN READER ───────────────────────────────────────────── */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── FRONT PAGE WIDGET AREA ─────────────────────────────────── */
.sfi-frontpage-widgets {
  width: 100%;
  padding: 32px 0;
}

/* Each widget is full-width with inner padding */
.sfi-frontpage-widgets .sfi-fp-widget {
  width: 100%;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.sfi-frontpage-widgets .sfi-fp-widget:last-child { border-bottom: none; }

/* Inner content constrained and centered */
.sfi-frontpage-widgets .sfi-fp-widget > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.sfi-frontpage-widgets .widget-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--saffron);
  display: inline-block;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* WooCommerce product widgets in front page */
.sfi-frontpage-widgets ul.products {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 900px) {
  .sfi-frontpage-widgets ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .sfi-frontpage-widgets ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Category widget in front page */
.sfi-frontpage-widgets .widget_product_categories ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0; margin: 0;
}
.sfi-frontpage-widgets .widget_product_categories ul li a {
  display: block;
  padding: 10px 14px;
  background: var(--saffron-lt);
  border: 1px solid var(--saffron-bd);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--saffron);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.sfi-frontpage-widgets .widget_product_categories ul li a:hover {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}

/* Placeholder when no widgets added yet */
.sfi-widget-placeholder {
  background: var(--saffron-lt);
  border: 2px dashed var(--saffron-bd);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.sfi-widget-placeholder a { color: var(--saffron); font-weight: 500; }
