/* ==========================================================================
   Vanda Tools — theme design system
   کارخانه وندا | تولیدکننده ابزارآلات نقاشی ساختمانی
   ========================================================================== */

:root {
  --primary: #89a63c;       /* Palm Leaf, nudged toward #b1d410 — brand primary */
  --primary-rgb: 137, 166, 60;
  --primary-dark: #6b812f;
  --primary-light: #f3f6ec;
  --primary-vivid: #b1d410;  /* accent-only highlight, use sparingly (sparkles, glows) */
  --primary-vivid-rgb: 177, 212, 16;
  --secondary: #9c914f;     /* Palm Leaf (olive/mustard)                  */
  --secondary-rgb: 156, 145, 79;
  --accent: #955e42;        /* Toffee Brown                               */
  --accent-rgb: 149, 94, 66;
  --accent-light: #f1e6df;  /* soft warm tint of Toffee Brown             */
  --accent-light-rgb: 241, 230, 223;
  --deep: #553739;          /* Chocolate Plum — rich dark accent          */
  --deep-rgb: 85, 55, 57;
  --ink: #232020;           /* Shadow Grey — near-black charcoal          */
  --dark: #232020;
  --gray-900: #232020;
  --gray-800: #33373d;
  --gray-700: #4b5057;
  --gray-600: #63686f;
  --gray-500: #868b93;
  --gray-400: #a9adb3;
  --gray-300: #d2d5d9;
  --gray-200: #e7e9ec;
  --gray-100: #f4f5f6;
  --bg: #f6f5f3;
  --white: #ffffff;
  --border: #e6e3df;
  --success: #1a8a44;       /* keep functional (in-stock / success)       */
  --success-light: #e8f7ee;
  --success-border: #b9e6c9;
  --danger: #dc3545;        /* keep functional (out-of-stock / error)     */
  --danger-light: #fdeaea;
  --danger-border: #f3c2c2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(20,22,26,.06);
  --shadow-md: 0 10px 30px rgba(20,22,26,.10);
  --shadow-lg: 0 20px 50px rgba(20,22,26,.16);
  --transition: all .25s ease;
  --font-main: 'IRANSans', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- Fallback grid rules ----
   These mirror the handful of Bootstrap 5 grid/utility classes this theme relies on
   (.container, .row, .col-*, d-flex, d-none, etc). If the Bootstrap CDN stylesheet
   fails to load (blocked network, offline local dev, ad-blocker), the site would
   otherwise collapse into unstyled, right-aligned, full-width blocks. This safety
   net keeps the layout intact either way; Bootstrap's own rules simply override
   these when it loads successfully. */
.container, .container-fluid { width: 100%; margin-inline: auto; padding-inline: 12px; }
.row { display: flex; flex-wrap: wrap; margin-inline: -12px; }
.row > * { padding-inline: 12px; }
/* [class^="col"], [class*=" col"] { width: 100%; } */
@media (min-width: 992px) {
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
}
@media (max-width: 991.98px) {
  .d-none.d-lg-none, .d-lg-none { display: block; }
}
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.g-5 > * { padding-inline: 12px; }
body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--bg);
  direction: rtl;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6 { font-weight: 800; color: var(--ink); margin: 0; }
.container { max-width: 1240px; }
section { padding: 70px 0; }
@media (max-width: 767.98px) { section { padding: 44px 0; } }

/* Buttons */
.btn-orange, .btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; border: none; border-radius: 30px;
  padding: 14px 30px; font-weight: 700; font-size: .95rem; transition: var(--transition);
}
.btn-orange:hover, .btn-red:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--dark); color: #fff; border: none; border-radius: 30px;
  padding: 14px 30px; font-weight: 700; font-size: .95rem; transition: var(--transition);
}
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--primary-light); border: 2px solid var(--gray-300); border-radius: 30px;
  padding: 12px 28px; font-weight: 700; font-size: .95rem; transition: var(--transition);
}
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--ink); border: 1px solid var(--border); border-radius: 30px; padding: 14px 30px; font-weight: 700; }
.btn-white:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   Header
   ========================================================================== */
