@font-face {
  font-family: "AnjomanMax";
  src:
    url("../fonts/AnjomanMaxVF.woff2") format("woff2"),
    url("../fonts/AnjomanMaxVF.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
}

/* =======================
   Colors
   ======================= */
:root {
  --color-primary: #9f8561;
  --color-secondary: #5e4420;
  --color-success: #ffa800;
  --color-warning: #ff9621;
  --color-danger: #fff200;
  --color-info: #17a2b8;
  --color-white: #ffffff;
  --color-light: #f5f5f5;
  --color-gray: #b6b2b2;
  --color-gray-navs: #eeeeee;
  --color-dark: #212529;
  --color-black: #000000;
  --color-red: #f90000;
  --color-red-read-more: #ba0404;
  --color-search-box: #e7e3e3;
  --color-card-article-cat: #e6d8c6;
  --color-product-breadcrumb-background: #e1e1e1;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --text-primary: var(--color-dark);
  --text-secondary: var(--color-gray);
  --text-inverse: var(--color-white);
  --bg-page: var(--color-light);
  --bg-surface: var(--color-white);
  --bg-dark: var(--color-dark);
  --border-light: var(--color-light);
  --border-default: var(--color-gray);
  --border-strong: var(--color-secondary);
  --accent-primary: var(--color-primary);
  --accent-secondary: var(--color-secondary);
  --selection-bg: var(--color-success);
  --selection-color: var(--color-black);
  --color-text: var(--color-dark);
  --color-link: var(--color-primary);
  --color-link-hover: var(--color-secondary);
  --color-background: var(--color-white);

  /* =======================
     Typography
     ======================= */
  --font-family-base: "AnjomanMax", sans-serif;
  --font-family-heading: "AnjomanMax", sans-serif;

  /* موبایل‌اول: اندازه پایه کوچکتر */
  --font-size-base: 14px;
  --line-height-heading: 1.4;
  --line-height-base: 1.7;

  --fs-h1: 1.75rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.25rem;
  --fs-h4: 1.125rem;
  --fs-h5: 1rem;
  --fs-h6: 0.875rem;
  --fs-body: 0.875rem;
  --fs-sm: 0.75rem;
  --fs-lg: 1rem;
  --fs-xl: 1.125rem;

  /* =======================
     Spacing
     ======================= */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;

  /* =======================
     Borders
     ======================= */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --border-width: 1px;
  --border-color: #dee2e6;
  --color-primary-hover: #8a7353;
  --color-primary-active: #bd9f78;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  width: 100%;
  overflow-x: hidden;
}

/* =======================
   Headings
   ======================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-heading);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
}
h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
}
h5 {
  font-size: var(--fs-h5);
  font-weight: 600;
}
h6 {
  font-size: var(--fs-h6);
  font-weight: 500;
}

/* =======================
   Paragraph & Links
   ======================= */
p {
  font-size: var(--fs-body);
  font-weight: 400;
  /* line-height: var(--line-height-base); */
  margin-bottom: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover {
  color: var(--color-link-hover);
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Utilities --- */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}

.mt-sm {
  margin-top: var(--spacing-sm);
}
.mb-sm {
  margin-bottom: var(--spacing-sm);
}
.mt-md {
  margin-top: var(--spacing-md);
}
.mb-md {
  margin-bottom: var(--spacing-md);
}
.mt-lg {
  margin-top: var(--spacing-lg);
}
.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.p-sm {
  padding: var(--spacing-sm);
}
.pb-sm {
  padding-bottom: var(--spacing-sm);
}
.pt-sm {
  padding-top: var(--spacing-sm);
}
.p-md {
  padding: var(--spacing-md);
}
.pb-md {
  padding-bottom: var(--spacing-md);
}
.pt-md {
  padding-top: var(--spacing-md);
}
.p-lg {
  padding: var(--spacing-lg);
}
.pb-lg {
  padding-bottom: var(--spacing-lg);
}
.pt-lg {
  padding-top: var(--spacing-lg);
}

/* --- Form Elements --- */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
button:hover {
  border-color: var(--color-link-hover);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: var(--spacing-sm);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
}
.col {
  flex: 1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  user-select: none;
  border: var(--border-width) solid transparent;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--fs-body);
  line-height: var(--line-height-base);
  border-radius: var(--radius-sm);
  transition:
    color 0.15s,
    background-color 0.15s,
    border-color 0.15s;
}

.btn-primary {
  color: var(--color-white);
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.btn-primary:hover {
  background-color: var(--color-link-hover);
  border-color: var(--color-link-hover);
  color: var(--color-white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.top-of-nav {
  gap: 1.5rem;
  font-size: var(--fs-xs);
  padding: 0 0.5rem;
  height: 40px;
}
.top-of-nav a {
  font-size: 0.75rem;
}

/* navbar */
.my-navbar {
  height: 52px;
  padding: 0 0.75rem;
}
.navbar-brand {
  font-size: 1rem;
}
.nav-actions li {
  height: 48px;
  display: flex;
  align-items: center;
}
.nav-actions li button {
  display: flex;
  height: 100%;
  padding: 0.5rem;
  border-radius: 0;
  color: var(--color-dark);
  background-color: transparent;
}
.nav-actions li button:hover {
  background-color: rgba(255, 168, 0, 0.5);
  color: var(--color-secondary);
}
/* hamburger menu styles========================= */

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-links li {
  width: 100%;
}

.mobile-nav-links li a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 55px;

  color: var(--color-black);
  font-size: var(--fs-body);
  font-weight: 500;

  border-bottom: 1px solid var(--color-gray);
  transition: all 0.3s ease;
}

.mobile-nav-links li a:hover {
  background-color: rgba(255, 168, 0, 0.5);
  color: var(--color-secondary);
}

/* search */
.search-area {
  margin-top: 1rem;
  padding: 0 0.75rem;
}
.search-input {
  gap: 0.5rem;
}
.accurate-search-input {
  display: none; /* hide exact-size search on small screens */
}
.accurate-search-boxes {
  flex-direction: column;
  align-items: center;
}
.approximate-inputs {
  width: 100%;
  max-width: 320px;
}
.two-section-for-serch {
  padding: 0;
}
.approximate-stuff {
  gap: 1rem;
}
.approximate-paragraphs {
  flex-direction: column;
}

.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.nav-links {
  display: none;
}
.top-of-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  color: var(--color-light);
  background-color: var(--color-primary-hover);
  width: 100%;
  height: 44px;
  overflow: hidden;
}
.top-of-nav a {
  color: inherit;
  font-size: var(--fs-body);
}

.my-navbar {
  display: flex;
  background-color: var(--color-gray-navs);
  width: 100%;
  height: 48px;
  border-bottom: 2px solid var(--color-gray);
  justify-content: space-around;
  align-items: center;
}

ul {
  display: flex;
  list-style-type: none;
  margin-bottom: 0;
  align-items: center;
}

ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-black);
  font-size: var(--fs-body);
  width: 100px;
  height: 48px;
  border-left: 1px solid var(--color-white);
  border-right: 1px solid var(--color-gray);
}
.contact-btn {
  border-left: none;
}
.home-btn {
  border-right: none;
}

.my-profile {
  display: flex;
  border: none;
  align-items: center;
}
.ui-btn-account {
  display: flex;
  border: none;
  align-items: center;
}
ul li a:hover {
  color: var(--color-secondary);
  background-color: rgba(255, 168, 0, 0.5);
}

.sell-number {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-danger);
  margin-left: 8px;
  background-color: var(--color-secondary);
  width: 40px;
  height: 40px;
  border-radius: 2px;
}
.sell-number p {
  font-size: 18px;
  font-weight: 700;
}

.cart {
  display: flex;
  align-items: center;
  margin: 0 8px;
}
.cart i {
  font-size: 20px;
}
/* ==========================================
   Mobile Header & Hamburger Menu
   ========================================== */

.top-of-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--color-primary-hover);
}

.top-of-nav a {
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ==========================
   Navbar
   ========================== */

.my-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  height: 56px;
  width: 100%;

  padding: 0 1rem;

  background-color: var(--color-gray-navs);

  border-bottom: 1px solid var(--gray-300);

  position: relative;
  z-index: 100;
}

.navbar-brand {
  display: block;
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 700;
}

/* ==========================
   Hamburger Button
   ========================== */

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 44px;
  height: 44px;

  background: transparent;
  border: none;

  cursor: pointer;

  padding: 0;

  position: relative;

  z-index: 1200;
}

.ham-line {
  position: absolute;

  width: 24px;
  height: 2px;

  background-color: var(--color-dark);

  border-radius: 999px;

  right: 10px;

  transition: all 0.3s ease;
}

.ham-line:nth-child(1) {
  top: 13px;
}

.ham-line:nth-child(2) {
  top: 21px;
}

.ham-line:nth-child(3) {
  top: 29px;
}

/* ==========================
   Active State (X)
   ========================== */

.hamburger.active .ham-line:nth-child(1) {
  transform: rotate(45deg);
  top: 21px;
}

.hamburger.active .ham-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .ham-line:nth-child(3) {
  transform: rotate(-45deg);
  top: 21px;
}

/* ============================================================
   HSB MOBILE DRAWER — UI KIT REDESIGN
   ============================================================ */

.mobile-menu {
    position: fixed;

    top: 0;
    right: 0;

    width: min(86vw, 360px);
    height: 100dvh;

    display: flex;
    flex-direction: column;

    padding: 0;

    background:
        var(--color-white);

    border: 0 !important;

    box-shadow:
        -18px 0 50px
        rgba(20, 27, 32, 0.16);

    z-index: 1300;

    overflow: hidden;

    transform:
        translateX(105%);

    visibility: hidden;

    transition:
        transform 0.28s ease,
        visibility 0.28s ease;
}


.mobile-menu.open {
    transform:
        translateX(0);

    visibility: visible;
}


/* ------------------------------------------------------------
   Drawer header / logo
   ------------------------------------------------------------ */

.hsb-mobile-menu__header {
    flex: 0 0 auto;

    min-height: 84px;

    padding:
        14px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    background:
        color-mix(
            in srgb,
            var(--color-gray-navs) 72%,
            #fff
        );

    border-bottom:
        1px solid
        rgba(30, 37, 43, 0.08);
}


.hsb-mobile-menu__brand {
    min-width: 0;
    height: 54px;

    display: flex;
    align-items: center;

    flex: 1 1 auto;
}


.hsb-mobile-menu__brand
.custom-logo-link {
    display: flex;
    align-items: center;

    width: auto !important;
    height: 100% !important;

    margin: 0;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;
}


.hsb-mobile-menu__brand
.custom-logo {
    display: block;

    width: auto !important;
    height: 100% !important;

    max-width: 190px;
    max-height: 100%;

    object-fit: contain;
    object-position: right center;
}


.hsb-mobile-menu__brand-fallback {
    width: auto !important;
    height: auto !important;

    padding: 0 !important;

    border: 0 !important;

    color:
        var(--color-secondary);

    font-size: 1rem;
    font-weight: 800;

    text-decoration: none;
}


