/* ============================================================
   GKI Storefront Blocks v4.0 — GCC Poultry Edition
   Palette  : Navy #1A3A5C | Deep Navy #0F2440 | Gold #C8963E
              Sand #F8F5EF | White #FFFFFF
   Sections : Trust bar → Category Slider (auto) → Featured
              Products → Why Choose Us → Contact Form
   ============================================================ */

:root {
  --gki-green:  #1A3A5C;
  --gki-dark:   #0F2440;
  --gki-orange: #C8963E;
  --gki-gold-d: #A87A2A;
  --gki-light:  #F8F5EF;
  --gki-lgreen: #F1ECE2;
  --gki-text:   #1C2B3A;
  --gki-sec:    #6B7A8A;
  --gki-border: #E2D9CC;
  --gki-white:  #FFFFFF;
  --gki-radius: 8px;
  --gki-radius-sm: 6px;
  --gki-font:   inherit;
}

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

/* ── Base font inheritance ── */
.gki-section, .gki-trust-bar, .gki-card, .gki-cat-item,
.gki-feat, .gki-modal, .gki-btn, .gki-contact-wrap {
  font-family: var(--gki-font);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.gki-section        { padding: 60px 24px; max-width: 100%; }
.gki-section--white { background: var(--gki-white); }
.gki-section--light { background: var(--gki-light); }
.gki-section--navy  { background: var(--gki-dark); }

.gki-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
  /* prevent parent overflow:hidden from hiding slider */
  overflow: visible;
}
.gki-section__title {
  position: relative;
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 800;
  color: var(--gki-text);
  margin: 0 0 6px;
  padding-bottom: 12px;
}
.gki-section__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 44px;
  height: 3px;
  background: var(--gki-orange);
  border-radius: 2px;
}
.gki-section--navy .gki-section__title { color: #fff; }
.gki-section--navy .gki-section__sub   { color: rgba(255,255,255,.7); }
.gki-section__sub { margin: 0; color: var(--gki-sec); font-size: 15px; }
.gki-viewall {
  font-size: 14px; font-weight: 700;
  color: var(--gki-gold-d); text-decoration: none; white-space: nowrap;
}
.gki-viewall:hover { text-decoration: underline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.gki-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--gki-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: filter .15s, background .15s, color .15s, border-color .15s;
}
.gki-btn--navy, .gki-btn--green { background: var(--gki-green); color: #fff; border-color: var(--gki-green); }
.gki-btn--gold, .gki-btn--orange { background: var(--gki-orange); color: var(--gki-dark); border-color: var(--gki-orange); }
.gki-btn--outline { background: transparent; color: var(--gki-green); border-color: var(--gki-green); }
.gki-btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.gki-btn--full { width: 100%; }
.gki-btn:hover { filter: brightness(.92); }
.gki-btn:focus-visible { outline: 3px solid var(--gki-orange); outline-offset: 2px; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.gki-trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--gki-dark);
  border-bottom: 3px solid var(--gki-orange);
}
.gki-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  border-inline-end: 1px solid rgba(255,255,255,.12);
  flex: 1 1 160px;
  justify-content: center;
}
.gki-trust-item:last-child { border-inline-end: none; }
.gki-trust-icon { font-size: 20px; }

/* ============================================================
   CATEGORY SLIDER — auto-scrolling
   ============================================================ */

/* Break out of any theme container that clips the slider */
.gki-section.gki-section--white,
.gki-section {
  overflow: visible !important;
}

.gki-cat-slider-wrap {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  /* Bleed padding so last card isn't cut */
  padding: 0 0 4px 0;
  overflow: visible !important;
}

.gki-cat-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Extra right padding = last card fully visible */
  padding: 8px 32px 20px 4px !important;
  scrollbar-width: none;
  /* Allow card hover shadow to show */
  clip-path: none !important;
}
.gki-cat-slider::-webkit-scrollbar { display: none; }

/* progress dots — decorative only */
.gki-cat-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}
.gki-cat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gki-border);
  transition: background .3s, width .3s;
}
.gki-cat-dot--active { background: var(--gki-orange); width: 18px; border-radius: 3px; }