#site-header { position: relative; z-index: 200; background: var(--white); box-shadow: var(--shadow-sm); }
.header-top { background: var(--ink); color: var(--gray-300); font-size: .82rem; }
.header-top .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.header-top a { color: var(--gray-200); }
.header-top a:hover { color: var(--primary); }
.header-top .top-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.header-top .top-right span { display: inline-flex; align-items: center; gap: 6px; }
.header-top .top-social { display: flex; align-items: center; gap: 12px; }
.header-top .top-social a { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.header-top .top-social a:hover { background: var(--primary); color: #fff; }

.header-main { padding: 18px 0; }
.header-main .container { display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 54px; width: auto; }
.logo .logo-text { font-size: 1.35rem; font-weight: 900; color: var(--ink); line-height: 1.2; }
.logo .logo-text span { display: block; font-size: .68rem; font-weight: 600; color: var(--primary); letter-spacing: .5px; }

.header-search { flex: 1; max-width: 560px; }
.header-search form { position: relative; display: flex; }
.header-search input {
  width: 100%; border: 2px solid var(--gray-200); border-radius: 30px; padding: 13px 54px 13px 20px;
  font-family: var(--font-main); font-size: .92rem; background: var(--gray-100); transition: var(--transition);
}
.header-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.header-search button {
  position: absolute; inset-inline-end: 4px; top: 4px; bottom: 4px; width: 46px; border: none;
  background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.header-actions .icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--ink);
}
.header-actions .icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.cart-count {
  position: absolute; top: -4px; left: -4px; background: var(--primary); color: #fff; font-size: .65rem;
  width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.header-actions .call-cta {
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 30px;
  padding: 10px 20px; font-weight: 400; white-space: nowrap;
}
.header-actions .call-cta i { color: var(--primary); font-size: 1.2rem; }
.header-actions .call-cta span small { display: block; font-weight: 400; font-size: .68rem; color: var(--gray-400); }
.header-actions .call-cta:hover { background: #000; }
.mobile-toggle { width: 46px; height: 46px; border-radius: 50%; background: var(--gray-100); border: none; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* Main nav bar under header */
.main-nav { background: var(--ink); }
.nav-wrapper { display: flex; align-items: stretch; }
.category-area { position: relative; }
.category-btn {
  display: flex; align-items: center; gap: 10px; background: var(--primary); color: #fff; border: none;
  padding: 0 26px; height: 56px; font-weight: 700; font-size: .92rem; white-space: nowrap;
}
.category-btn:hover { background: var(--primary-dark); }
.category-dropdown {
  position: absolute; top: 56px; right: 0; width: 280px; background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); z-index: 50;
}
.category-area:hover .category-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.category-dropdown ul { padding: 10px 0; max-height: 420px; overflow-y: auto; }
.category-dropdown a { display: flex; align-items: center; justify-content: space-between; padding: 11px 22px; color: var(--gray-800); font-size: .9rem; }
.category-dropdown a:hover { background: var(--primary-light); color: var(--primary); }

.main-menu { display: flex; align-items: stretch; margin-inline-start: 10px; }
.main-menu > li { position: relative; display: flex; align-items: stretch; }
.main-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 0 20px; color: #fff; font-weight: 600; font-size: .92rem; height: 56px; }
.main-menu > li > a:hover, .main-menu > li > a.active { color: var(--primary); }
.nav-phone { margin-inline-start: auto; display: flex; align-items: center; padding: 0 10px; }
.nav-phone a { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 400; }
.nav-phone a i { color: var(--primary); }

/* Mega menu */
.mega-parent { position: static; }
.mega-menu {
  position: absolute; top: 56px; right: 0; left: 0; background: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); z-index: 60; border-radius: 0 0 var(--radius) var(--radius);
}
.mega-parent:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-content { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 30px; padding: 32px; }
.mega-category-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.mega-category-list li a:hover { color: var(--primary); }
.mega-products { display: flex; flex-direction: column; gap: 4px; }
.mega-products a { padding: 8px 0; font-size: .9rem; color: var(--gray-700); }
.mega-products a:hover { color: var(--primary); padding-inline-start: 6px; }
.mega-image img { border-radius: var(--radius-sm); width: 100%; height: 100%; object-fit: cover; }

/* Mobile off-canvas menu */
.offcanvas-body .mobile-nav li a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--border); font-weight: 600; }
.mobile-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.mobile-contact a { display: flex; align-items: center; gap: 8px; background: var(--gray-100); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 700; }

@media (max-width: 991.98px) {
  .header-search, .main-nav { display: none; }
  .header-actions .call-cta span { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
  position: relative; overflow: hidden; padding: 90px 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--deep) 55%, #3d2a20 100%);
}

/* ---- layered wave background: three seamless-looping SVG bands, closest = fastest/brightest ---- */
.hero-waves { position: absolute; inset-inline: 0; bottom: 0; height: 46%; min-height: 140px; z-index: 0; pointer-events: none; overflow: hidden; line-height: 0; }
.hero-waves .wave {
  position: absolute; bottom: 0; left: 0; width: 200%; height: 100%;
  animation: heroWaveDrift linear infinite;
  will-change: transform;
}
/* each <svg> contains the wave path drawn twice, back to back — animating exactly one
   copy-width (-50%) makes the loop seamless with no visible seam or jump */
.hero-waves .wave-1 { fill: var(--primary); opacity: .5; animation-duration: 20s; }
.hero-waves .wave-2 { fill: var(--secondary); opacity: .35; animation-duration: 32s; animation-direction: reverse; }
.hero-waves .wave-3 { fill: var(--accent); opacity: .22; animation-duration: 46s; }
@keyframes heroWaveDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-waves .wave { animation: none; }
}
@media (max-width: 767.98px) {
  .hero-waves { height: 34%; min-height: 90px; }
}

