/*
Theme Name: Kafrasa Collection
Theme URI: https://kafrasa.com/
Author: Kafrasa Collection
Author URI: https://kafrasa.com/
Description: A lightweight, fast WooCommerce theme for a custom-made bags brand. Features a warm brown, green and gold aesthetic, a hero, category browsing, and clean product cards. Built for speed with minimal dependencies.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kafrasa-collection
Tags: e-commerce, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
WC requires at least: 6.0
WC tested up to: 9.0
*/

/* ==========================================================================
   Self-hosted variable fonts (latin) — no render-blocking Google Fonts request.
   Preloaded in wp_head; font-display: swap so text paints immediately.
   ========================================================================== */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('assets/fonts/dm-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/playfair-display.woff2') format('woff2');
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  --kaf-brown:        #5a3115;
  --kaf-brown-dark:   #43230f;
  --kaf-brown-darker: #33190a;
  --kaf-brown-light:  #6e4326;
  --kaf-gold:         #f2a900;
  --kaf-gold-dark:    #d89400;
  --kaf-green:        #7cbe26;
  --kaf-green-dark:   #5f9e1d;
  --kaf-red:          #e23227;
  --kaf-cream:        #faf7f2;
  --kaf-panel:        #ffffff;
  --kaf-border:       #e8e4de;
  --kaf-ink:          #1a1a1a;
  --kaf-muted:        #2d2a26;
  --kaf-faint:        #6b6b6b;
  --kaf-radius:       10px;
  --kaf-radius-sm:    6px;
  --kaf-shadow:       0 8px 24px rgba(90, 49, 21, 0.12);
  --kaf-shadow-lg:    0 16px 40px rgba(0, 0, 0, 0.10);
  --kaf-maxw:         1280px;
  --kaf-font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --kaf-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--kaf-font-body);
  background: var(--kaf-cream);
  color: var(--kaf-ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--kaf-font-display);
  color: var(--kaf-brown);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

a {
  color: var(--kaf-brown);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--kaf-gold-dark); }

img { max-width: 100%; height: auto; }

.fh-container {
  max-width: var(--kaf-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  overflow: visible;
  padding: 12px 22px;
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100001;
  background: #fff;
  color: var(--kaf-brown);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.fh-button,
button.fh-button {
  display: inline-block;
  background: var(--kaf-brown);
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: var(--kaf-radius-sm);
  font-family: var(--kaf-font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.fh-button:hover { background: var(--kaf-brown-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 169, 0, 0.38); }
.fh-button--gold { background: var(--kaf-gold); color: #fff; }
.fh-button--gold:hover { background: var(--kaf-gold-dark); box-shadow: 0 6px 18px rgba(90, 49, 21, 0.3); }

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.fh-topbar {
  background: linear-gradient(90deg, var(--kaf-gold) 0%, var(--kaf-gold-dark) 100%);
  color: var(--kaf-brown-darker);
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.fh-header {
  background: var(--kaf-panel);
  border-bottom: 1px solid var(--kaf-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.fh-header__inner {
  max-width: var(--kaf-maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.fh-logo {
  font-family: var(--kaf-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--kaf-brown);
  white-space: nowrap;
  line-height: 1.15;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.fh-logo span { color: var(--kaf-gold); }
.fh-logo img { max-height: 56px; width: auto; }
/* WordPress Custom Logo (Appearance > Site Identity) outputs an <img class="custom-logo">
   that is NOT inside .fh-logo, so the rule above never caps it. Constrain it here to the
   same height, otherwise the full-size upload blows the header out of proportion. */
.fh-branding .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.fh-branding img.custom-logo {
  max-height: 56px;
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
}

/* Header search (WooCommerce product search) */
.fh-search {
  flex: 1;
  max-width: 480px;
}
.fh-search form {
  display: flex;
  border: 2px solid var(--kaf-brown);
  border-radius: 8px;
  overflow: hidden;
}
.fh-search input[type="search"],
.fh-search .search-field {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
  min-width: 0;
  font-family: var(--kaf-font-body);
}
.fh-search button,
.fh-search .search-submit {
  background: var(--kaf-brown);
  border: none;
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fh-search__icon { width: 20px; height: 20px; display: block; }
.fh-search button:hover { background: var(--kaf-brown-dark); }

.fh-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* My Account link in header (sits just before the cart) */
.fh-account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--kaf-brown);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.fh-account-link:hover { background: rgba(90, 49, 21, 0.08); color: var(--kaf-brown-dark); }
.fh-account-link span[aria-hidden] { font-size: 15px; }

/* "Shop" link in header (sits right after the search bar, before My Account) */
.fh-shop-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--kaf-brown);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.fh-shop-link:hover { background: rgba(90, 49, 21, 0.08); color: var(--kaf-brown-dark); }
/* "Products" is a dropdown toggle only — no navigation */
.fh-nav-toggle { cursor: pointer; }

/* Cart link in header */
.fh-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--kaf-brown);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--kaf-brown);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.fh-cart-link:hover { background: var(--kaf-brown); color: #fff; }
.fh-cart-count {
  background: var(--kaf-gold);
  color: #fff;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.fh-icon { display: inline-flex; align-items: center; }
.fh-icon svg { width: 20px; height: 20px; display: block; }

.fh-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--kaf-brown);
  padding: 4px 8px;
}

/* ==========================================================================
   Primary Navigation
   ========================================================================== */
.fh-nav {
  background: var(--kaf-brown-dark);
  border-top: 3px solid var(--kaf-gold);
}
.fh-nav__inner {
  max-width: var(--kaf-maxw);
  margin: 0 auto;
  padding: 0 16px;
}
.fh-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.fh-nav li { position: relative; }
.fh-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.fh-nav a:hover,
.fh-nav .current-menu-item > a,
.fh-nav .current_page_item > a {
  color: var(--kaf-gold);
  border-bottom-color: var(--kaf-gold);
  background: rgba(255, 255, 255, 0.05);
}
/* Caret for parent items that have a dropdown */
.fh-nav .menu-item-has-children > a::after {
  content: "\25BE";
  font-size: 0.7em;
  margin-left: 6px;
  position: relative;
  top: -1px;
  opacity: 0.75;
}
/* Dropdown submenus */
.fh-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--kaf-brown-dark);
  min-width: 210px;
  flex-direction: column;
  box-shadow: var(--kaf-shadow);
  z-index: 120;
}
.fh-nav li:hover > ul { display: flex; }
.fh-nav ul ul a { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

/* ==========================================================================
   Hero — two-column (rotating text + product image tiles)
   ========================================================================== */
.fh-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--kaf-brown-dark);
  background-image: url("assets/hero/hero-bags.webp");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
/* Green wash: deeper on the left so the headline (and the logo behind it) stay
   legible, fading to clear over the photo on the right. */
.fh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(51, 25, 10, 0.82) 0%,
    rgba(51, 25, 10, 0.62) 32%,
    rgba(67, 35, 15, 0.38) 50%,
    rgba(67, 35, 15, 0.16) 66%,
    rgba(67, 35, 15, 0.04) 82%,
    rgba(67, 35, 15, 0) 100%);
}
.fh-hero__inner {
  position: relative;
  z-index: 2;
  min-height: clamp(500px, 46vw, 760px);
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  align-items: center;
}
.fh-hero__text { position: relative; max-width: 560px; }
.fh-hero__kicker {
  display: block;
  color: var(--kaf-gold);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.fh-hero__text h1 {
  color: #fff;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  margin: 0 0 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.fh-hero__text p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 520px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Value / trust strip
   ========================================================================== */
.fh-values {
  background: var(--kaf-panel);
  border-top: 1px solid var(--kaf-border);
  border-bottom: 1px solid var(--kaf-border);
}
.fh-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.fh-value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.fh-value__icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--kaf-brown);
  background: linear-gradient(135deg, rgba(90,49,21,0.10), rgba(242,169,0,0.18));
  border: 1px solid var(--kaf-border);
}
.fh-value__title { font-family: var(--kaf-font-body); font-size: 15px; font-weight: 700; color: var(--kaf-ink); margin: 2px 0 4px; }
.fh-value__text { font-size: 13px; line-height: 1.5; color: var(--kaf-muted); margin: 0; }

/* ==========================================================================
   "Why choose" content band
   ========================================================================== */
.fh-why {
  background:
    linear-gradient(135deg, rgba(90,49,21,0.04), rgba(242,169,0,0.06)),
    var(--kaf-cream);
  padding: 56px 0;
}
.fh-why__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.fh-why__intro p { color: var(--kaf-ink); font-size: 15.5px; line-height: 1.7; margin: 0 0 16px; max-width: 560px; }
.fh-why__intro .fh-button { margin-top: 8px; }
.fh-why__points { list-style: none; margin: 0; padding: 0; }
.fh-why__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--kaf-panel);
  border: 1px solid var(--kaf-border);
  border-left: 3px solid var(--kaf-gold);
  border-radius: var(--kaf-radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--kaf-ink);
}
.fh-why__tick {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--kaf-brown);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

/* ==========================================================================
   Section Headings
   ========================================================================== */
.fh-section { padding: 48px 0; }
.fh-section__title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}
/* Gold underline accent tying the two-tone identity through content headings */
.fh-section .fh-section__title::after,
.fh-newsletter .fh-section__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--kaf-brown), var(--kaf-gold));
}
.fh-section__subtitle {
  text-align: center;
  color: var(--kaf-muted);
  font-size: 15px;
  margin: 0 0 36px;
}