.gki-cat-item {
  flex: 0 0 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 13px;
  background: var(--gki-white);
  border: 1px solid var(--gki-border);
  /* Use outline for bottom accent — not clipped by overflow */
  border-radius: var(--gki-radius);
  outline: 3px solid transparent;
  outline-offset: -1px;
  text-decoration: none;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gki-text);
  transition: outline-color .15s, box-shadow .15s, transform .15s;
  /* Bottom gold bar via box-shadow — never clipped */
  box-shadow: inset 0 -3px 0 var(--gki-border);
}
.gki-cat-item:hover {
  border-color: var(--gki-orange);
  outline-color: var(--gki-orange);
  box-shadow: inset 0 -3px 0 var(--gki-orange), 0 8px 20px rgba(15,36,64,.10);
  transform: translateY(-3px);
}
.gki-cat-item img  { width: 100%; max-width: 96px; height: 80px; object-fit: contain; }
.gki-cat-item small { color: var(--gki-sec); font-weight: 600; font-size: 12px; }
.gki-cat__ph { display: block; width: 80px; height: 80px; background: var(--gki-lgreen); border-radius: var(--gki-radius-sm); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.gki-prod-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
}
.gki-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gki-white);
  border: 1px solid var(--gki-border);
  border-radius: var(--gki-radius);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
}
.gki-card:hover { box-shadow: 0 10px 32px rgba(15,36,64,.13); transform: translateY(-3px); }

.gki-badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  font-size: 11px; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; letter-spacing: .4px; text-transform: uppercase;
}
.gki-badge--sale   { background: var(--gki-orange); color: var(--gki-dark); }
.gki-badge--custom { background: var(--gki-green);  color: #fff; }

.gki-card__img { display: block; background: var(--gki-light); }
.gki-card__img img { display: block; width: 100%; height: 200px; object-fit: contain; padding: 14px; }
.gki-card__body { padding: 14px 16px 8px; flex: 1; }
.gki-card__name { font-size: 15px; font-weight: 700; margin: 0 0 8px; line-height: 1.35; }
.gki-card__name a { color: var(--gki-text); text-decoration: none; }
.gki-card__name a:hover { color: var(--gki-green); }
.gki-card__price { font-weight: 800; color: var(--gki-green); font-size: 16px; margin-bottom: 4px; }
.gki-card__price del { color: var(--gki-sec); font-weight: 400; font-size: 13px; }
.gki-card__price ins { text-decoration: none; }
.gki-ask { color: var(--gki-sec); font-weight: 600; }
.gki-card__moq { font-size: 12px; color: var(--gki-sec); }

.gki-card__actions { display: flex; flex-direction: column; gap: 8px; padding: 8px 16px 16px; }
.gki-atc-wrap .button,
.gki-atc-wrap a.button {
  display: flex !important; align-items: center; justify-content: center;
  width: 100% !important; padding: 10px 12px !important;
  font-size: 13px !important; font-weight: 700 !important;
  background: var(--gki-green) !important; color: #fff !important;
  border: none !important; border-radius: var(--gki-radius-sm) !important;
  cursor: pointer; text-decoration: none; transition: filter .15s;
}
.gki-atc-wrap .button:hover { filter: brightness(.9) !important; }
.gki-btn--quote {
  font-size: 13px; padding: 10px 12px;
  border-radius: var(--gki-radius-sm);
  background: var(--gki-orange); color: var(--gki-dark);
  border-color: var(--gki-orange);
}
.gki-single-actions { margin: 16px 0; }

/* ============================================================
   FEATURES — Why Choose Us
   ============================================================ */
.gki-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.gki-feat {
  background: var(--gki-white);
  border: 1px solid var(--gki-border);
  border-top: 3px solid var(--gki-orange);
  border-radius: var(--gki-radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow .18s, transform .18s;
}
.gki-feat:hover { box-shadow: 0 8px 24px rgba(15,36,64,.10); transform: translateY(-2px); }
.gki-feat__num {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gki-dark);
  color: var(--gki-orange);
  font-weight: 800; font-size: 18px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px rgba(200,150,62,.18);
}
.gki-feat h3 { font-size: 16px; font-weight: 800; color: var(--gki-text); margin: 0 0 8px; }
.gki-feat p  { font-size: 14px; color: var(--gki-sec); margin: 0; line-height: 1.6; }

/* ============================================================
   INLINE CONTACT FORM
   ============================================================ */
.gki-contact-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.gki-contact-wrap h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  padding-bottom: 14px;
  position: relative;
}
.gki-contact-wrap h2::after {
  content: "";
  position: absolute;
  bottom: 0; inset-inline-start: 0;
  width: 44px; height: 3px;
  background: var(--gki-orange); border-radius: 2px;
}
.gki-contact-wrap .gki-section__sub { color: rgba(255,255,255,.75); margin-bottom: 32px; }

.gki-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gki-contact-form .gki-field--full { grid-column: 1 / -1; }