/* ------------------------------------------------------------
   Drawer close button
   ------------------------------------------------------------ */

.hsb-mobile-menu__close {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(30, 37, 43, 0.10);

    border-radius: 11px;

    background: #fff;

    color:
        var(--color-dark);

    box-shadow:
        0 4px 14px
        rgba(20, 27, 32, 0.06);

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


.hsb-mobile-menu__close i {
    font-size: 19px;
    line-height: 1;
}


.hsb-mobile-menu__close:hover {
    background:
        var(--color-secondary);

    border-color:
        var(--color-secondary);

    color: #fff;

    transform:
        translateY(-1px);
}


/* ------------------------------------------------------------
   Drawer body
   ------------------------------------------------------------ */

.hsb-mobile-menu__body {
    flex: 1 1 auto;

    min-height: 0;

    padding:
        16px 14px 24px;

    overflow-y: auto;

    overscroll-behavior: contain;
}


/* ------------------------------------------------------------
   Navigation list
   ------------------------------------------------------------ */

.mobile-nav-links {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 7px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.mobile-nav-links > li {
    width: 100%;

    margin: 0;
    padding: 0;

    border: 0 !important;
}


/*
 * Override the old global:
 * ul li a { width / height / left-right borders }
 */
.mobile-nav-links > li > a {
    position: relative;

    width: 100% !important;
    min-height: 54px;
    height: auto !important;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding:
        10px 15px !important;

    margin: 0;

    border: 0 !important;
    border-radius: 11px;

    background:
        transparent;

    color:
        var(--color-dark);

    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.6;

    text-align: right;
    text-decoration: none;

    box-shadow: none;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


/* Hover / keyboard focus */

.mobile-nav-links > li > a:hover,
.mobile-nav-links > li > a:focus-visible {
    padding-right:
        15px !important;

    background:
        color-mix(
            in srgb,
            var(--color-secondary) 9%,
            #fff
        );

    color:
        var(--color-secondary);

    box-shadow:
        inset 0 0 0 1px
        color-mix(
            in srgb,
            var(--color-secondary) 18%,
            transparent
        );

    transform:
        translateX(-2px);

    outline: none;
}


/* ------------------------------------------------------------
   Current / active page
   ------------------------------------------------------------ */

.mobile-nav-links
> li.current-menu-item
> a,

.mobile-nav-links
> li.current_page_item
> a,

.mobile-nav-links
> li.current-menu-ancestor
> a,

.mobile-nav-links
> li.current_page_ancestor
> a {
    background:
        color-mix(
            in srgb,
            var(--color-secondary) 14%,
            #fff
        );

    color:
        var(--color-secondary);

    font-weight: 800;

    box-shadow:
        inset 0 0 0 1px
        color-mix(
            in srgb,
            var(--color-secondary) 26%,
            transparent
        );
}


/* Active item marker — no side border */

.mobile-nav-links
> li.current-menu-item
> a::before,

.mobile-nav-links
> li.current_page_item
> a::before,

.mobile-nav-links
> li.current-menu-ancestor
> a::before,

.mobile-nav-links
> li.current_page_ancestor
> a::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    margin-left: 9px;

    border-radius: 50%;

    background:
        var(--color-secondary);

    box-shadow:
        0 0 0 4px
        color-mix(
            in srgb,
            var(--color-secondary) 12%,
            transparent
        );
}


/* Explicitly remove every old menu divider. */

.mobile-nav-links > li,
.mobile-nav-links > li > a,
.mobile-nav-links > li:last-child > a {
    border-right: 0 !important;
    border-left: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
}


/* ------------------------------------------------------------
   Existing responsive controls
   ------------------------------------------------------------ */

.menu-and-cart {
    display: flex;
}

.nav-actions {
    display: none;
}


/* ------------------------------------------------------------
   Overlay
   ------------------------------------------------------------ */

.mobile-overlay {
    position: fixed;

    inset: 0;

    z-index: 1250;

    background:
        rgba(20, 27, 32, 0.46);

    -webkit-backdrop-filter:
        blur(2px);

    backdrop-filter:
        blur(2px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}


body.hsb-mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
}


/* WordPress admin bar */

body.admin-bar
.mobile-menu {
    top: 32px;

    height:
        calc(100dvh - 32px);
}


@media (max-width: 782px) {

    body.admin-bar
    .mobile-menu {
        top: 46px;

        height:
            calc(100dvh - 46px);
    }
}


/* Small phones */

@media (max-width: 480px) {

    .mobile-menu {
        width:
            min(88vw, 340px);
    }

    .hsb-mobile-menu__header {
        min-height: 78px;

        padding:
            12px 14px;
    }

    .hsb-mobile-menu__brand {
        height: 48px;
    }

    .hsb-mobile-menu__body {
        padding:
            13px 11px 20px;
    }

    .mobile-nav-links
    > li
    > a {
        min-height: 52px;

        padding:
            9px 13px !important;

        border-radius: 10px;

        font-size: 0.91rem;
    }
}


@media (prefers-reduced-motion: reduce) {

    .mobile-menu,
    .mobile-overlay,
    .mobile-nav-links > li > a,
    .hsb-mobile-menu__close {
        transition: none;
    }
}


/* ==========================================================================
   Search Area
   ========================================================================== */

.search-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0 1rem;
  gap: 1.25rem;
}

.search-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.search-input h5 {
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--color-dark);
  align-self: flex-start;
}

.big-input-division {
  display: flex;
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--color-dark);
  border-radius: var(--radius-sm);
  align-items: center;
  overflow: hidden;
}

.big-input-division input {
  flex: 1;
  border: none;
  height: 100%;
  padding: 0 0.75rem;
  font-size: var(--fs-body);
  background: transparent;
  direction: rtl;
}
.big-input-division input:focus {
  outline: none;
}

.big-input-division .btn {
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  height: 100%;
  padding: 0 0.875rem;
  border-radius: 0;
  font-size: 1rem;
}

.accurate-search-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
  text-align: center !important;
}

.search-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  text-align: center !important;
  align-items: center !important;
}

.search-text p {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-success);
  line-height: 1.5;
  align-items: center !important;
}

.search-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  align-items: center;
}

.accurate-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 330px;
  justify-content: space-between;
}

.accurate-inputs h6 {
  font-size: var(--fs-sm);
  font-weight: 500;
  width: 60px;
  color: var(--color-dark);
}

.accurate-inputs input {
  height: 38px;
  width: 80px;
  flex-shrink: 0;
  text-align: center;
  border: 1.5px solid var(--color-dark);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  padding: 0 0.25rem;
  margin: 0;
}
.accurate-inputs input:focus {
  outline: none;
}

.two-section-for-serch {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
}

.approximate-stuff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.approximate-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.approximate-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  align-items: center;
}

.approximate-paragraphs p {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-success);
  line-height: 1.5;
}

.accurate-search-boxes {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  width: 100%;
  align-items: center;
}

.search-approx-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 22px;
  width: 100%;
}

.approximate-input-name {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(50%);
}

.approximate-input-name h5 {
  width: 150px;
  height: 30px;
  background-color: var(--color-primary);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: 0;
}

.approximate-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--color-search-box);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 340px;
  height: 72px;
  padding: 0.5rem 0.75rem;
}

.approximate-inputs p {
  font-size: var(--fs-sm);
  font-weight: 400;
  white-space: nowrap;
  color: var(--color-dark);
}

.approximate-inputs input {
  height: 38px;
  width: 58px;
  text-align: center;
  border: 1.5px solid var(--color-dark);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  margin: 0;
  flex-shrink: 0;
}
.approximate-inputs input:focus {
  outline: none;
}

#mm-paragraph {
  color: var(--gray-400) !important;
  font-weight: 400 !important;
  font-size: var(--fs-sm) !important;
}

#va {
  color: var(--color-red);
  font-weight: 600;
  font-size: var(--fs-sm);
}

/* search-btn */
.search-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.mag-sec button {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background-color: var(--gray-200);
  border: none;
  font-size: 1.125rem;
  color: var(--color-dark);
}

.search-name p {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.best-product-of-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem 1rem 3rem 1rem;
  background-color: var(--gray-100);
}

.best-products-row {
  display: flex;
  justify-content: center;

  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.single-product-container {
  margin-top: 1rem;
}
.best-product-container {
  width: 240px;
  height: 240px;
  border: 1px solid var(--gray-500);
  overflow: hidden;
}

.main-contains {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.best-product-detail {
  display: flex;
  position: absolute;
  top: 205px;
  height: 58px;
  width: 222px;
  border-radius: var(--radius-xl);
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  gap: 0.75rem;
}

.best-product-detail p {
  color: var(--color-white);
  font-weight: 500;
  font-size: var(--fs-sm);
}

.icon-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--gray-500);
  position: absolute;
  top: 16px;
  left: 5px;
}
.icon-frame i {
  color: var(--color-white);
  font-size: 12px;
}

/* NEW  SEARCH DESIGN   ----------------------------------*/

/* کانتینر دسکتاپ عریض */
.new-search-container.new-compact.new-wide-mode {
  max-width: 1650px;
  margin: var(--spacing-sm) auto;
  background-color: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  direction: rtl;
}

.new-search-section {
  width: 100%;
}

.new-section-title {
  font-family: var(--font-family-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
}

.new-divider {
  border: 0;
  height: var(--border-width);
  background-color: var(--color-product-breadcrumb-background);
  margin: var(--spacing-md) 0;
}

/* --- بخش جستجوی دقیق --- */
.new-exact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: var(--spacing-sm);
  align-items: flex-end;
}

.new-input-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: var(--color-card-article-cat);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.new-input-group label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-xs);
  padding-left: 2rem;
}

.new-input-group input {
  padding: 4px var(--spacing-sm);
  border: var(--border-width) solid var(--color-gray);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  color: var(--color-dark);
  outline: none;
  font-size: var(--fs-body);
}

.new-btn-search {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 0 var(--spacing-xl);
  font-size: var(--fs-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  height: 41px;
  transition: background-color 0.2s;
}

.new-btn-search:hover {
  background-color: var(--color-black);
}

.new-range-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-md);
}

.dimension-search-banner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.dimension-search-banner p {
    margin: 0;
    color: var(--color-dark);
    font-size: var(--fs-sm);
}

.dimension-search-banner .new-btn-search {
    align-self: flex-start;
    margin-top: var(--spacing-xs);
}

/* --- بخش بازه تقریبی (طرح بالون‌دار) --- */
.new-range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}

.new-range-card {
  background-color: var(--color-card-article-cat);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.new-card-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-secondary);
}

/* افزایش پدینگ بالا برای جا شدن بالون‌ها */
.new-slider-wrapper {
  padding: 45px var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);
}

.new-dual-slider {
  position: relative;
  width: 100%;
  height: 6px;
  background-color: var(--color-gray);
  border-radius: var(--radius-pill);
  touch-action: none;
}

.new-slider-range-bar {
  position: absolute;
  height: 100%;
  background-color: var(--color-secondary);
  border-radius: var(--radius-pill);
  z-index: 1;
}