/* ==========================================================================
   Category Grid (product categories)
   ========================================================================== */
.fh-cat-grid {
  display: flex;
  gap: 16px;
}
.fh-cat-card {
  flex: 0 0 auto;
  width: 150px;
  background: var(--kaf-panel);
  border: 1px solid var(--kaf-border);
  border-radius: var(--kaf-radius);
  padding: 12px 12px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fh-cat-card:hover {
  border-color: var(--kaf-brown);
  background: var(--kaf-brown);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--kaf-shadow);
}
.fh-cat-card__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  background: var(--kaf-cream);
}
/* Product count hidden; category name is larger and bold */
.fh-cat-card__count { display: none; }
.fh-cat-card > span:not(.fh-cat-card__count) {
  font-size: 17px;
  font-weight: 700;
  color: var(--kaf-brown-dark);
  line-height: 1.25;
}
.fh-cat-card:hover > span:not(.fh-cat-card__count) { color: #fff; }

/* ==========================================================================
   WooCommerce — Product Grid & Cards
   ========================================================================== */
.woocommerce ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; display: none !important; }

/* ==========================================================================
   Arrow carousels (Shop By Category / Featured / Trending / New Arrivals)
   ========================================================================== */
.fh-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fh-carousel__track {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fh-carousel__track::-webkit-scrollbar { display: none; }
.fh-carousel__arrow {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--kaf-border);
  background: #fff;
  color: var(--kaf-brown);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.fh-carousel__arrow:hover:not(:disabled) { background: var(--kaf-brown); color: #fff; border-color: var(--kaf-brown); }
.fh-carousel__arrow:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
/* Hide arrows entirely when there's nothing to scroll */
.fh-carousel:not(.fh-carousel--has-overflow) .fh-carousel__arrow { display: none; }

/* Carousel tiles: uniform size, exactly 5 across on desktop (2 on mobile).
   Category tiles and product tiles share the same width. Overrides the base
   grid's width:auto; shop & category archive pages are untouched. */
.fh-carousel__track ul.products,
.fh-carousel__track .fh-cat-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  gap: 18px;
  margin: 0;
  padding: 14px 6px 26px;
}
.fh-carousel__track ul.products li.product,
.fh-carousel__track .fh-cat-grid .fh-cat-card {
  flex: 0 0 calc((100% - 54px) / 4) !important;
  width: calc((100% - 54px) / 4) !important;
  max-width: none !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product,
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--kaf-panel);
  border: 1px solid var(--kaf-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0;
}
.woocommerce ul.products li.product {
  box-sizing: border-box;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  border-color: var(--kaf-brown);
}
.woocommerce ul.products li.product a img {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, #f0ede7 0%, #e8e2d8 100%);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--kaf-font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--kaf-ink);
  padding: 14px 16px 4px;
}
.woocommerce ul.products li.product .price {
  color: var(--kaf-brown);
  font-weight: 700;
  font-size: 17px;
  padding: 0 16px 12px;
  display: block;
}
.woocommerce ul.products li.product .price del { color: var(--kaf-faint); font-weight: 400; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .star-rating { margin: 0 auto 10px; color: var(--kaf-gold); }

/* Add-to-cart button in loop */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt {
  background: var(--kaf-brown);
  color: #fff;
  border-radius: var(--kaf-radius-sm);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  transition: all 0.2s ease;
  border: none;
  margin: auto 16px 18px;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button.alt:hover {
  background: var(--kaf-brown-dark);
  color: #fff;
}
.woocommerce a.button.added::after { color: #fff; }

/* Sale flash badge */
.woocommerce span.onsale {
  background: var(--kaf-gold);
  color: #fff;
  border-radius: var(--kaf-radius-sm);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  min-height: auto;
  min-width: auto;
  padding: 5px 12px;
  top: 12px;
  left: 12px;
  margin: 0;
  line-height: 1.2;
}

/* ==========================================================================
   WooCommerce — Single Product
   ========================================================================== */
.single-product .fh-content-wrap { padding-top: 40px; padding-bottom: 64px; }
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}
/* Image column fills its space and sticks while the content scrolls */
.single-product div.product .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  margin: 0;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 100px;
  align-self: start;
}
.single-product div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.single-product div.product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--kaf-border);
}
.single-product div.product .summary,
.single-product div.product .entry-summary {
  float: none !important;
  width: 100% !important;
  margin: 0;
}
/* Related & up-sells now render AFTER div.product (outside the sticky grid), as
   full-width sections — so the sticky gallery can't overlap them. */
.single-product .related.products,
.single-product .up-sells.products {
  clear: both;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--kaf-border);
}
.single-product div.product .product_title {
  font-family: var(--kaf-font-display);
  font-size: 34px;
  margin-bottom: 12px;
}
.single-product div.product p.price,
.single-product div.product span.price {
  color: var(--kaf-brown);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}
.single-product .woocommerce-product-rating { margin-bottom: 16px; }
.single-product div.product form.cart { margin: 24px 0; }
.single-product div.product form.cart .quantity input {
  padding: 10px;
  border: 2px solid var(--kaf-border);
  border-radius: var(--kaf-radius-sm);
  width: 72px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: var(--kaf-border); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--kaf-cream);
  border-color: var(--kaf-border);
  border-radius: var(--kaf-radius-sm) var(--kaf-radius-sm) 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: #fff;
  border-bottom-color: #fff;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--kaf-brown); font-weight: 600; }