.hero-section .hazard-strip {
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 14px; z-index: 1;
  background: repeating-linear-gradient(-45deg, var(--primary) 0 14px, var(--ink) 14px 28px);
}
.hero-section .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(var(--primary-vivid-rgb),.14); color: var(--primary-vivid);
  border: 1px solid rgba(var(--primary-vivid-rgb),.4); border-radius: 30px; padding: 8px 18px; font-size: .82rem; font-weight: 700; margin-bottom: 20px;
}
.hero-text h1 { color: #fff; font-size: 2.7rem; line-height: 1.35; margin-bottom: 18px; }
.hero-text h1 span { color: var(--primary-vivid); }
.hero-text p { color: var(--gray-400); font-size: 1.05rem; margin-bottom: 30px; max-width: 520px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; color: #fff; font-size: 1.6rem; font-weight: 900; }
.hero-stats .stat span { color: var(--gray-500); font-size: .82rem; }

/* ---- Bucket stage: parallax + breathing + sparkles ---- */
.hero-bucket-stage {
  position: relative;
  aspect-ratio: 6/5;
  display: flex; align-items: center; justify-content: center;
  perspective: 900px;
}
.hero-image img.hero-bucket-custom-img {
  border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover;
}

.hero-bucket-layer.hero-bucket-back {
  position: absolute; inset: 6%;
  background: radial-gradient(circle at 50% 45%, rgba(var(--primary-vivid-rgb),.35) 0%, rgba(var(--primary-vivid-rgb),0) 70%);
  border-radius: 50%;
  animation: heroGlowBreathe 4.5s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes heroGlowBreathe {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.12); opacity: 1; }
}

.hero-bucket-parallax {
  position: relative; z-index: 2;
  width: 78%; max-width: 520px;
  transition: transform .15s ease-out;
  will-change: transform;
}
.hero-bucket-svg {
  display: block; width: 100%; height: auto;
  animation: heroBucketBreathe 5s ease-in-out infinite;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.35));
}
@keyframes heroBucketBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bucket-svg, .hero-bucket-layer.hero-bucket-back { animation: none; }
}

/* Sparkles: small diamonds twinkling around the bucket */
.hero-sparkle {
  position: absolute; z-index: 3; pointer-events: none;
  width: 10px; height: 10px;
  background: var(--primary-vivid);
  clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
  opacity: 0;
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
}
.hero-sparkle.s1 { top: 14%; left: 18%; width: 14px; height: 14px; animation-delay: .2s; }
.hero-sparkle.s2 { top: 22%; right: 14%; width: 9px; height: 9px; animation-delay: 1.1s; }
.hero-sparkle.s3 { bottom: 28%; right: 10%; width: 12px; height: 12px; animation-delay: 1.9s; }
.hero-sparkle.s4 { bottom: 16%; left: 10%; width: 8px; height: 8px; animation-delay: .7s; }
.hero-sparkle.s5 { top: 6%; left: 48%; width: 10px; height: 10px; animation-delay: 2.4s; }
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(25deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sparkle { animation: none; opacity: .6; }
}

.hero-floating-card {
  position: absolute; z-index: 4; bottom: -24px; right: -10px; background: #fff; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.hero-floating-card i { font-size: 1.6rem; color: var(--primary); background: var(--primary-light); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-floating-card strong { display: block; font-size: .95rem; }
.hero-floating-card span { font-size: .78rem; color: var(--gray-600); }

/* ---- Tablet: tighten vertical rhythm, shrink + center the illustration stage ---- */
@media (max-width: 991.98px) {
  .hero-section { padding: 56px 0 50px; }
  .hero-section .row { flex-wrap: wrap; }
  .hero-section .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
  .hero-text { text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-text h1 { font-size: 2rem; }
  .hero-bucket-stage { aspect-ratio: 1/1; max-width: 460px; width: 100%; margin: 32px auto 0; }
  .hero-floating-card { display: none; }
  /* .hero-bucket-svg { width: 90%; } */
}
/* ---- Phone: hazard strip no longer competes with the (now centered) text; smaller stage & type ---- */
@media (max-width: 767.98px) {
  .hero-section { padding: 44px 0 36px; }
  .hero-section .hazard-strip { display: none; }
  .hero-text h1 { font-size: 1.6rem; margin-bottom: 14px; }
  .hero-text p { font-size: .95rem; margin-bottom: 24px; }
  .hero-badge { font-size: .76rem; padding: 7px 14px; margin-bottom: 16px; }
  .hero-buttons { gap: 10px; margin-bottom: 26px; }
  .hero-buttons .btn-orange, .hero-buttons .btn-outline-dark { flex: 1 1 auto; padding: 13px 18px; font-size: .88rem; }
  .hero-stats { gap: 18px 26px; }
  .hero-stats .stat strong { font-size: 1.3rem; }
  .hero-stats .stat span { font-size: .74rem; }
  .hero-bucket-stage { max-width: 340px; width: 88%; margin: 26px auto 0; }
  /* .hero-bucket-svg { width: 90%; } */
}

/* Section header */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.section-header .eyebrow { color: var(--primary); font-weight: 700; font-size: .82rem; letter-spacing: .5px; display: block; margin-bottom: 8px; }
.section-header h2 { font-size: 1.8rem; }
.section-header p { color: var(--gray-600); margin-top: 8px; max-width: 560px; }
.section-header > a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--primary); padding-bottom: 3px; }
.section-header > a:hover { color: var(--primary); }
.section-header.center { text-align: center; justify-content: center; flex-direction: column; align-items: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Categories
   ========================================================================== */
.categories-section { background: var(--white); }
.category-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--gray-100);
  aspect-ratio: 1/1; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.category-card img { width: 100%; height: 65%; object-fit: cover; }