/* دایره متحرک (طرح قهوه‌ای رنگ کاملاً شبیه عکس) */
.new-slider-handle {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background-color: var(--color-secondary); /* رنگ قهوه‌ای ست با سایت شما */
  border-radius: 50%;
  transform: translate(50%, -50%);
  cursor: grab;
  z-index: 2;
}

.new-slider-handle:active {
  cursor: grabbing;
}

/* بالون (Tooltip) مشکی بالای دایره */
.new-tooltip-bubble {
  position: absolute;
  bottom: 26px; /* قرارگیری بالای دایره */
  left: 50%;
  transform: translateX(-50%);
  background-color: #2b2b2b; /* رنگ مشکی/زغالی تیره مطابق تصویر */
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

/* ساخت مثلث کوچک زیر بالون */
.new-tooltip-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #2b2b2b transparent transparent;
}

.new-tooltip-label {
  font-size: 11px;
  color: var(--color-gray-navs);
  user-select: none;
}

/* اینپوت عددیِ کاملاً هماهنگ و ظریف داخل بالون */
.new-handle-input {
  width: 32px;
  height: 20px;
  border: none !important;
  background: transparent !important;
  color: var(--color-white) !important;
  font-size: var(--fs-sm);
  font-weight: bold;
  text-align: center;
  outline: none;
  cursor: text;
  padding: 0;
  -moz-appearance: textfield;
}

.new-handle-input::-webkit-outer-spin-button,
.new-handle-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===================================================
   ریسپانسیو
   =================================================== */
@media (max-width: 992px) {
  .new-exact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .new-btn-search {
    grid-column: span 3;
    width: 100%;
  }
  .new-range-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .new-search-container.new-compact.new-wide-mode {
    padding: var(--spacing-sm);
  }
  .new-exact-grid {
    grid-template-columns: 1fr;
  }
  .new-btn-search {
    grid-column: span 1;
  }
  .new-range-grid {
    grid-template-columns: 1fr;
  }
}

/* NEW  SEARCH DESIGN   ----------------------------------




/* ==========================================================================
   Brand Section
   ========================================================================== */
.brand-section {
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.brand-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ← دقیقاً ۲ ستون */
  gap: 1rem;
  width: 100%;
  max-width: 340px;
}

.brand-frame {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1; /* ← مربع، بدون ارتفاع ثابت */
  justify-content: center;
  align-items: center;
  border: 1px solid var(--color-black);
}
.brand-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* ==========================================================================
   Blog Cards
   ========================================================================== */
.handle-frame-section button {
  border: none;
  outline: none;
}
.cards-sectoins {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}
.cards-sectoins::-webkit-scrollbar {
  display: none;
}
button.handle-frame-section {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: var(--color-primary-active);
  display: flex;
  align-items: center;
  justify-content: center;
}

button.handle-frame-section:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.name-and-controll-section {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0 1rem;
}

.cards-sectoins {
  display: flex;
  margin-top: 2rem;
  height: auto;
  min-height: 580px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-bottom: 1rem;
}

.handle-frame-section {
  width: 44px;
  height: 44px;
  background-color: var(--color-success);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
}
.handle-frame-section i {
  font-size: 28px;
}

.blog-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 210px;
  margin-right: 1.25rem !important;
  box-shadow: 2px 2px 6px var(--color-gray);
  padding: 0.875rem;
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.blog-card-img-frame {
  width: 100%;
  height: 170px;
  overflow: hidden;
}
.blog-card-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.5;
}

.blog-card-description p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.blog-card-detailes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.blog-detail-sect {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-detail-sect img {
  width: 16px;
  height: 16px;
  margin-left: 6px;
}

.time-frame,
.auther-frame {
  display: flex;
  align-items: center;
  font-size: var(--fs-sm);
}

.time-frame p,
.auther-frame p {
  margin: 0;
  line-height: 1;
}
.read-more-btn {
  width: 64px;
  height: 40px;
  border-radius: var(--radius-lg);
  background-color: var(--color-red-read-more);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 500;
  border: none;
}

/* ==========================================================================
   Footer — UI Kit Redesign
   ========================================================================== */

.site-footer {
  width: 100%;
  margin-top: var(--spacing-xl);
  color: var(--gray-200);
  background: var(--gray-900);
}

.site-footer .container {
  max-width: 1200px;
}


/* ==========================================================================
   Service Strip
   ========================================================================== */

.site-footer__services {
  color: var(--color-dark);
  background: var(--color-card-article-cat);
  border-top: var(--border-width) solid rgba(94, 68, 32, 0.14);
  border-bottom: var(--border-width) solid rgba(94, 68, 32, 0.18);
}

.site-footer__services-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.site-footer__service-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-height: 82px;
  padding: var(--spacing-lg) 0;
  border-bottom: var(--border-width) solid rgba(94, 68, 32, 0.1);
}

.site-footer__service-card:last-child {
  border-bottom: 0;
}

.site-footer__service-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  color: var(--color-secondary);
  background: rgba(159, 133, 97, 0.12);
  border: var(--border-width) solid rgba(159, 133, 97, 0.28);
  border-radius: var(--radius-lg);
}

.site-footer__service-icon svg {
  width: 22px;
  height: 22px;
}

.site-footer__service-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-secondary);
  font-size: var(--fs-body);
  font-weight: 800;
}

.site-footer__service-card p {
  color: var(--gray-700);
  font-size: var(--fs-sm);
  line-height: 1.7;
}


/* ==========================================================================
   Main Footer
   ========================================================================== */

.site-footer__main {
  padding: calc(var(--spacing-xl) * 2) 0;
}


/* ---------- Top 2-column row ---------- */

.site-footer__top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: stretch;
}


/* ---------- Brand ---------- */

.site-footer__brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-footer__brand-head {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.site-footer__logo-box {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  padding: var(--spacing-xs);
  background: var(--color-white);
  border-radius: var(--radius-lg);
}

.site-footer__logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.site-footer__brand h2 {
  margin: 0 0 var(--spacing-xs);
  color: var(--color-white);
  font-size: var(--fs-h4);
  font-weight: 800;
}

.site-footer__brand-label {
  color: var(--color-primary-active);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.site-footer__description {
  max-width: 620px;
  color: var(--gray-400);
  font-size: var(--fs-body);
  line-height: 2;
}


/* ---------- CTA ---------- */

.site-footer__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--gray-800);
  border: var(--border-width) solid var(--gray-700);
  border-radius: var(--radius-lg);
}

.site-footer__cta strong {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-white);
  font-size: var(--fs-body);
  font-weight: 800;
}

.site-footer__cta p {
  max-width: 520px;
  color: var(--gray-400);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.site-footer__cta .btn {
  flex-shrink: 0;
  white-space: nowrap;
}


/* ==========================================================================
   Contact Card
   ========================================================================== */

.site-footer__contact-card {
  height: 100%;
  overflow: hidden;
  background: var(--gray-800);
  border: var(--border-width) solid var(--gray-700);
  border-radius: var(--radius-lg);
}

.site-footer__contact-header {
  padding: var(--spacing-lg);
  background: var(--color-secondary);
}

.site-footer__contact-header > span {
  display: block;
  margin-bottom: 2px;
  color: var(--color-white);
  font-size: var(--fs-h5);
  font-weight: 800;
}

.site-footer__contact-header small {
  color: var(--color-card-article-cat);
  font-size: var(--fs-sm);
}

.site-footer__contact-body {
  padding: var(--spacing-lg);
}

.site-footer__contact-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: var(--spacing-md);
  align-items: start;
  padding: var(--spacing-md) 0;
  border-bottom: var(--border-width) solid var(--gray-700);
}

.site-footer__contact-row:first-child {
  padding-top: 0;
}

.site-footer__contact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.site-footer__contact-label {
  color: var(--color-primary-active);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.site-footer__contact-value {
  min-width: 0;
  margin: 0;
  color: var(--gray-300);
  font-size: var(--fs-sm);
  line-height: 1.9;
}

.site-footer__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
}

.site-footer__phones a,
.site-footer a.site-footer__contact-value {
  color: var(--gray-300);
}

.site-footer__phones a:hover,
.site-footer a.site-footer__contact-value:hover {
  color: var(--color-white);
}


/* ==========================================================================
   Full-width Navigation Row
   ========================================================================== */

.site-footer__navigation {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--gray-800);
  border: var(--border-width) solid var(--gray-700);
  border-radius: var(--radius-lg);
}

.site-footer__navigation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: var(--border-width) solid var(--gray-700);
}

.site-footer__navigation h3 {
  margin: 0 0 2px;
  color: var(--color-white);
  font-size: var(--fs-h5);
  font-weight: 800;
}

.site-footer__navigation-head p {
  color: var(--gray-500);
  font-size: var(--fs-sm);
}

.site-footer__navigation ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__navigation li {
  min-width: 0;
}

.site-footer__navigation a {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-height: 48px;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--gray-300);
  background: var(--gray-900);
  border: var(--border-width) solid var(--gray-700);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  font-weight: 600;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.site-footer__navigation a:hover {
  color: var(--color-white);
  background: var(--color-secondary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.site-footer__link-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  color: var(--color-primary-active);
  background: var(--gray-800);
  border-radius: var(--radius-sm);
}

.site-footer__navigation a:hover .site-footer__link-icon {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   Bottom
   ========================================================================== */

.site-footer__bottom {
  min-height: 52px;
  background: var(--color-dark);
  border-top: var(--border-width) solid var(--gray-800);
}

.site-footer__bottom-layout {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  text-align: center;
}

.site-footer__bottom p,
.site-footer__bottom a {
  margin: 0;
  color: var(--gray-500);
  font-size: var(--fs-sm);
}

.site-footer__bottom a:hover {
  color: var(--color-primary-active);
}

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm) var(--spacing-lg);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 640px) {

  .site-footer__services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__service-card {
    padding-inline: var(--spacing-lg);
  }

  .site-footer__service-card:nth-child(odd) {
    border-left: var(--border-width) solid rgba(94, 68, 32, 0.1);
  }

  .site-footer__navigation ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


@media (min-width: 900px) {

  .site-footer__services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer__service-card {
    padding-inline: var(--spacing-lg);
    border-bottom: 0;
    border-left: var(--border-width) solid rgba(94, 68, 32, 0.1);
  }

  .site-footer__service-card:last-child {
    border-left: 0;
  }


  .site-footer__top-grid {
    grid-template-columns:
      minmax(0, 1.65fr)
      minmax(300px, 0.85fr);
    gap: calc(var(--spacing-xl) * 2);
  }


  .site-footer__brand,
  .site-footer__contact-card {
    min-height: 350px;
  }


  .site-footer__brand {
    padding: var(--spacing-md) 0;
  }


  .site-footer__cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
  }


  .site-footer__navigation {
    margin-top: calc(var(--spacing-xl) * 1.5);
    padding: var(--spacing-xl);
  }


  .site-footer__navigation ul {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }


  .site-footer__bottom-layout {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }


  .site-footer__bottom-links {
    flex: 1;
  }

}


