/* =====================================================
   RIROZ — Main Stylesheet (Part 1: Base + Header + Hero)
   RTL-first design, WooCommerce-ready
   ===================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --fg-primary: #66152B;
  --fg-primary-600: #4E0F20;
  --fg-primary-700: #3C0B1B;
  --fg-primary-050: #F6E8EC;
  --fg-accent: #D9A441;
  --fg-accent-050: #FBF3E2;
  --fg-dark: #202024;
  --fg-body: #4B4B55;
  --fg-muted: #8A8A94;
  --fg-line: #EDE9EC;
  --fg-bg: #FFFFFF;
  --fg-bg-soft: #FAF8F3;
  --fg-green: #1F9D55;
  --fg-blue: #2F80ED;
  --fg-red: #E0245E;
  --fg-radius: 14px;
  --fg-radius-lg: 22px;
  --fg-shadow-sm: 0 2px 10px rgba(32, 32, 36, .06);
  --fg-shadow: 0 14px 34px rgba(32, 32, 36, .12);
  --fg-font-head: 'Cairo', 'Tajawal', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --fg-font-body: 'Tajawal', 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fg-font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-body);
  background: var(--fg-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--fg-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--fg-primary-700); }
h1, h2, h3, h4, h5, h6 { font-family: var(--fg-font-head); color: var(--fg-dark); line-height: 1.45; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 20px; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: var(--fg-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--fg-primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.fg-locked { overflow: hidden; }

.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; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto; clip-path: none; color: var(--fg-dark);
  display: block; font-size: 14px; height: auto; inset-inline-start: 6px;
  line-height: normal; padding: 14px 22px; text-decoration: none; top: 6px;
  width: auto; z-index: 100000;
}
.skip-link { position: absolute; inset-inline-start: -9999px; }
.skip-link:focus { inset-inline-start: 6px; }

.fg-icon { flex: none; vertical-align: middle; }
.fg-main { min-height: 55vh; }
.container { max-width: 1280px; margin-inline: auto; padding-inline: 18px; }

/* ---------- 3. Buttons, badges, forms ---------- */
.fg-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
#respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, var(--fg-primary), var(--fg-primary-600));
  color: #fff; border: none; border-radius: 12px; padding: 11px 22px;
  font-weight: 700; font-size: 14px; line-height: 1.6; cursor: pointer;
  text-align: center; transition: transform .15s, box-shadow .2s, filter .2s;
  box-shadow: 0 6px 16px rgba(102, 21, 43, .22);
}
.fg-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
#respond input#submit:hover {
  color: #fff; filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(102, 21, 43, .3);
}
.fg-btn-outline { background: #fff; color: var(--fg-primary); border: 1.5px solid var(--fg-primary); box-shadow: none; }
.fg-btn-outline:hover { background: var(--fg-primary-050); color: var(--fg-primary-700); }
.fg-btn-gold { background: linear-gradient(180deg, #E4B34F, var(--fg-accent)); color: #4A2C00; box-shadow: 0 6px 16px rgba(217, 164, 65, .35); }
.fg-btn-gold:hover { color: #4A2C00; filter: brightness(1.05); }
.fg-btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 14px; }
.fg-btn-white { background: #fff; color: var(--fg-primary); box-shadow: var(--fg-shadow-sm); }
.fg-btn-white:hover { color: var(--fg-primary-700); }

.fg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg-primary); font-weight: 700; font-size: 13px; margin: 0 0 4px;
}
.fg-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--fg-accent); }

.fg-card { background: #fff; border: 1px solid var(--fg-line); border-radius: var(--fg-radius-lg); box-shadow: var(--fg-shadow-sm); }
.fg-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.fg-badge-gold { background: var(--fg-accent-050); color: #B47207; }

input[type=text], input[type=email], input[type=tel], input[type=search],
input[type=password], input[type=number], input[type=url], input[type=date],
select, textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--fg-line);
  border-radius: 11px; padding: 10px 14px; min-height: 44px;
  color: var(--fg-dark); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--fg-primary); box-shadow: 0 0 0 3px rgba(102, 21, 43, .12); outline: none;
}
label { font-weight: 700; color: var(--fg-dark); font-size: 13.5px; }

/* ---------- 4. Header: topbar ---------- */
.fg-header {
  position: sticky; top: 0; z-index: 90;
  background: #fff; transition: box-shadow .25s ease;
}
.fg-header.is-stuck { box-shadow: 0 8px 24px rgba(32, 32, 36, .1); }
.fg-header.is-stuck .fg-topbar { display: none; }

.fg-topbar { background: var(--fg-primary-700); color: #fff; font-size: 13px; }
.fg-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px;
}
.fg-topbar-note { margin: 0; color: rgba(255, 255, 255, .92); font-weight: 500; }
.fg-topbar-links { display: flex; align-items: center; gap: 18px; }
.fg-topbar-links a {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, .88); font-weight: 500;
}
.fg-topbar-links a:hover { color: #fff; }

/* ---------- 5. Header: main bar ---------- */
.fg-header-main { border-bottom: 1px solid var(--fg-line); }
.fg-header-main-inner {
  display: flex; align-items: center; gap: 20px;
  padding-block: 14px; min-height: 76px;
}

.fg-burger {
  display: none; background: none; border: 1px solid var(--fg-line);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--fg-dark);
}

.fg-branding { flex: none; }
.fg-branding .custom-logo { max-height: 64px; width: auto; }
.fg-logo-img { display: inline-flex; }
.fg-logo-img img { max-height: 64px; width: auto; display: block; }
.fg-logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #F7F4EC; border-radius: 14px; padding: 10px 16px;
}
.fg-logo-chip img { max-height: 58px; width: auto; display: block; }
.fg-logo-text { display: inline-flex; align-items: center; gap: 10px; }
.fg-logo-mark {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--fg-primary), var(--fg-primary-600));
  color: #fff; box-shadow: 0 6px 14px rgba(102, 21, 43, .28);
}
.fg-logo-mark-sm { width: 40px; height: 40px; border-radius: 12px; }
.fg-logo-name {
  font-family: var(--fg-font-head); font-weight: 800; font-size: 22px;
  color: var(--fg-dark); line-height: 1.2; display: inline-flex; flex-direction: column;
}
.fg-logo-sub { font-size: 11.5px; font-weight: 700; color: var(--fg-primary); letter-spacing: .3px; }
.fg-branding-footer .fg-logo-name { color: #fff; }
.fg-branding-footer .fg-logo-sub { color: var(--fg-accent); }

/* Search */
.fg-search {
  position: relative; display: flex; align-items: center; gap: 6px;
  flex: 1; max-width: 560px; height: 48px;
  background: #fff; border: 1.5px solid var(--fg-primary);
  border-radius: 14px; padding-inline: 8px;
}
.fg-search-ico {
  position: absolute; inset-inline-start: 16px;
  color: var(--fg-muted); pointer-events: none;
}
.fg-search-cat {
  width: auto; min-height: 0; flex: none; max-width: 130px;
  background: transparent; border: none; box-shadow: none;
  font-size: 13px; color: var(--fg-body); cursor: pointer; padding-inline: 12px;
}
.fg-search-cat:focus { box-shadow: none; }
.fg-search-input {
  flex: 1; min-width: 0; height: 100%; border: none; box-shadow: none;
  background: transparent; padding-inline-start: 42px;
}
.fg-search-input:focus { border: none; box-shadow: none; }
.fg-search-btn {
  flex: none; height: 36px; padding-inline: 20px;
  background: linear-gradient(180deg, var(--fg-primary), var(--fg-primary-600));
  color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer;
  transition: filter .2s;
}
.fg-search-btn:hover { filter: brightness(1.08); }

/* Header actions */
.fg-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.fg-action {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  color: var(--fg-dark); padding: 10px; border-radius: 12px;
  transition: background .2s, color .2s;
}
.fg-action:hover { background: var(--fg-primary-050); color: var(--fg-primary); }
.fg-action-text { font-size: 13px; font-weight: 700; }
.fg-action-badge {
  position: absolute; top: 2px; inset-inline-end: 0;
  min-width: 18px; height: 18px; padding-inline: 5px;
  background: var(--fg-accent); color: #4A2C00;
  border-radius: 999px; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- 6. Header: primary nav ---------- */
.fg-nav { border-top: 1px solid var(--fg-line); }
.fg-menu {
  display: flex; align-items: stretch; gap: 2px;
  list-style: none; margin: 0; padding: 0; position: relative;
}
.fg-menu > li { position: relative; }
.fg-menu > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 15px; font-weight: 700; font-size: 14px; color: var(--fg-dark);
  border-bottom: 2.5px solid transparent; transition: color .2s, border-color .2s;
}
.fg-menu > li > a:hover,
.fg-menu > li.current-menu-item > a,
.fg-menu > li.current-menu-parent > a {
  color: var(--fg-primary); border-bottom-color: var(--fg-primary);
}
.fg-menu ul {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 60;
  min-width: 230px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--fg-line);
  border-radius: 12px; box-shadow: var(--fg-shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.fg-menu li:hover > ul,
.fg-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.fg-menu ul a { 
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--fg-body);
}
.fg-menu ul a:hover { background: var(--fg-primary-050); color: var(--fg-primary); }

/* ---------- 7. Drawer (mobile) & overlay ---------- */
.fg-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(24, 8, 16, .55); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .3s;
}
.fg-overlay.show { opacity: 1; }