.category-card .cat-name {
  position: absolute; bottom: 0; inset-inline: 0; background: #fff; padding: 14px 10px; text-align: center;
}
.category-card .cat-name h5 { font-size: .95rem; }
.category-card .cat-name span { font-size: .74rem; color: var(--gray-500); }

/* ==========================================================================
   Product cards & grids
   ========================================================================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.product-card {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); border-color: transparent; }
.discount-badge {
  position: absolute; top: 14px; right: 14px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800;
  padding: 5px 10px; border-radius: 20px; z-index: 2;
}
.product-flag {
  position: absolute; top: 14px; right: 14px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700;
  padding: 5px 10px; border-radius: 20px; z-index: 2;
}
.wishlist-btn {
  position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 50%; background: #fff;
  border: none; box-shadow: var(--shadow-sm); z-index: 2; display: flex; align-items: center; justify-content: center; color: var(--gray-600);
}
.wishlist-btn:hover { color: var(--primary); }
.product-thumb { aspect-ratio: 1/1; background: var(--gray-100); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: var(--transition); }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-rating { color: var(--accent); font-size: .78rem; }
.product-body h3 { font-size: .95rem; font-weight: 700; line-height: 1.5; }
.product-body h3 a:hover { color: var(--primary); }
.price-box { font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-top: auto; }
.price-box del { color: var(--gray-400); font-weight: 400; font-size: .85rem; margin-inline-start: 8px; }
.price-box ins { text-decoration: none; color: var(--primary); }
.btn-cart {
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--gray-100);
  color: var(--ink); border-radius: 30px; padding: 11px; font-weight: 700; font-size: .85rem; transition: var(--transition);
}
.btn-cart:hover { background: var(--primary); color: #fff; }

/* Mini product (popular products strip) */
.mini-product { display: block; text-align: center; }
.mini-product img {  margin: 0 auto;aspect-ratio: 1/1; object-fit: contain; background: var(--gray-100); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 10px; }
.mini-product h6 { font-size: .82rem; line-height: 1.5; margin-bottom: 4px; }
.mini-product span { font-weight: 800; color: var(--primary); font-size: .85rem; }

/* ==========================================================================
   About / promo / advantages
   ========================================================================== */
.about-strip { background: var(--white); }
.about-strip img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-strip .content p { color: var(--gray-600); line-height: 2; margin-bottom: 22px; }
.about-strip .check-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; }
.about-strip .check-list i { color: var(--primary); font-size: 1.1rem; }

.promo-banner { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; display: flex; align-items: center; }
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.promo-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,26,.88), rgba(20,22,26,.25)); z-index: 1; }
.promo-banner .promo-content { position: relative; z-index: 2; padding: 40px; color: #fff; max-width: 460px; }
.promo-banner .promo-content span { color: var(--primary); font-weight: 700; font-size: .82rem; }
.promo-banner .promo-content h3 { color: #fff; font-size: 1.5rem; margin: 10px 0 16px; }

.advantages { background: var(--ink); }
.adv-card { text-align: center; color: #fff; }
.adv-card i { font-size: 2.2rem; color: var(--primary); margin-bottom: 16px; display: block; }
.adv-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.adv-card p { color: var(--gray-500); font-size: .88rem; margin: 0; }

/* ==========================================================================
   Blog cards (homepage teaser + archive)
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.blog-image { aspect-ratio: 16/10; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-image img { transform: scale(1.08); }
.blog-content { padding: 20px; }
.blog-meta { display: flex; gap: 12px; font-size: .78rem; color: var(--gray-500); margin-bottom: 10px; }
.blog-meta span { display: inline-flex; align-items: center; gap: 4px; }
.blog-content h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.5; }
.blog-content h3 a:hover { color: var(--primary); }
.blog-content p { color: var(--gray-600); font-size: .88rem; margin-bottom: 14px; }
.read-more { color: var(--primary); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   Contact CTA banner
   ========================================================================== */
.contact-banner { background: var(--ink); }
.contact-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.contact-box h2 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.contact-box p { color: var(--gray-500); margin: 0; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Page header (breadcrumb strip used on shop/product/contact/about pages)
   ========================================================================== */
.page-header { background: var(--ink); padding: 40px 0; }
.page-header h1 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.breadcrumb-nav { display: flex; align-items: center; gap: 8px; color: var(--gray-500); font-size: .85rem; }
.breadcrumb-nav a { color: var(--gray-300); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav i { font-size: .7rem; }

/* Single-post variant: soft radial glow + category chip above the title */
.page-header-post {
    position: relative; overflow: hidden; padding: 46px 0 40px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--deep) 100%);
}
.page-header-post::before {
    content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-vivid-rgb),.16) 0%, rgba(var(--primary-vivid-rgb),0) 70%);
    top: -220px; inset-inline-end: -80px; pointer-events: none;
}
.page-header-post .container { position: relative; z-index: 1; }
.page-header-post h1 { font-size: 1.9rem; max-width: 780px; }
.page-header-post-cat {
    display: inline-flex; align-items: center; gap: 6px; background: rgba(var(--primary-vivid-rgb),.14);
    color: var(--primary-vivid); border: 1px solid rgba(var(--primary-vivid-rgb),.4); border-radius: 30px;
    padding: 6px 16px; font-size: .78rem; font-weight: 700; margin-bottom: 14px;
}
.page-header-post-cat:hover { background: rgba(var(--primary-vivid-rgb),.24); }