/* Product description now lives in the right-hand column (no tabs below) */
.single-product .fh-product-desc {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--kaf-border);
  color: var(--kaf-ink);
  font-size: 15px;
  line-height: 1.7;
}
.single-product .fh-product-desc > :first-child { margin-top: 0; }
.single-product .fh-product-desc p { margin: 0 0 12px; }
.single-product .fh-product-desc ul,
.single-product .fh-product-desc ol { margin: 0 0 12px; padding-left: 20px; }
.single-product .fh-product-desc li { margin: 0 0 6px; }
.single-product .fh-product-desc h2,
.single-product .fh-product-desc h3,
.single-product .fh-product-desc h4 {
  font-family: var(--kaf-font-display);
  color: var(--kaf-brown-dark);
  margin: 18px 0 8px;
}
.single-product .fh-product-desc strong { color: var(--kaf-ink); }
/* No SKU on product pages */
.single-product .product_meta .sku_wrapper,
.single-product .product_meta .sku { display: none; }

/* --- 1:1 square tiles: product images (homepage carousels, shop, related) --- */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  margin-bottom: 12px;
}

/* --- Product / category tiles. The IMAGE is locked to 1:1 (required by the POS
   / WooCommerce sync); the card height then FLOWS naturally to fit image + price
   + name + Buy Now — the same way the reference store frames a fixed-ratio image
   with text beneath. Ordinary block flow can't squeeze the name out, which is
   what a forced card ratio + nested grid was doing on short mobile cards. Order
   in the card: image, price, name, button. Covers products, subcategory tiles,
   related / up-sells and the homepage carousels. --- */
.woocommerce ul.products li.product {
  display: flex !important;
  flex-direction: column;
  padding: 14px 14px 16px;
  overflow: hidden;
  margin: 0;
}
/* The link holds image + name + price, stacked in normal flow (name → price) */
.woocommerce ul.products li.product > a {
  display: block;
  width: 100%;
  text-align: center;
}
/* 1:1 image tile — square, whole photo shown, no crop */
.woocommerce ul.products li.product > a img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 0 14px;
  background: #fff;
}
/* Price — sits UNDER the name, with a clear gap before the button */
.woocommerce ul.products li.product .price {
  display: block;
  color: var(--kaf-brown);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  margin: 0 0 14px;
  padding: 0;
}
.woocommerce ul.products li.product .price del { color: var(--kaf-faint); font-weight: 400; margin-right: 5px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
/* Name — ordinary block; renders reliably on every device */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title {
  font-family: var(--kaf-font-body);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--kaf-ink);
  margin: 0 0 7px;
  padding: 0 2px;
  overflow: hidden;
}
/* Category tiles: no product count; name larger + bold (product names unchanged) */
.woocommerce ul.products li.product-category .count { display: none; }
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--kaf-brown-dark);
}
/* Buy Now — pushed to the bottom so buttons line up across a row */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  margin-top: auto;
  align-self: center;
  padding: 10px 22px;
  font-size: 13px;
}

/* Homepage category cards: 1:1 thumb + name/count, natural height */
.fh-carousel__track .fh-cat-grid .fh-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  overflow: hidden;
}
.fh-carousel__track .fh-cat-grid .fh-cat-card .fh-cat-card__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 0 8px;
  border-radius: 8px;
}

/* --- Variation attributes shown as selectable BUTTONS only (no dropdown) --- */
.single-product table.variations,
.single-product table.variations tbody,
.single-product table.variations tr,
.single-product table.variations th,
.single-product table.variations td {
  display: block;
  width: auto;
  border: 0;
  padding: 0;
  background: transparent;
}
.single-product table.variations { margin: 0 0 12px; text-align: left; }
.single-product table.variations th.label { margin: 0 0 8px; text-align: left; }
.single-product table.variations th label {
  font-weight: 600;
  color: var(--kaf-ink);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0;
  text-align: left;
}
/* Dropdown replaced by buttons. When JS is on, hide the native <select> from the
   very first paint (via the html.js class set in the head) so it never flashes;
   without JS it stays visible as a usable fallback. */