.fg-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 120;
  width: min(340px, 86vw); background: #fff;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; overflow-y: auto;
  transform: translateX(-110%); transition: transform .3s ease;
}
[dir="rtl"] .fg-drawer { transform: translateX(110%); }
.fg-drawer.open { transform: none; }
.fg-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--fg-line);
}
.fg-drawer-head > button, .fg-minicart-head > button {
  background: none; border: none; cursor: pointer; color: var(--fg-dark);
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.fg-drawer-head > button:hover, .fg-minicart-head > button:hover { background: var(--fg-bg-soft); }
.fg-drawer .fg-search { max-width: none; height: 46px; }
.fg-drawer-menu {
  display: flex; flex-direction: column; align-items: stretch;
  width: 100%; gap: 0; padding: 0 !important;
}
.fg-drawer-menu li { position: static; width: 100%; }
.fg-drawer-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 13px 8px;
  font-weight: 700; font-size: 15px; color: var(--fg-dark);
  border-bottom: 1px solid var(--fg-line);
}
.fg-drawer-menu a:hover { color: var(--fg-primary); }
.fg-drawer-menu ul {
  position: static; opacity: 1; visibility: visible; transform: none;
  width: 100%; min-width: 0;
  box-shadow: none; border: none; background: var(--fg-bg-soft);
  border-radius: 10px; padding: 2px 10px; margin: 6px 0 10px;
}
.fg-drawer-menu ul li { width: 100%; }
.fg-drawer-menu ul a {
  justify-content: flex-start; padding: 10px 8px;
  font-weight: 500; font-size: 14px; color: var(--fg-body);
  border-bottom: 1px dashed var(--fg-line);
}
.fg-drawer-menu ul li:last-child a { border-bottom: none; }

.fg-drawer-contact {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--fg-line);
  display: flex; flex-direction: column; gap: 10px; font-size: 14px;
}
.fg-drawer-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-body); }

/* ---------- 8. Mini cart panel ---------- */
.fg-minicart {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 120;
  width: min(390px, 92vw); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(110%); transition: transform .3s ease;
}
[dir="rtl"] .fg-minicart { transform: translateX(-110%); }
.fg-minicart.open { transform: none; }
.fg-minicart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--fg-line);
  font-family: var(--fg-font-head); font-size: 16px;
}
.fg-minicart .widget_shopping_cart_content {
  display: flex; flex-direction: column; flex: 1; overflow: hidden;
}
.fg-minicart .woocommerce-mini-cart {
  flex: 1; overflow-y: auto; margin: 0; padding: 12px 16px !important; list-style: none;
}
.fg-minicart .woocommerce-mini-cart-item {
  display: flex; gap: 12px; padding: 12px 0 !important;
  border-bottom: 1px solid var(--fg-line);
}
.fg-minicart .woocommerce-mini-cart-item img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none;
}
.fg-minicart .woocommerce-mini-cart-item a { color: var(--fg-dark); font-weight: 700; }
.fg-minicart .woocommerce-mini-cart__total {
  padding: 14px 16px !important; margin: 0 !important;
  border-top: 1px solid var(--fg-line); font-weight: 800;
  display: flex; justify-content: space-between;
}
.fg-minicart .woocommerce-mini-cart__buttons {
  padding: 0 16px 18px !important; margin: 0 !important; display: grid; gap: 10px;
}
.fg-minicart .woocommerce-mini-cart__buttons .button { width: 100%; }
.fg-minicart .woocommerce-mini-cart__empty-message { padding: 40px 20px; text-align: center; color: var(--fg-muted); }