/* ==========================================================================
   Shop / archive page
   ========================================================================== */
.shop-section { padding: 50px 0 80px; }
.filter-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.filter-widget h5 { font-size: .95rem; margin-bottom: 16px; }
.filter-list li { border-bottom: 1px dashed var(--border); }
.filter-list li:last-child { border-bottom: 0; }
.filter-list a { display: flex; justify-content: space-between; padding: 10px 0; font-size: .9rem; color: var(--gray-700); }
.filter-list a:hover, .filter-list a.active { color: var(--primary); }
.filter-list a span { color: var(--gray-500); font-size: .8rem; }
.sidebar-banner { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-align: center; margin-bottom: 22px; }
.sidebar-banner img { min-height: 220px; object-fit: cover; }
.sidebar-banner span { position: absolute; top: 20px; left: 0; right: 0; color: var(--white); font-weight: 700; padding: 0 20px; }
.sidebar-banner strong { position: absolute; bottom: 18px; left: 0; right: 0; color: var(--white); font-size: .9rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; background: var(--white); padding: 14px 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.shop-toolbar p { margin: 0; font-size: .9rem; }
.shop-toolbar-actions .form-select { width: auto; border-radius: 30px; }

/* ==========================================================================
   Single product page
   ========================================================================== */
.product-single-section { padding: 50px 0 80px; }
.product-gallery .swiper-slide img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--gray-100); border-radius: var(--radius); }
.productThumbs { margin-top: 12px; }
.productThumbs .swiper-slide { opacity: .5; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; }
.productThumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--primary); }
.productThumbs img { aspect-ratio: 1/1; object-fit: contain; background: var(--gray-100); }

.product-info .product-sku { color: var(--gray-500); font-size: .82rem; }
.product-info h1 { font-size: 1.6rem; margin: 8px 0 14px; }
.product-rating-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.stock-status.in-stock { color: var(--success); font-weight: 700; font-size: .85rem; }
.stock-status.out-of-stock { color: var(--danger); font-weight: 700; font-size: .85rem; }
.product-info .price-box { font-size: 1.7rem; margin-bottom: 18px; }
.product-short-desc { color: var(--gray-600); line-height: 2; margin-bottom: 24px; }
.single-add-to-cart-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.single-add-to-cart-wrap .quantity input { width: 70px; text-align: center; border: 1px solid var(--gray-300); border-radius: 30px; padding: 12px; font-family: var(--font-main); }
.single_add_to_cart_button { background: var(--primary); color: #fff; border: none; border-radius: 30px; padding: 14px 34px; font-weight: 700; }
.single_add_to_cart_button:hover { background: var(--primary-dark); }
.buy-now-row { margin-bottom: 24px; }
.product-meta { border-top: 1px solid var(--border); padding-top: 16px; }
.product-meta li { font-size: .88rem; color: var(--gray-600); margin-bottom: 8px; }
.product-meta a { color: var(--primary); }

.product-tabs { margin-top: 50px; }
.product-tabs .nav-tabs { border-bottom: 2px solid var(--border); }
.product-tabs .nav-link { border: none; color: var(--gray-600); font-weight: 700; padding: 12px 22px; }
.product-tabs .nav-link.active { color: var(--primary); border-bottom: 2px solid var(--primary); background: transparent; }
.product-tabs .tab-content { padding-top: 26px; color: var(--gray-700); line-height: 2; }
.spec-table th { width: 220px; background: var(--gray-100); font-weight: 700; }
.spec-table th, .spec-table td { padding: 12px 16px; border: 1px solid var(--border); font-size: .9rem; }

.related-header { margin-top: 50px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--gray-400); padding-top: 60px; }
.footer-widget h5 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer-widget p { font-size: .88rem; line-height: 1.9; color: var(--gray-500); }
.footer-widget ul li { margin-bottom: 10px; }
.footer-widget ul a { font-size: .88rem; color: var(--gray-400); }
.footer-widget ul a:hover { color: var(--primary); }
.footer-widget .contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; }
.footer-widget .contact-list i { color: var(--primary); margin-top: 3px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social a:hover { background: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
.footer-bottom a { color: var(--primary); }

.floating-actions { position: fixed; bottom: 24px; left: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.floating-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); font-size: 1.2rem; color: #fff; }
.floating-btn.phone { background: var(--primary); padding-top: 5px;}
.floating-btn.whatsapp { background: #25d366; }
.floating-btn.top { background: var(--ink); padding-top: 5px;}


/* Alerts (contact/service forms) */
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid var(--success-border); border-radius: var(--radius-sm); padding: 14px 18px; }
.alert-danger { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger-border); border-radius: var(--radius-sm); padding: 14px 18px; }

/* Section wrapper spacing reused across secondary pages */
.contact-section, .about-section, .cart-section, .checkout-section, .service-section { padding: 50px 0 80px; }
.contact-info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; height: 100%; }
.contact-info-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: 12px; display: block; }
.contact-form input, .contact-form textarea, .form-control {
  border: 1px solid var(--gray-300); border-radius: var(--radius-sm); padding: 12px 16px; font-family: var(--font-main); width: 100%;
}
.contact-form .btn-red, .contact-form .btn-orange { width: 100%; }