.gki-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: 5px;
}
.gki-field input,
.gki-field textarea,
.gki-field select {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--gki-radius-sm);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 15px;
  font-family: var(--gki-font);
  transition: border-color .15s, background .15s;
}
.gki-field input::placeholder,
.gki-field textarea::placeholder { color: rgba(255,255,255,.35); }
.gki-field input:focus,
.gki-field textarea:focus,
.gki-field select:focus {
  border-color: var(--gki-orange);
  background: rgba(255,255,255,.12);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200,150,62,.22);
}
.gki-field select option { background: var(--gki-dark); color: #fff; }

/* WhatsApp + Submit buttons side by side */
.gki-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}
.gki-btn--wa {
  background: #1fa855;
  color: #fff;
  border-color: #1fa855;
  gap: 8px;
}
.gki-btn--wa:hover { filter: brightness(.9); }
.gki-btn--wa svg { flex-shrink: 0; }

.gki-form__msg { grid-column: 1 / -1; font-size: 14px; min-height: 1.2em; margin: 2px 0 0; }
.gki-form__msg.ok  { color: #6fe19a; }
.gki-form__msg.err { color: #f97070; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.gki-wa-float {
  position: fixed;
  bottom: 24px; inset-inline-end: 24px;
  z-index: 9999;
  background: #1fa855; color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  transition: box-shadow .15s, transform .15s;
}
.gki-wa-float:hover { box-shadow: 0 6px 24px rgba(0,0,0,.3); transform: translateY(-2px); }

/* ============================================================
   INQUIRY MODAL (for product cards)
   ============================================================ */
.gki-modal[hidden] { display: none; }
.gki-modal {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.gki-modal__bd { position: absolute; inset: 0; background: rgba(8,18,32,.65); }
.gki-modal__box {
  position: relative;
  background: #fff; width: 100%; max-width: 460px;
  max-height: 92vh; overflow-y: auto;
  border-radius: calc(var(--gki-radius) + 2px);
  border-top: 4px solid var(--gki-orange);
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.gki-modal__box h3  { margin: 0 0 4px; color: var(--gki-text); font-size: 20px; }
.gki-modal__prod    { margin: 0 0 18px; color: var(--gki-sec); font-size: 14px; min-height: 1em; }
.gki-modal__x       { position: absolute; top: 12px; inset-inline-end: 16px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--gki-sec); line-height: 1; }
.gki-modal__box label { display: block; font-size: 13px; font-weight: 700; color: var(--gki-text); margin-bottom: 10px; }
.gki-modal__box input,
.gki-modal__box textarea {
  display: block; width: 100%; margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--gki-border);
  border-radius: var(--gki-radius-sm);
  font-size: 15px; color: var(--gki-text);
  box-sizing: border-box; font-family: var(--gki-font);
}
.gki-modal__box input:focus,
.gki-modal__box textarea:focus { border-color: var(--gki-green); outline: none; box-shadow: 0 0 0 3px rgba(200,150,62,.25); }
.gki-modal__msg { margin: 10px 0 0; font-size: 14px; min-height: 1.2em; }
.gki-modal__msg.ok  { color: #127a3d; }
.gki-modal__msg.err { color: #b42318; }
.gki-hp { position: absolute !important; left: -9999px !important; }

/* ============================================================
   RTL
   ============================================================ */
html[dir="rtl"] .gki-section__head { text-align: right; }

/* ============================================================
   wwb2b compatibility
   ============================================================ */
.gki-card .wwb2b-btn {
  border-radius: var(--gki-radius-sm) !important;
  font-size: 13px !important;
  padding: 9px 12px !important;
  margin-top: 0 !important;
  width: 100% !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .gki-prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .gki-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .gki-section     { padding: 44px 16px; }
  .gki-section__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .gki-prod-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .gki-card__img img { height: 150px; }
  .gki-feat-grid   { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gki-contact-form { grid-template-columns: 1fr; }
  .gki-contact-form .gki-field--full { grid-column: 1; }
  .gki-form-actions { flex-direction: column; }
  .gki-form-actions .gki-btn { width: 100%; justify-content: center; }
  .gki-trust-item  { flex: 1 1 140px; padding: 12px 16px; font-size: 13px; }
  .gki-cat-item    { flex-basis: 128px; }
}
@media (max-width: 480px) {
  .gki-wa-float span { display: none; }
  .gki-wa-float { padding: 14px; }
  .gki-feat-grid { grid-template-columns: 1fr; }
  .gki-card__body { padding: 12px 12px 6px; }
  .gki-card__actions { padding: 6px 12px 12px; }
}