@media (min-width: 1200px) {

  .site-footer__main {
    padding:
      calc(var(--spacing-xl) * 2.2)
      0
      calc(var(--spacing-xl) * 2);
  }


  .site-footer__service-card {
    min-height: 86px;
  }


  .site-footer__top-grid {
    gap: calc(var(--spacing-xl) * 2.5);
  }


  .site-footer__navigation a {
    min-height: 52px;
  }

}


/* ==========================================================================
   Footer — Final Compact Desktop Refinements
   ========================================================================== */

/* ---------- Service strip: approved visual ---------- */

.site-footer__services {
  background: #f4f1eb;
  color: var(--color-dark);
  border-top: var(--border-width) solid rgba(159, 133, 97, 0.22);
  border-bottom: var(--border-width) solid rgba(159, 133, 97, 0.26);
}

.site-footer__service-card {
  min-height: 82px;
  gap: var(--spacing-md);
}

.site-footer__service-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  color: var(--color-secondary);
  background: rgba(159, 133, 97, 0.14);
  border: var(--border-width) solid rgba(159, 133, 97, 0.28);
  border-radius: 10px;
}

.site-footer__service-icon svg {
  width: 22px;
  height: 22px;
}

.site-footer__service-card strong {
  color: #25211c;
  font-size: 0.88rem;
  font-weight: 800;
}

.site-footer__service-card p {
  color: #746d63;
  font-size: 0.72rem;
  line-height: 1.7;
}


/* ---------- Navigation base ---------- */

.site-footer__navigation {
  padding: var(--spacing-lg);
}

.site-footer__navigation-head {
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer__navigation-head h3 {
  margin: 0;
}

.site-footer__navigation ul {
  margin: 0;
}

.site-footer__link-text {
  min-width: 0;
  white-space: nowrap;
}


/* ---------- Mobile / Tablet navigation ---------- */

@media (max-width: 899px) {

  .site-footer__navigation {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
  }

  .site-footer__navigation-head {
    margin-bottom: var(--spacing-md);
  }

  .site-footer__navigation ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .site-footer__navigation a {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.4rem;
  }

  .site-footer__link-text {
    overflow: hidden;
    font-size: 0.76rem;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-footer__link-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    font-size: 0.72rem;
  }

}


@media (max-width: 520px) {

  .site-footer__navigation {
    padding: 0.75rem;
  }

  .site-footer__navigation h3 {
    font-size: 1rem;
  }

  .site-footer__navigation ul {
    gap: 0.35rem;
  }

  .site-footer__navigation a {
    min-height: 42px;
    padding: 0.45rem 0.25rem;
  }

  .site-footer__link-text {
    font-size: 0.68rem;
  }

  .site-footer__link-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    font-size: 0.62rem;
  }

}


/* ---------- Desktop ---------- */

@media (min-width: 900px) {

  .site-footer__main {
    padding:
      calc(var(--spacing-xl) * 1.6)
      0
      calc(var(--spacing-xl) * 1.4);
  }

  /* Two equal top columns */

  .site-footer__top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(var(--spacing-xl) * 1.5);
    align-items: stretch;
  }

  .site-footer__brand,
  .site-footer__contact-card {
    min-height: 0;
    height: 100%;
  }

  .site-footer__brand {
    padding: 0;
  }

  .site-footer__brand-head {
    margin-bottom: var(--spacing-md);
  }

  .site-footer__description {
    max-width: none;
    line-height: 1.9;
  }

  /* Compact CTA */

  .site-footer__cta {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    gap: var(--spacing-md);
  }

  .site-footer__cta p {
    max-width: none;
    line-height: 1.7;
  }

  /* Compact contact */

  .site-footer__contact-header {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .site-footer__contact-body {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .site-footer__contact-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: var(--spacing-md);
    padding: 0.65rem 0;
  }

  .site-footer__contact-row--address .site-footer__contact-value {
    max-width: none;
    line-height: 1.85;
  }

  /* Final services/navigation row */

  .site-footer__navigation {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .site-footer__navigation-head {
    width: 155px;
    min-width: 155px;
  }

  .site-footer__navigation ul {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .site-footer__navigation li {
    width: 100%;
    min-width: 0;
  }

  .site-footer__navigation a {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: 0.6rem 0.9rem;
    direction: rtl;
    overflow: hidden;
  }

  .site-footer__link-text {
    flex: 0 1 auto;
    text-align: right;
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .site-footer__link-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin: 0;
  }

}


/* ---------- Large Desktop ---------- */

@media (min-width: 1200px) {

  .site-footer__service-card {
    min-height: 86px;
    padding-inline: var(--spacing-lg);
  }

  .site-footer__service-card strong {
    font-size: 0.92rem;
  }

  .site-footer__service-card p {
    font-size: 0.75rem;
  }

  .site-footer__top-grid {
    gap: calc(var(--spacing-xl) * 1.8);
  }

  .site-footer__navigation {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: calc(var(--spacing-xl) * 1.2);
  }

  .site-footer__navigation-head {
    width: 165px;
    min-width: 165px;
  }

  .site-footer__navigation ul {
    gap: 0.75rem;
  }

  .site-footer__navigation a {
    padding-inline: 1rem;
  }

  .site-footer__link-text {
    font-size: 0.88rem;
  }

}


/* ==========================================================================
   Footer — Contact phones final
   ========================================================================== */

.site-footer__phones {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.5rem;
  direction: ltr;
  white-space: nowrap;
}

.site-footer__phones a {
  color: var(--gray-200);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.4;
}

.site-footer__phones a:hover {
  color: var(--color-primary-active);
}

.site-footer__phone-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  color: var(--color-primary-active);
  background: var(--gray-900);
  border-radius: var(--radius-md);
}

.site-footer__phone-icon svg {
  width: 16px;
  height: 16px;
}

.site-footer__phone-separator {
  color: var(--gray-600);
  font-size: var(--fs-sm);
}

@media (min-width: 1200px) {

  .site-footer__phones a {
    font-size: 0.95rem;
  }

}

/* ==========================================================================
   Responsive — tablet و بالاتر
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --font-size-base: 15px;
    --fs-h1: 2rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.25rem;
    --fs-h5: 1.125rem;
    --fs-h6: 1rem;
    --fs-body: 0.9375rem;
    --fs-sm: 0.8125rem;
  }

  .search-input {
    flex-direction: row;
    align-items: center;
  }
  .search-input h5 {
    align-self: auto;
    white-space: nowrap;
  }

  .accurate-search-input {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .approximate-search {
    flex-direction: row;
    align-items: flex-start;
  }
  .approximate-paragraphs {
    max-width: 200px;
  }

}

@media (min-width: 1200px) {
  :root {
    --font-size-base: 16px;
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.5rem;
    --fs-h5: 1.25rem;
    --fs-h6: 1rem;
    --fs-body: 1rem;
    --fs-sm: 0.875rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  .approximate-stuff {
    flex-direction: row;
    gap: 4rem;
  }
  .two-section-for-serch {
    flex-direction: row;
  }
.top-of-nav {
    gap: 20rem;
  }
}
/* ============================================================
   HSB RESPONSIVE NAVBAR LOGO
   Logo height follows navbar height.
   Width always follows the original image aspect ratio.
   ============================================================ */

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    height: 100%;

    padding: 0;
    margin: 0;

    flex: 0 0 auto;

    line-height: 1;
}

.navbar-brand .custom-logo-link,
.navbar-brand .hsb-navbar-brand-fallback {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    height: calc(100% - 10px);
    width: auto;

    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;

    text-decoration: none;
}

.navbar-brand .custom-logo {
    display: block;

    height: 100% !important;
    width: auto !important;

    max-height: 100%;
    max-width: none;

    object-fit: contain;
    object-position: center;

    margin: 0;
    padding: 0;
}

.navbar-brand .hsb-navbar-brand-fallback {
    color: var(--color-secondary);
    font-weight: 700;
    white-space: nowrap;
}


/* HSB PREINVOICE HEADER BADGE */
.preinvoice-cart {
    position: relative;
    overflow: visible !important;
    background: transparent !important;
}

.preinvoice-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.preinvoice-count-badge {
    position: absolute;
    z-index: 10;
    top: -10px;
    right: -12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 21px;
    height: 21px;
    padding: 0 5px;

    border: 2px solid #fff;
    border-radius: 999px;

    background: #e53935;
    color: #fff;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    font-family: inherit;

    box-sizing: border-box;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.22);

    pointer-events: none;

    transform: translateZ(0);
}

.preinvoice-count-badge.is-empty {
    display: none;
}

.hsb-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    cursor: pointer;
}

/* Remove the obsolete old yellow counter if any old markup remains cached. */
.nav-actions > .sell-number,
.mobile-nav-actions > .sell-number {
    display: none !important;
}


/* ============================================================
   HSB ACCOUNT ICON DROPDOWN
   ============================================================ */

.hsb-account-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.hsb-account-icon {
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 10px;

    background: transparent;

    color: var(--color-secondary);

    cursor: pointer;
}

.hsb-account-icon i {
    font-size: 20px;
}

.hsb-account-icon:hover,
.hsb-account-menu:focus-within
.hsb-account-icon {
    background:
        color-mix(
            in srgb,
            var(--color-secondary) 9%,
            white
        );

    color: var(--color-secondary);
}


.hsb-account-dropdown {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    z-index: 9999;

    width: 205px;

    padding: 7px;

    border: 1px solid
        rgba(30, 37, 43, 0.12);

    border-radius: 12px;

    background: #fff;

    box-shadow:
        0 16px 38px
        rgba(20, 27, 32, 0.14);

    opacity: 0;
    visibility: hidden;

    transform: translateY(5px);

    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}

.hsb-account-menu:hover
.hsb-account-dropdown,
.hsb-account-menu:focus-within
.hsb-account-dropdown {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


.nav-actions
.hsb-account-dropdown a {
    width: 100% !important;
    height: auto !important;
    min-height: 41px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 10px;

    padding: 8px 10px;

    border: 0 !important;
    border-radius: 8px;

    color: #30383e;

    font-size: 12px;
    font-weight: 750;

    text-decoration: none;
}

.nav-actions
.hsb-account-dropdown a:hover {
    background:
        rgba(30, 37, 43, 0.055);

    color: var(--color-secondary);
}

.nav-actions
.hsb-account-dropdown a i {
    width: 17px;

    text-align: center;

    font-size: 13px;
}

.nav-actions
.hsb-account-dropdown
.hsb-account-dropdown__logout {
    margin-top: 4px;

    border-top:
        1px solid
        rgba(30, 37, 43, 0.08)
        !important;

    color: #a53131;
}
/* ============================================================
   HSB HEADER / NAVBAR LAYOUT
   ============================================================ */

/*
 * Background bars remain full viewport width.
 * Their actual content follows the site's 1200px content grid.
 */

.top-of-nav {
    width: 100%;
}

.hsb-top-nav-inner {
    width: calc(100% - 32px);
    max-width: 1200px;
    height: 100%;

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1.5rem;
}


/* ------------------------------------------------------------
   Sticky navbar
   ------------------------------------------------------------ */

/*
 * The navbar lives inside the short .header wrapper.
 * CSS position:sticky would therefore be constrained by
 * the header height. JavaScript switches it to fixed only
 * after its original position has passed the viewport top.
 */

.my-navbar {
    width: 100% !important;

    padding: 0 !important;

    justify-content: center !important;

    position: relative !important;

    top: auto;

    z-index: 1020;
}


.my-navbar.hsb-navbar-is-sticky {
    position: fixed !important;

    top: 0 !important;
    right: 0;
    left: 0;

    width: 100% !important;

    z-index: 1030;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.10);
}