/* Scroll reveal + sticky header state */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
#site-header.scrolled { box-shadow: var(--shadow-md); }
#goTop { display: none; }

/* ==========================================================================
   Blog archive ("وبلاگ") & single post pages
   ========================================================================== */
.blog-page-section { padding: 50px 0 80px; }
.blog-page-section .blog-grid { margin-bottom: 36px; }

.recent-post-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.recent-post-item:last-child { border-bottom: none; }
.recent-post-item img { width: 66px; height: 66px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.recent-post-item h6 { font-size: 0.85rem; margin: 0 0 4px; line-height: 1.5; color: var(--ink); }
.recent-post-item span { font-size: 0.75rem; color: var(--gray-500); }

.pagination-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pagination-nav .page-numbers {
    display: flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 10px; border-radius: 50%;
    background: var(--gray-100); color: var(--ink); font-weight: 600;
    transition: var(--transition);
}
.pagination-nav .page-numbers.current,
.pagination-nav .page-numbers:hover { background: var(--primary); color: #fff; }
.pagination-nav .page-numbers.dots { background: transparent; }

/* Single post — editorial redesign */
.single-post-section { padding: 50px 0 80px; }

/* Elevated article card: image sits full-bleed on top, body content gets generous padding */
.post-article-card {
    display: block; background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-md); border: 1px solid var(--border); overflow: hidden;
}
.post-article-body { padding: 36px 40px 30px; }
@media (max-width: 767.98px) {
    .post-article-body { padding: 26px 20px 22px; }
}

.post-article-card .single-post-image {
    margin-bottom: 0; border-radius: 0; box-shadow: none;
}
.single-post-image {
    position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 30px;
    aspect-ratio: 16/8; box-shadow: var(--shadow-md);
}
.single-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.single-post-image:hover img { transform: scale(1.03); }
.single-post-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(35,32,32,0) 55%, rgba(35,32,32,.55) 100%);
    pointer-events: none;
}

.single-post-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 26px;
    padding-bottom: 22px; border-bottom: 1px dashed var(--border);
}
.single-post-meta span {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .84rem; color: var(--gray-600); font-weight: 600;
}
.single-post-meta span i { color: var(--primary); font-size: .95rem; }
.single-post-meta a { color: var(--primary); font-weight: 700; }

.single-post-content {
    font-size: 1.02rem; line-height: 2.05; color: var(--gray-700);
}
.single-post-content > p:first-of-type::first-letter {
    font-family: var(--font-main); font-size: 3.4rem; font-weight: 900; color: var(--primary);
    float: right; line-height: .8; margin: 6px 0 0 12px; padding-top: 4px;
}
.single-post-content h2, .single-post-content h3 {
    margin: 32px 0 16px; font-weight: 800; color: var(--ink); position: relative; padding-inline-start: 16px;
}
.single-post-content h2::before, .single-post-content h3::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 6px; bottom: 6px; width: 4px;
    border-radius: 4px; background: linear-gradient(180deg, var(--primary), var(--primary-vivid));
}
.single-post-content p { margin-bottom: 18px; }
.single-post-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 10px 0; box-shadow: var(--shadow-sm); }
.single-post-content ul, .single-post-content ol { margin: 0 0 18px; padding-inline-start: 22px; }
.single-post-content ul li::marker { color: var(--primary); }
.single-post-content blockquote {
    position: relative; border-inline-start: 4px solid var(--primary);
    background: linear-gradient(120deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 20px 24px; border-radius: var(--radius-sm); margin: 26px 0; font-style: normal;
    font-weight: 600; color: var(--deep);
}
.single-post-content blockquote::before {
    content: '\201C'; font-family: Georgia, serif; font-size: 2.6rem; color: var(--primary);
    position: absolute; top: -6px; inset-inline-start: 16px; line-height: 1; opacity: .55;
}

.post-tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 22px;
    padding-top: 24px; border-top: 1px dashed var(--border);
}
.post-tags span:first-child { font-weight: 700; color: var(--ink); font-size: .85rem; }
.post-tags a {
    background: var(--gray-100); border: 1px solid transparent; border-radius: 30px; padding: 7px 16px;
    font-size: 0.82rem; color: var(--gray-800); transition: var(--transition);
}
.post-tags a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

.post-share { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; }
.post-share span { font-weight: 700; color: var(--ink); font-size: .85rem; }
.post-share a {
    width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--gray-100); color: var(--gray-800); transition: var(--transition); box-shadow: var(--shadow-sm);
}
.post-share a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