html.js .single-product table.variations td select,
.single-product .variations select.fh-has-swatches { display: none !important; }
.single-product table.variations .reset_variations { display: inline-block; margin-top: 6px; font-size: 13px; }
.fh-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.fh-swatch {
  min-width: 64px;
  padding: 10px 18px;
  border: 1.5px solid var(--kaf-border);
  border-radius: var(--kaf-radius-sm);
  background: #fff;
  color: var(--kaf-ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
}
.fh-swatch:hover { border-color: var(--kaf-brown); }
.fh-swatch.is-active { border-color: var(--kaf-brown); background: var(--kaf-brown); color: #fff; }
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin-left: 6px; font-size: 13px; }

/* --- Quantity stepper (− 1 +) --- */
.single-product div.product form.cart .quantity.fh-qty {
  display: inline-flex;
  align-items: stretch;
  width: auto;
  border: 2px solid var(--kaf-border);
  border-radius: var(--kaf-radius-sm);
  overflow: hidden;
  vertical-align: middle;
}
.fh-qty__btn {
  width: 42px;
  border: 0;
  background: var(--kaf-cream);
  color: var(--kaf-brown-dark);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.fh-qty__btn:hover { background: var(--kaf-brown); color: #fff; }
.single-product div.product form.cart .quantity.fh-qty input.qty {
  width: 52px;
  border: 0;
  border-left: 1px solid var(--kaf-border);
  border-right: 1px solid var(--kaf-border);
  border-radius: 0;
  text-align: center;
  padding: 10px 4px;
  -moz-appearance: textfield;
}
.single-product div.product form.cart .quantity.fh-qty input.qty::-webkit-outer-spin-button,
.single-product div.product form.cart .quantity.fh-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Add to cart + Buy it now buttons --- */
/* Buy row: quantity + Add to cart + Buy it now share one row (desktop);
   Order via WhatsApp sits on its own row below, shorter. Simple & variable. */
.single-product div.product .woocommerce-variation-add-to-cart,
.single-product div.product form.cart:not(.variations_form) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.single-product div.product .woocommerce-variation-add-to-cart .quantity,
.single-product div.product form.cart:not(.variations_form) .quantity { flex: 0 0 auto; }

/* Add to cart + Buy it now — identical fixed size, side by side (not full-width) */
.single-product div.product form.cart .single_add_to_cart_button,
.single-product .fh-buyitnow {
  flex: 0 0 auto;
  width: 175px;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: var(--kaf-radius-sm);
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.single-product div.product form.cart .single_add_to_cart_button { background: var(--kaf-brown); color: #fff; }
.single-product div.product form.cart .single_add_to_cart_button:hover { background: #000; }
.single-product .fh-buyitnow { background: #111; color: #fff; }
.single-product .fh-buyitnow:hover { background: var(--kaf-brown); color: #fff; }

/* Order via WhatsApp — own row below, aligned left, significantly shorter */
.single-product div.product .pcc-product-wa {
  flex: 0 0 100%;
  width: 100%;
  max-width: 262px;
  box-sizing: border-box;
  margin: 2px 0 0;
}



/* --- Related / up-sells: full-width, evenly spaced (centered), 4 across --- */
.single-product .related.products > h2,
.single-product .upsells.products > h2 {
  font-family: var(--kaf-font-display);
  font-size: 26px;
  color: var(--kaf-brown-dark);
  text-align: center;
  margin-bottom: 24px;
}
.single-product .related.products ul.products,
.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px;
  margin: 0;
}
.single-product .related.products ul.products li.product,
.single-product .upsells.products ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

/* ==========================================================================
   WooCommerce — Notices, Cart, Checkout
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  border-top-color: var(--kaf-brown);
  background: #fff;
  border-radius: var(--kaf-radius-sm);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--kaf-brown); }
.woocommerce-error { border-top-color: #c0392b; }
.woocommerce-error::before { color: #c0392b; }

.woocommerce table.shop_table {
  border-radius: var(--kaf-radius);
  border-color: var(--kaf-border);
}
.woocommerce table.shop_table th { color: var(--kaf-brown); }
.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3 { color: var(--kaf-brown); }
.woocommerce-checkout #payment { background: var(--kaf-cream); border-radius: var(--kaf-radius); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection {
  border: 2px solid var(--kaf-border) !important;
  border-radius: var(--kaf-radius-sm);
  padding: 10px 12px;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border-color: var(--kaf-border); border-radius: var(--kaf-radius-sm); overflow: hidden; }
.woocommerce nav.woocommerce-pagination ul li { border-color: var(--kaf-border); }
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--kaf-brown); color: #fff; }

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
  color: var(--kaf-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

/* Result count + ordering */
.woocommerce .woocommerce-result-count { color: var(--kaf-muted); }
.woocommerce .woocommerce-ordering select {
  border: 2px solid var(--kaf-border);
  border-radius: var(--kaf-radius-sm);
  padding: 8px 12px;
}
/* Archive header (category / shop): title + result-count / sorting row */
.woocommerce .woocommerce-products-header__title,
.woocommerce-products-header__title {
  font-family: var(--kaf-font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--kaf-brown-dark);
  margin: 0 0 4px;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 24px; }

/* ==========================================================================
   Content Layout (shop / blog with sidebar)
   ========================================================================== */
.fh-content-wrap {
  max-width: var(--kaf-maxw);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.fh-content-wrap--full { grid-template-columns: minmax(0, 1fr); }
.fh-main { min-width: 0; }

/* Sidebar / widgets */
.fh-sidebar .widget {
  background: var(--kaf-panel);
  border: 1px solid var(--kaf-border);
  border-radius: var(--kaf-radius);
  padding: 20px;
  margin-bottom: 24px;
}
.fh-sidebar .widget-title {
  font-family: var(--kaf-font-display);
  font-size: 17px;
  color: var(--kaf-brown);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--kaf-gold);
}
.fh-sidebar ul { list-style: none; margin: 0; padding: 0; }
.fh-sidebar li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--kaf-border); }
.fh-sidebar li:last-child { border-bottom: none; }

/* ==========================================================================
   Blog Posts
   ========================================================================== */
.fh-post {
  background: var(--kaf-panel);
  border: 1px solid var(--kaf-border);
  border-radius: var(--kaf-radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.fh-post__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fh-post__body { padding: 24px 28px; }
.fh-post__title { font-size: 24px; margin-bottom: 8px; }
.fh-post__meta { color: var(--kaf-muted); font-size: 13px; margin-bottom: 14px; }
.fh-post__excerpt { color: #1f1f1f; margin-bottom: 16px; }
.entry-content { line-height: 1.75; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--kaf-radius-sm); }
.entry-content blockquote {
  border-left: 4px solid var(--kaf-gold);
  background: var(--kaf-cream);
  margin: 1.5em 0;
  padding: 14px 20px;
  border-radius: 0 var(--kaf-radius-sm) var(--kaf-radius-sm) 0;
  font-style: italic;
}

/* ==========================================================================
   Testimonial Band
   ========================================================================== */
.fh-testimonial {
  background: linear-gradient(135deg, var(--kaf-brown), var(--kaf-brown-dark));
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fh-testimonial::before {
  content: '\201C';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--kaf-font-display);
  font-size: 160px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.fh-testimonial__title {
  position: relative;
  color: #fff;
  font-size: 28px;
  margin-bottom: 28px;
}
.fh-testimonial__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--kaf-gold);
}
.fh-testimonial__quote { position: relative; margin: 0; border: none; padding: 0; background: none; }
.fh-testimonial p {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 16px;
  font-style: italic;
}
.fh-testimonial cite { color: var(--kaf-gold); font-weight: 600; font-size: 14px; font-style: normal; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.fh-newsletter {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}
.fh-newsletter p { color: var(--kaf-muted); font-size: 14px; margin: 8px 0 20px; }
.fh-newsletter__form {
  display: flex;
  border: 2px solid var(--kaf-brown);
  border-radius: 8px;
  overflow: hidden;
}
.fh-newsletter__form input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  outline: none;
  font-family: var(--kaf-font-body);
}
.fh-newsletter__form button {
  background: var(--kaf-brown);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.fh-newsletter__form button:hover { background: var(--kaf-brown-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */
.fh-footer {
  background: var(--kaf-brown-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px 24px;
}
.fh-footer__inner {
  max-width: var(--kaf-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}
.fh-footer h4 {
  color: var(--kaf-gold);
  font-family: var(--kaf-font-display);
  font-size: 16px;
  margin-bottom: 16px;
}
.fh-footer p,
.fh-footer a,
.fh-footer li {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}
.fh-footer a:hover { color: var(--kaf-gold); }
.fh-footer ul { list-style: none; margin: 0; padding: 0; }
.fh-footer .widget { margin: 0; }
.fh-socials { display: flex; gap: 12px; margin-top: 12px; }
.fh-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}
.fh-socials a:hover { background: var(--kaf-gold); border-color: var(--kaf-gold); color: #fff; }
.fh-socials a svg { display: block; }
.fh-map {
  margin-top: 14px;
  border-radius: var(--kaf-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 0;
}
.fh-map iframe {
  width: 100%;
  height: 190px;
  border: 0;
  display: block;
}
.fh-footer__bottom {
  max-width: var(--kaf-maxw);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.fh-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--kaf-brown-dark);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 150;
  font-size: 13px;
  flex-wrap: wrap;
}
.fh-cookie button {
  background: var(--kaf-gold);
  color: var(--kaf-brown-darker);
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.fh-cookie button:hover { background: var(--kaf-gold-dark); }
.fh-cookie.is-hidden { display: none; }

/* ==========================================================================
   Off-canvas mobile nav
   ========================================================================== */
.fh-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.fh-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Comments
   ========================================================================== */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { background: var(--kaf-panel); border: 1px solid var(--kaf-border); border-radius: var(--kaf-radius); padding: 18px 20px; margin-bottom: 16px; }
#respond { background: var(--kaf-panel); border: 1px solid var(--kaf-border); border-radius: var(--kaf-radius); padding: 24px; margin-top: 24px; }
#respond input[type="text"], #respond input[type="email"], #respond textarea {
  width: 100%; border: 2px solid var(--kaf-border); border-radius: var(--kaf-radius-sm); padding: 10px 12px; font-family: var(--kaf-font-body);
}

/* ==========================================================================
   Utility & Pagination (blog)
   ========================================================================== */
.fh-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.fh-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  background: var(--kaf-panel); border: 1px solid var(--kaf-border); border-radius: var(--kaf-radius-sm);
  font-weight: 600; font-size: 14px;
}
.fh-pagination .page-numbers.current,
.fh-pagination .page-numbers:hover { background: var(--kaf-brown); color: #fff; border-color: var(--kaf-brown); }

/* ==========================================================================
   Live search suggestions
   ========================================================================== */
.fh-search { position: relative; }
.fh-search__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--kaf-border);
  border-radius: var(--kaf-radius-sm);
  box-shadow: var(--kaf-shadow-lg);
  z-index: 200;
  max-height: 62vh;
  overflow-y: auto;
}
.fh-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--kaf-border);
  color: var(--kaf-ink);
  text-decoration: none;
}
.fh-search__item:last-child { border-bottom: 0; }
.fh-search__item:hover { background: var(--kaf-cream); }
.fh-search__item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: var(--kaf-cream); }
.fh-search__item-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fh-search__item-t { font-weight: 500; font-size: 14px; line-height: 1.3; color: var(--kaf-ink); }
.fh-search__item-p { color: var(--kaf-brown); font-weight: 700; font-size: 13.5px; }
.fh-search__item-p del { color: var(--kaf-muted); font-weight: 400; }
.fh-search__empty { padding: 16px; color: var(--kaf-muted); font-size: 14px; text-align: center; }

/* ==========================================================================
   Quick-buy modal
   ========================================================================== */
body.fh-modal-open { overflow: hidden; }
.fh-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fh-modal[hidden] { display: none; }
.fh-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.fh-modal__box {
  position: relative;
  background: #fff;
  border-radius: var(--kaf-radius);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.fh-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--kaf-cream);
  color: var(--kaf-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.fh-modal__close:hover { background: var(--kaf-brown); color: #fff; }
.fh-modal__loading { padding: 60px; text-align: center; color: var(--kaf-muted); }
.fh-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  padding: 34px;
}
.fh-modal__media img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--kaf-border); }
.fh-modal__title { font-family: var(--kaf-font-display); font-size: 26px; margin: 0 0 10px; color: var(--kaf-brown-dark); }
.fh-modal__price { color: var(--kaf-brown); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.fh-modal__price del { color: var(--kaf-muted); font-weight: 400; font-size: 17px; margin-right: 6px; }
.fh-modal__excerpt { color: var(--kaf-ink); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }
.fh-modal__excerpt p { margin: 0 0 8px; }
.fh-modal__note { color: var(--kaf-muted); font-size: 14px; margin-bottom: 14px; }
.fh-modal__form { margin: 0; }
.fh-modal__form form.cart { margin: 0; }
/* Lay out quantity + Add to cart as their own row (variable products: inside the
   variation button wrap; simple products: the form). The size swatches stay on
   their own row above. The product-page-only buttons pulled in via the rendered
   form (Buy it now, Order via WhatsApp) are hidden — the modal has its own
   express "Buy it now" below. */
.fh-modal__form .woocommerce-variation-add-to-cart,
.fh-modal__form form.cart:not(.variations_form) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}
.fh-modal__form .quantity { margin: 0; flex: 0 0 auto; }
.fh-modal__form .quantity input {
  width: 72px;
  padding: 10px;
  border: 2px solid var(--kaf-border);
  border-radius: var(--kaf-radius-sm);
}
.fh-modal__form .fh-buyitnow,
.fh-modal__form .pcc-product-wa { display: none !important; }
.fh-modal__form .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 150px;
  margin: 0;
  background: var(--kaf-brown) !important;
  color: #fff !important;
  border: 0;
  border-radius: var(--kaf-radius-sm);
  padding: 13px 26px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.fh-modal__form .single_add_to_cart_button:hover { background: var(--kaf-brown-dark) !important; }
.fh-modal__form .single_add_to_cart_button.loading,
.fh-modal__form .single_add_to_cart_button.disabled { opacity: 0.55; cursor: default; }
/* Express checkout button in the modal (add to cart + straight to checkout) */
.fh-modal__express {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  background: #000;
  color: #fff;
  border: 0;
  border-radius: var(--kaf-radius-sm);
  padding: 12px 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.fh-modal__express:hover { background: var(--kaf-brown); }
.fh-modal__express.loading { opacity: 0.6; cursor: default; }
/* Variation swatches inside the modal */
.fh-modal__form .fh-swatches { margin: 4px 0 12px; }
.fh-modal__form table.variations,
.fh-modal__form table.variations tbody,
.fh-modal__form table.variations tr,
.fh-modal__form table.variations th,
.fh-modal__form table.variations td { display: block; width: auto; border: 0; padding: 0; background: transparent; text-align: left; }
.fh-modal__form table.variations th.label { margin: 0 0 6px; font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; color: var(--kaf-ink); }
.fh-modal__form .variations select.fh-has-swatches { display: none !important; }
.fh-modal__msg { margin: 0 34px 30px; padding: 12px 16px; border-radius: var(--kaf-radius-sm); font-size: 14px; }
.fh-modal__msg.is-success { background: #f1f8e6; border: 1px solid var(--kaf-brown); color: var(--kaf-brown-dark); }
.fh-modal__msg.is-error { background: #fcebea; border: 1px solid #c0392b; color: #a5281b; }
.fh-button--sm { padding: 6px 14px; font-size: 13px; margin-left: 8px; }
@media (max-width: 680px) {
  .fh-modal__grid { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .fh-modal__msg { margin: 0 24px 24px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .single-product div.product { grid-template-columns: 1fr; gap: 28px; }
  .single-product div.product .woocommerce-product-gallery { position: static !important; top: auto; }
  .fh-content-wrap { grid-template-columns: 1fr; }
  /* Carousel: 3 tiles across on tablet */
  .fh-carousel__track ul.products li.product,
  .fh-carousel__track .fh-cat-grid .fh-cat-card {
    flex-basis: calc((100% - 36px) / 3) !important;
    width: calc((100% - 36px) / 3) !important;
  }
  /* Overlay the arrows so the row uses the FULL width — bigger tiles on
     tablet & mobile without changing how many show at once. */
  .fh-carousel { gap: 0; }
  .fh-carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; opacity: 0.94; }
  .fh-carousel__arrow--prev { left: 2px; }
  .fh-carousel__arrow--next { right: 2px; }
  .fh-carousel__track { width: 100%; }
  /* Related products: 2 across on tablet */
  .single-product .related.products ul.products,
  .single-product .upsells.products ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  /* Shop & category archives: 3 across on tablet */
  .woocommerce ul.products,
  ul.products { grid-template-columns: repeat(3, 1fr); }
  .fh-sidebar { order: 2; }

  /* Hero on tablet/mobile: full-bleed photo centered on the scene, under a
     deeper wash so the centered copy stays legible */
  .fh-hero { background-position: center; }
  .fh-hero__inner { min-height: 460px; }
  .fh-hero::before {
    background: linear-gradient(to bottom, rgba(51, 25, 10, 0.66) 0%, rgba(51, 25, 10, 0.76) 100%);
  }
  .fh-hero__inner {
    text-align: center;
    justify-content: center;
  }
  .fh-hero__text { max-width: 640px; margin: 0 auto; }
  .fh-hero__text h1,
  .fh-hero__text p { margin-left: auto; margin-right: auto; }

  /* Trust strip: 4 -> 2 columns; Why-choose stacks to a single column */
  .fh-values__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
  .fh-why__grid { grid-template-columns: 1fr; gap: 30px; }
  .fh-why__intro .fh-section__title { text-align: center !important; }
  .fh-why__intro p { margin-left: auto; margin-right: auto; text-align: center; }
  .fh-why__intro { text-align: center; }
}

@media (max-width: 768px) {
  /* Logo centered on top; one functional row: menu | search | account + cart */
  .fh-header__inner {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo   logo   logo"
      "menu   search actions";
    align-items: center;
    column-gap: 10px;
    row-gap: 12px;
  }
  .fh-branding { grid-area: logo; text-align: center; }
  .fh-logo { font-size: 20px; justify-content: center; }
  /* Menu: compact boxed button on the left */
  .fh-menu-toggle {
    grid-area: menu;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 19px;
    padding: 0;
    border: 1.5px solid var(--kaf-border);
    border-radius: var(--kaf-radius-sm);
    color: var(--kaf-brown);
  }
  .fh-search { grid-area: search; max-width: none; }
  /* Account + cart: clear, compact icons on the right */
  .fh-header__actions { grid-area: actions; gap: 4px; justify-content: flex-end; }
  .fh-account-link { padding: 6px; border-radius: var(--kaf-radius-sm); }
  .fh-account-link span:not([aria-hidden]) { display: none; }
  .fh-cart-link { border: none; padding: 6px; gap: 0; }
  .fh-cart-link span:not([aria-hidden]):not(.fh-cart-count) { display: none; }
  .fh-icon svg { width: 22px; height: 22px; }
  .fh-cart-count {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    padding: 0 4px;
  }
  /* On phones the buy buttons stack full-width for easy tapping */
  .single-product div.product form.cart .single_add_to_cart_button,
  .single-product .fh-buyitnow { flex: 1 1 100%; width: 100%; }
  .single-product div.product .pcc-product-wa { max-width: 100%; }

  /* Full-width drop menu below the header (top set by JS to the header's bottom),
     content-height so there's no empty space before the first or after the last
     item. Collapses via max-height. */
  .fh-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0; /* JS overrides to the header's current bottom */
    width: 100%;
    background: var(--kaf-brown-dark);
    z-index: 150;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    padding: 0;
    border-top: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }
  .fh-nav.is-open { max-height: calc(100dvh - 90px); overflow-y: auto; }
  .fh-nav__inner { padding: 0; }
  .fh-nav ul { flex-direction: column; justify-content: flex-start; flex-wrap: nowrap; margin: 0; padding: 0; }
  .fh-nav li { width: 100%; }
  .fh-nav a { display: block; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.10); font-size: 16px; padding: 15px 22px; }
  .fh-nav > .fh-nav__inner > ul > li:last-child > a { border-bottom: none; }
  /* Submenus collapse by default and expand when the parent is tapped */
  .fh-nav ul ul { position: static; box-shadow: none; background: rgba(0, 0, 0, 0.22); }
  .fh-nav li:hover > ul { display: none; }
  .fh-nav li.is-open > ul { display: block; }
  .fh-nav ul ul a { padding-left: 38px; }
  .fh-nav .menu-item-has-children > a { display: flex; align-items: center; justify-content: space-between; }
  .fh-nav .menu-item-has-children > a::after { float: none; margin: 0; font-size: 2em; line-height: 1; opacity: 1; top: 0; transition: transform 0.2s ease; }
  .fh-nav .menu-item-has-children.is-open > a::after { transform: rotate(180deg); }

  .woocommerce ul.products,
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* Tighter tiles on phones so the square image keeps more room */
  .woocommerce ul.products li.product { padding: 8px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .woocommerce-loop-category__title { font-size: 12.5px; }
  .woocommerce ul.products li.product .price { font-size: 12.5px; }
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .added_to_cart { padding: 7px 14px; font-size: 12px; }
  /* Comfortable side padding on WooCommerce pages */
  .fh-content-wrap { padding-left: 18px; padding-right: 18px; }
  .fh-cat-card { padding: 8px 8px 12px; }
  .fh-cat-grid { gap: 12px; }
  .fh-carousel { gap: 0; }
  .fh-carousel__arrow { width: 34px; height: 34px; font-size: 18px; }
  /* Exactly 2 tiles across on mobile — full width (arrows overlaid) so they're big */
  .fh-carousel__track ul.products,
  .fh-carousel__track .fh-cat-grid { gap: 14px; }
  .fh-carousel__track ul.products li.product,
  .fh-carousel__track .fh-cat-grid .fh-cat-card {
    flex-basis: calc((100% - 14px) / 2) !important;
    width: calc((100% - 14px) / 2) !important;
    padding: 8px;
  }
  .fh-section { padding: 36px 0; }
}

@media (max-width: 480px) {
  .fh-topbar { font-size: 11px; }
  .woocommerce ul.products,
  ul.products { grid-template-columns: repeat(2, 1fr); }
  .fh-hero__inner.fh-container { padding-left: 14px; padding-right: 14px; }
  .fh-values__grid { grid-template-columns: 1fr; gap: 16px; }
  .fh-carousel__track ul.products li.product,
  .fh-carousel__track .fh-cat-grid .fh-cat-card {
    flex-basis: calc((100% - 12px) / 2) !important;
    width: calc((100% - 12px) / 2) !important;
  }
}

/* ==========================================================================
   Store polish v2 — product buttons, cart & checkout (overrides earlier rules)
   ========================================================================== */

/* -------- Single product: Add to cart + Buy it now side by side, WhatsApp below -------- */
.single-product div.product .woocommerce-variation-add-to-cart,
.single-product div.product form.cart:not(.variations_form) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}
.single-product div.product .woocommerce-variation-add-to-cart .quantity,
.single-product div.product form.cart:not(.variations_form) .quantity { flex: 0 0 auto !important; margin: 0 !important; }
.single-product div.product form.cart .single_add_to_cart_button,
.single-product div.product .fh-buyitnow {
  flex: 0 1 auto !important;
  width: 172px !important;
  min-width: 0 !important;
  max-width: 172px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 15px 14px !important;
  border: 0 !important;
  border-radius: var(--kaf-radius-sm) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: .02em;
  text-align: center !important;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.single-product div.product form.cart .single_add_to_cart_button { background: var(--kaf-brown) !important; color: #fff !important; }
.single-product div.product form.cart .single_add_to_cart_button:hover { background: #000 !important; }
.single-product div.product .fh-buyitnow { background: #111 !important; color: #fff !important; }
.single-product div.product .fh-buyitnow:hover { background: var(--kaf-brown) !important; color: #fff !important; }
.single-product div.product .pcc-product-wa {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 264px !important;
  box-sizing: border-box !important;
  margin: 4px 0 0 !important;
}
@media (max-width: 600px) {
  .single-product div.product .woocommerce-variation-add-to-cart .quantity,
  .single-product div.product form.cart:not(.variations_form) .quantity { flex: 1 1 100% !important; }
  .single-product div.product form.cart .single_add_to_cart_button,
  .single-product div.product .fh-buyitnow { flex: 1 1 0 !important; width: auto !important; max-width: none !important; }
  .single-product div.product .pcc-product-wa { max-width: 100% !important; }
}

/* -------- WooCommerce primary buttons → brand green (not purple) -------- */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .checkout-button,
.woocommerce #place_order {
  background: var(--kaf-brown) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--kaf-radius-sm) !important;
  font-weight: 600 !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .checkout-button:hover,
.woocommerce #place_order:hover { background: var(--kaf-brown-dark) !important; }

/* ============================ CART PAGE ============================ */
@media (min-width: 783px) {
  .woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    gap: 0 30px;
    align-items: start;
  }
  .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
  .woocommerce-cart .woocommerce-cart-form { grid-column: 1; }
  .woocommerce-cart .cart-collaterals { grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 20px; width: 100% !important; margin: 0 !important; }
  .woocommerce-cart .pcc-sfl { grid-column: 1; }
}
/* Saved for later as its own tile below the cart buttons (not full-width) */
.woocommerce-cart .pcc-sfl {
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--kaf-border);
  border-radius: var(--kaf-radius);
  padding: 20px 24px;
}
.woocommerce-cart .pcc-sfl .pcc-sfl__title { margin-top: 0; }
.woocommerce-cart .woocommerce-cart-form table.shop_table { border: 1px solid var(--kaf-border); border-radius: var(--kaf-radius); overflow: hidden; background: #fff; }
.woocommerce-cart table.cart thead th { padding: 15px 16px; font-weight: 700; background: var(--kaf-cream); border: 0; }
.woocommerce-cart table.cart td { padding: 18px 16px; vertical-align: middle; border-top: 1px solid var(--kaf-border); }
.woocommerce-cart table.cart img { width: 64px; height: auto; border-radius: 6px; display: block; }
.woocommerce-cart td.product-name a { text-decoration: none; font-weight: 600; }
.woocommerce-cart td.product-price,
.woocommerce-cart td.product-subtotal { font-weight: 600; }
.woocommerce-cart td.product-quantity .quantity input { width: 72px; padding: 8px; border: 2px solid var(--kaf-border); border-radius: var(--kaf-radius-sm); text-align: center; }

/* Delete → red trash icon, bigger & clearer */
.woocommerce-cart td.product-remove { text-align: center; width: 60px; }
.woocommerce-cart td.product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 0 !important;
  color: transparent !important;
  background: rgba(192,57,43,.08) url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23c0392b'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='3%206%205%206%2021%206'/%3E%3Cpath%20d='M19%206v14a2%202%200%200%201-2%202H7a2%202%200%200%201-2-2V6m3%200V4a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2'/%3E%3Cline%20x1='10'%20y1='11'%20x2='10'%20y2='17'/%3E%3Cline%20x1='14'%20y1='11'%20x2='14'%20y2='17'/%3E%3C/svg%3E") no-repeat center / 21px 21px !important;
  transition: background-color .15s ease;
}
.woocommerce-cart td.product-remove a.remove:hover { background-color: rgba(192,57,43,.2) !important; }

/* Cart actions: Update + Clear equal size, both green, aligned right */
.woocommerce-cart td.actions { padding: 16px !important; }
.woocommerce-cart td.actions .coupon { float: left; }
.woocommerce-cart td.actions > .button,
.woocommerce-cart td.actions > .pcc-clear-cart {
  float: right;
  min-width: 150px;
  margin: 0 0 0 10px !important;
  padding: 13px 18px !important;
  text-align: center;
  background: var(--kaf-brown) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--kaf-radius-sm) !important;
}
.woocommerce-cart td.actions button[name="update_cart"]:disabled,
.woocommerce-cart td.actions button[name="update_cart"][disabled] { opacity: .5 !important; }

/* Cart totals — appealing card on the right */
.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
  background: var(--kaf-cream);
  border: 1px solid var(--kaf-border);
  border-radius: var(--kaf-radius);
  padding: 24px;
}
.woocommerce-cart .cart_totals h2 { margin-top: 0; }
.woocommerce-cart .cart_totals table { border: 0; margin: 0; }
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td { padding: 12px 0; border-top: 1px solid var(--kaf-border); text-align: left; }
.woocommerce-cart .cart_totals table tr:first-child th,
.woocommerce-cart .cart_totals table tr:first-child td { border-top: 0; }
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td { font-size: 18px; }
.woocommerce-cart .cart_totals .wc-proceed-to-checkout { padding: 0; margin-top: 18px; }
.woocommerce-cart .cart_totals .checkout-button { display: block; width: 100%; padding: 15px !important; font-size: 16px !important; text-align: center; }

/* ============================ CHECKOUT PAGE ============================ */
.woocommerce-checkout #order_review_heading { margin-top: 0; }
.woocommerce-checkout #order_review {
  background: var(--kaf-cream);
  border: 1px solid var(--kaf-border);
  border-radius: var(--kaf-radius);
  padding: 22px;
}
.woocommerce-checkout #order_review table.shop_table { background: transparent; border: 0; }
.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td { padding: 12px 0; vertical-align: top; }
/* Product name + line price sit on the same top line; qty (× N) drops neatly below the name */
.woocommerce-checkout #order_review table.shop_table td.product-name { padding-right: 16px; line-height: 1.4; }
.woocommerce-checkout #order_review table.shop_table td.product-name .product-quantity { display: block; margin-top: 2px; font-weight: 600; opacity: 0.75; }
.woocommerce-checkout #order_review table.shop_table td.product-total { white-space: nowrap; }
.woocommerce-checkout #payment { background: #fff !important; border: 1px solid var(--kaf-border); border-radius: var(--kaf-radius-sm); }
.woocommerce-checkout #payment ul.payment_methods { padding: 16px 18px; }

/* Place order + Checkout on WhatsApp side by side */
.woocommerce-checkout #payment div.place-order {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 18px;
}
.woocommerce-checkout #payment div.place-order > .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout #payment div.place-order > .woocommerce-privacy-policy-text,
.woocommerce-checkout #payment div.place-order > .pcc-delivery-ack { flex: 1 1 100%; }
.woocommerce-checkout #place_order {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 16px !important;
  font-size: 16px !important;
}
.woocommerce-checkout .pcc-whatsapp { flex: 1 1 0; margin: 0 !important; display: flex; }
.woocommerce-checkout .pcc-whatsapp__or,
.woocommerce-checkout .pcc-whatsapp__note { display: none !important; }
.woocommerce-checkout .pcc-whatsapp__btn {
  flex: 1 1 auto;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
@media (max-width: 600px) {
  .woocommerce-checkout #payment div.place-order { display: block; }
  .woocommerce-checkout #place_order {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 15px !important;
    font-size: 16px !important;
  }
  .woocommerce-checkout .pcc-whatsapp { display: block !important; margin: 0 !important; }
  .woocommerce-checkout .pcc-whatsapp__or { display: block !important; margin: 12px 0 !important; }
  .woocommerce-checkout .pcc-whatsapp__note { display: none !important; }
  .woocommerce-checkout .pcc-whatsapp__btn {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 15px !important;
    font-size: 16px !important;
  }
  .woocommerce-checkout .pcc-whatsapp__btn svg { width: 18px; height: 18px; }
}

/* Two-column checkout: contact details left, order summary right */
.woocommerce-checkout form.checkout { max-width: 1100px; margin-left: auto; margin-right: auto; }
/* Billing must fill its whole column. WooCommerce's core CSS puts billing in a
   .col-1 at ~48% width because it expects a second (shipping) column, but here the
   shipping/additional column is empty — address collection is off and the delivery-
   instructions field lives inside billing. Force billing full-width and drop the
   empty column so there's no dead space beside the order summary. */
.woocommerce-checkout #customer_details.col2-set { width: 100%; float: none; }
.woocommerce-checkout #customer_details .col-1 { float: none; width: 100%; max-width: none; }
.woocommerce-checkout #customer_details .col-2 { display: none; }
@media (min-width: 783px) {
  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 44px;
    align-items: start;
  }
  .woocommerce-checkout form.checkout > * { grid-column: 1 / -1; }
  .woocommerce-checkout form.checkout > #customer_details { grid-column: 1; grid-row: 2 / span 2; }
  .woocommerce-checkout form.checkout > #order_review_heading { grid-column: 2; grid-row: 2; margin-top: 0; }
  .woocommerce-checkout form.checkout > #order_review { grid-column: 2; grid-row: 3; }
}

/* ==========================================================================
   Checkout polish v3 — top notices, login/coupon/create-account forms, and a
   neater Place order + WhatsApp button pair. (Checkout is the classic shortcode.)
   ========================================================================== */

/* ---- Top of checkout: Clear-cart pill + login/coupon toggle cards ---- */
.woocommerce-checkout .pcc-checkout-clear { margin: 0 0 16px; }
.woocommerce-checkout .pcc-checkout-clear a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  color: #7a7a7a;
  text-decoration: none;
  border: 1px solid var(--kaf-border);
  border-radius: 999px;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.woocommerce-checkout .pcc-checkout-clear a:hover,
.woocommerce-checkout .pcc-checkout-clear a:focus {
  color: #c0392b;
  border-color: #c0392b;
  background: rgba(192, 57, 43, 0.05);
}

/* Login + coupon notices → clean cream cards with a brand accent. Scoped to the
   toggles so other WooCommerce info messages elsewhere keep their own style. */
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  position: relative;
  margin: 0 0 14px;
  padding: 14px 18px 14px 46px;
  background: var(--kaf-cream);
  border: 1px solid var(--kaf-border);
  border-left: 3px solid var(--kaf-brown);
  border-radius: var(--kaf-radius-sm);
  color: #3a3a3a;
  font-size: 14.5px;
  line-height: 1.5;
}
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  margin: 0;
  color: var(--kaf-brown);
  font-size: 16px;
}
.woocommerce-checkout .woocommerce-info .showlogin,
.woocommerce-checkout .woocommerce-info .showcoupon {
  color: var(--kaf-brown);
  font-weight: 600;
  text-decoration: underline;
}

/* ---- Revealed login / coupon / create-account forms → tidy cards ---- */
.woocommerce-checkout form.woocommerce-form-login,
.woocommerce-checkout form.checkout_coupon {
  margin: 0 0 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--kaf-border);
  border-radius: var(--kaf-radius-sm);
}
.woocommerce-checkout form.checkout_coupon .form-row { margin-bottom: 0; }
.woocommerce-checkout form.woocommerce-form-login .form-row { margin-bottom: 14px; }
.woocommerce-checkout .woocommerce-account-fields { margin-top: 6px; }
.woocommerce-checkout .woocommerce-account-fields .create-account label { font-weight: 600; }
/* Make the login / coupon action buttons brand green (they aren't .alt buttons) */
.woocommerce-checkout .woocommerce-form-login__submit,
.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"] {
  background: var(--kaf-brown) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--kaf-radius-sm) !important;
  font-weight: 600 !important;
}
.woocommerce-checkout .woocommerce-form-login__submit:hover,
.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"]:hover {
  background: var(--kaf-brown-dark) !important;
}
.woocommerce-checkout .woocommerce-form-login .lost_password a { color: var(--kaf-brown); }