/*
 * When navbar becomes fixed it leaves the document flow.
 * This padding preserves its original space and prevents
 * the page content from jumping upward.
 */
.header.hsb-navbar-sticky-active {
    padding-bottom:
        var(
            --hsb-sticky-navbar-height,
            0px
        );
}


/* Keep fixed navbar below WordPress admin bar. */
body.admin-bar
.my-navbar.hsb-navbar-is-sticky {
    top: 32px !important;
}


/* ------------------------------------------------------------
   Inner navbar content grid
   ------------------------------------------------------------ */

.hsb-navbar-inner {
    width: calc(100% - 32px);
    max-width: 1200px;
    height: 100%;

    margin-inline: auto;

    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;
}


/* ------------------------------------------------------------
   Logo
   ------------------------------------------------------------ */

.hsb-navbar-inner .navbar-brand {
    height: 100%;

    display: flex;
    align-items: center;

    flex: 0 0 auto;
}

.hsb-navbar-inner
.navbar-brand
.custom-logo-link {
    height: calc(100% - 10px);

    width: auto;

    display: flex;
    align-items: center;

    border: 0 !important;

    padding: 0 !important;
}

.hsb-navbar-inner
.navbar-brand
.custom-logo {
    display: block;

    height: 100% !important;
    width: auto !important;

    max-height: 100%;
    max-width: none;

    object-fit: contain;
}


/* ------------------------------------------------------------
   Desktop navigation
   ------------------------------------------------------------ */

.hsb-navbar-inner .nav-links {
    flex: 1 1 auto;

    min-width: 0;
    height: 100%;

    margin: 0;
    padding: 0;

    align-items: stretch;
}

.hsb-navbar-inner
.nav-links > li {
    height: 100%;

    display: flex;
    align-items: stretch;
}

.hsb-navbar-inner
.nav-links > li > a {
    width: auto !important;
    min-width: 0;

    height: 100% !important;

    padding-inline: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
}


/* ------------------------------------------------------------
   Desktop actions
   ------------------------------------------------------------ */

.hsb-navbar-inner .nav-actions {
    flex: 0 0 auto;

    height: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;

    gap: 8px;
}

.hsb-navbar-inner
.nav-actions > li {
    height: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
}

.hsb-navbar-inner
.nav-actions
.preinvoice-cart {
    height: 100%;

    margin: 0 !important;
    padding: 0;

    display: flex;
    align-items: center;
}


/*
 * Account and preinvoice buttons intentionally use
 * exactly the same geometry and visual language.
 */

.hsb-navbar-inner
.nav-actions
.preinvoice-cart-link,
.hsb-navbar-inner
.nav-actions
.hsb-account-icon {
    width: 44px !important;
    min-width: 44px !important;

    height: 44px !important;
    min-height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 0 !important;
    border-radius: 10px !important;

    background:
        var(--color-secondary)
        !important;

    color: #fff !important;

    box-shadow: none !important;

    line-height: 1;

    text-decoration: none !important;
}

.hsb-navbar-inner
.nav-actions
.preinvoice-cart-link i,
.hsb-navbar-inner
.nav-actions
.hsb-account-icon i {
    margin: 0;

    color: inherit;

    font-size: 20px;
    line-height: 1;
}

.hsb-navbar-inner
.nav-actions
.preinvoice-cart-link:hover,
.hsb-navbar-inner
.nav-actions
.hsb-account-icon:hover,
.hsb-navbar-inner
.nav-actions
.hsb-account-menu:focus-within
.hsb-account-icon {
    background:
        color-mix(
            in srgb,
            var(--color-secondary) 86%,
            #000
        )
        !important;

    color: #fff !important;
}


/* Badge stays attached to the button, not to navbar geometry. */
.hsb-navbar-inner
.nav-actions
.preinvoice-count-badge {
    top: -5px;
    right: -5px;
}


/* ------------------------------------------------------------
   Mobile / tablet action buttons
   ------------------------------------------------------------ */

.mobile-nav-actions
.preinvoice-cart {
    margin: 0 !important;
}

.mobile-nav-actions
.preinvoice-cart-link,
.mobile-nav-actions
.hsb-account-icon {
    width: 44px !important;
    min-width: 44px !important;

    height: 44px !important;
    min-height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 10px !important;

    background:
        var(--color-secondary)
        !important;

    color: #fff !important;
}

.mobile-nav-actions
.preinvoice-cart-link i,
.mobile-nav-actions
.hsb-account-icon i {
    color: inherit;
}


/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 782px) {

    body.admin-bar
    .my-navbar.hsb-navbar-is-sticky {
        top: 46px !important;
    }
}

@media (max-width: 767px) {

    .hsb-navbar-inner,
    .hsb-top-nav-inner {
        width: calc(100% - 24px);
    }

    .hsb-navbar-inner {
        gap: 8px;
    }

    .hsb-navbar-inner
    .navbar-brand
    .custom-logo-link {
        height: calc(100% - 10px);
    }
}


/* ==========================================================================
   Footer Service Strip — Problem Width Fix
   ========================================================================== */

/*
 * 900–1073px:
 * Four-column layout is retained, but each card is compact enough
 * for the service title to stay on one line.
 */
@media (min-width: 900px) and (max-width: 1073px) {

  .site-footer__service-card {
    gap: 0.5rem;
    padding-inline: 0.5rem;
  }

  .site-footer__service-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .site-footer__service-icon svg {
    width: 18px;
    height: 18px;
  }

  .site-footer__service-card strong {
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .site-footer__service-card p {
    font-size: 0.66rem;
    line-height: 1.55;
  }
}


/*
 * 1200px+:
 * Prevent the global desktop font/spacing scale from making
 * the four service cards unnecessarily wide internally.
 */
@media (min-width: 1200px) {

  .site-footer__service-card {
    gap: 1rem;
    padding-inline: 1rem;
  }

  .site-footer__service-card strong {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .site-footer__service-card p {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   HSB Homepage Blog — Isolated Component
   ========================================================================== */

.hsb-home-blog {
  width: calc(100% - 2rem);
  max-width: 1200px;

  margin: 2.5rem auto 0;

  overflow: hidden;
}


/* ---------- Header ---------- */

.hsb-home-blog__header {
  width: fit-content;
  max-width: 100%;

  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.9rem;
}

.hsb-home-blog__title {
  margin: 0;

  color: var(--color-dark);

  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;

  text-align: center;
  white-space: nowrap;
}

.hsb-home-blog__control {
  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 10px;

  background: var(--color-success);
  color: var(--color-primary-active);

  cursor: pointer;
}

.hsb-home-blog__control i {
  font-size: 22px;
}

.hsb-home-blog__control:disabled {
  opacity: 0.35;
  cursor: default;
}


/* ---------- Horizontal viewport ---------- */

.hsb-home-blog__track {
  width: 100%;

  margin-top: 1.5rem;
  padding: 0.35rem 0.25rem 1rem;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  gap: 1.25rem;

  overflow-x: auto;
  overflow-y: hidden;

  direction: rtl;

  scroll-behavior: smooth;
  scrollbar-width: none;

  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.hsb-home-blog__track::-webkit-scrollbar {
  display: none;
}

.hsb-home-blog__track.is-static {
  justify-content: center;
}


/* ---------- Card ---------- */

.hsb-home-blog__card {
  width: 270px;

  flex: 0 0 270px;

  padding: 0.85rem;

  display: flex;
  flex-direction: column;

  gap: 0;

  background: var(--color-white);

  border-radius: 10px;

  box-shadow:
    0 2px 8px
    rgba(0, 0, 0, 0.14);
}


/* ---------- Image ---------- */

.hsb-home-blog__image {
  width: 100%;
  aspect-ratio: 1 / 1;

  display: block;

  margin-bottom: 0.55rem;

  overflow: hidden;

  border-radius: 7px;

  background: #f3f3f3;
}

.hsb-home-blog__image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}


/* ---------- Title ---------- */

.hsb-home-blog__card-title {
  min-height: calc(0.9rem * 1.65 * 2);

  margin: 0 0 0.15rem;

  display: -webkit-box;

  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.65;
}

.hsb-home-blog__card-title a {
  color: var(--color-dark);
  text-decoration: none;
}


/* ---------- Excerpt ---------- */

.hsb-home-blog__excerpt {
  min-height: calc(0.78rem * 1.8 * 4);

  margin: 0;

  display: -webkit-box;

  overflow: hidden;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

  color: #4f4a44;

  font-size: 0.78rem;
  line-height: 1.8;

  text-align: justify;
  text-justify: inter-word;
}


/* ---------- Footer ---------- */

.hsb-home-blog__footer {
  width: 100%;

  margin-top: 50px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 0.5rem;
}

.hsb-home-blog__meta {
  min-width: 0;

  flex: 1 1 auto;

  display: flex;
  flex-direction: column;

  gap: 0.25rem;
}

.hsb-home-blog__meta-row {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 0.3rem;

  color: #908a82;

  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.35;

  white-space: nowrap;
}

.hsb-home-blog__meta-row img {
  width: 13px;
  height: 13px;

  flex: 0 0 13px;

  opacity: 0.62;
}

.hsb-home-blog__meta-row > span {
  min-width: 0;

  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.hsb-home-blog__author {
  max-width: 125px;
}

/*
 * Persian Digits plugin may wrap dates in .wpd-text
 * and add inline font variables.
 */
.hsb-home-blog__meta .wpd-text {
  font-size: inherit !important;
  line-height: inherit !important;
}

.hsb-home-blog__read-more {
  width: 62px;
  height: 30px;

  flex: 0 0 62px;

  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: var(--color-red-read-more);
  color: var(--color-white);

  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;

  text-decoration: none;
}

.hsb-home-blog__empty {
  width: 100%;

  margin: 2rem 0;

  text-align: center;
}


/* ---------- Mouse drag ---------- */

@media (hover: hover) and (pointer: fine) {

  .hsb-home-blog__track.is-scrollable {
    cursor: grab;
  }

  .hsb-home-blog__track.is-dragging {
    cursor: grabbing;

    user-select: none;
    scroll-behavior: auto;
  }

  .hsb-home-blog__track.is-dragging * {
    user-select: none;
  }
}


/* ---------- Tablet ---------- */

@media (max-width: 900px) {

  .hsb-home-blog {
    width: calc(100% - 1.5rem);
  }

  .hsb-home-blog__card {
    width: 250px;
    flex-basis: 250px;
  }

  .hsb-home-blog__title {
    font-size: 1.05rem;
  }

}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

  .hsb-home-blog {
    width: calc(100% - 1rem);

    margin-top: 2rem;
  }

  .hsb-home-blog__header {
    gap: 0.45rem;
  }

  .hsb-home-blog__title {
    font-size: 0.9rem;
  }

  .hsb-home-blog__control {
    width: 34px;
    height: 34px;

    flex-basis: 34px;

    border-radius: 8px;
  }

  .hsb-home-blog__control i {
    font-size: 18px;
  }

  .hsb-home-blog__track {
    margin-top: 1.1rem;

    gap: 0.8rem;

    padding-inline: 0.15rem;
  }

  .hsb-home-blog__card {
    width: min(82vw, 270px);

    flex-basis: min(82vw, 270px);

    padding: 0.75rem;
  }

  .hsb-home-blog__card-title {
    font-size: 0.84rem;
  }

  .hsb-home-blog__excerpt {
    font-size: 0.74rem;
  }

  .hsb-home-blog__author {
    max-width: 105px;
  }

}

/* ==========================================================================
   Homepage Selected Brands — Final
   ========================================================================== */

.hsb-home-brands {
  width: calc(100% - 2rem);
  max-width: 1200px;

  margin: 2rem auto 2.5rem;

  text-align: center;
}

.hsb-home-brands__title {
  margin: 0 0 1.1rem;

  color: var(--color-dark);

  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;

  text-align: center;
}

.hsb-home-brands__list {
  width: 100%;

  display: flex;
  flex-wrap: wrap;

  justify-content: center;
  align-items: center;

  gap: 10px;
}

.hsb-home-brands__item {
  width: 220px;
  aspect-ratio: 2 / 1;

  flex: 0 0 220px;

  box-sizing: border-box;

  padding: 8px 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: var(--color-white);

  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.hsb-home-brands__item img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}


/*
 * تبلت و لپ‌تاپ کوچک:
 * همیشه دو برند در هر ردیف.
 * بنابراین حالت آزاردهنده 3 + 1 ایجاد نمی‌شود.
 */
@media (min-width: 521px) and (max-width: 1199px) {

  .hsb-home-brands__item {
    width: calc(50% - 5px);
    max-width: 280px;

    flex-basis: calc(50% - 5px);
  }

}


/* موبایل */
@media (max-width: 520px) {

  .hsb-home-brands {
    width: calc(100% - 1rem);

    margin-top: 1.5rem;
  }

  .hsb-home-brands__title {
    margin-bottom: 0.9rem;

    font-size: 1rem;
  }

  .hsb-home-brands__list {
    gap: 8px;
  }

  .hsb-home-brands__item {
    width: min(100%, 280px);

    flex-basis: min(100%, 280px);

    padding: 6px 10px;
  }

}

/* HSB Homepage Featured — Shop Cards */

.hsb-home-featured.products-section {
  width: 100%;
  max-width: none;

  margin: 1.5rem 0 0;
  padding: 2rem clamp(1rem, 4vw, 4rem) 3rem !important;

  box-sizing: border-box;

  background: var(--gray-100);
}

.hsb-home-featured > h3 {
  margin: 0 0 1.75rem;

  color: var(--color-dark);

  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;

  text-align: center;
}

.hsb-home-featured .hsb-home-featured__grid {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;
}


/* Keep Home cards spacious on wide desktop */
@media (min-width: 1281px) {

  .hsb-home-featured
  .hsb-home-featured__grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr)) !important;
  }

}


/* Laptop */
@media (min-width: 1000px) and (max-width: 1280px) {

  .hsb-home-featured.products-section {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
  }

}


/* Tablet */
@media (min-width: 769px) and (max-width: 999px) {

  .hsb-home-featured.products-section {
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
  }

  .hsb-home-featured
  .hsb-home-featured__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }

}