.author-box {
    display: flex; gap: 20px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--ink) 0%, var(--deep) 100%);
    border-radius: var(--radius); padding: 26px; margin-bottom: 30px; align-items: center;
}
.author-box::before {
    content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%;
    background: rgba(var(--primary-vivid-rgb),.16); top: -60px; inset-inline-end: -50px;
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--primary-vivid); position: relative; z-index: 1; }
.author-box-label {
    display: block; font-size: .72rem; font-weight: 700; color: var(--primary-vivid);
    text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; position: relative; z-index: 1;
}
.author-box h6 { margin: 0 0 6px; font-weight: 800; color: #fff; position: relative; z-index: 1; }
.author-box p { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,.7); position: relative; z-index: 1; }

.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 4px; }
.post-nav a {
    flex: 1; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 18px 22px; transition: var(--transition); position: relative; overflow: hidden;
}
.post-nav a::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
    background: var(--primary); transform: scaleY(0); transition: var(--transition);
}
.post-nav a:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.post-nav a:hover::before { transform: scaleY(1); }
.post-nav span { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.post-nav .next-post { text-align: left; }

.related-posts-title {
    font-weight: 800; font-size: 1.3rem; margin: 44px 0 20px; color: var(--ink);
    display: flex; align-items: center; gap: 10px;
}
.related-posts-title::before { content: ''; width: 5px; height: 24px; border-radius: 4px; background: linear-gradient(180deg, var(--primary), var(--primary-vivid)); display: inline-block; }

.comments-area { margin-top: 40px; }
.comments-title { font-weight: 800; font-size: 1.2rem; margin-bottom: 20px; color: var(--ink); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment-body { background: var(--gray-100); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.comment-respond input, .comment-respond textarea {
    width: 100%; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    padding: 12px 16px; font-family: var(--font-main); margin-bottom: 14px;
}
.comment-respond .form-submit input {
    width: auto; background: var(--primary); color: #fff; border: none; border-radius: 30px;
    padding: 12px 28px; font-weight: 700; cursor: pointer;
}

/* Comment list detail + reply form heading (comments.php) */
.comment-list .comment-body { display: flex; gap: 14px; align-items: flex-start; }
.comment-list .comment-body .avatar { border-radius: 50%; flex-shrink: 0; }
.comment-list .comment-body .comment-meta { flex: 1; }
.comment-list .comment-author .fn { font-weight: 800; color: var(--ink); font-style: normal; }
.comment-list .comment-metadata { font-size: .78rem; color: var(--gray-500); margin-bottom: 8px; }
.comment-list .comment-metadata a { color: var(--gray-500); }
.comment-list .comment-content p { color: var(--gray-700); margin: 0 0 8px; line-height: 1.9; }
.comment-list .reply a {
    display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700;
    color: var(--primary); margin-top: 6px;
}
.comment-list ol.children { list-style: none; margin: 16px 0 0; padding-inline-start: 40px; }
.comment-respond { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-top: 30px; }
.comment-reply-title { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 18px; display: block; }
.comment-reply-title small a { font-size: .8rem; font-weight: 600; color: var(--primary); margin-inline-start: 10px; }
.comment-respond .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: .85rem; color: var(--gray-600); }
.comment-respond .comment-form-cookies-consent input { width: auto; }
.comment-respond .form-submit input {
    background: var(--primary); color: #fff; border: none; border-radius: 30px;
    padding: 12px 30px; font-weight: 700; cursor: pointer; margin-top: 14px; transition: var(--transition);
}
.comment-respond .form-submit input:hover { background: var(--primary-dark); }
.post-nav-pages { display: flex; gap: 8px; margin: 24px 0; flex-wrap: wrap; }
.post-nav-pages a, .post-nav-pages span {
    min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--gray-100); font-weight: 700; color: var(--ink);
}
.post-nav-pages span.current { background: var(--primary); color: #fff; }


.coupon .btn-outline-dark {
  color: var(--primary-dark);
}

/* ==========================================================================
   Contact page — breadcrumb, dark info panel, map card & Contact Form 7
   (previously unstyled; also used by generic pages via page.php)
   ========================================================================== */

/* Breadcrumb strip */
#breadcrump { background: var(--deep); padding: 14px 0; }
#breadcrump .breadcrumb { background: transparent; margin: 0; padding: 0; display: inline-flex; }
#breadcrump .breadcrumb-item { font-size: .85rem; color: rgba(255,255,255,.65); }
#breadcrump .breadcrumb-item a { color: var(--accent-light); font-weight: 600; }
#breadcrump .breadcrumb-item a:hover { color: var(--secondary); }
#breadcrump .breadcrumb-item.active { color: #fff; font-weight: 700; }
#breadcrump .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* Page wrapper — warm wash behind the card, not flat white */
#contact-page {
  padding: 46px 0 80px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 260px);
}
.post_top.contact_content.post_info {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.post_top.contact_content .card-title {
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 55%, var(--accent) 100%);
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
}
.post_top.contact_content .card-title h2 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0;
  position: relative;
  z-index: 1;
}
.post_top.contact_content .card-title::before {
  content: "";
  position: absolute; inset: -40% -10% auto auto; width: 220px; height: 220px;
  background: rgba(255,255,255,.12); border-radius: 50%;
}
.post_top.contact_content .card-title::after {
  content: "";
  position: absolute; inset-inline-start: 32px; bottom: -3px;
  width: 56px; height: 6px; border-radius: 6px;
  background: var(--deep);
}
.post_top.contact_content .card-body.container_contact { padding: 32px; background: var(--gray-100); }
/* generic (non-contact-page) post_top usage from page.php keeps a simpler look */
.post_top.contact_content.single-content { background: transparent; border: none; box-shadow: none; padding: 0; }