/* ---- Desktop: Place order + WhatsApp Checkout side by side, equal width. The
   shorter label ("WhatsApp Checkout") now fits on one line at half width. ---- */
@media (min-width: 601px) {
  .woocommerce-checkout #payment div.place-order {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
  }
  .woocommerce-checkout #place_order,
  .woocommerce-checkout .pcc-whatsapp {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .woocommerce-checkout .pcc-whatsapp__btn {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    gap: 8px;
    text-align: center;
  }
  .woocommerce-checkout #place_order,
  .woocommerce-checkout .pcc-whatsapp__btn {
    padding: 14px 12px !important;
    border-radius: var(--kaf-radius-sm) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }
  .woocommerce-checkout .pcc-whatsapp__btn svg { width: 18px; height: 18px; }
}

/* ---- Mobile: keep the top cards comfortable ---- */
@media (max-width: 600px) {
  .woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
  .woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    padding: 12px 14px 12px 42px;
    font-size: 14px;
  }
  .woocommerce-checkout form.woocommerce-form-login,
  .woocommerce-checkout form.checkout_coupon { padding: 16px; }
}

/* ---------- Cart mobile refinements ---------- */
@media (max-width: 782px) {
  /* Coupon row + Update/Clear side by side */
  .woocommerce-cart td.actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px !important;
  }
  .woocommerce-cart td.actions .coupon {
    flex: 1 1 100%;
    display: flex;
    align-items: stretch;
    gap: 8px;
    float: none;
    margin: 0;
  }
  .woocommerce-cart td.actions .coupon input.input-text {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
  }
  .woocommerce-cart td.actions .coupon button {
    flex: 0 0 auto;
    margin: 0 !important;
    white-space: nowrap;
  }
  .woocommerce-cart td.actions button[name="update_cart"],
  .woocommerce-cart td.actions .pcc-clear-cart {
    flex: 1 1 0 !important;
    float: none !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  /* Cart totals — Shipment label above its options, options left-aligned */
  .woocommerce-cart .cart_totals tr.shipping { display: block; }
  .woocommerce-cart .cart_totals tr.shipping th,
  .woocommerce-cart .cart_totals tr.shipping td {
    display: block;
    width: 100%;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
  }
  .woocommerce-cart .cart_totals tr.shipping th { padding-bottom: 6px; }
  .woocommerce-cart .cart_totals tr.shipping td { padding-top: 0; border-top: 0; }
  .woocommerce-cart .cart_totals #shipping_method { margin: 0; padding: 0; list-style: none; }
  .woocommerce-cart .cart_totals #shipping_method li { text-align: left; margin: 0 0 8px; }
  .woocommerce-cart .cart_totals #shipping_method li:last-child { margin-bottom: 0; }
}