/* Mobile — same one-card-per-row behavior as current Shop */
@media (max-width: 768px) {

  .hsb-home-featured.products-section {
    padding:
      1.5rem 0.75rem 2rem !important;
  }

  .hsb-home-featured > h3 {
    margin-bottom: 1.25rem;

    font-size: 1rem;
  }

  .hsb-home-featured
  .hsb-home-featured__grid {
    grid-template-columns:
      minmax(0, 1fr) !important;

    gap: 14px !important;
  }

}

/* ==========================================================================
   HSB Homepage Section Rhythm
   ========================================================================== */

/*
 * Give the main homepage blocks enough breathing room
 * without making the page feel disconnected.
 */

/* Search -> Featured products */
.hsb-home-featured.products-section {
  margin-top: 3.5rem;
}


/* Featured products -> Brands */
.hsb-home-brands {
  margin-top: 4.5rem;
  margin-bottom: 0;
}


/* Brands -> Blog */
.hsb-home-blog {
  margin-top: 4.5rem;
  margin-bottom: 4.5rem;
}


/* Slightly tighter rhythm on tablet */
@media (max-width: 900px) {

  .hsb-home-featured.products-section {
    margin-top: 3rem;
  }

  .hsb-home-brands {
    margin-top: 3.5rem;
  }

  .hsb-home-blog {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
  }

}


/* Mobile should breathe, but not waste vertical space */
@media (max-width: 600px) {

  .hsb-home-featured.products-section {
    margin-top: 2.5rem;
  }

  .hsb-home-brands {
    margin-top: 3rem;
  }

  .hsb-home-blog {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }

}

/* =========================================================
   HSB HOMEPAGE HERO
   ========================================================= */

html {
  scroll-behavior: smooth;
}

#hsb-home-search {
  scroll-margin-top: 120px;
}

.hsb-home-hero {
  width: calc(100% - 32px);
  margin: 24px auto 44px;
  padding: clamp(28px, 4vw, 64px) 0 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      #f8f6f1 0%,
      #ffffff 52%,
      #f0ece4 100%
    );
  box-shadow:
    0 20px 70px
    rgba(22, 28, 36, 0.08);
}

.hsb-home-hero__content {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  direction: rtl;
  text-align: right;
}

.hsb-home-hero__eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background:
    rgba(0, 0, 0, 0.055);
  color:
    var(--color-secondary, #8b6b3f);
  font-size: 0.92rem;
  font-weight: 800;
}

.hsb-home-hero__title {
  max-width: 1050px;
  margin: 0;
  color: #151a21;
  font-size:
    clamp(2rem, 4.1vw, 4.4rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.hsb-home-hero__description {
  max-width: 1050px;
  margin: 24px 0 0;
  color: #5d6470;
  font-size:
    clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 500;
  line-height: 2.05;
}

.hsb-home-hero__stats {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.hsb-home-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 20px 22px;
  border:
    1px solid rgba(31, 41, 55, 0.08);
  border-radius: 18px;
  background:
    rgba(255, 255, 255, 0.8);
}

.hsb-home-hero__stat strong {
  color: #20262f;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.6;
}

.hsb-home-hero__stat span {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.8;
}

.hsb-home-hero__actions {
  display: flex;
  margin-top: 28px;
}

.hsb-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 26px;
  border-radius: 12px;
  background:
    var(--color-secondary, #8b6b3f);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.hsb-home-hero__button:hover {
  color: #fff;
  opacity: 0.92;
  transform: translateY(-2px);
}

.hsb-home-hero__media {
  position: relative;
  width: 100%;
  height:
    clamp(460px, 72vh, 900px);
  margin-top:
    clamp(36px, 5vw, 70px);
  overflow: hidden;
  background: #e9e7e2;
}

.hsb-home-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {

  .hsb-home-hero {
    width: calc(100% - 24px);
    padding-top: 32px;
    border-radius: 22px;
  }

  .hsb-home-hero__content {
    width: calc(100% - 36px);
  }

  .hsb-home-hero__stats {
    grid-template-columns: 1fr;
  }

  .hsb-home-hero__media {
    height:
      clamp(380px, 58vh, 620px);
    margin-top: 36px;
  }

}


@media (max-width: 600px) {

  .hsb-home-hero {
    width: calc(100% - 16px);
    margin-top: 14px;
    margin-bottom: 30px;
    padding-top: 26px;
    border-radius: 18px;
  }

  .hsb-home-hero__content {
    width: calc(100% - 28px);
  }

  .hsb-home-hero__title {
    font-size:
      clamp(1.75rem, 8vw, 2.5rem);
  }

  .hsb-home-hero__description {
    margin-top: 18px;
    font-size: 0.95rem;
    line-height: 1.95;
  }

  .hsb-home-hero__stats {
    gap: 12px;
    margin-top: 22px;
  }

  .hsb-home-hero__stat {
    padding: 17px 18px;
  }

  .hsb-home-hero__button {
    width: 100%;
  }

  .hsb-home-hero__media {
    height:
      clamp(320px, 52vh, 500px);
    margin-top: 28px;
  }

}

/* =========================================================
   HSB HOMEPAGE PRIMARY H1
   ========================================================= */

.hsb-homepage-primary-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* HSB HERO FINAL CONCEPT */

.hsb-home-hero {
  position: relative;
  width: 100%;
  min-height: 680px;
  margin: 0 0 60px;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: #111;
}

.hsb-home-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 0;
}

.hsb-home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter:
    grayscale(100%)
    brightness(0.72)
    contrast(1.05);
}

.hsb-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(10,15,20,0.82) 0%,
      rgba(10,15,20,0.62) 38%,
      rgba(10,15,20,0.25) 70%,
      rgba(10,15,20,0.08) 100%
    );
}

.hsb-home-hero__content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 64px));
  min-height: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  direction: rtl;
  text-align: right;
}

.hsb-home-hero__eyebrow {
  width: fit-content;
  margin: 0 0 22px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255,255,255,0.12);
  color: #d8b77a;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.95rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hsb-home-hero__title {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size:
    clamp(2.4rem, 4.8vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hsb-home-hero__description {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255,255,255,0.88);
  font-size:
    clamp(1rem, 1.3vw, 1.2rem);
  line-height: 2;
}

.hsb-home-hero__actions {
  margin-top: 34px;
}

.hsb-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border-radius: 14px;
  background: #9b753d;
  color: #fff;
  font-weight: 800;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.25);
}

.hsb-home-hero__stats {
  display: none;
}

@media(max-width:900px){

  .hsb-home-hero,
  .hsb-home-hero__content {
    min-height: 600px;
  }

  .hsb-home-hero__content {
    width: calc(100% - 32px);
  }

  .hsb-home-hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(10,15,20,0.72),
        rgba(10,15,20,0.88)
      );
  }

}


/* HSB HERO TYPOGRAPHY FIX */

.hsb-home-hero__content {
  width: min(1280px, calc(100% - 80px));
  align-items: flex-start;
}