/* ---- Left panel: dark, warm, holds contact details + form ---- */
.contact-left-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, var(--deep) 100%);
  border-radius: var(--radius);
  padding: 30px 28px;
  height: 100%;
}
.contact-left-panel .blob {
  position: absolute; border-radius: 50%; filter: blur(4px); opacity: .35; pointer-events: none;
}
.contact-left-panel .blob-a { width: 160px; height: 160px; background: var(--secondary); top: -60px; inset-inline-end: -50px; }
.contact-left-panel .blob-b { width: 120px; height: 120px; background: var(--accent); bottom: -40px; inset-inline-start: -40px; opacity: .25; }

/* Info rows (phone / hours / address) */
.contact-detail-row {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-detail-row:last-of-type { border-bottom: none; }
.contact-icon-badge {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; box-shadow: var(--shadow-sm);
}
.contact-detail-row:nth-of-type(3n+1) .contact-icon-badge { background: var(--primary); }
.contact-detail-row:nth-of-type(3n+2) .contact-icon-badge { background: var(--accent); }
.contact-detail-row:nth-of-type(3n+3) .contact-icon-badge { background: var(--secondary); }
.contact-detail-text { padding-top: 4px; }
.post_info_title { font-weight: 700; color: #fff; margin-inline-end: 4px; }
.contact_info { color: rgba(255,255,255,.68); }

/* Contact form panel — sits inside the dark card, so keep controls light */
.form-div {
  position: relative; z-index: 1;
  margin-top: 26px; padding-top: 32px !important; border-top: 2px solid rgba(255,255,255,.14);
}
.contact-form-title {
  font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.contact-form-title::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block;
}

/* Contact Form 7 — default markup */
#form_contact .wpcf7-form { display: flex; flex-wrap: wrap; gap: 16px; }
#form_contact .wpcf7-form p { flex: 1 1 100%; margin: 0; }
#form_contact label { display: block; font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 6px; }
#form_contact .wpcf7-form-control-wrap { display: block; }

#form_contact input[type="text"],
#form_contact input[type="email"],
#form_contact input[type="tel"],
#form_contact input[type="number"],
#form_contact input[type="url"],
#form_contact select,
#form_contact textarea,
#form_contact .wpcf7-form-control {
  width: 100%;
  border: 1.5px solid transparent;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-main);
  font-size: .92rem;
  color: var(--ink);
  transition: var(--transition);
}
#form_contact textarea { min-height: 130px; resize: vertical; }
#form_contact input:focus,
#form_contact select:focus,
#form_contact textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .28);
}

#form_contact input[type="submit"],
#form_contact .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff; border: none; border-radius: 30px;
  padding: 14px 40px; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
#form_contact input[type="submit"]:hover,
#form_contact .wpcf7-submit:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }

#form_contact .wpcf7-spinner { margin-inline-start: 10px; }
#form_contact .wpcf7-not-valid-tip { color: var(--accent-light); font-size: .8rem; margin-top: 6px; display: block; }
#form_contact .wpcf7-form-control.wpcf7-not-valid { border-color: var(--danger); }
#form_contact .wpcf7-response-output {
  flex: 1 1 100%; margin: 0 !important; border-radius: var(--radius-sm) !important;
  padding: 14px 18px !important; font-size: .88rem;
  color: var(--bs-danger-bg-subtle) !important;
}
#form_contact .wpcf7-mail-sent-ok {
  border-color: var(--success-border) !important; background: var(--success-light); color: var(--success);
}
#form_contact .wpcf7-validation-errors,
#form_contact .wpcf7-mail-sent-ng {
  border-color: var(--danger-border) !important; background: var(--danger-light); color: var(--danger);
}
#form_contact .wpcf7-acceptance label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: rgba(255,255,255,.85); }
#form_contact .wpcf7-acceptance input { width: auto; }

/* ---- Right panel: map card ---- */
.contact-map-panel {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 18px; height: 100%; border: 3px solid var(--accent-light);
}
.contact-map-label {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--deep); font-size: .95rem; margin-bottom: 14px;
}
.contact-map-label i { color: var(--accent); font-size: 1.1rem; }
.contact-map-frame {
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
  height: calc(100% - 34px); min-height: 300px;
}
.contact-map-frame iframe { width: 100%; height: 100%; min-height: 300px; display: block; }

@media (max-width: 991.98px) {
  .post_top.contact_content .card-title { padding: 24px; }
  .post_top.contact_content .card-body.container_contact { padding: 22px; }
  .contact-left-panel { padding: 26px 22px; }
  .contact-map-panel { margin-top: 28px; min-height: 280px; }
  .contact-map-frame, .contact-map-frame iframe { min-height: 240px; }
}