/* ============================ CONTACT PAGE ============================ */
.pc-contact__notice { padding: 14px 16px; border-radius: var(--kaf-radius-sm); margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.pc-contact__notice--ok  { background: #f1f8e6; border: 1px solid #cfe6a8; color: #5a3115; }
.pc-contact__notice--err { background: #fdecec; border: 1px solid #f2c4c4; color: #a52222; }

.pc-contact-info-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; margin: 8px 0 0; }
.pc-contact-info-grid h2 { margin-top: 0; }

.pc-contact-form { max-width: 760px; }
.pc-contact-form__hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pc-contact-form__row { display: flex; gap: 16px; flex-wrap: wrap; }
.pc-contact-form__field { display: block; margin: 0 0 16px; flex: 1 1 240px; }
.pc-contact-form__field--full { flex-basis: 100%; }
.pc-contact-form__field > span { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--kaf-ink); }
.pc-contact-form__field em { color: #c0392b; font-style: normal; }
.pc-contact-form__field input,
.pc-contact-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--kaf-border);
  border-radius: var(--kaf-radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--kaf-ink);
  background: #fff;
  box-sizing: border-box;
}
.pc-contact-form__field input:focus,
.pc-contact-form__field textarea:focus {
  outline: none;
  border-color: var(--kaf-brown);
  box-shadow: 0 0 0 3px rgba(90, 49, 21, 0.12);
}
.pc-contact-form__field textarea { resize: vertical; min-height: 130px; }
.pc-contact-form__btn {
  display: inline-block;
  background: var(--kaf-brown);
  color: #fff;
  border: 0;
  border-radius: var(--kaf-radius-sm);
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pc-contact-form__btn:hover,
.pc-contact-form__btn:focus { background: var(--kaf-brown-dark); }

.pc-contact-card { background: var(--kaf-cream); border: 1px solid var(--kaf-border); border-radius: var(--kaf-radius); padding: 24px; }
.pc-contact-details { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.pc-contact-details > li { line-height: 1.55; }
.pc-contact-details strong { display: block; color: var(--kaf-ink); margin-bottom: 2px; font-size: 15px; }
.pc-contact-details a { color: var(--kaf-brown); text-decoration: none; word-break: break-word; }
.pc-contact-details a:hover { text-decoration: underline; }

@media (max-width: 782px) {
  .pc-contact-info-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Contact form: anti-spam sum field + embedded map */
.pc-contact-form__field--sum input { max-width: 160px; }
.pc-contact-map { margin-top: 36px; }
.pc-contact-map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: var(--kaf-radius); }

/* ==========================================================================
   Kafrasa brand accents — the logo's savanna green, used sparingly
   ========================================================================== */
.fh-why__tick { background: var(--kaf-green); }
.fh-value__icon {
  color: var(--kaf-green-dark);
  background: linear-gradient(135deg, rgba(124,190,38,0.14), rgba(242,169,0,0.16));
}
.fh-cat-card:hover span { color: var(--kaf-green-dark); }