.hsb-home-hero__title {
  max-width: 620px;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hsb-home-hero__description {
  max-width: 560px;
  font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  line-height: 2;
}

.hsb-home-hero__actions {
  margin-top: 26px;
}

@media (min-width: 1400px) {

  .hsb-home-hero__content {
    width: min(1280px, calc(100% - 120px));
  }

  .hsb-home-hero__title {
    max-width: 650px;
    font-size: 3.4rem;
  }

}

@media (max-width: 1100px) {

  .hsb-home-hero__title {
    max-width: 560px;
    font-size: clamp(2rem, 5vw, 3rem);
  }

}


/* HSB HERO NATURAL WIDTH */

.hsb-home-hero__content {
  width: min(1400px, calc(100% - 80px));
}

.hsb-home-hero__title {
  max-width: none;
  width: auto;
  font-size: clamp(2.2rem, 3.4vw, 4rem);
  line-height: 1.22;
}

.hsb-home-hero__description {
  max-width: 820px;
  width: auto;
}

@media (min-width: 1500px) {

  .hsb-home-hero__title {
    font-size: 3.8rem;
  }

}


/* HSB HERO POLISH */

.hsb-home-hero {
  min-height: 620px;
}

.hsb-home-hero__content {
  min-height: 620px;
  justify-content: center;
}

.hsb-home-hero__title {
  max-width: 900px;
  font-size: clamp(2.2rem, 3.4vw, 3.8rem);
  line-height: 1.22;
}

.hsb-home-hero__description {
  display: inline-block;
  max-width: 760px;
  margin-top: 24px;
  padding: 16px 22px;
  border-radius: 18px;
  background:
    rgba(20, 24, 30, 0.62);
  border:
    1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.18);
}

.hsb-home-hero__actions {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 28px;
}

.hsb-home-hero__button {
  padding: 0 32px;
  min-height: 52px;
}

@media (max-width:900px){

  .hsb-home-hero,
  .hsb-home-hero__content {
    min-height: 560px;
  }

  .hsb-home-hero__description {
    padding: 14px 16px;
  }

}


/* HSB HERO WIDTH CLEANUP */

.hsb-home-hero__content {
  width: calc(100% - 80px);
}

.hsb-home-hero__title {
  max-width: none;
  width: auto;
}

.hsb-home-hero__description {
  max-width: none;
  width: fit-content;
}

.hsb-home-hero__actions {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  direction: ltr;
}

.hsb-home-hero__button {
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 900px) {

  .hsb-home-hero__content {
    width: calc(100% - 32px);
  }

  .hsb-home-hero__description {
    width: 100%;
  }

}


/* HSB HERO ALIGNMENT FIX */

.hsb-home-hero__content {
  width: min(1400px, calc(100% - 120px));
  margin: 0 auto;
  direction: rtl;
  text-align: right;
}

.hsb-home-hero__title,
.hsb-home-hero__description,
.hsb-home-hero__eyebrow {
  margin-right: 0;
  margin-left: 0;
}

.hsb-home-hero__actions {
  width: auto;
  display: flex;
  justify-content: flex-start;
  direction: ltr;
}

.hsb-home-hero__button {
  margin: 0;
}

@media (max-width:900px){

  .hsb-home-hero__content {
    width: calc(100% - 32px);
  }

}


/* HSB HERO GOLD OVERLAY */

.hsb-home-hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(139, 107, 63, 0.82) 0%,
      rgba(139, 107, 63, 0.62) 38%,
      rgba(139, 107, 63, 0.28) 72%,
      rgba(139, 107, 63, 0.08) 100%
    );
}


/* HSB HERO LEFT SIDE LIGHTER OVERLAY */

.hsb-home-hero::after {
  background:
    linear-gradient(
      90deg,
      rgba(139, 107, 63, 0.66) 0%,
      rgba(139, 107, 63, 0.50) 38%,
      rgba(139, 107, 63, 0.22) 72%,
      rgba(139, 107, 63, 0.06) 100%
    );
}


/* HSB HERO TITLE STROKE */

.hsb-home-hero__title {
  -webkit-text-stroke:
    1px rgba(0, 0, 0, 0.22);

  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.45);
}


/* HSB HERO TITLE CLEANUP */

.hsb-home-hero__title {
  -webkit-text-stroke: 0;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.45);
}

.hsb-home-hero__eyebrow {
  color: #5f4528;
  font-size: 1.2rem;
  font-weight: 900;
}


/* HSB HERO EYEBROW ALIGNMENT */

.hsb-home-hero__eyebrow {
  margin-right: 0;
  margin-left: auto;
}


/* REMOVE EYEBROW ALIGNMENT CHANGE */

.hsb-home-hero__eyebrow {
  margin-left: 0;
  margin-right: 0;
}


/* HSB HERO EYEBROW WHITE SHADOW */

.hsb-home-hero__eyebrow {
  text-shadow:
    0 1px 2px rgba(255,255,255,0.85),
    0 2px 6px rgba(255,255,255,0.45);
}


/* HSB HERO EYEBROW SOFT GLOW */

.hsb-home-hero__eyebrow {
  text-shadow:
    0 0 12px rgba(255,255,255,0.75),
    0 0 24px rgba(255,255,255,0.45),
    0 2px 8px rgba(0,0,0,0.18);
}


/* HSB HERO MOBILE/TABLET IMAGE POSITION */

@media (max-width: 900px) {

  .hsb-home-hero__image {
    object-position: right center;
  }

}



/* ============================================================
   HSB HEADER ACTION VISIBILITY FIX
   Prevent duplicate account / preinvoice actions
   ============================================================ */

/* Mobile + Tablet: use only mobile actions */
@media (max-width: 991.98px) {

    .hsb-navbar-inner > .nav-actions {
        display: none !important;
    }

    .hsb-navbar-inner > .menu-and-cart {
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin-inline-start: auto;
    }

    .mobile-nav-actions {
        display: flex !important;
        align-items: center;
        gap: 8px;

        margin: 0;
        padding: 0;
    }

    .mobile-nav-actions > li,
    .mobile-nav-actions > .preinvoice-cart {
        margin: 0 !important;
        padding: 0 !important;
    }
}


/* Laptop + Desktop: use only desktop actions */
@media (min-width: 992px) {

    .hsb-navbar-inner > .nav-actions {
        display: flex !important;
    }

    .hsb-navbar-inner > .menu-and-cart {
        display: none !important;
    }
}


/* ============================================================
   HSB MOBILE NAVBAR FINAL ALIGNMENT
   Logo + hamburger on right / actions on left
   ============================================================ */

@media (max-width: 991.98px) {

    .hsb-navbar-inner {
        direction: rtl;
    }

    .hsb-navbar-inner > .navbar-brand {
        flex: 0 0 auto;
    }

    .hsb-navbar-inner > .menu-and-cart {
        flex: 1 1 auto;
        min-width: 0;

        margin: 0 !important;

        display: flex !important;
        align-items: center;
        justify-content: space-between;

        /*
         * Physical LTR layout inside this wrapper:
         * mobile actions = left edge
         * hamburger     = right edge beside logo
         */
        direction: ltr;
    }

    .hsb-navbar-inner
    .mobile-nav-actions {
        flex: 0 0 auto;

        margin: 0 !important;
        padding: 0;

        direction: rtl;
    }

    .hsb-navbar-inner
    .hamburger {
        flex: 0 0 44px;

        margin: 0 !important;
    }
}


/* ============================================================
   HSB HERO BRAND LOGO FINAL
   ============================================================ */

.hsb-home-hero__title {
  max-width: none;
  font-size: clamp(1.9rem, 2.25vw, 2.85rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.hsb-home-hero__description {
  width: auto;
  max-width: 1050px;
  margin-top: 20px;
  padding: 12px 18px;
  font-size: clamp(0.8rem, 0.88vw, 0.94rem);
  line-height: 1.95;
}

.hsb-home-hero__brand-logo {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(30px, 5vw, 90px);

  width: clamp(260px, 22vw, 390px);
  aspect-ratio: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.2);

  background: rgba(255,255,255,0.08);

  box-shadow:
    0 24px 60px rgba(0,0,0,0.24);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transform: translateY(-50%);
}

.hsb-home-hero__brand-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hsb-home-hero.has-brand-logo
.hsb-home-hero__content {
  box-sizing: border-box;
  padding-left: clamp(330px, 27vw, 470px);
}


@media (min-width: 1200px) {

  .hsb-home-hero__title {
    white-space: nowrap;
  }

}


@media (max-width: 1100px) {

  .hsb-home-hero__title {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  }

  .hsb-home-hero__brand-logo {
    width: clamp(180px, 20vw, 225px);
    left: 22px;
  }

  .hsb-home-hero.has-brand-logo
  .hsb-home-hero__content {
    padding-left: clamp(220px, 24vw, 270px);
  }

}


@media (max-width: 900px) {

  .hsb-home-hero__title {
    white-space: normal;
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    line-height: 1.3;
  }

  .hsb-home-hero__description {
    width: 100%;
    max-width: none;
    padding: 11px 14px;
    font-size: 0.81rem;
    line-height: 1.85;
  }

  .hsb-home-hero.has-brand-logo
  .hsb-home-hero__content {
    padding-left: 0;
    padding-bottom: 105px;
  }

  .hsb-home-hero__brand-logo {
    top: auto;
    left: 18px;
    bottom: 18px;

    width: 92px;
    padding: 7px;

    border-radius: 15px;

    transform: none;
  }

}


@media (max-width: 520px) {

  .hsb-home-hero__title {
    font-size: clamp(1.48rem, 6.7vw, 1.9rem);
  }

  .hsb-home-hero__description {
    font-size: 0.75rem;
    line-height: 1.8;
  }

  .hsb-home-hero__brand-logo {
    width: 76px;
    left: 14px;
    bottom: 14px;
  }

}

/* ============================================================
   HSB HERO LOGO / CONTENT EDGE ALIGNMENT
   ============================================================ */

@media (min-width: 901px) {

  .hsb-home-hero {
    --hsb-hero-side-edge:
      max(
        60px,
        calc((100vw - 1400px) / 2)
      );

    --hsb-hero-logo-size:
      clamp(260px, 22vw, 390px);
  }

  .hsb-home-hero__brand-logo {
    left: var(--hsb-hero-side-edge);
    width: var(--hsb-hero-logo-size);
  }

  .hsb-home-hero.has-brand-logo
  .hsb-home-hero__content {
    padding-left:
      calc(
        var(--hsb-hero-logo-size) + 22px
      );
  }

}


@media (min-width: 901px) and (max-width: 1100px) {

  .hsb-home-hero {
    --hsb-hero-side-edge: 60px;
    --hsb-hero-logo-size:
      clamp(180px, 20vw, 225px);
  }

  .hsb-home-hero.has-brand-logo
  .hsb-home-hero__content {
    padding-left:
      calc(
        var(--hsb-hero-logo-size) + 18px
      );
  }

}

/* ============================================================
   HSB HOME SEARCH — RESPONSIVE CONTAINER FINAL
   ============================================================ */

#hsb-home-search,
#hsb-home-search *,
#hsb-home-search *::before,
#hsb-home-search *::after {
  box-sizing: border-box;
}