/* ---------- 9. Hero slider ---------- */
.fg-hero {
  position: relative; height: 520px; overflow: hidden; background: var(--fg-primary);
}
.fg-hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s;
}
.fg-hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.fg-slide-bg-1 { background: linear-gradient(135deg, #66152B 0%, #93304C 58%, #D8A5B5 100%); }
.fg-slide-bg-2 { background: linear-gradient(135deg, #3C0B1B 0%, #66152B 60%, #93304C 100%); }
.fg-slide-bg-3 { background: linear-gradient(135deg, #2E0814 0%, #4A0E20 55%, #66152B 100%); }

/* v1.4 — real photographic slides */
.fg-slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.fg-slide-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(270deg, rgba(40, 6, 15, .92) 2%, rgba(40, 6, 15, .78) 26%, rgba(40, 6, 15, .45) 52%, rgba(40, 6, 15, .10) 80%, rgba(40, 6, 15, 0) 100%);
}

.fg-hero-slide::before, .fg-hero-slide::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .09); pointer-events: none;
}
.fg-hero-slide::before { width: 340px; height: 340px; inset-inline-end: -70px; top: -110px; }
.fg-hero-slide::after { width: 460px; height: 460px; inset-inline-end: 120px; bottom: -230px; background: rgba(255, 255, 255, .06); }

.fg-slide-content {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; width: 100%;
}
.fg-slide-text { max-width: 560px; }
.fg-slide-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32);
  color: #fff; border-radius: 999px; padding: 5px 16px;
  font-size: 13px; font-weight: 700; margin-bottom: 14px;
  backdrop-filter: blur(4px);
}
.fg-slide-title {
  color: #fff; font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.25; margin: 0 0 12px; text-wrap: balance;
}
.fg-slide-sub {
  color: rgba(255, 255, 255, .88); font-size: 17px; line-height: 1.9; margin: 0 0 26px;
}
.fg-slide-art {
  color: rgba(255, 255, 255, .3); flex: none;
  transform: rotate(-8deg);
}
.fg-hero-slide.active .fg-slide-text { animation: fgFadeUp .6s ease both; }

.fg-hero-dots {
  position: absolute; bottom: 22px; inset-inline: 0; z-index: 5;
  display: flex; justify-content: center; gap: 8px;
}
.fg-hero-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: none;
  background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0;
  transition: width .25s, background .25s;
}
.fg-hero-dots button.active { width: 26px; background: #fff; }
.fg-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.fg-hero-arrow:hover { background: rgba(255, 255, 255, .32); }
.fg-hero-arrow.is-prev { inset-inline-start: 22px; }
.fg-hero-arrow.is-next { inset-inline-end: 22px; }

@keyframes fgFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Part 2: Sections + Product cards + Footer
   ===================================================== */

/* ---------- 10. Sections layout ---------- */
.fg-section { padding-block: 46px 14px; }
.fg-section-soft { background: var(--fg-bg-soft); padding-block: 46px 30px; margin-top: 30px; }
.fg-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 24px;
}
.fg-section-head-center { justify-content: center; text-align: center; }
.fg-section-head-center .fg-eyebrow::before { display: none; }
.fg-section-title { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.fg-section-link {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-weight: 700; font-size: 14px; color: var(--fg-primary);
  background: var(--fg-primary-050); border-radius: 999px; padding: 9px 18px;
  transition: background .2s, color .2s;
}
.fg-section-link:hover { background: var(--fg-primary); color: #fff; }

/* ---------- 11. Category circles ---------- */
.fg-cats-section { padding-block: 34px 6px; }
.fg-cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.fg-cat {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center;
}
.fg-cat-icon {
  width: 86px; height: 86px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, var(--fg-primary-050), #fff);
  border: 1px solid var(--fg-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-primary); box-shadow: var(--fg-shadow-sm);
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.fg-cat-icon img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 50%; transition: transform .35s ease;
}
.fg-cat:hover .fg-cat-icon img { transform: scale(1.08); }
.fg-cats .fg-cat { transition: transform .2s ease; }
.fg-cats .fg-cat:active .fg-cat-icon { transform: scale(.94); }
.fg-cat:hover .fg-cat-icon {
  background: linear-gradient(160deg, var(--fg-primary), var(--fg-primary-600));
  color: #fff; transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(102, 21, 43, .28);
}
.fg-cat-label { font-size: 13px; font-weight: 700; color: var(--fg-dark); }

/* ---------- 12. WooCommerce product grid ---------- */
.woocommerce ul.products,
.wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px; margin: 0 0 10px; padding: 0; list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
}

.fg-product-card,
.woocommerce ul.products li.product {
  background: #fff; border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius-lg); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.fg-product-card:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px); box-shadow: var(--fg-shadow);
  border-color: #DCC3CD;
}

.fg-p-media { position: relative; background: var(--fg-bg-soft); }
.fg-p-thumb { display: block; }
.fg-p-thumb img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.fg-product-card:hover .fg-p-thumb img { transform: scale(1.05); }

.fg-p-badges {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.fg-onsale,
.woocommerce ul.products li.product .onsale {
  position: static; min-width: 0; margin: 0;
  display: inline-flex; align-items: center;
  background: var(--fg-accent); color: #4A2C00;
  border-radius: 999px; padding: 4px 12px;
  font-size: 12px; font-weight: 800; line-height: 1.6; z-index: 2;
}
.fg-wish-btn {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid var(--fg-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-muted); cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .15s;
  box-shadow: var(--fg-shadow-sm);
}
.fg-wish-btn:hover { color: var(--fg-red); transform: scale(1.08); }
.fg-wish-btn.active { color: var(--fg-red); background: #F8EAEE; border-color: #E8C3CF; }
.fg-wish-btn.active svg { fill: currentColor; }

.fg-p-body {
  padding: 14px 16px 18px;
  display: flex; flex-direction: column; gap: 7px; flex: 1;
}
.fg-p-cat { font-size: 12px; color: var(--fg-muted); font-weight: 500; }
.fg-p-title {
  font-size: 15px; font-weight: 700; line-height: 1.6; margin: 0;
  min-height: 3.2em;
}
.fg-p-title a {
  color: var(--fg-dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.fg-p-title a:hover { color: var(--fg-primary); }

.fg-p-price,
.woocommerce ul.products li.product .price {
  color: var(--fg-primary) !important; font-weight: 800 !important;
  font-size: 17px; margin: auto 0 2px !important;
}
.fg-p-price del,
.woocommerce ul.products li.product .price del {
  color: var(--fg-muted) !important; font-weight: 500; font-size: 13px;
}
.fg-p-price ins,
.woocommerce ul.products li.product .price ins {
  text-decoration: none; background: none;
}

/* star ratings */
.star-rating {
  position: relative; display: inline-block;
  width: 5.6em; height: 1em; font-size: 13px; line-height: 1;
  overflow: hidden; font-family: 'Tajawal', sans-serif;
}
.star-rating::before {
  content: '\2605\2605\2605\2605\2605';
  color: #E4DEE2; letter-spacing: 2px;
}
.star-rating span {
  position: absolute; top: 0; inset-inline-start: 0;
  overflow: hidden; white-space: nowrap; height: 100%;
}
.star-rating span::before {
  content: '\2605\2605\2605\2605\2605';
  color: var(--fg-accent); letter-spacing: 2px;
}

/* add-to-cart inside the card */
.fg-p-actions { margin-top: 6px; }
.fg-p-actions .button,
.woocommerce ul.products li.product .button {
  width: 100%; margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--fg-primary-050); color: var(--fg-primary);
  border: 1.5px solid transparent; border-radius: 12px;
  padding: 10px 16px; font-weight: 700; font-size: 13.5px; line-height: 1.6;
  cursor: pointer; transition: all .2s; text-align: center;
}
.fg-p-actions .button:hover,
.woocommerce ul.products li.product .button:hover {
  background: linear-gradient(180deg, var(--fg-primary), var(--fg-primary-600));
  color: #fff; box-shadow: 0 8px 18px rgba(102, 21, 43, .28);
  transform: translateY(-1px);
}
.fg-p-actions .button.loading,
.fg-p-actions .button.added { opacity: .75; pointer-events: none; }

/* ---------- 13. Promo banners ---------- */
.fg-promos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.fg-promo {
  border-radius: var(--fg-radius-lg); padding: 30px 26px;
  color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.fg-promo::after {
  content: ""; position: absolute; border-radius: 50%;
  width: 220px; height: 220px; background: rgba(255, 255, 255, .1);
  inset-inline-end: -60px; bottom: -100px; pointer-events: none;
}
.fg-promo-1 { background: linear-gradient(150deg, var(--fg-primary) 0%, #93304C 100%); }
.fg-promo-2 { background: linear-gradient(150deg, #E4B34F 0%, #C98F2C 100%); }
.fg-promo-3 { background: linear-gradient(150deg, #2E0814 0%, #7A1F3A 100%); }
.fg-promo-icon { color: rgba(255, 255, 255, .85); margin-bottom: 4px; }
.fg-promo-title { color: #fff; font-size: 21px; margin: 0; }
.fg-promo-text { color: rgba(255, 255, 255, .88); font-size: 14px; margin: 0 0 10px; }

/* ---------- 14. Value props ---------- */
.fg-props {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.fg-prop {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius); padding: 18px 16px;
}
.fg-prop-ico {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: var(--fg-primary-050); color: var(--fg-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.fg-prop-title { font-size: 14.5px; margin: 2px 0 3px; }
.fg-prop-text { font-size: 12.5px; color: var(--fg-muted); margin: 0; line-height: 1.7; }

/* ---------- 15. Testimonials ---------- */
.fg-testis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.fg-testi {
  background: #fff; border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius-lg); padding: 26px 24px;
  box-shadow: var(--fg-shadow-sm); position: relative;
}
.fg-testi::before {
  content: "\201C"; position: absolute; top: 8px; inset-inline-end: 20px;
  font-family: var(--fg-font-head); font-size: 64px; line-height: 1;
  color: var(--fg-primary-050); pointer-events: none;
}
.fg-stars { display: flex; gap: 3px; color: var(--fg-accent); margin-bottom: 12px; }
.fg-stars svg { fill: currentColor; }
.fg-testi-text { font-size: 14px; line-height: 2; color: var(--fg-body); margin: 0 0 16px; }
.fg-testi-meta { display: flex; align-items: center; gap: 10px; }
.fg-testi-meta strong { color: var(--fg-dark); font-family: var(--fg-font-head); }
.fg-testi-meta span { color: var(--fg-muted); font-size: 12.5px; }
.fg-testi-meta::before {
  content: ""; width: 30px; height: 3px; border-radius: 3px;
  background: var(--fg-accent);
}

/* ---------- 16. Newsletter ---------- */
.fg-newsletter-wrap { padding-block: 40px 30px; }
.fg-newsletter {
  background: linear-gradient(135deg, var(--fg-primary) 0%, var(--fg-primary-600) 60%, var(--fg-primary-700) 100%);
  border-radius: var(--fg-radius-lg); padding: 40px 44px;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 14px 40px; position: relative; overflow: hidden;
}
.fg-newsletter::before {
  content: ""; position: absolute; border-radius: 50%;
  width: 300px; height: 300px; background: rgba(255, 255, 255, .07);
  inset-inline-start: -100px; top: -120px; pointer-events: none;
}
.fg-newsletter-text h3 { color: #fff; font-size: 24px; margin: 0 0 4px; }
.fg-newsletter-text p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 14px; }
.fg-newsletter-form {
  display: flex; gap: 10px; min-width: 380px; position: relative; z-index: 2;
}
.fg-newsletter-form input {
  flex: 1; min-width: 0; border: none; box-shadow: none;
  border-radius: 12px; height: 50px;
}
.fg-newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.fg-newsletter-msg { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: #fff; min-height: 1.5em; }
.fg-newsletter-msg.is-ok { color: #D9F7E8; font-weight: 700; }
.fg-newsletter-msg.is-err { color: #FFE1EA; font-weight: 700; }

/* ---------- 17. Footer ---------- */
.fg-footer {
  background: #1D1B20; color: #CFCBD4;
  margin-top: 40px; padding-top: 56px; font-size: 14px;
}
.fg-footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding-bottom: 40px;
}
.fg-footer-title {
  color: #fff; font-size: 16px; margin: 0 0 16px; position: relative;
  padding-bottom: 10px;
}
.fg-footer-title::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 30px; height: 3px; border-radius: 3px; background: var(--fg-accent);
}
.fg-footer-about-text { line-height: 2; margin-bottom: 16px; }
.fg-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.fg-footer-links a { color: #CFCBD4; transition: color .2s, padding .2s; }
.fg-footer-links a:hover { color: #F27BA8; padding-inline-start: 4px; }

.fg-social { display: flex; gap: 10px; }
.fg-social-link {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  display: inline-flex; align-items: center; justify-content: center;
  color: #E8E4EC; transition: background .2s, color .2s, transform .2s;
}
.fg-social-link:hover { background: var(--fg-primary); color: #fff; transform: translateY(-2px); }

.fg-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.fg-contact-list li { display: flex; align-items: center; gap: 10px; }
.fg-contact-list svg { color: var(--fg-accent); }
.fg-contact-list a { color: #CFCBD4; }
.fg-contact-list a:hover { color: #F27BA8; }

.fg-payments {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-block: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.fg-pay-label { font-size: 13px; color: #9B97A2; }
.fg-payments-list { display: flex; gap: 8px; flex-wrap: wrap; }
.fg-seo-block {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(217, 164, 65, .22);
}
.fg-seo-block p { margin: 0 0 8px; font-size: 12px; line-height: 2; color: #8F8A99; }
.fg-seo-block strong { color: var(--fg-accent); font-weight: 700; }
.fg-seo-cities span { white-space: nowrap; }
.fg-seo-cities span::after { content: ' ، '; color: rgba(217, 164, 65, .5); }
.fg-seo-cities span:last-child::after { content: ''; }
.fg-pay {
  background: #fff; color: #1D1B20; border-radius: 8px;
  padding: 6px 13px; font-size: 12px; font-weight: 800;
  font-family: var(--fg-font-head); line-height: 1.6;
}
.fg-pay-mada { color: #2E9E4F; }
.fg-pay-visa { color: #1A1F71; }
.fg-pay-mc { color: #EB001B; }
.fg-pay-apple { color: #111; }
.fg-pay-tamara { color: #40C4B4; }
.fg-pay-tabby { color: #35C48D; }
.fg-pay-cod { color: #555; }

.fg-copyright {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-block: 18px; text-align: center;
}
.fg-copyright p { margin: 0; font-size: 13px; color: #9B97A2; }
.fg-copyright .fg-credit {
  margin-top: 7px; font-size: 12.5px; color: #D9A441; letter-spacing: .2px;
}
.fg-copyright .fg-credit + .fg-credit { margin-top: 3px; }

/* back to top */
.fg-btt {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--fg-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(102, 21, 43, .4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.fg-btt.show { opacity: 1; visibility: visible; transform: none; }
.fg-btt:hover { background: var(--fg-primary-600); }

/* toast */
.fg-toast {
  position: fixed; bottom: 30px; inset-inline-start: 50%;
  transform: translate(-50%, 20px); z-index: 200;
  background: var(--fg-dark); color: #fff;
  border-radius: 12px; padding: 12px 22px; font-size: 14px; font-weight: 500;
  box-shadow: var(--fg-shadow); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}
[dir="rtl"] .fg-toast { transform: translate(50%, 20px); }
.fg-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
[dir="rtl"] .fg-toast.show { transform: translate(50%, 0); }

/* =====================================================
   Part 3: WooCommerce pages + Blog + Responsive
   ===================================================== */

/* ---------- 18. Shop head, breadcrumbs, notices ---------- */
.fg-shop-wrap { padding-block: 26px 50px; }
.fg-breadcrumbs { margin: 0 0 14px; font-size: 13px; }
.fg-bc-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 0; }
.fg-bc-list a { color: var(--fg-muted); }
.fg-bc-list a:hover { color: var(--fg-primary); }
.fg-bc-sep { color: #C9C4CB; }
.fg-bc-list li:last-child { color: var(--fg-dark); font-weight: 700; }

.woocommerce-products-header__title.page-title {
  font-family: var(--fg-font-head); font-weight: 800;
  font-size: 27px; color: var(--fg-dark); margin: 4px 0 20px;
}
.woocommerce-result-count { display: block; margin: 0 0 14px; color: var(--fg-muted); font-size: 13.5px; }
.woocommerce-ordering { display: block; margin: 0 0 18px; max-width: 230px; }
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border: 1px solid var(--fg-line); border-radius: 12px;
  padding: 13px 18px; margin: 0 0 20px; list-style: none;
  background: #fff; color: var(--fg-body); box-shadow: var(--fg-shadow-sm);
}
.woocommerce-message { border-inline-start: 4px solid var(--fg-green); }
.woocommerce-info { border-inline-start: 4px solid var(--fg-blue); }
.woocommerce-error { border-inline-start: 4px solid var(--fg-red); }
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button { float: none; margin-inline-start: 12px; }

/* ---------- 19. Single product ---------- */
.woocommerce div.product {
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: 40px; margin-bottom: 40px;
}
.woocommerce div.product div.images { width: auto; float: none; margin: 0; }
.woocommerce div.product div.summary { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images img { border-radius: var(--fg-radius-lg); }
.woocommerce div.product div.images .flex-viewport { border-radius: var(--fg-radius-lg); border: 1px solid var(--fg-line); }
.woocommerce div.product div.images .flex-control-thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  margin-top: 10px; padding-inline-start: 0;
}
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; list-style: none; }
.woocommerce div.product div.images .flex-control-thumbs img {
  border-radius: 10px; border: 2px solid transparent; opacity: .75;
}
.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover {
  border-color: var(--fg-primary); opacity: 1;
}

.woocommerce div.product .product_title {
  font-size: 28px; margin: 4px 0 10px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--fg-primary) !important; font-weight: 800;
  font-size: 27px; font-family: var(--fg-font-head);
}
.woocommerce div.product p.price del { color: var(--fg-muted) !important; font-size: 17px; font-weight: 500; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--fg-body); line-height: 2; margin-block: 12px 18px;
}
.woocommerce div.product .product_meta {
  border-top: 1px dashed var(--fg-line); padding-top: 14px; margin-top: 20px;
  font-size: 13px; color: var(--fg-muted);
}
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }
.woocommerce div.product .product_meta a { color: var(--fg-primary); }

.woocommerce div.product form.cart {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-block: 22px; padding-block: 0;
}
.woocommerce div.product form.cart div.quantity { margin: 0; }
.woocommerce div.product form.cart .single_add_to_cart_button {
  flex: 1; min-width: 220px; padding: 15px 28px; font-size: 16px; border-radius: 14px;
}

.quantity {
  display: inline-flex; align-items: center; gap: 0;
  border: 1.5px solid var(--fg-line); border-radius: 12px; overflow: hidden;
}
.quantity .qty {
  width: 48px; height: 46px; border: none; box-shadow: none;
  text-align: center; background: #fff; padding: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fg-qty-btn {
  width: 40px; height: 46px; background: var(--fg-bg-soft);
  border: none; cursor: pointer; color: var(--fg-dark);
  font-size: 18px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.fg-qty-btn:hover { background: var(--fg-primary); color: #fff; }

/* trust box on single product */
.fg-trust-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  background: var(--fg-bg-soft); border: 1px dashed #DFC6CE;
  border-radius: var(--fg-radius); padding: 16px; margin-top: 22px;
}
.fg-trust-item { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--fg-body); line-height: 1.8; }
.fg-trust-item svg { color: var(--fg-primary); margin-top: 3px; }

/* tabs */
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none; margin: 0 0 0; padding: 0;
  display: flex; gap: 8px; border-bottom: 2px solid var(--fg-line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0; background: none; border: none; border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-block; padding: 12px 20px; font-weight: 700;
  font-size: 14.5px; color: var(--fg-muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--fg-primary); border-bottom-color: var(--fg-primary);
}
.woocommerce div.product .woocommerce-tabs .panel {
  padding-block: 22px 6px; line-height: 2; border: none; margin-bottom: 0;
}
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { font-size: 19px; }

/* reviews */
.woocommerce #reviews #comments ol.commentlist li {
  list-style: none; border: 1px solid var(--fg-line); border-radius: var(--fg-radius);
  padding: 16px; margin-bottom: 12px;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar {
  border-radius: 50%; width: 48px; background: var(--fg-bg-soft); padding: 2px;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text { border: none; margin: 0; padding: 0; }
.woocommerce #review_form #respond textarea { min-height: 110px; }
.woocommerce p.stars a { color: var(--fg-accent); }

/* related & upsells */
.woocommerce .related.products,
.woocommerce .upsells.products { grid-column: 1 / -1; border-top: 1px solid var(--fg-line); padding-top: 26px; }
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2 { font-size: 21px; margin-bottom: 20px; }

/* ---------- 20. Cart ---------- */
.woocommerce-cart .woocommerce { display: grid; gap: 26px; }
.woocommerce table.shop_table {
  width: 100%; border: 1px solid var(--fg-line) !important;
  border-radius: var(--fg-radius) !important;
  border-collapse: separate; border-spacing: 0; overflow: hidden;
  background: #fff; margin: 0;
}
.woocommerce table.shop_table th {
  background: var(--fg-bg-soft); text-align: start; padding: 13px 16px;
  font-family: var(--fg-font-head); font-size: 13.5px; color: var(--fg-dark);
  border-bottom: 1px solid var(--fg-line);
}
.woocommerce table.shop_table td { padding: 13px 16px; border-top: 1px solid var(--fg-line); }
.woocommerce table.shop_table img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.woocommerce a.remove {
  color: var(--fg-red) !important; font-size: 20px; width: 32px; height: 32px;
  border: 1px solid #E8C3CF; border-radius: 8px; line-height: 30px;
}
.woocommerce a.remove:hover { background: #F8EAEE; }
.woocommerce .coupon { display: flex; gap: 8px; align-items: center; }
.woocommerce .coupon .input-text { width: 200px !important; }
.woocommerce .cart-collaterals .cart_totals {
  background: #fff; border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius-lg); padding: 24px;
  width: 100%; max-width: 460px; margin-inline-start: auto;
}
.woocommerce .cart-collaterals h2 { font-size: 19px; }
.woocommerce .cart_totals table.shop_table { border: none !important; }
.woocommerce .cart_totals .order-total .amount { color: var(--fg-primary); font-weight: 800; font-size: 18px; }
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  width: 100%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--fg-primary), var(--fg-primary-600)) !important;
  color: #fff !important; border-radius: 12px !important; padding: 14px 22px !important;
  font-weight: 700 !important;
}

/* ---------- 21. Checkout & forms & account ---------- */
.woocommerce-checkout form.checkout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 30px; align-items: start;
}
.woocommerce-checkout form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
.woocommerce-checkout form.checkout #order_review { grid-column: 2; grid-row: 2; }
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
.woocommerce-checkout #customer_details h3 { font-size: 18px; margin-bottom: 16px; }
.woocommerce form .form-row { margin-bottom: 12px; }
.woocommerce form .form-row label { display: block; margin-bottom: 6px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1.5px solid var(--fg-line); border-radius: 11px;
  padding: 10px 14px; background: #fff; width: 100%; line-height: 1.6;
}
.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus { border-color: var(--fg-primary); outline: none; }
.woocommerce-checkout #payment {
  background: var(--fg-bg-soft); border-radius: var(--fg-radius-lg);
  border: 1px solid var(--fg-line);
}
.woocommerce-checkout #payment ul.payment_methods {
  list-style: none; margin: 0; padding: 18px; border-bottom: 1px solid var(--fg-line);
}
.woocommerce-checkout #payment ul.payment_methods li { margin-bottom: 10px; }
.woocommerce-checkout #payment div.payment_box {
  background: #fff; border-radius: 10px; padding: 12px 16px; margin-top: 8px;
  font-size: 13.5px; border: 1px solid var(--fg-line);
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment #place_order {
  width: 100%; margin: 18px; width: calc(100% - 36px);
  background: linear-gradient(180deg, var(--fg-primary), var(--fg-primary-600));
  color: #fff; border: none; border-radius: 12px; padding: 15px; font-weight: 800;
  font-size: 16px; cursor: pointer;
}

.woocommerce-account .woocommerce {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start;
}
.woocommerce-account .woocommerce-MyAccount-navigation { width: auto; float: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: 10px;
  background: #fff; border: 1px solid var(--fg-line); border-radius: var(--fg-radius-lg);
}
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block; padding: 11px 14px; border-radius: 10px;
  font-weight: 700; font-size: 14px; color: var(--fg-body);
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--fg-primary-050); color: var(--fg-primary);
}
.woocommerce-account .woocommerce-MyAccount-content {
  background: #fff; border: 1px solid var(--fg-line); border-radius: var(--fg-radius-lg); padding: 26px;
}

/* widgets (shop sidebar) */
.widget {
  background: #fff; border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius-lg); padding: 20px; margin-bottom: 18px;
}
.widget-title { font-size: 16px; margin-bottom: 14px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding-block: 7px; border-bottom: 1px dashed var(--fg-line); }
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--fg-body); }
.widget a:hover { color: var(--fg-primary); }

/* pagination */
.woocommerce-pagination ul,
.nav-links {
  display: flex; gap: 7px; justify-content: center;
  list-style: none; margin: 30px 0 0; padding: 0; flex-wrap: wrap;
}
.page-numbers,
.woocommerce-pagination ul li span,
.woocommerce-pagination ul li a {
  min-width: 42px; height: 42px; padding-inline: 12px;
  border: 1px solid var(--fg-line); border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--fg-body); font-weight: 700; font-size: 14px;
}
.page-numbers.current,
.woocommerce-pagination ul li span.current {
  background: var(--fg-primary); color: #fff; border-color: var(--fg-primary);
}
.page-numbers:hover:not(.current) { border-color: var(--fg-primary); color: var(--fg-primary); }

/* ---------- 22. Blog listing & posts ---------- */
.fg-page { padding-block: 30px 50px; }
.fg-page-head { margin-bottom: 26px; }
.fg-page-title { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.fg-page-title span { color: var(--fg-primary); }
.fg-page-desc { color: var(--fg-muted); margin: 6px 0 0; }

.fg-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fg-post-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.fg-post-card:hover { transform: translateY(-4px); box-shadow: var(--fg-shadow); }
.fg-post-thumb { display: block; }
.fg-post-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.fg-post-thumb-ph {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; background: var(--fg-primary-050); color: #D8A5B5;
}
.fg-post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.fg-post-meta { font-size: 12.5px; color: var(--fg-muted); margin-bottom: 8px; }
.fg-post-title { font-size: 17px; margin: 0 0 8px; line-height: 1.6; }
.fg-post-title a { color: var(--fg-dark); }
.fg-post-title a:hover { color: var(--fg-primary); }
.fg-post-excerpt {
  font-size: 13.5px; color: var(--fg-muted); line-height: 1.9; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fg-readmore {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto; font-weight: 700; font-size: 13.5px; color: var(--fg-primary);
}

/* single article */
.fg-single-post { max-width: 860px; }
.fg-article-head { margin-bottom: 20px; }
.fg-article-title { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 0; }
.fg-article-thumb img {
  width: 100%; border-radius: var(--fg-radius-lg); margin-bottom: 26px;
}
.fg-page-content {
  background: #fff; border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius-lg); padding: 30px 34px;
}
.fg-front-page-content { margin-block: 26px 0; }
.entry-content h2 { font-size: 23px; margin-top: 1.4em; }
.entry-content h3 { font-size: 19px; margin-top: 1.3em; }
.entry-content p { line-height: 2.1; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  margin: 1.4em 0; padding: 16px 22px;
  border-inline-start: 4px solid var(--fg-primary);
  background: var(--fg-bg-soft); border-radius: 12px;
}
.entry-content blockquote p { margin: 0; }
.entry-content img { border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content table td, .entry-content table th {
  border: 1px solid var(--fg-line); padding: 9px 12px; text-align: start;
}
.fg-tags { margin-top: 24px; }
.fg-tags a {
  display: inline-block; background: var(--fg-bg-soft); color: var(--fg-body);
  border-radius: 999px; padding: 4px 14px; font-size: 12.5px; margin: 0 0 6px;
  border: 1px solid var(--fg-line);
}
.fg-tags a:hover { color: var(--fg-primary); border-color: var(--fg-primary); }

.fg-post-nav { margin-top: 26px; }
.nav-previous, .nav-next { margin: 0; }
.fg-post-nav .nav-links { justify-content: space-between; gap: 20px; }
.fg-post-nav .nav-links > div { max-width: 48%; }
.fg-nav-label { display: block; font-size: 12px; color: var(--fg-muted); margin-bottom: 3px; }
.fg-nav-title { font-weight: 700; color: var(--fg-dark); }
.fg-post-nav a:hover .fg-nav-title { color: var(--fg-primary); }

/* comments */
.fg-comments { margin-top: 34px; }
.fg-comments-title { font-size: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 26px; }
.comment-list ol.children { list-style: none; padding-inline-start: 40px; }
.comment-body {
  background: #fff; border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius); padding: 16px 18px; margin-bottom: 12px;
}
.comment-author img { border-radius: 50%; margin-inline-end: 10px; }
.comment-metadata { font-size: 12px; }
.comment-metadata a { color: var(--fg-muted); }
.comment-content { margin-top: 8px; }
.reply a {
  display: inline-block; background: var(--fg-primary-050); color: var(--fg-primary);
  border-radius: 8px; padding: 3px 12px; font-size: 12.5px; font-weight: 700;
}
.comment-form p { margin-bottom: 14px; }
.comment-form input[type=submit] { width: auto; }

/* ---------- 23. Empty states & 404 ---------- */
.fg-empty {
  text-align: center; padding: 46px 30px;
}
.fg-empty p { max-width: 560px; margin-inline: auto; color: var(--fg-muted); }
.fg-empty .fg-search { max-width: 420px; margin: 14px auto 0; }
.fg-404 { text-align: center; padding-block: 50px; }
.fg-404-icon { color: #D8A5B5; display: inline-block; margin-bottom: 6px; }
.fg-404-code {
  font-size: 84px; line-height: 1; margin: 0;
  background: linear-gradient(160deg, var(--fg-primary), var(--fg-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fg-404-title { font-size: 24px; margin: 8px 0 4px; }
.fg-404-text { color: var(--fg-muted); max-width: 480px; margin-inline: auto; }
.fg-404-search { max-width: 480px; margin: 20px auto 0; }
.fg-404-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

.welcome-box { text-align: center; max-width: 640px; margin-inline: auto; padding: 44px 36px; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 1100px) {
  .woocommerce ul.products, .wc-block-grid__products { grid-template-columns: repeat(3, 1fr); }
  .fg-cats { grid-template-columns: repeat(6, 1fr); }
  .fg-cats .fg-cat:nth-child(n+7) { display: none; }
  .fg-props { grid-template-columns: repeat(2, 1fr); }
  .fg-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .fg-footer-grid .fg-footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
  .fg-burger { display: inline-flex; }
  .fg-nav { display: none; }
  .fg-header-main .fg-search { display: none; }
  .fg-hero { height: 440px; }
  .fg-slide-art { display: none; }
  .fg-promos { grid-template-columns: 1fr; }
  .fg-testis { grid-template-columns: 1fr; }
  .fg-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-newsletter { grid-template-columns: 1fr; }
  .fg-newsletter-form { min-width: 0; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 26px; }
  .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
  .woocommerce-checkout form.checkout #customer_details { grid-row: auto; grid-column: 1; }
  .woocommerce-checkout form.checkout #order_review_heading,
  .woocommerce-checkout form.checkout #order_review { grid-column: 1; grid-row: auto; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .fg-trust-box { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .woocommerce ul.products, .wc-block-grid__products { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* v1.2 Categories: FNP-style horizontal snap-scroll strip — swipe shows every circle */
  .fg-cats {
    display: flex; gap: 6px;
    overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    padding: 6px 2px 12px;
  }
  .fg-cats::-webkit-scrollbar { display: none; }
  .fg-cats .fg-cat { flex: 0 0 auto; width: 76px; scroll-snap-align: start; }
  .fg-cats .fg-cat:nth-child(n+5),
  .fg-cats .fg-cat:nth-child(n+7) { display: flex; }
  .fg-cat-icon { width: 70px; height: 70px; }
  .fg-cat-icon .fg-icon { width: 26px !important; height: 26px !important; }
  .fg-cat-label { font-size: 12px; line-height: 1.4; }

  /* v1.2 Hero slider: professional inset card on mobile */
  .fg-hero {
    height: 400px; margin: 14px 14px 2px;
    border-radius: 22px;
    box-shadow: 0 22px 44px -20px rgba(80, 0, 16, .5);
  }
  .fg-hero-dots { bottom: 16px; }
  .fg-slide-content { padding-inline: 24px; }
  .fg-slide-badge { font-size: 12px; padding: 4px 13px; margin-bottom: 10px; }
  .fg-slide-title { font-size: 26px; margin-bottom: 8px; }
  .fg-slide-sub { font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
  .fg-btn-lg { padding: 11px 24px; font-size: 14.5px; border-radius: 12px; }
  .fg-slide-art {
    display: block; position: absolute; inset-inline-end: -14px; bottom: -20px;
    opacity: .16; pointer-events: none;
  }
  .fg-slide-art .fg-icon { width: 128px !important; height: 128px !important; }
  .fg-action-text { display: none; }
  .fg-topbar-inner { justify-content: center; min-height: 34px; }
  .fg-topbar-links { display: none; }
  .fg-topbar-note {
    font-size: 11.5px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 100%;
  }
  .fg-hero { height: 400px; }
  .fg-hero-arrow { display: none; }
  .fg-section { padding-block: 34px 10px; }
  .fg-page-content { padding: 22px 20px; }
  .fg-newsletter { padding: 30px 24px; }
  .fg-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 576px) {
  .fg-posts-grid { grid-template-columns: 1fr; }
  .fg-props { grid-template-columns: 1fr; }
  .fg-footer-grid { grid-template-columns: 1fr; }
  .fg-p-actions .button,
  .woocommerce ul.products li.product .button { font-size: 12.5px; padding: 9px 10px; gap: 4px; }
  .fg-p-body { padding: 12px 12px 14px; }
  .fg-p-title { font-size: 14px; }
  .fg-logo-name { font-size: 18px; }
  .fg-logo-mark { width: 40px; height: 40px; }
  .fg-hero { height: 396px; margin: 12px 12px 0; border-radius: 20px; }
  .fg-slide-title { font-size: 24px; }
  .fg-slide-sub { font-size: 13.5px; }
  .fg-cats .fg-cat { width: 72px; }
  .fg-cat-icon { width: 66px; height: 66px; }
  .fg-header-main-inner { gap: 10px; min-height: 66px; }
  .woocommerce .coupon .input-text { width: 140px !important; }
  .fg-post-nav .nav-links { flex-direction: column; }
  .fg-post-nav .nav-links > div { max-width: 100%; }
}

/* RTL micro-adjustments */
[dir="rtl"] .fg-icon-flip { transform: scaleX(-1); }

/* Wide block alignment */
.alignwide { margin-inline: -30px; max-width: none; width: auto; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

/* =========================================================
 * v1.1 — Occasions strip ("تسوّق حسب المناسبة")
 * ========================================================= */
.fg-occ-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
}
.fg-occ-card {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--fg-bg, #fff);
        border: 1px solid rgba(102, 21, 43, .10);
        border-radius: 14px;
        padding: 10px 14px 10px 10px;
        text-decoration: none;
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.fg-occ-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(102, 21, 43, .12);
        border-color: rgba(217, 164, 65, .6);
}
.fg-occ-thumb {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
        background: linear-gradient(135deg, #66152B, #8A2745);
        display: flex;
        align-items: center;
        justify-content: center;
}
.fg-occ-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fg-occ-thumb-icon svg { stroke: #F2D9A4; fill: none; stroke-width: 1.8; }
.fg-occ-label {
        font-weight: 700;
        font-size: 14.5px;
        color: #500010;
        line-height: 1.4;
}

/* =========================================================
 * v1.1 — Blog: breadcrumb, reading time, tags, related posts
 * ========================================================= */
.fg-breadcrumb { margin: 18px 0 4px; }
.fg-breadcrumb ol {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0;
        padding: 0;
        font-size: 13.5px;
        color: #8A6F76;
}
.fg-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.fg-breadcrumb li + li::before { content: "‹"; color: #D9A441; font-weight: 700; }
.fg-breadcrumb a { color: #66152B; text-decoration: none; font-weight: 600; }
.fg-breadcrumb a:hover { text-decoration: underline; }
.fg-reading-time {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #8A6F76;
}
.fg-reading-time svg { stroke: #D9A441; fill: none; stroke-width: 2; }
.fg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fg-tag {
        background: rgba(217, 164, 65, .12);
        color: #66152B;
        border: 1px solid rgba(217, 164, 65, .35);
        border-radius: 999px;
        padding: 4px 14px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        transition: background .15s ease;
}
.fg-tag:hover { background: rgba(217, 164, 65, .25); }
.fg-related { margin-top: 34px; }
.fg-related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
}
.fg-related-card {
        background: #fff;
        border: 1px solid rgba(102, 21, 43, .10);
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        transition: transform .18s ease, box-shadow .18s ease;
}
.fg-related-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(102, 21, 43, .13); }
.fg-related-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.fg-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fg-related-title {
        padding: 14px 16px 4px;
        font-weight: 800;
        color: #500010;
        font-size: 15.5px;
        line-height: 1.55;
}
.fg-related-date { padding: 0 16px 16px; font-size: 12.5px; color: #8A6F76; }

/* Blog single: content typography for SEO structure */
.fg-single-post .entry-content h2 {
        color: #500010;
        font-size: 24px;
        margin: 30px 0 12px;
        padding-inline-start: 12px;
        border-inline-start: 4px solid #D9A441;
}
.fg-single-post .entry-content h3 {
        color: #66152B;
        font-size: 19px;
        margin: 22px 0 10px;
}
.fg-single-post .entry-content ul, .fg-single-post .entry-content ol {
        padding-inline-start: 22px;
        margin: 12px 0;
}
.fg-single-post .entry-content li { margin-bottom: 8px; line-height: 1.9; }

@media (max-width: 640px) {
        /* v1.3: occasions on mobile = 3 columns (user request) */
        .fg-occ-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .fg-occ-card { flex-direction: column; text-align: center; padding: 10px 6px; gap: 8px; }
        .fg-occ-thumb { width: 58px; height: 58px; border-width: 2px; }
        .fg-occ-label { font-size: 11.5px; line-height: 1.5; }

        /* v1.4: promo banners = swipeable card slider on mobile */
        .fg-promos {
                display: flex; gap: 12px;
                overflow-x: auto; scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none; -ms-overflow-style: none;
                padding: 4px 2px 10px;
                scroll-padding-inline: 14px;
        }
        .fg-promos::-webkit-scrollbar { display: none; }
        .fg-promos .fg-promo {
                flex: 0 0 80%; scroll-snap-align: center;
        }
        .fg-promos::after { content: ""; flex: 0 0 1px; }
}

/* =========================================================
 * v1.1 — Product card: custom badge + rating stars (from meta)
 * ========================================================= */
.fg-p-rating { display: flex; align-items: center; gap: 2px; margin: 2px 0 6px; }
.fg-star svg { stroke: #D9A441; fill: none; stroke-width: 1.6; opacity: .35; }
.fg-star-full svg { fill: #D9A441; stroke: #C08E2E; opacity: 1; }
.fg-p-rating-num { font-size: 12.5px; font-weight: 800; color: #500010; margin-inline-start: 6px; }
.fg-p-rating-count { font-size: 12px; color: #8A6F76; margin-inline-start: 2px; }

/* =========================================================
 * v1.2 — Quick view: button on product image + AJAX modal
 * ========================================================= */
.fg-quick-btn {
  position: absolute; inset-inline: 12px; bottom: 12px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(255, 255, 255, .95); color: var(--fg-primary);
  border: 1px solid rgba(102, 21, 43, .16); border-radius: 999px;
  padding: 9px 14px; font-size: 13px; font-weight: 800; font-family: inherit;
  line-height: 1.4; cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, background .2s, color .2s, border-color .2s;
  box-shadow: 0 10px 22px rgba(80, 0, 16, .18);
  backdrop-filter: blur(4px);
}
.fg-quick-btn svg { flex: none; }
.fg-product-card:hover .fg-quick-btn,
.woocommerce ul.products li.product:hover .fg-quick-btn,
.fg-quick-btn:focus-visible { opacity: 1; transform: translateY(0); }
.fg-quick-btn:hover { background: var(--fg-primary); color: #fff; border-color: var(--fg-primary); }
@media (hover: none) {
  .fg-quick-btn { opacity: 1; transform: none; padding: 7px 12px; font-size: 12.5px; }
}

/* Quick view modal */
.fg-quickview {
  position: fixed; inset: 0; z-index: 130;
  display: flex; align-items: center; justify-content: center;
  padding: 26px;
  opacity: 0; transition: opacity .25s ease;
}
.fg-quickview[hidden] { display: none; }
.fg-quickview.open { opacity: 1; }
.fg-quickview-box {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px;
  width: min(880px, 100%); max-height: calc(100vh - 52px);
  box-shadow: 0 30px 80px -20px rgba(46, 8, 20, .45);
  transform: translateY(22px) scale(.97);
  transition: transform .28s cubic-bezier(.22, .8, .35, 1);
  overflow: hidden;
}
.fg-quickview.open .fg-quickview-box { transform: none; }
.fg-quickview-close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 6;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--fg-line);
  color: var(--fg-dark); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--fg-shadow-sm);
  transition: background .2s, color .2s, transform .15s;
}
.fg-quickview-close:hover { background: var(--fg-primary); color: #fff; transform: rotate(90deg); }
.fg-quickview-body {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  min-height: 220px;
}
.fg-quickview-body.is-loading::after {
  content: ""; display: block; width: 34px; height: 34px; margin: 96px auto;
  border-radius: 50%; border: 3px solid rgba(102, 21, 43, .15);
  border-top-color: var(--fg-primary);
  animation: fgSpin .7s linear infinite;
}
@keyframes fgSpin { to { transform: rotate(360deg); } }

/* Quick view content layout */
.fg-qv { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
.fg-qv-media {
  position: relative; background: var(--fg-bg-soft, #FAF6F0);
  display: flex; align-items: center; justify-content: center;
  padding: 22px; min-height: 320px;
}
.fg-qv-media img {
  max-width: 100%; max-height: 420px; width: auto; height: auto;
  object-fit: contain; display: block; border-radius: 14px;
  transition: opacity .2s ease;
}
.fg-qv-media.is-swapping img { opacity: .35; }
.fg-qv-thumbs { position: absolute; bottom: 14px; inset-inline: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fg-qv-thumb {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: #fff;
  box-shadow: var(--fg-shadow-sm); transition: border-color .18s, transform .18s;
}
.fg-qv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.fg-qv-thumb:hover { transform: translateY(-2px); }
.fg-qv-thumb.is-active { border-color: var(--fg-accent); }
.fg-qv-info { padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.fg-qv-cat { font-size: 12.5px; font-weight: 700; color: var(--fg-accent); letter-spacing: .2px; }
.fg-qv-title { font-size: 22px; font-weight: 800; color: var(--fg-dark); line-height: 1.5; margin: 0; }
.fg-qv-title a { color: inherit; text-decoration: none; }
.fg-qv-title a:hover { color: var(--fg-primary); }
.fg-qv-price { font-size: 20px; font-weight: 800; color: var(--fg-primary); }
.fg-qv-price del { color: var(--fg-muted); font-weight: 600; font-size: 15px; margin-inline-start: 8px; opacity: .8; }
.fg-qv-price ins { text-decoration: none; }
.fg-qv-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.9; margin: 0; }
.fg-qv-desc ul { padding-inline-start: 18px; margin: 6px 0; }
.fg-qv-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--fg-muted); border-top: 1px dashed var(--fg-line); padding-top: 12px; margin-top: 4px; }
.fg-qv-stock.is-in { color: #1B7A43; font-weight: 800; }
.fg-qv-stock.is-out { color: #C0392B; font-weight: 800; }
.fg-qv-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 8px; }
.fg-qv-actions .button {
  background: var(--fg-primary); color: #fff !important; border-radius: 12px;
  padding: 12px 26px; font-weight: 800; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.fg-qv-actions .button:hover { background: var(--fg-primary-600); transform: translateY(-1px); }
.fg-qv-full {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--fg-primary);
  text-decoration: none; border-bottom: 1.5px solid rgba(217, 164, 65, .7);
  padding-bottom: 2px;
}
.fg-qv-full:hover { color: var(--fg-primary-600); }

/* Quick view: mobile bottom sheet (customary pattern) */
@media (max-width: 640px) {
  .fg-quickview { padding: 0; align-items: flex-end; }
  .fg-quickview-box {
    width: 100%; max-height: 92vh; min-height: 62vh;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
  }
  .fg-quickview.open .fg-quickview-box { transform: none; }
  .fg-quickview-box::before {
    content: ""; position: absolute; top: 9px; inset-inline: 0; margin-inline: auto;
    width: 46px; height: 5px; border-radius: 999px; background: rgba(80, 0, 16, .18);
  }
  .fg-qv { grid-template-columns: 1fr; }
  .fg-qv-media { min-height: 0; padding: 30px 18px 60px; }
  .fg-qv-media img { max-height: 52vw; }
  .fg-qv-info { padding: 18px 18px 22px; gap: 8px; }
  .fg-qv-title { font-size: 18px; }
  .fg-qv-price { font-size: 17.5px; }
  .fg-qv-actions .button { flex: 1; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fg-quickview, .fg-quickview-box, .fg-quick-btn { transition: none; }
}

/* =====================================================
   Part 5: v1.7.0 — promo heading, payment badges,
   social header, WhatsApp button, shop filter sidebar
   ===================================================== */

/* ---------- 25. Section heading for promo banners ---------- */
.fg-section-sub { color: var(--fg-muted); font-size: 14.5px; margin: 8px 0 0; }
.fg-promo-head { margin-bottom: 26px; }

/* ---------- 26. Social links in the top bar ---------- */
.fg-social-header { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 6px; }
.fg-social-header .fg-social-link {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(255, 255, 255, .13); color: #fff;
}
.fg-social-header .fg-social-link:hover { background: var(--fg-accent); color: #3C0B1B; transform: none; }

/* ---------- 27. Payment gateway image badges ---------- */
.fg-payments-list { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fg-pay-chip {
  display: inline-flex; background: #fff; border-radius: 8px;
  overflow: hidden; line-height: 0; padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fg-pay-chip:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.fg-pay-chip img { width: 48px; height: 30px; display: block; }

/* ---------- 28. WhatsApp order button (single product) ---------- */
.fg-wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin-top: 12px;
  background: #25D366; color: #fff !important;
  border-radius: 12px; padding: 12px 18px;
  font-weight: 800; font-size: 14.5px; line-height: 1.6;
  box-shadow: 0 8px 18px rgba(37, 211, 102, .32);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.fg-wa-btn svg { flex: none; }
.fg-wa-btn:hover { background: #1EB857; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37, 211, 102, .4); }

/* v1.13.1: two-branch WhatsApp buttons (Riyadh / Dammam) side by side. */
.fg-wa-row {
  display: flex; gap: 10px; width: 100%;
  margin-top: 12px;
}
.fg-wa-row .fg-wa-btn {
  flex: 1 1 0; min-width: 0;
  margin-top: 0;
  padding-inline: 10px; font-size: 13px; gap: 7px;
}
@media (max-width: 600px) {
  .fg-wa-row { flex-direction: column; gap: 8px; }
}

/* ---------- 29. Cart icon on add-to-cart buttons (kept in EVERY state — user guarantee) ---------- */
.fg-p-actions .button::before,
.woocommerce div.product form.cart .single_add_to_cart_button::before,
.fg-qv-actions .single_add_to_cart_button::before {
  content: ""; flex: none; width: 16px; height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>") no-repeat center / contain;
}
.woocommerce div.product form.cart .single_add_to_cart_button,
.fg-qv-actions .single_add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- 31. WhatsApp order button beside add-to-cart (cards + quick view) ---------- */
.fg-p-actions { display: flex; gap: 8px; align-items: stretch; }
.fg-p-actions .button { flex: 1 1 0; min-width: 0; }
.fg-p-actions .fg-wa-card,
.fg-qv-actions .fg-wa-card {
  flex: 0 0 auto; width: 42px; min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; border-radius: 12px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.fg-p-actions .fg-wa-card svg,
.fg-qv-actions .fg-wa-card svg { flex: none; }
.fg-p-actions .fg-wa-card:hover,
.fg-qv-actions .fg-wa-card:hover {
  background: #1EB857; color: #fff; transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, .4);
}
.fg-qv-actions .fg-wa-card { width: 46px; min-height: 46px; }
@media (max-width: 576px) {
  .fg-p-actions { gap: 6px; }
  .fg-p-actions .fg-wa-card { width: 38px; min-height: 38px; border-radius: 10px; }
}

/* ---------- 30. Shop filter sidebar ---------- */
.fg-shop-layout {
  display: grid; grid-template-columns: 266px minmax(0, 1fr);
  gap: 26px; align-items: start;
}
.fg-shop-aside { position: sticky; top: 92px; }

.fg-filter {
  background: #fff; border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius-lg); overflow: hidden;
  box-shadow: var(--fg-shadow-sm);
}
.fg-filter-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(160deg, var(--fg-primary-050), #fff);
  border-bottom: 1px solid var(--fg-line);
}
.fg-filter-title { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fg-primary); }
.fg-filter-title svg { flex: none; }
.fg-filter-close {
  display: none; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--fg-primary); color: #fff;
  align-items: center; justify-content: center; flex: none;
}
.fg-filter-scroll { padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - 170px); overflow: auto; }

.fg-filter-group-title {
  font-size: 13.5px; margin: 0 0 10px; color: var(--fg-dark);
  position: relative; padding-bottom: 8px;
}
.fg-filter-group-title::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 26px; height: 2.5px; border-radius: 2px; background: var(--fg-accent);
}

/* categories */
.fg-filter-cats, .fg-filter-subcats { list-style: none; margin: 0; padding: 0; }
.fg-filter-cats { display: flex; flex-direction: column; gap: 2px; }
.fg-filter-cats > li > a,
.fg-filter-subcats > li > a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 9px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--fg-body);
  transition: background .15s, color .15s;
}
.fg-filter-cats a:hover, .fg-filter-subcats a:hover { background: var(--fg-primary-050); color: var(--fg-primary); }
.fg-filter-cats li.is-active > a, .fg-filter-subcats li.is-active > a { background: var(--fg-primary); color: #fff; }
.fg-cat-count {
  font-size: 11px; font-weight: 700; line-height: 1.7;
  background: #F1EDE6; color: var(--fg-muted);
  border-radius: 999px; padding: 1px 8px; flex: none;
}
.fg-filter-cats li.is-active .fg-cat-count, .fg-filter-subcats li.is-active .fg-cat-count { background: rgba(255, 255, 255, .22); color: #fff; }
.fg-filter-subcats { margin: 2px 0 5px; padding-inline-start: 13px; display: flex; flex-direction: column; gap: 2px; }
.fg-filter-subcats > li > a { font-size: 12.5px; padding: 5px 8px; }

/* price range */
.fg-range { position: relative; height: 26px; margin: 8px 4px 4px; }
.fg-range-track, .fg-range-fill {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 5px; border-radius: 999px; pointer-events: none;
}
.fg-range-track { inset-inline: 0; background: #EFE7DB; }
.fg-range-fill { background: linear-gradient(90deg, var(--fg-primary), var(--fg-accent)); }
.fg-range input[type="range"] {
  position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%);
  width: 100%; height: 0; margin: 0; background: none;
  appearance: none; -webkit-appearance: none; pointer-events: none;
}
.fg-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--fg-primary); cursor: pointer;
  box-shadow: 0 2px 6px rgba(102, 21, 43, .3);
}
.fg-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--fg-primary); cursor: pointer;
  box-shadow: 0 2px 6px rgba(102, 21, 43, .3);
}
.fg-price-fields { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.fg-price-fields input {
  width: 100%; min-width: 0; height: 42px; text-align: center;
  border: 1.5px solid var(--fg-line); border-radius: 10px; font-size: 13.5px; font-weight: 700;
}
.fg-price-fields input:focus { border-color: var(--fg-primary); outline: none; box-shadow: 0 0 0 3px rgba(102, 21, 43, .1); }
.fg-price-sep { color: var(--fg-muted); flex: none; }
.fg-price-apply {
  width: 100%; margin-top: 10px; cursor: pointer;
  background: var(--fg-primary); color: #fff; border: none;
  border-radius: 10px; padding: 10px; font-weight: 800; font-size: 13.5px;
  transition: background .2s;
}
.fg-price-apply:hover { background: var(--fg-primary-600); }

/* options / pills */
.fg-filter-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border: 1.5px solid var(--fg-line); border-radius: 10px;
  font-size: 13px; font-weight: 700; color: var(--fg-body);
  transition: border-color .2s, background .2s, color .2s;
}
.fg-pill-check {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  border: 1.5px solid #CBB8BD; color: transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.fg-filter-pill:hover { border-color: #D9B9C5; }
.fg-filter-pill.is-active { border-color: var(--fg-primary); background: var(--fg-primary-050); color: var(--fg-primary); }
.fg-filter-pill.is-active .fg-pill-check { background: var(--fg-primary); border-color: var(--fg-primary); color: #fff; }

/* tags */
.fg-filter-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.fg-tag-pill {
  font-size: 12px; font-weight: 700; color: var(--fg-muted);
  background: #F6F1EA; border-radius: 999px; padding: 5px 12px;
  transition: background .2s, color .2s;
}
.fg-tag-pill:hover { background: var(--fg-primary); color: #fff; }

/* active chips */
.fg-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fg-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--fg-primary);
  background: var(--fg-primary-050); border: 1px dashed #D9B9C5;
  border-radius: 999px; padding: 5px 11px;
}
.fg-chip:hover { color: #fff; background: var(--fg-primary); }
.fg-chip span { font-size: 14px; line-height: 1; }

.fg-filter-clear { display: block; text-align: center; font-size: 12.5px; font-weight: 800; color: #B3322F; }
.fg-filter-clear:hover { color: #8E1F1D; }

/* mobile toggle button (hidden on desktop) */
.fg-filters-toggle {
  display: none; align-items: center; gap: 7px; cursor: pointer;
  background: #fff; color: var(--fg-primary);
  border: 1.5px solid var(--fg-primary); border-radius: 999px;
  padding: 8px 16px; font-weight: 800; font-size: 13px;
  box-shadow: var(--fg-shadow-sm);
}

@media (max-width: 992px) {
  .fg-filters-toggle { display: inline-flex; }

  .fg-shop-layout { grid-template-columns: 1fr; gap: 0; }

  .fg-shop-aside {
    position: fixed; inset-inline: 0; top: auto; bottom: 0; z-index: 140;
    max-height: 84vh; margin: 0;
    transform: translateY(105%); transition: transform .3s ease;
  }
  .fg-shop-aside.is-open { transform: none; }

  .fg-filter-close { display: inline-flex; }
  .fg-filter-scroll { max-height: calc(84vh - 62px); }
}

@media (max-width: 768px) {
  .fg-social-header { display: none; }
}

/* ---------- 33. Announcement marquee topbar (v1.11.0) ---------- */
.fg-marquee-bar .fg-marquee-inner { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.fg-marquee {
  flex: 1 1 auto; min-width: 0; overflow: hidden; direction: ltr; text-align: left;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.fg-marquee-track {
  direction: ltr; display: inline-flex; align-items: center;
  width: max-content; will-change: transform;
  animation: fgMarqL2R var(--fg-marquee-duration, 24s) linear infinite;
}
.fg-marquee-track.fg-mv-rtl { animation-name: fgMarqR2L; }
.fg-marquee:hover .fg-marquee-track { animation-play-state: paused; }
.fg-marquee-group { direction: rtl; display: flex; align-items: center; flex: none; }
.fg-marquee-item {
  color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
  padding-inline: 26px; display: inline-flex; align-items: center;
}
.fg-marquee-item::after {
  content: "\2726"; color: var(--fg-accent); font-size: 11px;
  margin-inline-start: 52px; flex: none;
}
.fg-marquee-bar .fg-topbar-links { flex: none; gap: 14px; }
@keyframes fgMarqL2R { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes fgMarqR2L { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .fg-marquee-track { animation: none; }
}
@media (max-width: 768px) {
  .fg-marquee-bar .fg-marquee-inner.has-links { flex-wrap: wrap; gap: 6px; }
  .fg-marquee-item { font-size: 12px; padding-inline: 18px; }
  .fg-marquee-item::after { margin-inline-start: 36px; }
}

/* =====================================================
   33. v1.13.0 store features
   Delivery badge · Occasion filter · Gift card message ·
   Offer countdown · Live search with images
   ===================================================== */

/* ---------- Same-day delivery badge (single product) ---------- */
.fg-delivery-badge {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0 4px; padding: 12px 16px;
  background: linear-gradient(135deg, var(--fg-accent-050), #fff 65%);
  border: 1.5px dashed var(--fg-accent);
  border-radius: var(--fg-radius);
  color: var(--fg-primary);
}
.fg-delivery-badge .fg-icon { flex: none; color: var(--fg-accent); }
.fg-delivery-txt { display: flex; flex-direction: column; line-height: 1.5; }
.fg-delivery-txt strong {
  font-family: var(--fg-font-head); font-size: 15px; font-weight: 800;
  color: var(--fg-primary);
}
.fg-delivery-txt small { font-size: 12.5px; color: var(--fg-body); }

/* ---------- Occasion filter group (shop sidebar) ---------- */
.fg-occ-list { display: flex; flex-direction: column; gap: 4px; }
.fg-occ-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 11px; border-radius: 10px;
  font-size: 13.5px; color: var(--fg-body);
  text-decoration: none; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fg-occ-item .fg-icon { color: var(--fg-accent); flex: none; }
.fg-occ-item:hover { background: var(--fg-primary-050); color: var(--fg-primary); }
.fg-occ-item.is-active {
  background: var(--fg-primary); color: #fff; border-color: var(--fg-primary);
}
.fg-occ-item.is-active .fg-icon { color: var(--fg-accent); }
.fg-occ-item.is-active .fg-cat-count { background: rgba(255, 255, 255, .18); color: #fff; }
.fg-occ-item .fg-cat-count { margin-inline-start: auto; }

/* ---------- Gift card message (single product) ---------- */
.fg-gift-note {
  margin: 16px 0 6px; padding: 12px 14px 10px;
  border: 1.5px solid var(--fg-line); border-radius: var(--fg-radius);
  background: var(--fg-bg-soft);
  position: relative; width: 100%;
}
.fg-gift-note label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fg-font-head); font-weight: 700; font-size: 13.5px;
  color: var(--fg-primary); cursor: pointer;
}
.fg-gift-note label .fg-icon { color: var(--fg-accent); }
.fg-gift-note textarea {
  display: block; width: 100%; margin-top: 8px;
  min-height: 72px; padding: 9px 12px;
  border: 1.5px solid var(--fg-line); border-radius: 10px;
  font: inherit; font-size: 14px; line-height: 1.7;
  background: #fff; color: var(--fg-body);
  resize: vertical;
}
.fg-gift-note textarea:focus {
  outline: none; border-color: var(--fg-primary);
  box-shadow: 0 0 0 3px var(--fg-primary-050);
}
.fg-gift-count {
  display: block; margin-top: 5px; text-align: end;
  font-size: 11.5px; color: var(--fg-muted); font-variant-numeric: tabular-nums;
}

/* ---------- Offer countdown ---------- */
.fg-countdown {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin: 12px 0; padding: 11px 16px;
  background: var(--fg-primary-700);
  border-radius: var(--fg-radius); color: #fff;
}
.fg-cd-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fg-font-head); font-weight: 700; font-size: 14px;
  color: var(--fg-accent);
}
.fg-cd-label .fg-icon { color: var(--fg-accent); }
.fg-cd-cells { display: inline-flex; gap: 7px; }
.fg-cd-cell {
  display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 46px; padding: 5px 8px;
  background: rgba(255, 255, 255, .1); border-radius: 9px;
}
.fg-cd-cell b {
  font-family: var(--fg-font-head); font-size: 17px; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1.2; color: #fff;
}
.fg-cd-cell i { font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .72); }
.fg-countdown.is-over { display: none; }

/* compact card variant */
.fg-countdown-compact {
  margin: 8px 0 2px; padding: 7px 10px; gap: 8px;
  border-radius: 10px;
}
.fg-countdown-compact .fg-cd-label { font-size: 11.5px; gap: 5px; }
.fg-countdown-compact .fg-cd-cell { min-width: 34px; padding: 3px 5px; border-radius: 7px; }
.fg-countdown-compact .fg-cd-cell b { font-size: 13px; }
.fg-countdown-compact .fg-cd-cell i { font-size: 9px; }

/* ---------- Live search results panel ---------- */
.fg-live {
  position: absolute; inset-inline: 0; top: calc(100% + 8px);
  z-index: 90; max-height: 430px; overflow: auto;
  background: #fff; border: 1.5px solid var(--fg-line);
  border-radius: var(--fg-radius); box-shadow: var(--fg-shadow);
  padding: 6px;
  animation: fgLiveIn .16s ease;
}
@keyframes fgLiveIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.fg-live-state {
  padding: 18px 14px; text-align: center;
  font-size: 13.5px; color: var(--fg-muted);
}
.fg-live-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px; border-radius: 10px;
  text-decoration: none; color: var(--fg-body);
  transition: background .13s ease;
}
.fg-live-item:hover { background: var(--fg-primary-050); }
.fg-live-item img,
.fg-live-noimg {
  width: 52px; height: 52px; flex: none;
  border-radius: 9px; object-fit: cover;
  border: 1px solid var(--fg-line); background: var(--fg-bg-soft);
}
.fg-live-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fg-live-name {
  font-size: 13.5px; font-weight: 700; color: var(--fg-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fg-live-price { font-size: 12.5px; color: var(--fg-primary); font-weight: 700; }
.fg-live-all {
  display: block; margin-top: 4px; padding: 10px;
  text-align: center; font-size: 13px; font-weight: 700;
  color: var(--fg-primary); background: var(--fg-bg-soft);
  border-radius: 10px; text-decoration: none;
}
.fg-live-all:hover { background: var(--fg-primary); color: #fff; }

/* drawer + header variants: full width panel below the form */
.fg-drawer-search .fg-live { position: static; margin-top: 8px; box-shadow: none; }

@media (max-width: 768px) {
  .fg-live { max-height: 55vh; }
  .fg-cd-cell { min-width: 40px; }
  .fg-delivery-badge { padding: 10px 12px; }
  .fg-delivery-txt strong { font-size: 14px; }
}

/* =========================================================
   34. v1.14.0 — Saudi checkout: delivery notice + phone hint
   ========================================================= */
.fg-checkout-notice {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 24px; padding: 12px 16px;
  border: 1.5px dashed var(--fg-accent); border-radius: var(--fg-radius);
  background: linear-gradient(135deg, rgba(217, 164, 65, .12), rgba(217, 164, 65, .04));
  color: var(--fg-dark); font-weight: 700; font-size: 14px; line-height: 1.7;
}
.fg-checkout-notice .fg-icon { color: var(--fg-primary); flex: none; }

/* phone number: always typed LTR, even on the RTL layout */
form.checkout input[type="tel"] {
  direction: ltr; text-align: start;
}
form.checkout .riroz-phone-field .description,
#billing_phone_field .description,
#shipping_phone_field .description {
  display: block; margin-top: 4px;
  font-size: 12.5px; color: var(--fg-muted); line-height: 1.6;
}

@media (max-width: 768px) {
  .fg-checkout-notice { font-size: 13px; padding: 10px 12px; margin-bottom: 18px; }
}