/* Main search container */

#hsb-home-search.search-area {
  width: min(1400px, calc(100% - 32px));
  max-width: 1400px;
  min-width: 0;

  margin:
    1.5rem auto 0;

  padding: 0;

  gap: 1.25rem;

  overflow: visible;
}


/* ============================================================
   Product title search
   ============================================================ */

#hsb-home-search > form.search-input,
#hsb-home-search > form.search-input > .search-input,
#hsb-home-search .big-input-division {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#hsb-home-search
.big-input-division input {
  min-width: 0;
}


/* ============================================================
   Dimensional search main box
   ============================================================ */

#hsb-home-search
.new-search-container.new-compact.new-wide-mode {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin:
    var(--spacing-sm) 0;

  overflow: visible;
}

#hsb-home-search .new-search-section,
#hsb-home-search .new-exact-grid,
#hsb-home-search .new-range-grid,
#hsb-home-search .new-range-card,
#hsb-home-search .new-input-group,
#hsb-home-search .new-slider-wrapper,
#hsb-home-search .new-dual-slider {
  max-width: 100%;
  min-width: 0;
}


/* ============================================================
   Exact dimensional search
   Keep all 3 dimension inputs side-by-side
   ============================================================ */

#hsb-home-search .new-exact-grid {
  width: 100%;

  grid-template-columns:
    repeat(3, minmax(0, 1fr))
    minmax(110px, 140px);

  gap: 0.65rem;

  align-items: stretch;
}

#hsb-home-search .new-input-group {
  width: 100%;
  min-width: 0;

  align-items: center;
}

#hsb-home-search
.new-input-group label {
  flex: 0 0 auto;

  margin: 0;
  padding-left: 0.65rem;

  white-space: nowrap;
}

#hsb-home-search
.new-input-group input {
  flex: 1 1 auto;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  height: 41px;
}

#hsb-home-search
.new-exact-grid
.new-btn-search {
  width: 100%;
  min-width: 0;
}


/* ============================================================
   Approximate dimensional search
   ============================================================ */

#hsb-home-search .new-range-grid {
  width: 100%;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 0.65rem;
}

#hsb-home-search .new-range-card {
  width: 100%;
  min-width: 0;

  overflow: visible;
}

#hsb-home-search .new-card-title {
  width: 100%;
  max-width: 100%;

  line-height: 1.7;

  overflow-wrap: anywhere;
}


/*
 * Keep Min / Max handles and balloons
 * safely inside each range card.
 *
 * The track itself is inset from both edges,
 * instead of allowing the endpoint bubbles
 * to sit directly on the card boundary.
 */

#hsb-home-search .new-slider-wrapper {
  width: 100%;

  padding:
    45px
    10px
    12px;

  overflow: visible;
}

#hsb-home-search .new-dual-slider {
  width: 100%;
  min-width: 0;
}

#hsb-home-search .new-tooltip-bubble {
  max-width: 72px;

  gap: 2px;

  padding:
    3px 5px;
}

#hsb-home-search .new-handle-input {
  width: 30px;
  min-width: 30px;

  font-size: 0.78rem;
  line-height: 1;
}


/*
 * Smart magnetic tooltip positioning.
 *
 * Default = exactly above its own handle.
 * JS changes only --hsb-tooltip-shift when a tooltip
 * approaches a card edge or the opposite tooltip.
 */

#hsb-home-search .new-tooltip-bubble {
  --hsb-tooltip-shift: 0px;

  margin: 0;

  transform:
    translateX(
      calc(
        -50% +
        var(--hsb-tooltip-shift)
      )
    );

  transition:
    transform 90ms ease-out;

  will-change: transform;
}

/*
 * As the bubble moves, keep its triangle
 * pointing to the actual slider handle.
 */

#hsb-home-search
.new-tooltip-bubble::after {
  left:
    calc(
      50% -
      var(--hsb-tooltip-shift)
    );

  transition:
    left 90ms ease-out;
}


/* ============================================================
   HSB RANGE TOOLTIP DRAG GRIP
   ============================================================ */

/*
 * When handles get very close, the active one must always
 * remain reachable above the neighbouring handle.
 */

#hsb-home-search .new-slider-handle:hover,
#hsb-home-search .new-slider-handle:focus-within,
#hsb-home-search .new-slider-handle.is-dragging {
  z-index: 8;
}

#hsb-home-search .new-tooltip-bubble {
  pointer-events: auto;
}


/*
 * "از" / "تا" are explicit drag grips.
 * Number itself remains a normal editable input.
 */

#hsb-home-search .new-tooltip-label {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 16px;
  min-height: 20px;

  margin:
    -2px 0;

  padding:
    2px;

  border-radius: 5px;

  font-size: 0.7rem;
  line-height: 1;

  cursor: grab;

  user-select: none;
  -webkit-user-select: none;

  touch-action: none;
}

/*
 * Invisible touch / mouse grip.
 * ظاهر کوچک می‌ماند ولی گرفتن «از / تا» راحت است.
 */
#hsb-home-search .new-tooltip-label::before {
  content: "";

  position: absolute;
  inset: -5px;

  border-radius: 8px;
}

#hsb-home-search
.new-slider-handle.is-dragging
.new-tooltip-label {
  cursor: grabbing;

  background:
    rgba(255,255,255,0.1);
}

#hsb-home-search .new-handle-input {
  cursor: text;

  user-select: text;
  -webkit-user-select: text;

  touch-action: manipulation;
}


/* ============================================================
   Tablet
   ============================================================ */

@media (max-width: 992px) {

  #hsb-home-search.search-area {
    width:
      min(
        100% - 28px,
        1400px
      );
  }

  /*
   * Still keep the 3 dimensional fields
   * on one horizontal row.
   */

  #hsb-home-search .new-exact-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  #hsb-home-search
  .new-exact-grid
  .new-btn-search {
    grid-column:
      1 / -1;

    width: 100%;
  }

  #hsb-home-search .new-range-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 768px) {

  #hsb-home-search.search-area {
    width:
      calc(100% - 24px);

    margin-top: 1rem;
  }

  #hsb-home-search
  .new-search-container.new-compact.new-wide-mode {
    padding:
      0.75rem;
  }


  /*
   * IMPORTANT:
   * Inner / Outer / Height remain beside each other.
   * Labels move above their own inputs so the row
   * stays compact even on narrow screens.
   */

  #hsb-home-search .new-exact-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 0.4rem;
  }

  #hsb-home-search .new-input-group {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    gap: 0.3rem;

    padding:
      0.45rem;
  }

  #hsb-home-search
  .new-input-group label {
    width: 100%;

    padding: 0;
    margin: 0;

    font-size: 0.76rem;
    line-height: 1.4;

    text-align: center;

    white-space: nowrap;
  }

  #hsb-home-search
  .new-input-group input {
    width: 100%;
    min-width: 0;

    height: 36px;

    padding:
      3px 5px;

    font-size: 0.85rem;

    text-align: center;
  }

  #hsb-home-search
  .new-exact-grid
  .new-btn-search {
    grid-column:
      1 / -1;

    min-height: 42px;
  }


  /* Approximate search becomes one card per row */

  #hsb-home-search .new-range-grid {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 0.65rem;
  }

  #hsb-home-search .new-range-card {
    padding:
      0.75rem;
  }

  #hsb-home-search .new-slider-wrapper {
    padding:
      45px
      10px
      12px;
  }

}


/* ============================================================
   Small mobile
   ============================================================ */

@media (max-width: 480px) {

  #hsb-home-search.search-area {
    width:
      calc(100% - 20px);
  }

  #hsb-home-search
  .new-search-container.new-compact.new-wide-mode {
    padding:
      0.6rem;
  }

  #hsb-home-search .new-exact-grid {
    gap: 0.3rem;
  }

  #hsb-home-search .new-input-group {
    padding:
      0.35rem;
  }

  #hsb-home-search
  .new-input-group label {
    font-size:
      0.7rem;
  }

  #hsb-home-search
  .new-input-group input {
    height: 34px;

    font-size:
      0.78rem;
  }

  #hsb-home-search .new-slider-wrapper {
    padding-right: 8px;
    padding-left: 8px;
  }

}


/* HSB SEARCH HELP POPOVER CSS */

.hsb-search-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  gap: 7px;
}

.hsb-search-help-trigger {
  width: 26px;
  height: 26px;

  flex:
    0 0 26px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background:
    rgba(242, 189, 0, 0.14);

  color: #8a6700;

  font-size: 13px;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.hsb-search-help-trigger:hover,
.hsb-search-help-trigger:focus-visible,
.hsb-search-help-trigger.is-active {
  background: #f6c900;
  color: #151515;

  transform:
    scale(1.08);

  outline: none;
}


/*
 * Yellow comment-style explanation
 */

.hsb-search-help-popover[hidden] {
  display: none !important;
}

.hsb-search-help-popover {
  position: fixed;

  z-index: 100000;

  max-width:
    calc(100vw - 24px);

  padding:
    17px 18px 15px;

  direction: rtl;
  text-align: right;

  border:
    1px solid
    #d6a900;

  border-radius: 14px;

  background:
    #ffd94a;

  color: #171717;

  box-shadow:
    0 12px 32px
    rgba(0, 0, 0, 0.22);

  font-size: 12px;

  line-height: 1.9;
}


/* comment tail */

.hsb-search-help-popover::before {
  content: "";

  position: absolute;

  top: -8px;
  left: 50%;

  width: 15px;
  height: 15px;

  background: #ffd94a;

  border-top:
    1px solid #d6a900;

  border-left:
    1px solid #d6a900;

  transform:
    translateX(-50%)
    rotate(45deg);
}

.hsb-search-help-popover.is-above::before {
  top: auto;
  bottom: -8px;

  border-top: 0;
  border-left: 0;

  border-right:
    1px solid #d6a900;

  border-bottom:
    1px solid #d6a900;
}


.hsb-search-help-popover__close {
  position: absolute;

  top: 7px;
  left: 8px;

  width: 25px;
  height: 25px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background:
    rgba(0, 0, 0, 0.1);

  color: #171717;

  font-size: 18px;
  line-height: 1;

  cursor: pointer;
}

.hsb-search-help-popover__title {
  display: block;

  padding-left: 26px;

  margin-bottom: 9px;

  font-size: 13px;
  font-weight: 900;
}

.hsb-search-help-popover__item {
  margin-top: 6px;
}

.hsb-search-help-popover__item b {
  font-weight: 900;
}

.hsb-search-help-popover__tip {
  margin-top: 10px;

  padding:
    7px 9px;

  border-radius: 8px;

  background:
    rgba(255,255,255,0.42);

  font-weight: 700;
}


@media (max-width: 520px) {

  .hsb-search-help-trigger {
    width: 24px;
    height: 24px;

    flex-basis: 24px;

    font-size: 12px;
  }

  .hsb-search-help-popover {
    padding:
      15px 15px 13px;

    font-size: 11px;

    line-height: 1.85;
  }

}

/* END HSB SEARCH HELP POPOVER CSS */
