/* =========================================================
   components.css
   استایل هدر سایت «فرش سجاده»
   تم: مشکی لوکس + طلایی، الهام گرفته از معماری اسلامی
   ========================================================= */

   :root {
	--gold: #c9a15a;
	--gold-light: #e3c98a;
	--ink-soft: #14161b;

	/* سبز کله‌غازی - بک‌گراند هدر */
	--kalaghazi: #104e49;
	--kalaghazi-deep: #0a3a36;
	--kalaghazi-light: #17796c;
	--tosi-deep: #0f312d;

	--cream: #f3ecdd;
	--muted: #b7cec7;
	--border: rgba(201, 161, 90, 0.28);
	--header-h: 92px;
	--header-h-mobile: 68px;
	--ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html{
    scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	background-color: #fbf7ec;

}


.container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* =========================== هدر پایه =========================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	/* شیشه‌ی مات (frosted) به‌جای شیشه‌ی شفاف: بلور بیشتر + پس‌زمینه‌ی پررنگ‌تر برای خوانایی متن */
	background: linear-gradient(180deg, rgba(0, 21, 17, 0.892), rgb(0, 39, 36));
	-webkit-backdrop-filter: blur(36px) saturate(150%);
	backdrop-filter: blur(36px) saturate(150%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 8px 32px rgba(0, 0, 0, 0.28);
}

.header-inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* ------------------------- لوگو ------------------------- */
.brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
}

.brand-logo {
    height: 56px;
    width: auto;
    max-width: 100%;
    display: block;
}

@media (max-width: 576px) {
    .brand-logo {
        height: 44px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .brand-logo {
        height: 44px;
    }
}
.brand-icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold);
	border: 1px solid var(--border);
	border-radius: 10px;
	background: rgba(201, 161, 90, 0.06);
}
.brand-icon svg { width: 24px; height: 24px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.5; }
.brand-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--gold-light);
	letter-spacing: 0.2px;
}
.brand-tagline {
	font-size: 11.5px;
	color: var(--muted);
}

/* ------------------------- منوی دسکتاپ ------------------------- */
.main-nav { order: 2; flex: 1; display: flex; justify-content: center; }

.nav-list { display: flex; align-items: center; gap: 4px;  }

.nav-item { position: relative; }

.nav-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 500;
	color: var(--cream);
	position: relative;
	transition: color 0.25s var(--ease);
}

/* آندرلاین انیمیشنی روی هاور */
.nav-link::after {
	content: '';
	position: absolute;
	right: 16px;
	left: 16px;
	bottom: 4px;
	height: 2px;
	background: linear-gradient(90deg, var(--gold), var(--gold-light));
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.35s var(--ease);
}

/* .is-active از طریق JS روی آیتمی که کلیک شده تنظیم می‌شود (نه پیش‌فرض روی «صفحه اصلی») */
.nav-link:hover,
.nav-link.is-active {
	color: var(--gold-light);
}
.nav-link:hover::after,
.nav-link.is-active::after {
	transform: scaleX(1);
}
/* وقتی موس از روی آیتم غیرفعال خارج می‌شود ولی آیتم دیگری active است، خط active باید بماند
   و همزمان اگر روی آیتم دیگری هاور شود، خط زیر همان یکی هم نمایش داده می‌شود (چند خط هم‌زمان مجاز) */

.chevron {
	width: 14px;
	height: 14px;
	transition: transform 0.3s var(--ease);
}
.nav-item.has-dropdown:hover .chevron,
.nav-item.has-dropdown.is-open .chevron {
	transform: rotate(180deg);
}

/* ------------------------- مگامنوی دسته‌بندی ------------------------- */
.mega-menu {
	position: absolute;
	top: calc(100% + 0px);
	right: 50%;
	transform: translate(50%, -8px);
	width: 640px;
	max-width: 90vw;
	background: rgba(9, 52, 48, 0.9);
	-webkit-backdrop-filter: blur(30px) saturate(150%);
	backdrop-filter: blur(30px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(0,0,0,0.5);
	padding: 28px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
	z-index: 50;
}

.nav-item.has-dropdown:hover .mega-menu,
.nav-item.has-dropdown.is-open .mega-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(50%, 0);
}

.mega-menu-inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.mega-col-title {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--gold-light);
	border-bottom: 1px solid var(--border);
	padding-bottom: 10px;
}

.mega-col ul { display: flex; flex-direction: column; gap: 9px; }
.mega-col a {
	font-size: 13.5px;
	color: var(--muted);
	transition: color 0.2s, padding-right 0.2s;
}
.mega-col a:hover { color: var(--gold-light); padding-right: 4px; }

/* ------------------------- آیکون‌های سمت چپ ------------------------- */
.header-actions { display: flex; align-items: center; gap: 6px; order: 3; flex-shrink: 0; }

.icon-btn {
	position: relative;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	color: var(--cream);
	transition: background 0.25s, color 0.25s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(201,161,90,0.1); color: var(--gold-light); }

.cart-badge {
	position: absolute;
	top: 2px;
	left: 2px;
	background: var(--gold);
	color: var(--ink);
	font-size: 10px;
	font-weight: 700;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ------------------------- پنل جستجو (شیک‌تر، شیشه‌ای، خواناتر) ------------------------- */
.search-panel {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
	pointer-events: none;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(9, 52, 48, 0.85);
	-webkit-backdrop-filter: blur(30px) saturate(160%);
	backdrop-filter: blur(30px) saturate(160%);
}
.search-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}
.search-panel-inner {
	padding: 26px 32px 30px;
}
.search-box {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 640px;
	margin: 0 auto;
	padding: 16px 22px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 24px rgba(0,0,0,0.22);
	transition: border-color 0.25s, background 0.25s;
	color: var(--muted);
}
.search-box:focus-within {
	border-color: rgba(201, 161, 90, 0.5);
	background: rgba(255, 255, 255, 0.14);
}
.search-box svg { width: 19px; height: 19px; flex-shrink: 0; }
.search-input {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	color: var(--cream);
	font-family: inherit;
	font-size: 15.5px;
}
.search-input::placeholder { color: var(--muted); }
.search-close {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 20px;
	color: var(--muted);
	transition: background 0.2s, color 0.2s;
}
.search-close:hover { color: var(--gold-light); background: rgba(255,255,255,0.08); }

/* ------------------------- دکمه همبرگری ------------------------- */
.hamburger-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	order: 0;
	flex-shrink: 0;
}
.hamburger-btn span {
	width: 22px;
	height: 2px;
	background: var(--gold-light);
	border-radius: 2px;
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------- overlay مشترک ------------------------- */
.overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s var(--ease);
	z-index: 90;
}
.overlay.is-visible { opacity: 1; visibility: visible; }

/* ------------------------- منوی موبایل off-canvas از راست ------------------------- */
.mobile-menu {
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	height: 100dvh; /* ارتفاع واقعی صفحه در موبایل، بدون افتادن زیر نوار مرورگر */
	width: 50%;
	min-width: 230px;
	max-width: 420px;
	background: rgba(9, 52, 48, 0.93);
	-webkit-backdrop-filter: blur(34px) saturate(160%);
	backdrop-filter: blur(34px) saturate(160%);
	border-left: 1px solid rgba(255, 255, 255, 0.1);
	transform: translateX(100%);
	-webkit-transform: translateX(100%);
	transition: transform 0.4s var(--ease);
	z-index: 110;
	/* اجبار به لایه‌ی گرافیکی مجزا؛ باگ شناخته‌شده‌ی سافاری با backdrop-filter + transform را رفع می‌کند */
	isolation: isolate;
	will-change: transform;

	/* ستون عمودی: هدر ثابت بالا + بدنه‌ی قابل‌اسکرول مستقل، تا هیچ آیتمی گم نشود */
	display: flex;
	flex-direction: column;
}
.mobile-menu.is-open { transform: translateX(0); -webkit-transform: translateX(0); }

.mobile-menu-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}
.mobile-menu-close { font-size: 26px; color: var(--muted); }

.mobile-menu-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.mobile-nav-list { padding: 8px 0 32px; }
.mobile-nav-item { border-bottom: 1px solid var(--border); }
.mobile-nav-row { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-link {
	flex: 1;
	padding: 16px 22px;
	font-size: 15.5px;
	color: var(--cream);
}
.mobile-nav-link.is-active { color: var(--gold-light); font-weight: 600; }

.mobile-sub-toggle {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
}
.mobile-sub-toggle svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.mobile-nav-item.is-open .mobile-sub-toggle svg { transform: rotate(180deg); }

.mobile-sub-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s var(--ease);
	background: rgba(0,0,0,0.2);
}
.mobile-nav-item.is-open .mobile-sub-panel { max-height: 600px; }

.mobile-sub-group { padding: 10px 22px; }
.mobile-sub-group-title {
	display: block;
	font-size: 12.5px;
	color: var(--gold-light);
	margin-bottom: 8px;
}
.mobile-sub-group ul { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.mobile-sub-group a { font-size: 13.5px; color: var(--muted); }
.mobile-sub-group a:hover { color: var(--gold-light); }

/* =========================================================
   ریسپانسیو
   ========================================================= */

/* تبلت */
@media (max-width: 1024px) {
	.container { padding: 0 20px; }
	.nav-list { gap: 0; }
	.nav-link { padding: 10px 12px; font-size: 14px; }
	.mega-menu { width: 520px; }
}

/* موبایل و تبلت کوچک: مخفی کردن منوی دسکتاپ، نمایش همبرگری */
@media (max-width: 900px) {
	.header-inner { height: var(--header-h-mobile); }
	.main-nav { display: none; }
	.hamburger-btn { display: flex; }
	.brand { order: 2; }
	.header-actions { order: 3; }
	.hamburger-btn { order: 1; }
	.brand-tagline { display: none; }
	.brand-icon { width: 38px; height: 38px; }
	.brand-title { font-size: 17px; }
}

@media (max-width: 480px) {
	.container { padding: 0 14px; }
	.icon-btn { width: 38px; height: 38px; }
	/* روی گوشی هم نصف صفحه باز شود، نه تمام صفحه */
	.mobile-menu { width: 50%; min-width: 200px; }
}

/* احترام به کاربرانی که انیمیشن کمتر می‌خواهند */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.001ms !important; }
}

/* =========================================================
   CARPET SHOP — PREMIUM HERO SLIDER
========================================================= */

.hero-slider {
    --slider-height: 560px;
    position: relative;
    width: 100%;
    height: var(--slider-height);
    overflow: hidden;
    background: #013e39;
    isolation: isolate;
}



/* =========================================================
   TRACK
========================================================= */

.hero-slider-track {
    position: relative;

    width: 100%;
    height: 100%;
}


/* =========================================================
   SLIDE
========================================================= */

.hero-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: scale(1.025);

    transition:
        opacity .65s ease,
        transform 1.1s cubic-bezier(.22,1,.36,1),
        visibility .65s ease;
}


.hero-slide:first-child {
    position: absolute;
}


.hero-slide.is-active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: scale(1);
}


/* =========================================================
   LINK
========================================================= */

.hero-slide-link {
    display: block;

    width: 100%;
    height: 100%;

    text-decoration: none;
}


/* =========================================================
   PICTURE
========================================================= */

.hero-slide picture {
    display: block;

    width: 100%;
    height: 100%;
}


/* =========================================================
   IMAGE
========================================================= */

.hero-slide-image {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    transition:
        transform 1.2s cubic-bezier(.22,1,.36,1);
}


/* زوم خیلی ظریف روی اسلاید فعال */

.hero-slide.is-active .hero-slide-image {
    transform: scale(1.01);
}


/* =========================================================
   DARK EDGE
   فقط برای اینکه اسلایدر عمق بیشتری داشته باشد
========================================================= */

.hero-slider::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.03) 0%,
            rgba(0,0,0,0) 55%,
            rgba(0,0,0,.16) 100%
        );
}


/* =========================================================
   ARROWS
========================================================= */

.hero-slider-arrow {
    position: absolute;

    top: 50%;
    z-index: 20;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;

    background:
        rgba(1,62,57,.48);

    color: #fff;

    cursor: pointer;

    opacity: .9;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transform: translateY(-50%);

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .3s cubic-bezier(.22,1,.36,1),
        opacity .25s ease;
}


.hero-slider-arrow svg {
    width: 20px;
    height: 20px;
}


.hero-slider-prev {
    right: 28px;
}


.hero-slider-next {
    left: 28px;
}


.hero-slider-arrow:hover {
    opacity: 1;

    background:
        rgba(1,62,57,.85);

    border-color:
        rgba(255,255,255,.55);

    transform:
        translateY(-50%)
        scale(1.08);
}


.hero-slider-arrow:active {
    transform:
        translateY(-50%)
        scale(.95);
}


/* =========================================================
   PAGINATION
========================================================= */

.hero-slider-pagination {
    position: absolute;

    left: 50%;
    bottom: 22px;

    z-index: 20;

    display: flex;
    align-items: center;

    gap: 7px;

    transform: translateX(-50%);
}


.hero-slider-dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: 0;
    border-radius: 100px;

    background:
        rgba(255,255,255,.48);

    cursor: pointer;

    transition:
        width .35s cubic-bezier(.22,1,.36,1),
        background .25s ease,
        transform .25s ease;
}


.hero-slider-dot:hover {
    transform: scale(1.2);

    background: #fff;
}


.hero-slider-dot.is-active {
    width: 26px;

    background: #fff;
}


/* =========================================================
   PROGRESS
========================================================= */

.hero-slider-progress {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 21;

    width: 100%;
    height: 3px;

    overflow: hidden;

    background:
        rgba(255,255,255,.14);
}


.hero-slider-progress span {
    display: block;

    width: 0;
    height: 100%;

    background:
        #013e39;

    transform-origin: right center;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */


@media (min-width: 1440px) {

    .hero-slider {
        --slider-height: 620px;
    }
}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1200px) {

    .hero-slider {
        --slider-height: 500px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .hero-slider {
        --slider-height: 440px;
    }


    .hero-slider-arrow {
        width: 44px;
        height: 44px;
    }


    .hero-slider-prev {
        right: 18px;
    }


    .hero-slider-next {
        left: 18px;
    }


    .hero-slider-pagination {
        bottom: 18px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .hero-slider {
        --slider-height: 300px;
    }


    .hero-slide-image {
        object-position: center;
    }


    .hero-slider-arrow {
        width: 38px;
        height: 38px;
    }


    .hero-slider-arrow svg {
        width: 17px;
        height: 17px;
    }


    .hero-slider-prev {
        right: 10px;
    }


    .hero-slider-next {
        left: 10px;
    }


    .hero-slider-pagination {
        bottom: 15px;

        gap: 6px;
    }


    .hero-slider-dot {
        width: 6px;
        height: 6px;
    }


    .hero-slider-dot.is-active {
        width: 21px;
    }


    .hero-slider-progress {
        height: 2px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .hero-slider {
        --slider-height: 250px;
    }


    .hero-slider-arrow {
        width: 34px;
        height: 34px;
    }


    .hero-slider-arrow svg {
        width: 15px;
        height: 15px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-slide,
    .hero-slide-image,
    .hero-slider-arrow,
    .hero-slider-dot {
        transition: none !important;
    }

}

/* ===================================================================
   NB-FEATURE-STRIP — هماهنگ با متغیرهای روت سایت
   =================================================================== */
   .section-2{
		padding:0 clamp(16px, 4vw, 40px);

   }
   .nb-fs-wrap{
	max-width:1240px;
	margin:0 auto;
	box-sizing:border-box;
	box-shadow: 2px 5px 18px gray;
    border-radius: 30px;
	background-color: #f3ecdd;

  }
  .nb-fs-wrap *{box-sizing:border-box;}
  
  .nb-fs-card{	
	background:linear-gradient(180deg, var(--tosi-deep), var(--tosi-deep));
	border:1px solid var(--border);
	border-radius:18px;
	box-shadow:0 20px 50px -20px rgba(10, 20, 18, .45);
	display:flex;
	flex-wrap:nowrap;          /* هیچ‌وقت زیر هم نمی‌ره */
	align-items:stretch;
	width:100%;
	overflow:hidden;
	
  }
  
  .nb-fs-item{
	flex:1 1 0%;
	min-width:0;
	display:flex;
	flex-direction:column;
	align-items:center;
	text-align:center;
	gap:clamp(3px,1vw,8px);
	padding:clamp(8px,2.4vw,22px) clamp(2px,1.4vw,14px);
	position:relative;
	transition:background var(--ease) .25s;

  }
  
  /* خط جداکننده‌ی معلق (inset) بین هر دو آیتم کنار هم */
  .nb-fs-item:not(:last-child)::after{
	content:"";
	position:absolute;
	right:0;
	top:22%;
	bottom:22%;
	width:1px;
	background:var(--border);
  }
  
  .nb-fs-item:hover{
	background:rgba(201,161,90,.06);
  }
  .nb-fs-item + .nb-fs-item::before{
	content:"";
	position:absolute; right:100%; top:16%; bottom:16%;
	width:1px;
	background:var(--border);
	
  }
  
  .nb-fs-icon{
	width:clamp(20px,4.2vw,42px);
	height:clamp(20px,4.2vw,42px);
	display:flex; align-items:center; justify-content:center;
	border:1px solid var(--border);
	border-radius:50%;
	color:var(--gold);
	flex:none;
	transition:border-color var(--ease) .25s, transform var(--ease) .25s;
  }
  .nb-fs-item:hover .nb-fs-icon{
	border-color:var(--gold);
	transform:translateY(-2px);
  }
  .nb-fs-icon svg{width:56%; height:56%; stroke:var(--gold); fill:none;}
  
  .nb-fs-title{
	color:var(--cream);
	font-weight:700;
	font-size:clamp(8px,1.55vw,14px);
	line-height:1.25;
	word-break:break-word;
	
  }
  .nb-fs-sub{
	color:var(--muted);
	font-size:clamp(8px,1.15vw,12px);
	font-weight:400;
	display:block;
  }
  
  @media (max-width:640px){
	.nb-fs-sub{display:none;}
	.nb-fs-card{border-radius:14px;}
	.nb-fs-item{padding:8px 2px;}
	.nb-fs-icon{width:22px; height:22px;}
  }
  @media (max-width:380px){
	.nb-fs-title{font-size:7.5px;}
	.nb-fs-icon{width:18px; height:18px;}
  }
  
  @media (prefers-reduced-motion: reduce){
	.nb-fs-wrap *{transition:none !important;}
  }
  .nb-fs-card{
	background:linear-gradient(180deg, var(--kalaghazi), var(--kalaghazi-deep));
	border:1px solid var(--border);
	border-radius:18px;
	box-shadow:
	  0 24px 48px -20px rgba(10, 25, 22, .55),
	  0 8px 20px -10px rgba(10, 25, 22, .35),
	  0 0 0 1px rgba(201,161,90,.06),
	  inset 0 1px 0 rgba(255,255,255,.04);
	display:flex;
	flex-wrap:nowrap;
	align-items:stretch;
	width:100%;
	overflow:hidden;
  }
  
  .nb-fs-item{
	flex:1 1 0%;
	min-width:0;
	display:flex;
	flex-direction:column;
	align-items:center;
	text-align:center;
	gap:clamp(4px,1.2vw,8px);
	padding:clamp(10px,2.6vw,22px) clamp(3px,1.6vw,14px);
	position:relative;
	transition:background var(--ease) .25s;
  }
  .nb-fs-item:hover{
	background:rgba(201,161,90,.06);
  }
  .nb-fs-item:not(:last-child)::after{
	content:"";
	position:absolute;
	right:0;
	top:22%;
	bottom:22%;
	width:1px;
	background:var(--border);
  }
  
  .nb-fs-icon{
	width:clamp(22px,4.4vw,42px);
	height:clamp(22px,4.4vw,42px);
	display:flex; align-items:center; justify-content:center;
	border:1px solid var(--border);
	border-radius:50%;
	color:var(--gold);
	flex:none;
	transition:border-color var(--ease) .25s, transform var(--ease) .25s;
  }
  .nb-fs-item:hover .nb-fs-icon{
	border-color:var(--gold);
	transform:translateY(-2px);
  }
  .nb-fs-icon svg{width:56%; height:56%; stroke:var(--gold); fill:none;}
  
  .nb-fs-title{
	color:var(--cream);
	font-weight:700;
	font-size:clamp(9.5px,2.6vw,14px);
	line-height:1.3;
	letter-spacing:0;
	word-break:break-word;
  }
  .nb-fs-sub{
	color:var(--muted);
	font-size:clamp(8px,1.15vw,12px);
	font-weight:400;
	display:block;
  }
  
  @media (max-width:640px){
	.nb-fs-sub{display:none;}
	.nb-fs-card{border-radius:14px;}
	.nb-fs-item{padding:10px 3px;}
	.nb-fs-icon{width:26px; height:26px;}
	.nb-fs-title{font-size:10.5px;}
  }
  @media (max-width:380px){
	.nb-fs-title{font-size:9.5px;}
	.nb-fs-icon{width:22px; height:22px;}
  }
  @media (max-width:640px){
	.nb-fs-sub{display:none;}
	.nb-fs-card{border-radius:14px;}
	.nb-fs-item{padding:10px 3px;}
	.nb-fs-icon{width:26px; height:26px;}
	.nb-fs-title{font-size:10.5px;}
  
	.nb-fs-item--hide-mobile{
	  display:none;
	}
  }
  
  /* =========================================================
   CATEGORIES SECTION
   دسته‌بندی محصولات
========================================================= */

.categories-section {
    position: relative;
    padding: 30px 0;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(16, 78, 73, 0.16),
            transparent 45%
        ),
        var(--ink);
}

.categories-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}


/* =========================
   Heading
========================= */

.categories-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 48px;
}

.categories-eyebrow {
    display: inline-block;
    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 600;

    color: var(--gold);

    letter-spacing: 0.5px;
}

.categories-heading h2 {
    margin: 0 0 14px;

    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;

    color: var(--kalaghazi-deep);
}

.categories-heading p {
    margin: 0;

    font-size: 14px;
    line-height: 2;

    color: var(--kalaghazi-light);
}


/* =========================
   Grid
========================= */

.categories-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================
   Card
========================= */

.category-card {
    position: relative;

    display: block;

    min-width: 0;

    overflow: hidden;

    border-radius: 22px;

	background: linear-gradient(

	145deg,

	var(--kalaghazi-deep),

	var(--kalaghazi)

);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.45s var(--ease),
        border-color 0.45s var(--ease),
        box-shadow 0.45s var(--ease);
}

.category-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(201, 161, 90, 0.38);

    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.4);
}


/* =========================
   Image
========================= */

.category-image {
    position: relative;

    width: 100%;

    aspect-ratio: 1.35 / 1;

    overflow: hidden;

    background: var(--kalaghazi-deep);
}

.category-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s var(--ease);
}

.category-card:hover .category-image img {
    transform: scale(1.07);
}


/* =========================
   Image Overlay
========================= */

.category-image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 20%,
            rgba(0, 0, 0, 0.5) 100%
        );

    pointer-events: none;
}


/* =========================
   Content
========================= */

.category-content {
    padding: 22px 22px 24px;
}

.category-content h3 {
    margin: 0 0 8px;

    font-size: 18px;
    font-weight: 700;

    color: var(--gold-light);
}

.category-content p {
    margin: 0 0 16px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.9;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================
   More
========================= */

.category-more {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-size: 13px;
    font-weight: 600;

    color: var(--cream);

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.category-more span {
    font-size: 17px;

    transition:
        transform 0.3s var(--ease);
}

.category-card:hover .category-more {
    color: var(--gold-light);

    gap: 12px;
}

.category-card:hover .category-more span {
    transform: translateX(-4px);
}


/* =========================
   No Image
========================= */

/* =========================================================
   CATEGORY GRID — DESKTOP
========================================================= */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 240px));
    justify-content: center;
    gap: 16px;
}

.category-card {
    border-radius: 14px;
    overflow: hidden;
}

.category-image {
    aspect-ratio: 1.25 / 1;
}

.category-content {
    padding: 13px 14px 15px;
}

.category-content h3 {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 5px;
}

.category-content p {
    font-size: 10.5px;
    line-height: 1.7;
    margin-bottom: 7px;
}

.category-more {
    font-size: 10.5px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .category-image {
        aspect-ratio: 1.15 / 1;
    }

    .category-content {
        padding: 10px 9px 12px;
    }

    .category-content h3 {
        font-size: 12px;
    }

    .category-content p {
        font-size: 9px;
        line-height: 1.6;
    }

    .category-more {
        font-size: 9px;
    }
}


/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 600px) {

    .categories-container {
        padding-left: 7px;
        padding-right: 7px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .category-card {
        width: 100%;
        border-radius: 12px;
    }

    .category-image {
        aspect-ratio: 1.08 / 1;
    }

    .category-content {
        padding: 10px 9px 12px;
    }

    .category-content h3 {
        font-size: 12px;
        line-height: 1.7;
        margin-bottom: 4px;
    }

    .category-content p {
        font-size: 10px;
        line-height: 1.7;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }

    .category-more {
        font-size: 10px;
        gap: 4px;
    }

    .category-more span {
        font-size: 13px;
    }
}
/* =========================================================
   VERY SMALL MOBILE
========================================================= */
@media (max-width: 380px) {

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-content {
        padding: 10px;
    }

    .category-content h3 {
        font-size: 12px;
    }

    .category-content p {
        font-size: 10px;
    }

    .category-more {
        font-size: 10px;
    }
}

/* =========================
   CENTER CATEGORY CONTENT
========================= */

.category-content {
    text-align: center;
}

.category-content h3,
.category-content p,
.category-more {
    text-align: center;
}

.category-more {
    justify-content: center;
}

/* =========================================================
   PRODUCTS PAGE
========================================================= */

.products-page {
    min-height: 70vh;
    background: #f7f9f8;
    color: #173c38;
}


/* =========================
   HERO
========================= */

.products-hero {
    padding: 70px 0 55px;
    background:
        linear-gradient(
            135deg,
            var(--kalaghazi-deep),
            var(--kalaghazi)
        );
    text-align: center;
}

.products-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
}

.products-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}

.products-hero p {
    max-width: 600px;
    margin: 12px auto 0;
    color: rgba(255,255,255,.68);
    font-size: 14px;
    line-height: 2;
}


/* =========================
   SECTION
========================= */

.products-section {
    padding: 45px 0 80px;
}


/* =========================
   TOOLBAR
========================= */

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.products-result {
    color: #78908c;
    font-size: 13px;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-sort select {
    position: relative;

    transition:
        background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}

.products-sort select:hover {
    background-color: var(--kalaghazi-light);
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(16, 78, 73, 0.15),
        0 14px 28px rgba(16, 78, 73, 0.22);
}

.products-sort select:active {
    transform: translateY(-1px);
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.products-sort select:focus {
    box-shadow:
        0 4px 8px rgba(16, 78, 73, 0.15),
        0 0 0 3px rgba(16, 78, 73, 0.15);
}



.btn-bazgasht {
    position: relative;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    border: 1px solid var(--kalaghazi);
    gap: 10px;
    padding: 8px 13px;
    border-radius: 10px;
    background: var(--kalaghazi);
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;

    box-shadow: 0 5px 15px rgba(16, 78, 73, .15);

    transition:
        background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}

/* افکت درخشش که از روی دکمه سر می‌خوره */
.btn-bazgasht::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.btn-bazgasht:hover::after {
    transform: translateX(100%);
}

/* آیکون داخل دکمه (اگه svg داره) هم یه‌کم حرکت کنه */
.btn-bazgasht svg {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-bazgasht:hover svg {
    transform: translateX(-3px);
}

/* حالت هاور: سایه‌ی عمیق‌تر و لایه‌ای */
.btn-bazgasht:hover {
    background-color: var(--kalaghazi-light);
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(16, 78, 73, 0.15),
        0 14px 28px rgba(16, 78, 73, 0.22);
}

/* حالت کلیک: برگشت سریع و فیزیکی */
.btn-bazgasht:active {
    transform: translateY(-1px);
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}





@media (min-width: 521px) {
    .btn-bazgasht{
            gap:40px; padding:9.70px 13px;

    }

}



/* =========================
   GRID
========================= */

.products-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 22px;
}


/* =========================
   CARD
========================= */

.product-card {
    min-width: 0;
    overflow: hidden;

    border: 1px solid #e5eeeb;
    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 8px 25px rgba(1,62,57,.06);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(1,62,57,.18);

    box-shadow:
        0 18px 40px rgba(1,62,57,.12);
}

.product-card-link {
    display: block;
    color: inherit;
}


/* =========================
   VISUAL
========================= */

.product-card-visual {
    aspect-ratio: 1 / .82;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #edf5f3,
            #f7faf9
        );
}

.product-placeholder {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: var(--kalaghazi);
    background: rgba(1,62,57,.07);
}

.product-placeholder svg {
    width: 28px;
    height: 28px;
}


/* =========================
   BODY
========================= */

.product-card-body {
    padding: 17px;
}

.product-category {
    display: block;

    margin-bottom: 6px;

    color: #78908c;
    font-size: 10px;
}

.product-name {
    margin: 0;

    color: #173c38;

    font-size: 15px;
    font-weight: 800;

    line-height: 1.8;
}

.product-description {
    display: -webkit-box;

    margin: 7px 0 0;

    overflow: hidden;

    color: #81928f;

    font-size: 11px;
    line-height: 1.8;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 15px;
    padding-top: 12px;

    border-top: 1px solid #edf2f0;
}

.product-code {
    color: #91a19e;
    font-size: 10px;
}

.product-view {
    display: flex;
    align-items: center;
    gap: 5px;

    color: var(--kalaghazi);
    font-size: 11px;
    font-weight: 700;

    transition: gap .25s ease;
}

.product-card:hover .product-view {
    gap: 8px;
}


/* =========================
   LOADING
========================= */

.products-loading {
    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 14px;

    color: #78908c;
    font-size: 12px;
}

.products-spinner {
    width: 32px;
    height: 32px;

    border: 2px solid #dce9e6;
    border-top-color: var(--kalaghazi);

    border-radius: 50%;

    animation:
        productsSpin .7s linear infinite;
}

@keyframes productsSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================
   EMPTY
========================= */

.products-empty {
    padding: 80px 20px;

    text-align: center;
}

.products-empty-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 18px;

    background: #edf5f3;
    color: var(--kalaghazi);
}

.products-empty-icon svg {
    width: 27px;
    height: 27px;
}

.products-empty h2 {
    margin: 0 0 7px;

    color: #173c38;
    font-size: 17px;
}

.products-empty p {
    margin: 0;

    color: #879794;
    font-size: 12px;
}


/* =========================
   ERROR
========================= */

.products-error {
    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;
}

.products-error h3 {
    margin: 0 0 8px;
}

.products-error p {
    color: #78908c;
}

.products-error button {
    padding: 10px 18px;

    border-radius: 10px;

    background: var(--kalaghazi);
    color: #fff;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .products-hero {
        padding: 45px 0 38px;
    }

    .products-hero h1 {
        font-size: 25px;
    }

    .products-section {
        padding: 30px 0 60px;
    }

    .products-toolbar {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .product-card {
        border-radius: 14px;
    }

    .product-card-body {
        padding: 13px;
    }

    .product-name {
        font-size: 13px;
    }
}

@media (max-width: 430px) {

    .products-grid {
        gap: 9px;
    }

    .product-card-body {
        padding: 11px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-description {
        font-size: 10px;
    }
}

/* =========================================================
   PRODUCT PAGE
========================================================= */

.product-page {
    padding: 55px 0 90px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 70px;
    align-items: start;
}


/* =========================
   GALLERY
========================= */

.product-gallery {
    min-width: 0;
}

.product-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 24px;
    background: #f4f6f5;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity .25s ease;
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b9996;
    font-size: 14px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
}

.product-thumbnail {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e3e9e7;
    background: #f5f7f6;
    cursor: pointer;
    transition:
        border-color .25s ease,
        transform .25s ease;
}

.product-thumbnail:hover {
    transform: translateY(-2px);
}

.product-thumbnail.is-active {
    border-color: var(--gold);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================
   INFO
========================= */

.product-info {
    padding-top: 12px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.product-label {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
}

.product-code {
    color: #899793;
    font-size: 11px;
}

.product-title {
    margin: 0;
    color: var(--cream);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.45;
    font-weight: 800;
}

.product-description {
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2.1;
}


/* =========================
   SIZE
========================= */

.product-option {
    margin-top: 32px;
}

.product-option-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--cream);
    font-size: 13px;
    font-weight: 700;
}

.product-option-head span:last-child {
    color: var(--gold-light);
}

.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-size {
    min-width: 78px;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: var(--muted);
    transition: .25s ease;
}

.product-size:hover,
.product-size.is-active {
    color: var(--gold-light);
    border-color: var(--gold);
    background: rgba(201,161,90,.08);
}


/* =========================
   PRICE
========================= */

.product-price-box {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.product-price-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
}

.product-price-box strong {
    color: var(--gold-light);
    font-size: 28px;
    font-weight: 800;
}

.product-price-box small {
    font-size: 11px;
    font-weight: 500;
}


/* =========================
   CART
========================= */

.product-actions {
    margin-top: 24px;
}

.product-add-cart {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    background: var(--gold);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 800;
    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.product-add-cart svg {
    width: 20px;
    height: 20px;
}

.product-add-cart:hover {
    transform: translateY(-2px);
    background: var(--gold-light);
    box-shadow: 0 12px 30px rgba(201,161,90,.18);
}


/* =========================
   FEATURES
========================= */

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.product-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 75px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.feature-icon {
    color: var(--gold);
    font-size: 15px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .product-detail {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .product-main-image {
        max-width: 650px;
        margin: auto;
    }

    .product-info {
        padding-top: 0;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .product-page {
        padding: 25px 0 60px;
    }

    .product-detail {
        gap: 25px;
    }

    .product-main-image {
        border-radius: 18px;
    }

    .product-thumbnail {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-description {
        font-size: 13px;
    }

    .product-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-feature {
        font-size: 9px;
        min-height: 70px;
    }

}

.cart-ajax-message {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 9999;

    min-width: 260px;

    padding: 14px 18px;

    border-radius: 14px;

    background: #ffffff;

    color: #173c38;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, .18);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease;
}


.cart-ajax-message.show {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


.cart-ajax-message.success {
    border-right:
        4px solid #17796c;
}


.cart-ajax-message.error {
    border-right:
        4px solid #b84a4a;
}


/* حالت در حال ارسال */

.add-to-cart-btn.loading {
    pointer-events: none;

    opacity: .7;
}


/* بعد از موفقیت */

.add-to-cart-btn.added {
    transform:
        translateY(-2px);
}


/* موبایل */

@media (max-width: 600px) {

    .cart-ajax-message {

        right: 14px;
        left: 14px;

        bottom: 14px;

        width: auto;

        min-width: 0;

        text-align: center;
    }

}
.cart-item {
    transition:
        opacity .25s ease,
        transform .25s ease;
}

.cart-quantity-plus:disabled,
.cart-quantity-minus:disabled,
.cart-item-remove:disabled {
    opacity: .5;
    pointer-events: none;
}
/* =========================================================
   CATEGORY PAGE
   PREMIUM CARPET SHOP
========================================================= */

.category-page {

    --cat-bg: #fbf8f1;
    --cat-surface: #ffffff;

    --cat-text: var(--ink-soft);
    --cat-text-soft: #5c5a54;

    --cat-gold: var(--gold);
    --cat-gold-light: var(--gold-light);
    --cat-gold-deep: #a9803f;

    --cat-kalaghazi: var(--kalaghazi);
    --cat-kalaghazi-deep: var(--kalaghazi-deep);
    --cat-kalaghazi-light: var(--kalaghazi-light);

    --cat-border: rgba(201, 161, 90, .3);

    color: var(--cat-text);

    background: var(--cat-bg);
    min-height: 70vh;
}


/* =========================================================
   CONTAINER
========================================================= */

.category-container {

    width: min(1380px, calc(100% - 18px));

    margin: 0 auto;
}


/* =========================================================
   CATEGORY HERO
========================================================= */

.category-hero {

    padding: 22px 0 22px;

    text-align: center;
}


.category-hero-content {

    max-width: 760px;

    margin: 0 auto;
}


.category-eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 13px;

    color: var(--cat-gold-deep);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: .2px;
}


.category-eyebrow::before,
.category-eyebrow::after {

    content: "";

    width: 28px;

    height: 1px;

    background: var(--cat-gold);

    opacity: .8;
}


.category-hero h1 {

    margin: 0;

    color: var(--cat-text);

    font-size: clamp(28px, 4vw, 43px);

    font-weight: 900;

    line-height: 1.4;

    letter-spacing: -.5px;
}


.category-hero p {

    max-width: 650px;

    margin: 15px auto 0;

    color: var(--cat-text-soft);

    font-size: 14px;

    line-height: 2;
}


/* =========================================================
   PRODUCTS SECTION
========================================================= */

.category-products-section {

padding: 8px 0 90px;
}


/* =========================================================
   TOP BAR
========================================================= */

.products-topbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(201, 161, 90, .22);
}


/* =========================================================
   PRODUCT COUNT
========================================================= */

.products-count {

    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--cat-kalaghazi);

    font-size: 13px;
}


.products-count strong {

    color: var(--cat-kalaghazi);

    font-size: 17px;

    font-weight: 800;
}


/* =========================================================
   SORT
========================================================= */

.products-sort {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--cat-text-soft);

    font-size: 13px;
}


/* =========================================================
   SORT BUTTON
========================================================= */

.sort-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 9px 14px;

    border:
        1px solid var(--cat-kalaghazi);

    border-radius: 11px;

    background:
        var(--cat-kalaghazi);

    color: var(--cream);

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(10, 58, 54, .12);

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}


.sort-button svg {

    width: 15px;

    height: 15px;
}


.sort-button:hover {

    background:
        var(--cat-kalaghazi-light);

    border-color:
        var(--cat-kalaghazi-light);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px rgba(10, 58, 54, .18);
}


/* =========================================================
   PRODUCTS GRID
========================================================= */
/* =========================================================
   PREMIUM PRODUCTS GRID
========================================================= */

.premium-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

/* =========================================================
   PREMIUM PRODUCTS GRID
   RESPONSIVE
========================================================= */

.premium-products-grid {
    display: grid !important;

    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    gap: 20px;

    width: 100%;
}


/* =========================================================
   TABLET
   801px تا 1100px
   3 کارت
========================================================= */

@media (max-width: 1100px) {

    .premium-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 17px;
    }

}


/* =========================================================
   MOBILE
   501px تا 800px
   2 کارت
========================================================= */

@media (max-width: 800px) {

    .premium-products-grid {
        gap: 13px;
    }

}


/* =========================================================
   SMALL MOBILE
   361px تا 500px
   2 کارت
========================================================= */

@media (max-width: 500px) {

    .premium-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   تا 360px
   همچنان 2 کارت
========================================================= */

@media (max-width: 360px) {

    .premium-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

}


/* =========================================================
   PRODUCT CARD
========================================================= */

.premium-product-card {
    position: relative;
    min-width: 0;
    width: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(201, 161, 90, .22);
    border-radius: 20px;

    background: var(--cat-surface, #fff);

    box-shadow:
        0 10px 28px rgba(20, 22, 27, .07);

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.premium-product-card:hover {
    transform: translateY(-5px);

    border-color: var(--cat-gold, #c9a15a);

    box-shadow:
        0 18px 38px rgba(20, 22, 27, .12);
}


/* =========================================================
   IMAGE
========================================================= */

.premium-product-image-wrap {
    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1.04;

    overflow: hidden;

    background: #f0ead9;

    flex-shrink: 0;
}

.premium-product-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .55s cubic-bezier(.2, .7, .2, 1);
}

.premium-product-card:hover .premium-product-image {
    transform: scale(1.035);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.premium-product-overlay {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 35%;

    background:
        linear-gradient(
            to top,
            rgba(20, 22, 27, .13),
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   STATUS
========================================================= */

.premium-product-status {
    position: absolute;

    top: 12px;
    right: 12px;

    padding: 6px 10px;

    border:
        1px solid rgba(227, 201, 138, .35);

    border-radius: 999px;

    background:
        rgba(16, 78, 73, .92);

    color:
        var(--cream, #f7f0df);

    font-size: 10px;
    font-weight: 700;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 6px 16px rgba(10, 58, 54, .18);

    z-index: 2;
}


/* =========================================================
   CONTENT
========================================================= */

.premium-product-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-width: 0;

    padding: 16px 15px 15px;
}


/* =========================================================
   CATEGORY
========================================================= */

.premium-product-category {
    display: block;

    min-height: 18px;

    margin-bottom: 5px;

    color:
        var(--cat-gold-deep, #a78343);

    font-size: 10px;
    font-weight: 700;

    line-height: 1.6;
}


/* =========================================================
   TITLE
   عنوان‌ها ارتفاع یکسان
========================================================= */

.premium-product-title {
    display: -webkit-box;

    min-height: 54px;

    margin: 0;

    overflow: hidden;

    color:
        var(--cat-text, #202124);

    font-size: 16px;
    font-weight: 800;

    line-height: 1.7;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   CODE
========================================================= */

.premium-product-code {
    min-height: 20px;
    align-items:center;
    margin-top: 6px;
font-size: 10px;
    color:
        var(--cat-text-soft, #77736b);

    line-height: 1.7;
}

.premium-product-code strong {
    color:#5f5f5f ;
       

    font-weight: 900;
    font-size: 8px;
    margin-right: 1px;
}


/* =========================================================
   PRODUCT COLORS - MOBILE / TABLET
   آخر فایل CSS قرار بگیرد
========================================================= */

.premium-product-color {
    width: 14px !important;
    height: 14px !important;

    min-width: 14px !important;
    min-height: 14px !important;

    flex: 0 0 14px !important;

    border-radius: 50% !important;

    border: 1px solid #fff !important;

    outline: 1px solid rgba(20, 22, 27, .15);

    box-shadow:
        0 1px 4px rgba(20, 22, 27, .10);
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 521px) and (max-width: 1100px) {

    .premium-product-color {
        width: 15px !important;
        height: 15px !important;

        min-width: 15px !important;
        min-height: 15px !important;

        flex-basis: 15px !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .premium-product-color {
        width: 12px !important;
        height: 12px !important;

        min-width: 12px !important;
        min-height: 12px !important;

        flex-basis: 12px !important;

        border-width: 1px !important;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .premium-product-color {
        width: 11px !important;
        height: 11px !important;

        min-width: 11px !important;
        min-height: 11px !important;

        flex-basis: 11px !important;
    }

}

/* =========================================================
   DESCRIPTION
========================================================= */

.premium-product-description {
    display: -webkit-box;

    margin: 8px 0 0;

    overflow: hidden;

    color:
        var(--cat-text-soft, #77736b);

    font-size: 11px;

    line-height: 1.8;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   PRICE
========================================================= */

.premium-product-price {
    display: flex;
    flex-direction: column;

    gap: 2px;

    margin-top: auto;
    padding-top: 12px;

    border-top:
        1px solid rgba(201, 161, 90, .18);
}

.price-label {
    color:
        var(--cat-text-soft, #77736b);

    opacity: .8;

    font-size: 9px;
}

.premium-product-price strong {
    color:
        var(--cat-gold-deep, #a78343);

    font-size: 17px;
    font-weight: 900;
}

.premium-product-price small {
    margin-right: 3px;

    color:
        var(--cat-text, #202124);

    opacity: .55;

    font-size: 9px;
}

.price-unavailable {
    color:
        var(--cat-gold-deep, #a78343);

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   BUTTON
========================================================= */

.premium-product-button {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    width: 100%;

    margin-top: 12px;

    padding: 10px 12px;

    border:
        1px solid var(--cat-kalaghazi, #104e49);

    border-radius: 11px;

    background:
        var(--cat-kalaghazi, #104e49);

    color:
        var(--cream, #f7f0df);

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.premium-product-button svg {
    width: 16px;
    height: 16px;

    flex-shrink: 0;

    transition:
        transform .25s ease;
}

.premium-product-button:hover {
    background:
        var(--cat-kalaghazi-light, #176b64);

    border-color:
        var(--cat-kalaghazi-light, #176b64);

    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(10, 58, 54, .16);
}

.premium-product-button:hover svg {
    transform: translateX(-3px);
}


/* =========================================================
   NO IMAGE
========================================================= */

.premium-product-no-image {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color:
        var(--cat-text-soft, #77736b);

    background:
        linear-gradient(
            145deg,
            #f3ecdd,
            #e9dfc7
        );

    font-size: 12px;
}


/* =========================================================
   EMPTY
========================================================= */

.category-empty {
    padding: 85px 20px;

    text-align: center;

    border:
        1px solid rgba(201, 161, 90, .25);

    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 10px 28px rgba(20, 22, 27, .06);
}

.category-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    border:
        1px solid rgba(201, 161, 90, .35);

    border-radius: 50%;

    color:
        var(--cat-gold-deep, #a78343);
}

.category-empty-icon svg {
    width: 28px;
    height: 28px;
}

.category-empty h2 {
    margin: 0;

    color:
        var(--cat-text, #202124);

    font-size: 20px;
}

.category-empty p {
    margin: 10px 0 0;

    color:
        var(--cat-text-soft, #77736b);

    font-size: 13px;
}

.category-empty a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 22px;

    padding: 11px 22px;

    border-radius: 10px;

    background:
        var(--cat-kalaghazi, #104e49);

    color:
        var(--cream, #f7f0df);

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   LARGE DESKTOP
   5 کارت
========================================================= */

@media (min-width: 1400px) {

    .premium-products-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        gap: 20px;
    }
}


/* =========================================================
   DESKTOP
   4 کارت
========================================================= */

@media (min-width: 1001px) and (max-width: 1399px) {

    .premium-products-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 18px;
    }
}


/* =========================================================
   TABLET
   3 کارت
========================================================= */

@media (min-width: 701px) and (max-width: 1000px) {

    .premium-products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px;
    }

    .premium-product-content {
        padding: 14px 12px 13px;
    }

    .premium-product-title {
        min-height: 50px;

        font-size: 13px;
    }

    .premium-product-code {
        font-size: 10px;
    }

    .premium-product-color {
        width: 17px;
        height: 17px;

        flex-basis: 17px;
    }

    .premium-product-color-list {
        gap: 4px;
    }

    .premium-product-price strong {
        font-size: 15px;
    }
}


/* =========================================================
   MOBILE
   دقیقاً 2 کارت
========================================================= */

@media (max-width: 700px) {

    .premium-products-grid {

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 10px;

        width: 100%;
    }

    .premium-product-card {

        width: 100%;
        min-width: 0;

        border-radius: 15px;
    }

    .premium-product-image-wrap {

        aspect-ratio: 1 / 1.02;
    }

    .premium-product-status {

        top: 7px;
        right: 7px;

        padding: 4px 7px;

        font-size: 8px;
    }

    .premium-product-content {

        padding: 11px 9px 10px;
    }

    .premium-product-category {

        min-height: 15px;

        margin-bottom: 0px;

        font-size: 10px;
    }

    .premium-product-title {

        min-height: 43px;

        font-size: 16px;

        line-height: 1.65;
    }

    .premium-product-code {

        min-height: 18px;

        margin-top: 4px;

        font-size: 12px;
    }

    /* رنگ‌ها */

    .premium-product-colors {

        gap: 5px;
        margin-right: 5px;

        min-height: 30px;

        margin-top: 0px;
    }

    .premium-product-colors-label {
color: var(--cat-text-soft, #77736b);
        font-size: 9px;
    }

    .premium-product-color-list {

        gap: 4px;
    }

    .premium-product-color {

        width: 15px;
        height: 15px;

        flex-basis: 15px;

        border-width: 1.5px;
    }

    .premium-product-price {

        margin-top: auto;

        padding-top: 8px;
    }

    .price-label {

        font-size: 7px;
    }

    .premium-product-price strong {

        font-size: 14px;
    }

    .premium-product-price small {

        font-size: 7px;
    }

    .premium-product-button {

        margin-top: 8px;

        padding: 8px 5px;

        min-height: 34px;

        font-size: 12px;

        border-radius: 9px;
    }

    .premium-product-button svg {

        width: 13px;
        height: 13px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .premium-products-grid {

        gap: 8px;
    }


    .premium-product-title {

        min-height: 40px;

        font-size: 10px;
    }

    .premium-product-code {

        font-size: 7.5px;
    }

    .premium-product-color {

        width: 14px;
        height: 14px;

        flex-basis: 14px;
    }

    .premium-product-button {

        font-size: 7.5px;
        padding: 7px 4px;
    }
}
/* =========================================================
   PRODUCT DETAIL PAGE
========================================================= */

.product-page {
    min-height: 70vh;
    padding: 35px 0 90px;
    background: #fbf8f1;
    color: var(--ink-soft);
}
@media (max-width:500px) {
    .product-page {

        margin-top: -23px;

    }
}




.product-container {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
}
.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #77736b;
    font-size: 12px;

    position: fixed;
    left: 16px;
    right: 16px;
    top: var(--header-height, 92px); /* مقدار واقعی با JS ست میشه */
    z-index: 999;

    width: auto;
    max-width: 1450px;
    margin: 0 auto;
    box-sizing: border-box;

    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;

    /* ---------- افکت شیشه‌ای ---------- */
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(16, 78, 73, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.product-breadcrumb.header-hidden {
    transform: translateY(calc(-100% - var(--header-height, 0px)));
}

.product-breadcrumb a {
    color: var(--kalaghazi);
    text-decoration: none;
    transition: color .25s ease;
}

.product-breadcrumb a:hover {
    color: var(--kalaghazi-light);
}

.product-breadcrumb .btn-product {
    overflow: hidden;
    margin-right: auto; /* می‌چسبونتش سمت چپ، بقیه breadcrumb راست می‌مونه */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid var(--kalaghazi);
    border-radius: 10px;
    background: var(--kalaghazi);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(16, 78, 73, .15);
    transition:
        background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

    
.btn-product::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.btn-product:hover::after {
    transform: translateX(100%);
}

/* آیکون داخل دکمه (اگه svg داره) هم یه‌کم حرکت کنه */
.btn-product svg {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-product:hover svg {
    transform: translateX(-3px);
}

/* حالت هاور: سایه‌ی عمیق‌تر و لایه‌ای */
.btn-product:hover {
    background-color: var(--kalaghazi-light);
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(16, 78, 73, 0.15),
        0 14px 28px rgba(16, 78, 73, 0.22);
}

/* حالت کلیک: برگشت سریع و فیزیکی */
.btn-product:active {
    transform: translateY(-1px);
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 801px) {
    .product-breadcrumb .btn-product {
        gap: 12px;
        padding: 11px 14px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .product-breadcrumb .btn-product {
        top: var(--header-h-mobile, 68px);
    }
}
/* =========================================================
   PRODUCT DETAIL
========================================================= */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    gap: 55px;
    align-items: start;
}

/* =========================================================
   GALLERY
========================================================= */

.product-gallery {
    min-width: 0;
}

.product-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / .92;
    overflow: hidden;

    border-radius: 24px;
    background: #eee7d7;

    border: 1px solid rgba(201, 161, 90, .2);

    box-shadow:
        0 18px 45px rgba(20, 22, 27, .08);
}

.product-main-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        opacity .25s ease,
        transform .5s cubic-bezier(.2,.7,.2,1);
}

.product-main-image:hover img {
    transform: scale(1.025);
}

.product-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #77736b;
    font-size: 14px;
}

/* =========================================================
   THUMBNAILS
========================================================= */

.product-thumbnails {
    display: flex;
    gap: 10px;

    margin-top: 14px;

    overflow-x: auto;
    scrollbar-width: thin;
}

.product-thumbnail {
    flex: 0 0 78px;

    width: 78px;
    height: 68px;

    padding: 0;

    overflow: hidden;

    border: 1px solid rgba(201, 161, 90, .2);
    border-radius: 12px;

    background: #fff;

    cursor: pointer;

    transition:
        border-color .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.product-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.product-thumbnail:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.product-thumbnail.is-active {
    border-color: var(--kalaghazi);

    box-shadow:
        0 0 0 2px rgba(16, 78, 73, .12);
}

/* =========================================================
   PRODUCT INFO
========================================================= */

.product-info {
    min-width: 0;

    padding: 10px 0;
}

.product-category {
    display: inline-flex;

    margin-bottom: 10px;

    color: var(--gold);
    text-decoration: none;

    font-size: 12px;
    font-weight: 800;
}

.product-category:hover {
    color: var(--gold-light);
}

.product-title {
    margin: 0;

    color: var(--ink-soft);

    font-size: clamp(27px, 3vw, 40px);
    font-weight: 900;

    line-height: 1.45;
}

.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 13px;

    color: #77736b;
    font-size: 12px;
}

.product-meta strong {
    color: var(--ink-soft);
    font-weight: 700;
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 10px;

    border-radius: 999px;

    background: var(--kalaghazi);

    color: var(--cream);

    font-size: 10px;
    font-weight: 700;
}

.product-status i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #84a98c;

    box-shadow:
        0 0 0 3px rgba(132, 169, 140, .15);
}

/* =========================================================
   DESCRIPTION
========================================================= */

.product-description {
    margin-top: 25px;
    padding-bottom: 24px;

    border-bottom:
        1px solid rgba(201, 161, 90, .2);

    color: #5c5a54;

    font-size: 13px;
    line-height: 2.15;
}

/* =========================================================
   PRODUCT OPTION
========================================================= */

.product-option {
    margin-top: 24px;
}

.product-option-header {
    display: flex;
    align-items: center;

    margin-bottom: 12px;
margin-right: 5px;
    font-size: 20px;
}

.product-option-header > span {
    color: var(--ink-soft);
    font-weight: 800;
}

.product-option-header strong {
    color: var(--kalaghazi);

    font-size: 17px;
    font-weight: 700;
}

/* =========================================================
   COLORS
========================================================= */

.product-colors {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
}

.product-color {
    position: relative;

    width: 37px;
    height: 37px;

    padding: 3px;

    border: 1px solid rgba(20, 22, 27, .12);
    border-radius: 50%;

    background: #fff;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.product-color span {
    display: block;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    background: var(--color-value);

    border: 1px solid rgba(0, 0, 0, .08);
}

.product-color:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.product-color.is-active {
    border-color: var(--kalaghazi);

    box-shadow:
        0 0 0 3px rgba(16, 78, 73, .12);
}

/* =========================================================
   SIZES
========================================================= */

.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.product-size {
    min-width: 76px;

    padding: 10px 15px;

    border: 1px solid rgba(201, 161, 90, .28);
    border-radius: 10px;

    background: #fff;

    color: var(--ink-soft);

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

.product-size:hover {
    transform: translateY(-2px);

    border-color: var(--kalaghazi);
}

.product-size.is-active {
    border-color: var(--kalaghazi);

    background: var(--kalaghazi);

    color: var(--cream);

    box-shadow:
        0 7px 18px rgba(10, 58, 54, .15);
}

/* =========================================================
   PRICE
========================================================= */

.product-price-box {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-top: 28px;
    padding: 20px 0;

    border-top:
        1px solid rgba(201, 161, 90, .2);

    border-bottom:
        1px solid rgba(201, 161, 90, .2);
}

.product-price-box > span {
    color: #77736b;
    font-size: 12px;
}

.product-price-box strong {
    color: var(--gold);

    font-size: 25px;
    font-weight: 900;
}

.product-price-box small {
    margin-right: 4px;

    color: #77736b;

    font-size: 10px;
    font-weight: 500;
}

/* =========================================================
   CART BUTTON
========================================================= */

.product-cart-box {
    margin-top: 20px;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    padding: 15px 20px;

    border: 1px solid var(--kalaghazi);
    border-radius: 13px;

    background: var(--kalaghazi);

    color: var(--cream);

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(10, 58, 54, .14);

    transition:
        background .3s ease,
        transform .3s ease,
        box-shadow .3s ease;
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

.add-to-cart-btn:hover {
    background: var(--kalaghazi-light);

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(10, 58, 54, .2);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .product-detail {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(320px, .9fr);

        gap: 32px;
    }

    .product-title {
        font-size: 30px;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .product-page {
        padding: 22px 0 60px;
    }

    .product-container {
        width:
            min(100% - 28px, 680px);
    }

    .product-detail {
        display: flex;
        flex-direction: column;

        gap: 28px;
    }

    .product-gallery {
        width: 100%;
    }

    .product-main-image {
        aspect-ratio: 1 / .95;
        border-radius: 18px;
    }

    .product-info {
        width: 100%;
        padding: 0;
    }

    .product-title {
        font-size: 27px;
    }

    .product-description {
        margin-top: 20px;
    }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .product-container {
        width:
            calc(100% - 22px);
    }

    .product-breadcrumb {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .product-main-image {
        border-radius: 15px;
    }

    .product-thumbnail {
        flex-basis: 65px;

        width: 65px;
        height: 58px;

        border-radius: 10px;
    }

    .product-title {
        font-size: 23px;
    }

    .product-meta {
        gap: 9px;
        font-size: 10px;
    }

    .product-description {
        font-size: 12px;
        line-height: 2;
    }

    .product-option {
        margin-top: 20px;
    }

    .product-color {
        width: 34px;
        height: 34px;
    }

    .product-size {
        min-width: 68px;
        padding: 9px 12px;
        font-size: 11px;
    }

    .product-price-box {
        margin-top: 22px;
        padding: 17px 0;
    }

    .product-price-box strong {
        font-size: 21px;
    }

    .add-to-cart-btn {
        padding: 14px 15px;
        font-size: 12px;
    }

}

/* =========================================================
   PRODUCT GALLERY NAVIGATION
========================================================= */

.product-main-image {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

/* =========================================================
   GALLERY BUTTONS
========================================================= */

.product-gallery-btn {

    position: absolute;

    top: 50%;

    z-index: 5;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, .35);

    border-radius: 50%;

    background:
        rgba(16, 78, 73, .88);

    color:
        var(--cream);

    cursor: pointer;

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    box-shadow:
        0 8px 22px rgba(10, 58, 54, .2);

    opacity: .9;

    transform:
        translateY(-50%);

    transition:
        background .25s ease,
        transform .25s ease,
        opacity .25s ease,
        box-shadow .25s ease;
}

.product-gallery-btn svg {

    width: 20px;
    height: 20px;

    pointer-events: none;
}

.product-gallery-prev {
    left: 15px;
}

.product-gallery-next {
    right: 15px;
}

.product-gallery-btn:hover {

    background:
        var(--kalaghazi-light);

    opacity: 1;

    transform:
        translateY(-50%) scale(1.06);

    box-shadow:
        0 10px 28px rgba(10, 58, 54, .28);
}

.product-gallery-btn:active {

    transform:
        translateY(-50%) scale(.94);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .product-gallery-btn {

        width: 36px;
        height: 36px;

        opacity: .85;
    }

    .product-gallery-btn svg {

        width: 17px;
        height: 17px;
    }

    .product-gallery-prev {
        left: 9px;
    }

    .product-gallery-next {
        right: 9px;
    }

}

/* =========================================================
   CATEGORY FILTER SYSTEM
========================================================= */

.category-layout {

    position: relative;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}


/* =========================================================
   FILTER PANEL
========================================================= */

.filter-panel {

    position: sticky;
    top: calc(var(--header-h) + 20px);

    width: 100%;

    padding: 20px;

    border:
        1px solid rgba(16, 78, 73, .15);

    border-radius: 20px;

    background:
        #ffffff;

    box-shadow:
        0 12px 35px rgba(20, 22, 27, .08);

    z-index: 20;
}


/* =========================================================
   FILTER HEADER
========================================================= */

.filter-panel-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 16px;

    margin-bottom: 18px;

    border-bottom:
        1px solid rgba(16, 78, 73, .12);
}

.filter-panel-header h3 {

    margin: 0;

    color:
        var(--kalaghazi-deep);

    font-size: 16px;

    font-weight: 900;
}

.filter-close-btn {

    display: none;

    align-items: center;

    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 0;

    border-radius: 10px;

    background:
        rgba(16, 78, 73, .08);

    color:
        var(--kalaghazi);

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}

.filter-close-btn:hover {

    background:
        rgba(16, 78, 73, .15);

    transform:
        rotate(90deg);
}


/* =========================================================
   FILTER GROUP
========================================================= */

.filter-group {

    padding: 0 0 20px;

    margin-bottom: 20px;

    border-bottom:
        1px solid rgba(16, 78, 73, .10);
}

.filter-group:last-of-type {

    border-bottom: 0;

    margin-bottom: 0;
}

.filter-group h4 {

    margin: 0 0 11px;

    color:
        var(--ink-soft);

    font-size: 13px;

    font-weight: 800;
}


/* =========================================================
   PRICE
========================================================= */

.filter-hint {

    margin: 0 0 11px;

    color:
        #71817d;

    font-size: 10px;

    line-height: 1.8;
}

.filter-price-inputs {

    display: grid;

    grid-template-columns:
        1fr 18px 1fr;

    align-items: center;

    gap: 5px;
}

.filter-price-inputs span {

    text-align: center;

    color:
        #9aa7a4;

    font-size: 11px;
}

.filter-price-inputs input {

    width: 100%;

    min-width: 0;

    padding: 10px 8px;

    border:
        1px solid rgba(16, 78, 73, .16);

    border-radius: 10px;

    outline: none;

    background:
        #f8faf9;

    color:
        var(--ink-soft);

    font-family: inherit;

    font-size: 11px;

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.filter-price-inputs input:focus {

    border-color:
        var(--kalaghazi);

    background:
        #ffffff;

    box-shadow:
        0 0 0 3px rgba(16, 78, 73, .08);
}

.filter-price-inputs input::placeholder {

    color:
        #a2afac;
}


/* =========================================================
   COLOR FILTER
========================================================= */
/* =========================================================
   COLOR FILTER OPTIONS
========================================================= */

.filter-color-options {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 7px;
}


/* =========================================================
   COLOR OPTION
========================================================= */

.filter-color-option {

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    min-height: 55px;

    padding: 6px 4px;

    border-radius: 10px;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}

.filter-color-option:hover {

    background:
        rgba(16, 78, 73, .06);

    transform:
        translateY(-1px);
}


/* =========================================================
   COLOR SWATCH
========================================================= */

.color-swatch {

    position: relative;

    flex: 0 0 auto;

    width: 24px;
    height: 24px;

    border:
        2px solid #ffffff;

    border-radius: 50%;

    box-shadow:
        0 0 0 1px rgba(16, 78, 73, .20),
        0 3px 8px rgba(20, 22, 27, .10);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


/* =========================================================
   SELECTED COLOR
========================================================= */

.filter-color-option input:checked
~ .color-swatch {

    transform:
        scale(1.12);

    box-shadow:
        0 0 0 2px var(--kalaghazi),
        0 0 0 4px rgba(16, 78, 73, .12);
}

.filter-color-option:has(input:checked) {

    background:
        rgba(16, 78, 73, .07);
}


/* =========================================================
   COLOR NAME
========================================================= */

.color-name {

    color:
        #455b57;

    font-size: 9px;

    font-weight: 600;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    max-width: 100%;
}

/* hide checkbox */

.filter-color-option input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


/* actual color */

.color-swatch {

    position: relative;

    flex: 0 0 auto;

    width: 23px;
    height: 23px;

    border:
        2px solid #ffffff;

    border-radius: 50%;

    box-shadow:
        0 0 0 1px rgba(16, 78, 73, .20),
        0 3px 8px rgba(20, 22, 27, .10);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


/* selected color */

.filter-color-option input:checked
~ .color-swatch {

    transform:
        scale(1.12);

    box-shadow:
        0 0 0 2px var(--kalaghazi),
        0 0 0 4px rgba(16, 78, 73, .12);
}

.filter-color-option:has(input:checked) {

    background:
        rgba(16, 78, 73, .07);
}

.color-name {

    color:
        #455b57;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   SIZE FILTER
========================================================= */

.filter-size-options {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.filter-size-option {

    cursor: pointer;
}

.filter-size-option input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.filter-size-option span {

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 52px;

    padding: 8px 10px;

    border:
        1px solid rgba(16, 78, 73, .16);

    border-radius: 9px;

    background:
        #f8faf9;

    color:
        #526863;

    font-size: 10px;

    font-weight: 700;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.filter-size-option:hover span {

    border-color:
        var(--kalaghazi);

    transform:
        translateY(-1px);
}

.filter-size-option input:checked + span {

    border-color:
        var(--kalaghazi);

    background:
        var(--kalaghazi);

    color:
        #ffffff;

    box-shadow:
        0 5px 15px rgba(16, 78, 73, .18);
}


/* =========================================================
   FILTER ACTIONS
========================================================= */

.filter-actions {

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding-top: 3px;
}

.filter-apply-btn {

    width: 100%;

    padding: 11px 14px;

    border: 0;

    border-radius: 11px;

    background:
        var(--kalaghazi);

    color:
        #ffffff;

    font-family: inherit;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(16, 78, 73, .18);

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.filter-apply-btn:hover {

    background:
        var(--kalaghazi-light);

    transform:
        translateY(-2px);

    box-shadow:
        0 11px 25px rgba(16, 78, 73, .24);
}

.filter-reset-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    padding: 9px 14px;

    border:
        1px solid rgba(16, 78, 73, .15);

    border-radius: 10px;

    background:
        transparent;

    color:
        var(--kalaghazi);

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

    transition:
        background .25s ease,
        border-color .25s ease;
}

.filter-reset-btn:hover {

    background:
        rgba(16, 78, 73, .06);

    border-color:
        rgba(16, 78, 73, .3);
}


/* =========================================================
   PRODUCTS COLUMN
========================================================= */

.products-column {

    min-width: 0;
}


/* =========================================================
   FILTER TOGGLE BUTTON
========================================================= */

.products-actions {

    display: flex;

    align-items: center;

    gap: 10px;
}
.filter-toggle-button {

    position: relative;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;

    border: 1px solid rgba(16, 78, 73, .20);
    border-radius: 10px;

    background: var(--kalaghazi);
    color: #ffffff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}

@media (min-width: 670px) {
    .filter-toggle-button {
    
        gap: 25px;

    
    }

}



/* افکت درخشش که از روی دکمه سر می‌خوره */
.filter-toggle-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.filter-toggle-button:hover::after {
    transform: translateX(100%);
}


/* آیکون داخل دکمه: فقط موقع هاور جابه‌جا بشه */
.filter-toggle-button svg {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.filter-toggle-button:hover svg {
    transform: translateX(-3px);
}


/* حالت هاور: سایه‌ی عمیق‌تر و لایه‌ای */
.filter-toggle-button:hover {
    background-color: var(--kalaghazi-light);
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(16, 78, 73, 0.15),
        0 14px 28px rgba(16, 78, 73, 0.22);
}


/* حالت کلیک: برگشت سریع و فیزیکی */
.filter-toggle-button:active {
    transform: translateY(-1px);
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
/* =========================================================
   BACKDROP
========================================================= */

.filter-panel-backdrop {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 90;

    background:
        rgba(10, 35, 32, .48);

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);

    opacity: 0;

    transition:
        opacity .3s ease;
}

.filter-panel-backdrop.is-open {

    opacity: 1;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .category-layout {

        grid-template-columns:
            220px minmax(0, 1fr);

        gap: 18px;
    }

    .filter-panel {

        padding: 17px;
    }

}


/* =========================================================
   MOBILE FILTER DRAWER
========================================================= */

@media (max-width: 800px) {

    .category-layout {

        display: block;
    }


    .filter-panel {

        position: fixed;

        top: 0;

        right: 0;

        bottom: 0;

        z-index: 100;

        width: min(340px, 88vw);

        height: 100vh;

        padding: 20px;

        border: 0;

        border-radius: 20px 0 0 20px;

        overflow-y: auto;

        box-shadow:
            -15px 0 45px rgba(10, 35, 32, .18);

        transform:
            translateX(105%);

        transition:
            transform .38s cubic-bezier(.65, 0, .35, 1);
    }

    .filter-panel.is-open {

        transform:
            translateX(0);
    }


    .filter-close-btn {

        display: flex;
    }


    .filter-panel-backdrop {

        display: block;

        pointer-events: none;
    }

    .filter-panel-backdrop.is-open {

        pointer-events: auto;
    }


    .products-column {

        width: 100%;
    }


    .filter-toggle-button {

        display: inline-flex;
    }

}

    .filter-toggle-button svg {

        width: 15px;
        height: 15px;
    }
/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .products-actions {

        gap: 7px;
    }

    .filter-toggle-button {

        padding: 8px 10px;

        font-size: 10px;
    }



    .products-sort span {

        display: none;
    }

    .filter-panel {

        width: 88vw;

        padding: 17px;
    }

}

/* =========================================================
   PRODUCTS SORT
========================================================= */

.products-sort {

    display: flex;

    align-items: center;

    gap: 8px;
}


/* عنوان */

.products-sort label {

    color:
        var(--ink-soft);

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;
}


/* Select */

.products-sort select {

    min-width: 135px;

    padding: 9px 32px 9px 1px;

    border:
        1px solid var(--kalaghazi);

    border-radius: 10px;

    background:
        var(--kalaghazi);

    color:
        #ffffff;

    font-family: inherit;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

    outline: none;

    appearance: none;
    -webkit-appearance: none;

    /* فلش سفارشی */
    background-image:
        linear-gradient(45deg, transparent 50%, #ffffff 50%),
        linear-gradient(135deg, #ffffff 50%, transparent 50%);

    background-position:
        calc(100% - 14px) 50%,
        calc(100% - 9px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    box-shadow:
        0 5px 15px rgba(16, 78, 73, .15);

    transition:
        background .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}


/* Hover */

.products-sort select:hover {

    background-color:
        var(--kalaghazi-light);

    transform:
        translateY(-1px);

    box-shadow:
        0 7px 18px rgba(16, 78, 73, .20);
}


/* Focus */

.products-sort select:focus {

    border-color:
        var(--kalaghazi);

    box-shadow:
        0 0 0 3px rgba(16, 78, 73, .10);
}


/* =========================================================
   SELECT OPTIONS
========================================================= */

.products-sort select option {

    background:
        #ffffff;

    color:
        var(--ink-soft);

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;
}


/* گزینه انتخاب‌شده در لیست */

.products-sort select option:checked {

    background:
        var(--kalaghazi);

    color:
        #ffffff;
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .products-sort {

        gap: 6px;
    }

    .products-sort label {

        font-size: 10px;
    }

    .products-sort select {

        min-width: 10px;

        padding:
            8px 28px 8px 9px;

        font-size: 9px;
    }

}
.price-filter-box {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--muted);
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 2px 14px rgba(15, 92, 78, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
  }
  
  .price-filter-box h4 {
    color: var(--green-dark, #0a3d33);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
  }
  
  .filter-hint {
    color: var(--muted, #7a8a86);
    font-size: 12px;
    margin: 0 0 24px;
  }
  
  /* ---------- مقادیر: زیر هم ---------- */
  
  .price-range-values {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
  }
  
  .price-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  
  .price-value span {
    color: var(--muted, #7a8a86);
    font-size: 12px;
  }
  
  .price-value strong {
    color: var(--green-dark, #0a3d33);
    font-weight: 700;
    direction: ltr;
    unicode-bidi: plaintext;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
  }
  
  .price-value small {
    color: var(--muted, #7a8a86);
    font-size: 10px;
  }
  
  /* ---------- اسلایدر ---------- */
  
  .price-range {
    position: relative;
    height: 28px;
  }
  
  .price-range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    background: var(--track-bg, #e6efec);
    border-radius: 999px;
  }
  
  .price-range-progress {
    position: absolute;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: var(--green, #0f5c4e);
    border-radius: 999px;
    pointer-events: none;
  }
  
  .price-range input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    direction: rtl;
  }
  
  .price-range input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 2px;
  }
  .price-range input[type="range"]::-moz-range-track {
    background: transparent;
    height: 2px;
  }
  
  .price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green, #0f5c4e);
    border: none;
    cursor: pointer;
    margin-top: -6px;
    position: relative;
    z-index: 3;
    transition: transform 0.15s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .price-range input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
  }
  .price-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green, #0f5c4e);
    border: none;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .price-range input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.25);
  }
/* ---------- Toast ---------- */

.app-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--kalaghazi-deep, #0a3a36);
    color: var(--cream, #f3ecdd);
    border: 1px solid var(--border, rgba(201, 161, 90, 0.28));
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  
  .app-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  .app-toast-success {
    border-color: var(--gold, #c9a15a);
  }
  
  .app-toast-error {
    border-color: #c94a4a;
    color: #f3d4d4;
  }
  
  /* ---------- دکمه افزودن به سبد: حالت لودینگ ---------- */
  
  .add-to-cart-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
  }
  
  /* ---------- بج شمارنده سبد خرید تو هدر ---------- */
  
  #cartCountBadge {
    transition: transform 0.2s var(--ease);
  }
  
  #cartCountBadge.bump {
    transform: scale(1.4);
  }
/* =========================================================
   cart-drawer.css
   بج شمارنده + کشوی سبد خرید (اسلاید از چپ)
   ========================================================= */

/* ---------- بج شمارنده روی آیکون سبد ---------- */

.icon-btn {
    position: relative;
  }
  
  .cart-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--gold, #c9a15a);
    color: var(--ink-soft, #14161b);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    transition: transform 0.2s var(--ease, cubic-bezier(0.65, 0, 0.35, 1));
  }
  
  .cart-badge.is-zero {
    opacity: 0.55;
  }
  
  .cart-badge.bump {
    transform: scale(1.35);
  }
  
  /* ---------- Backdrop ---------- */
  
  .cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 18, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    z-index: 1000;
  }
  
  .cart-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  
  /* جلوگیری از اسکرول پس‌زمینه وقتی کشو بازه */
  body.cart-drawer-lock {
    overflow: hidden;
  }
  
  /* ---------- Drawer: اسلاید از سمت چپ صفحه ---------- */
  
  .cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: min(380px, 92vw);
    background: #ffffff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.40s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
  }
  
  .cart-drawer.is-open {
    transform: translateX(0);
  }
  
  .cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(15, 92, 78, 0.12);
    flex-shrink: 0;
  }
  
  .cart-drawer-header h3 {
    color: var(--kalaghazi-deep, #0a3a36);
    font-size: 15px;
    margin: 0;
  }
  
  .cart-drawer-close {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: var(--kalaghazi-deep, #0a3a36);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
  }
  
  .cart-drawer-close:hover {
    background: rgba(15, 92, 78, 0.08);
  }
  
  /* ---------- بدنه: اسکرول‌پذیر ---------- */
  
  .cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .cart-drawer-loading,
  .cart-drawer-empty {
    color: var(--muted, #7a8a86);
    font-size: 13px;
    text-align: center;
    padding: 40px 10px;
  }
  
  /* ---------- آیتم داخل کشو ---------- */
  
  .cart-drawer-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 92, 78, 0.08);
    animation: cartDrawerItemIn 0.25s ease;
  }
  
  @keyframes cartDrawerItemIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  .cart-drawer-item-image {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--track-bg, #e6efec);
    display: block;
  }
  
  .cart-drawer-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .cart-drawer-item-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--muted, #7a8a86);
  }
  
  .cart-drawer-item-info {
    min-width: 0;
  }
  
  .cart-drawer-item-name {
    display: block;
    color: var(--kalaghazi-deep, #0a3a36);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .cart-drawer-item-meta {
    color: var(--muted, #7a8a86);
    font-size: 10.5px;
    margin-bottom: 8px;
  }
  
  .cart-drawer-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(15, 92, 78, 0.18);
    border-radius: 7px;
    padding: 2px 6px;
  }
  
  .cart-drawer-item-qty .qty-btn {
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--kalaghazi-deep, #0a3a36);
    cursor: pointer;
  }
  
  .cart-drawer-item-qty .qty-value {
    font-size: 11px;
    color: var(--kalaghazi-deep, #0a3a36);
    min-width: 14px;
    text-align: center;
    direction: ltr;
  }
  
  .cart-drawer-item-side {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
  
  .cart-drawer-item-price {
    font-size: 12px;
    font-weight: 800;
    color: var(--kalaghazi-deep, #0a3a36);
    direction: ltr;
    white-space: nowrap;
  }
  
  .cart-drawer-item-remove {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: #b04848;
    cursor: pointer;
    border-radius: 6px;
  }
  
  .cart-drawer-item-remove:hover {
    background: rgba(176, 72, 72, 0.1);
  }
  
  .cart-drawer-item-remove svg {
    width: 16px;
    height: 16px;
  }
  
  /* ---------- فوتر: جمع کل + دکمه ---------- */
  
  .cart-drawer-footer {
    flex-shrink: 0;
    padding: 14px 18px 20px;
    border-top: 1px solid rgba(15, 92, 78, 0.12);
  }
  
  .cart-drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    color: var(--kalaghazi-deep, #0a3a36);
    font-size: 13px;
  }
  
  .cart-drawer-total strong {
    font-size: 15px;
    direction: ltr;
    unicode-bidi: plaintext;
  }
  
  .cart-drawer-checkout-btn {
    display: block;
    text-align: center;
    background: var(--kalaghazi, #104e49);
    color: var(--cream, #f3ecdd);
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease;
  }
  
  .cart-drawer-checkout-btn:hover {
    background: var(--kalaghazi-light, #17796c);
  }
  @media (max-width: 480px) {
	#cartDrawer {
		width: 78%;
		max-width: 300px;
	}
}

#cartDrawerClose {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--kalaghazi);
	color: var(--cream);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

#cartDrawerClose:hover {
	background: var(--kalaghazi-light);
	transform: rotate(90deg);
}

#cartDrawerClose svg {
	width: 18px;
	height: 18px;
}

/* =========================================================
   CART PAGE
   ========================================================= */

   .cart-page {

    min-height: 70vh;

    padding:
        45px 0 90px;

    background:
        #fbf8f1;

    color:
        var(--ink-soft);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.cart-container {

    width:
        min(1280px, calc(100% - 40px));

    margin:
        0 auto;
}


/* =========================================================
   TITLE
   ========================================================= */

.cart-title {

    margin:
        0 0 30px;

    color:
        var(--ink-soft);

    font-size:
        clamp(25px, 3vw, 34px);

    font-weight:
        900;

    line-height:
        1.4;

    position:
        relative;

    padding-right:
        16px;
}


.cart-title::before {

    content:
        "";

    position:
        absolute;

    right:
        0;

    top:
        8px;

    width:
        4px;

    height:
        30px;

    border-radius:
        999px;

    background:
        var(--kalaghazi);
}


/* =========================================================
   CART LAYOUT
   ========================================================= */

.cart-layout {

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr) 350px;

    gap:
        25px;

    align-items:
        start;
}


/* =========================================================
   ITEMS AREA
   ========================================================= */

.cart-items {

    display:
        flex;

    flex-direction:
        column;

    gap:
        13px;
}


/* =========================================================
   CART ITEM
   ========================================================= */

.cart-item {

    display:
        grid;

    grid-template-columns:
        92px minmax(0, 1fr) auto auto 40px;

    align-items:
        center;

    gap:
        17px;

    min-width:
        0;

    padding:
        15px;

    border:
        1px solid rgba(16, 78, 73, .10);

    border-radius:
        18px;

    background:
        rgba(255, 255, 255, .92);

    box-shadow:
        0 8px 25px rgba(20, 22, 27, .055);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        opacity .2s ease;
}


.cart-item:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(16, 78, 73, .24);

    box-shadow:
        0 13px 30px rgba(20, 22, 27, .08);
}


/* =========================================================
   IMAGE
   ========================================================= */

.cart-item-image {

    display:
        block;

    width:
        92px;

    height:
        92px;

    overflow:
        hidden;

    border-radius:
        14px;

    background:
        #eef1eb;

    text-decoration:
        none;
}


.cart-item-image img {

    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform .45s cubic-bezier(.2,.7,.2,1);
}


.cart-item:hover
.cart-item-image img {

    transform:
        scale(1.045);
}


.cart-item-no-image {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    height:
        100%;

    color:
        #71827d;

    font-size:
        10px;
}


/* =========================================================
   INFO
   ========================================================= */

.cart-item-info {

    min-width:
        0;
}


.cart-item-name {

    display:
        block;

    overflow:
        hidden;

    color:
        var(--ink-soft);

    text-decoration:
        none;

    font-size:
        15px;

    font-weight:
        850;

    line-height:
        1.7;

    white-space:
        nowrap;

    text-overflow:
        ellipsis;

    transition:
        color .25s ease;
}


.cart-item-name:hover {

    color:
        var(--kalaghazi);
}


/* =========================================================
   META
   ========================================================= */

.cart-item-meta {

    display:
        flex;

    align-items:
        center;

    flex-wrap:
        wrap;

    gap:
        7px;

    margin-top:
        9px;

    color:
        #6d716d;

    font-size:
        11px;

    line-height:
        1.8;
}


.cart-item-meta > span {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        5px;

    padding:
        4px 8px;

    border:
        1px solid rgba(16, 78, 73, .09);

    border-radius:
        8px;

    background:
        #f7f8f4;
}


/* =========================================================
   COLOR
   ========================================================= */

.cart-item-color {

    color:
        #596762;
}


.cart-item-color i {

    display:
        inline-block;

    width:
        12px;

    height:
        12px;

    border:
        2px solid #fff;

    border-radius:
        50%;

    box-shadow:
        0 0 0 1px rgba(20, 22, 27, .18);

    vertical-align:
        -2px;
}


/* =========================================================
   MOBILE PRICE
   ========================================================= */

.cart-item-price-mobile {

    display:
        none;

    margin-top:
        8px;

    color:
        var(--kalaghazi);

    font-size:
        12px;

    font-weight:
        800;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.cart-item-qty {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    height:
        40px;

    overflow:
        hidden;

    border:
        1px solid rgba(16, 78, 73, .15);

    border-radius:
        11px;

    background:
        #f8faf7;
}


.qty-btn {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        34px;

    height:
        100%;

    padding:
        0;

    border:
        0;

    background:
        transparent;

    color:
        var(--kalaghazi);

    font-family:
        inherit;

    font-size:
        18px;

    font-weight:
        500;

    cursor:
        pointer;

    transition:
        background .2s ease,
        color .2s ease;
}


.qty-btn:hover {

    background:
        var(--kalaghazi);

    color:
        #fff;
}


.qty-input {

    width:
        35px;

    height:
        100%;

    padding:
        0;

    border:
        0;

    border-right:
        1px solid rgba(16, 78, 73, .08);

    border-left:
        1px solid rgba(16, 78, 73, .08);

    outline:
        none;

    background:
        transparent;

    color:
        var(--ink-soft);

    font-family:
        Arial, sans-serif;

    font-size:
        13px;

    font-weight:
        800;

    text-align:
        center;

    direction:
        ltr;
}


/* =========================================================
   LINE TOTAL
   ========================================================= */

.cart-item-line-total {

    min-width:
        115px;

    color:
        var(--kalaghazi);

    font-family:
        Arial, sans-serif;

    font-size:
        14px;

    font-weight:
        900;

    text-align:
        left;

    direction:
        ltr;
}


.cart-item-line-total small {

    margin-right:
        3px;

    color:
        #777f7b;

    font-family:
        inherit;

    font-size:
        9px;

    font-weight:
        500;
}


/* =========================================================
   REMOVE
   ========================================================= */

.cart-item-remove {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        38px;

    height:
        38px;

    padding:
        0;

    border:
        1px solid rgba(160, 72, 72, .13);

    border-radius:
        11px;

    background:
        rgba(255, 255, 255, .75);

    color:
        #a45b5b;

    cursor:
        pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}


.cart-item-remove svg {

    width:
        17px;

    height:
        17px;
}


.cart-item-remove:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(164, 91, 91, .35);

    background:
        #a45b5b;

    color:
        #fff;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.cart-summary {

    position:
        sticky;

    top:
        calc(var(--header-h) + 20px);

    padding:
        23px;

    border:
        1px solid rgba(16, 78, 73, .13);

    border-radius:
        20px;

    background:
        rgba(255, 255, 255, .96);

    box-shadow:
        0 12px 35px rgba(20, 22, 27, .075);
}


.cart-summary h3 {

    margin:
        0 0 20px;

    padding-bottom:
        16px;

    border-bottom:
        1px solid rgba(16, 78, 73, .10);

    color:
        var(--ink-soft);

    font-size:
        16px;

    font-weight:
        850;
}


/* =========================================================
   SUMMARY ROW
   ========================================================= */

.cart-summary-row {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        15px;

    color:
        #686f6b;

    font-size:
        12px;
}


.cart-summary-row strong {

    color:
        var(--kalaghazi);

    font-family:
        Arial, sans-serif;

    font-size:
        19px;

    font-weight:
        900;

    direction:
        ltr;
}


.cart-summary-note {

    margin:
        14px 0 0;

    padding:
        11px 12px;

    border-radius:
        10px;

    background:
        #f4f7f2;

    color:
        #727a75;

    font-size:
        10px;

    line-height:
        1.9;
}


/* =========================================================
   CHECKOUT BUTTON
   ========================================================= */

.cart-checkout-btn {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    margin-top:
        17px;

    padding:
        13px 15px;

    border:
        1px solid var(--kalaghazi);

    border-radius:
        12px;

    background:
        var(--kalaghazi);

    color:
        #fff;

    text-decoration:
        none;

    font-size:
        12px;

    font-weight:
        800;

    box-shadow:
        0 8px 18px rgba(16, 78, 73, .18);

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


.cart-checkout-btn:hover {

    background:
        var(--kalaghazi-deep);

    color:
        #fff;

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 24px rgba(16, 78, 73, .23);
}


/* =========================================================
   CONTINUE SHOPPING
   ========================================================= */

.cart-continue-shopping {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-top:
        11px;

    padding:
        10px;

    border:
        1px solid rgba(16, 78, 73, .14);

    border-radius:
        11px;

    background:
        transparent;

    color:
        var(--kalaghazi);

    text-decoration:
        none;

    font-size:
        11px;

    font-weight:
        700;

    transition:
        background .25s ease,
        border-color .25s ease;
}


.cart-continue-shopping:hover {

    background:
        rgba(16, 78, 73, .06);

    border-color:
        rgba(16, 78, 73, .28);

    color:
        var(--kalaghazi);
}


/* =========================================================
   EMPTY CART
   ========================================================= */

.cart-empty {

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        430px;

    padding:
        40px 20px;

    border:
        1px solid rgba(16, 78, 73, .12);

    border-radius:
        22px;

    background:
        #fff;

    box-shadow:
        0 12px 35px rgba(20, 22, 27, .055);

    text-align:
        center;
}


.cart-empty-icon {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        76px;

    height:
        76px;

    margin-bottom:
        20px;

    border:
        1px solid rgba(16, 78, 73, .16);

    border-radius:
        50%;

    background:
        rgba(16, 78, 73, .055);

    color:
        var(--kalaghazi);
}


.cart-empty-icon svg {

    width:
        34px;

    height:
        34px;
}


.cart-empty h2 {

    margin:
        0;

    color:
        var(--ink-soft);

    font-size:
        21px;

    font-weight:
        850;
}


.cart-empty p {

    margin:
        9px 0 0;

    color:
        #737773;

    font-size:
        12px;
}


.cart-continue-btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    margin-top:
        22px;

    padding:
        11px 23px;

    border-radius:
        11px;

    background:
        var(--kalaghazi);

    color:
        #fff;

    text-decoration:
        none;

    font-size:
        12px;

    font-weight:
        800;

    transition:
        background .25s ease,
        transform .25s ease;
}


.cart-continue-btn:hover {

    background:
        var(--kalaghazi-deep);

    color:
        #fff;

    transform:
        translateY(-2px);
}


/* =========================================================
   TOAST
   ========================================================= */

.app-toast {

    position:
        fixed;

    z-index:
        9999;

    right:
        20px;

    bottom:
        20px;

    max-width:
        min(360px, calc(100vw - 40px));

    padding:
        12px 17px;

    border:
        1px solid rgba(16, 78, 73, .18);

    border-radius:
        12px;

    background:
        rgba(255, 255, 255, .94);

    color:
        var(--ink-soft);

    box-shadow:
        0 12px 35px rgba(20, 22, 27, .14);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    font-size:
        11px;

    font-weight:
        700;

    opacity:
        0;

    transform:
        translateY(12px);

    pointer-events:
        none;

    transition:
        opacity .3s ease,
        transform .3s ease;
}


.app-toast.is-visible {

    opacity:
        1;

    transform:
        translateY(0);
}


.app-toast-error {

    border-color:
        rgba(164, 91, 91, .25);

    color:
        #914f4f;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .cart-layout {

        grid-template-columns:
            minmax(0, 1fr) 310px;

        gap:
            18px;
    }


    .cart-item {

        grid-template-columns:
            78px minmax(0, 1fr) auto 38px;

        gap:
            13px;
    }


    .cart-item-image {

        width:
            78px;

        height:
            78px;
    }


    .cart-item-line-total {

        display:
            none;
    }


    .cart-item-qty {

        grid-column:
            3;

        grid-row:
            1;
    }


    .cart-item-remove {

        grid-column:
            4;

        grid-row:
            1;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .cart-page {

        padding:
            30px 0 60px;
    }


    .cart-container {

        width:
            calc(100% - 24px);
    }


    .cart-title {

        margin-bottom:
            21px;

        font-size:
            25px;
    }


    .cart-title::before {

        top:
            6px;

        height:
            26px;
    }


    .cart-layout {

        display:
            flex;

        flex-direction:
            column;

        gap:
            18px;
    }


    .cart-items {

        width:
            100%;
    }


    .cart-item {

        grid-template-columns:
            74px minmax(0, 1fr) 36px;

        grid-template-rows:
            auto auto;

        align-items:
            start;

        gap:
            12px;

        padding:
            12px;

        border-radius:
            16px;
    }


    .cart-item-image {

        width:
            74px;

        height:
            74px;

        grid-column:
            1;

        grid-row:
            1 / span 2;
    }


    .cart-item-info {

        grid-column:
            2;

        grid-row:
            1;
    }


    .cart-item-name {

        font-size:
            13px;
    }


    .cart-item-meta {

        margin-top:
            6px;

        gap:
            5px;

        font-size:
            9px;
    }


    .cart-item-meta > span {

        padding:
            3px 6px;
    }


    .cart-item-price-mobile {

        display:
            block;
    }


    .cart-item-qty {

        grid-column:
            2;

        grid-row:
            2;

        justify-self:
            start;

        height:
            34px;
    }


    .qty-btn {

        width:
            30px;

        font-size:
            16px;
    }


    .qty-input {

        width:
            31px;

        font-size:
            12px;
    }


    .cart-item-remove {

        grid-column:
            3;

        grid-row:
            1;

        width:
            34px;

        height:
            34px;
    }


    .cart-item-line-total {

        display:
            none;
    }


    .cart-summary {

        position:
            static;

        width:
            100%;

        padding:
            18px;

        border-radius:
            17px;
    }


    .cart-summary h3 {

        margin-bottom:
            16px;
    }


    .cart-summary-row strong {

        font-size:
            17px;
    }


    .cart-checkout-btn {

        padding:
            12px;
    }


    .cart-empty {

        min-height:
            370px;

        padding:
            35px 18px;
    }


    .cart-empty h2 {

        font-size:
            18px;
    }


    .cart-empty p {

        font-size:
            11px;

        line-height:
            1.8;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .cart-container {

        width:
            calc(100% - 18px);
    }


    .cart-item {

        grid-template-columns:
            65px minmax(0, 1fr) 32px;

        gap:
            9px;

        padding:
            10px;
    }


    .cart-item-image {

        width:
            65px;

        height:
            65px;

        border-radius:
            11px;
    }


    .cart-item-name {

        font-size:
            12px;
    }


    .cart-item-meta {

        font-size:
            8px;
    }


    .cart-item-price-mobile {

        font-size:
            10px;
    }


    .cart-item-remove {

        width:
            31px;

        height:
            31px;

        border-radius:
            9px;
    }


    .cart-item-remove svg {

        width:
            15px;

        height:
            15px;
    }


    .cart-item-qty {

        height:
            31px;
    }


    .qty-btn {

        width:
            27px;

        font-size:
            15px;
    }


    .qty-input {

        width:
            27px;

        font-size:
            11px;
    }


    .cart-summary {

        padding:
            16px;
    }


    .cart-summary-note {

        font-size:
            9px;
    }


    .cart-empty {

        min-height:
            330px;
    }


    .cart-empty-icon {

        width:
            66px;

        height:
            66px;
    }


    .cart-empty-icon svg {

        width:
            29px;

        height:
            29px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 350px) {

    .cart-item {

        grid-template-columns:
            58px minmax(0, 1fr) 30px;
    }


    .cart-item-image {

        width:
            58px;

        height:
            58px;
    }


    .cart-item-name {

        font-size:
            11px;
    }


    .cart-item-meta {

        display:
            none;
    }

}

.category-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--kalaghazi-light, #17796c);
    border: 1px solid rgba(243, 236, 221, 0.35);
    color: var(--cream, #f3ecdd);
    text-decoration: none;
    margin-bottom: 18px;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  }
  
  .category-back-btn:hover {
    background: var(--kalaghazi, #104e49);
    border-color: rgba(243, 236, 221, 0.6);
    transform: translateX(3px);
  }
  
  .category-back-btn svg {
    width: 18px;
    height: 18px;
  }
  /* =========================================================
   نوار قیمت + افزودن به سبد
   پیش‌فرض: موبایل/تبلت (۰ تا ۸۰۰ پیکسل) — شناور، کاملاً سیال (fluid)
========================================================= */

.product-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;

    box-sizing: border-box;
    width: 100%;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px, 2.5vw, 12px);
    padding: clamp(9px, 3vw, 14px) clamp(10px, 3.5vw, 16px);
    padding-bottom: calc(clamp(9px, 3vw, 14px) + env(safe-area-inset-bottom, 0px));

    border-radius: 20px 20px 0 0;

    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);

    border-top: 1px solid rgba(16, 78, 73, 0.12);
    box-shadow: 0 -8px 30px rgba(16, 78, 73, 0.1);
}

/* ---------- قیمت: قیمت → عدد → تومان (راست به چپ، بدون حقه‌ی direction) ---------- */

.product-sticky-price {
    display: flex;
    align-items: baseline;
    gap: clamp(3px, 1.2vw, 6px);

    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}






/* ---------- دکمه: کاملاً سیال، هیچ‌وقت سرریز نمی‌کنه ---------- */

.add-to-cart-btn {
    position: relative;

    flex: 0 1 auto;
    min-width: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 1.2vw, 6px);

    padding: clamp(7px, 2.4vw, 10px) clamp(8px, 3vw, 14px);
    border: none;
    border-radius: 11px;

    background: linear-gradient(135deg, var(--kalaghazi, #104e49), var(--kalaghazi-light, #17796c));
    color: #ffffff;

    font-family: inherit;
    font-size: clamp(9.5px, 2.8vw, 12px);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;

    box-shadow: 0 8px 20px rgba(16, 78, 73, 0.35);

    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.add-to-cart-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    color: inherit;
    transition: color 0.35s ease, text-shadow 0.35s ease;
}

.add-to-cart-btn svg {
    width: clamp(13px, 3.6vw, 16px);
    height: clamp(13px, 3.6vw, 16px);
    flex-shrink: 0;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(16, 78, 73, 0.42);
}

.add-to-cart-btn:hover span {
    color: var(--gold-light, #e3c98a);
    text-shadow: 0 0 12px rgba(201, 161, 90, 0.55);
}

.add-to-cart-btn:hover svg {
    color: var(--gold-light, #e3c98a);
    transform: translateY(-2px) rotate(-8deg);
}

.add-to-cart-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.add-to-cart-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.product-page {
    padding-bottom: 90px;
}


/* =========================================================
   دسکتاپ (بالای ۸۰۰ پیکسل): حالت عادی، غیرشناور، بزرگ
========================================================= */

@media (min-width: 801px) {

    .product-sticky-bar {
        position: static;

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 16px;

        padding: 0;
        margin-top: 8px;

        border-radius: 0;

        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;

        border-top: none;
        box-shadow: none;
    }

    .product-sticky-price {
        flex: 0 0 auto;
        overflow: visible;
        gap: 8px;
    }

    .product-sticky-price .price-label {
        font-size: 13px;
    }

    .product-sticky-price .price-value {
        font-size: 24px;
        overflow: visible;
    }

    .product-sticky-price .price-currency {
        font-size: 13px;
    }

    .add-to-cart-btn {
        flex: 0 0 auto;
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 14px;
        gap: 10px;
    }

    .add-to-cart-btn svg {
        width: 20px;
        height: 20px;
    }

    .product-page {
        padding-bottom: 0;
    }
}

/* =========================================================
   دسکتاپ — قیمت کنار دکمه
========================================================= */

@media (min-width: 801px) {

    .product-sticky-bar {

        position: static;

        width: 100%;

        display: flex;

        flex-direction: row;

        align-items: center;

        justify-content: space-between;

        gap: 20px;

        padding: 0;

        margin-top: 8px;

        border-radius: 0;

        background: transparent;

        -webkit-backdrop-filter: none;
        backdrop-filter: none;

        border-top: none;

        box-shadow: none;
    }


    /* =====================================================
       قیمت
    ===================================================== */

    .product-sticky-price {

        flex: 0 1 auto;

        min-width: 0;

        display: flex;

        align-items: baseline;

        gap: 8px;

        overflow: visible;

        white-space: nowrap;

        direction: rtl;
    }


    .product-sticky-price .price-value {

        flex: 0 0 auto;

        min-width: max-content;

        font-size: 24px;

        font-weight: 900;

        line-height: 1.3;

        white-space: nowrap;

        overflow: visible;

        text-overflow: clip;

        color: #104e49;
    }


    /* =====================================================
       دکمه افزودن به سبد
    ===================================================== */

    .product-sticky-bar .add-to-cart-btn {

        flex: 1 1 auto;

        width: auto;

        min-width: 0;

        max-width: none;

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 14px 20px;

        font-size: 14px;

        font-weight: 800;

        border-radius: 14px;

        gap: 10px;
    }


    .product-sticky-bar .add-to-cart-btn svg {

        width: 20px;

        height: 20px;

        flex-shrink: 0;
    }


    /* =====================================================
       فضای پایین صفحه
    ===================================================== */

    .product-page {

        padding-bottom: 0;
    }

}
/* =========================================================
   MOBILE — نوار قیمت و سبد خرید جمع‌وجور
========================================================= */

@media (max-width: 800px) {

    .product-sticky-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;

        width: 100%;
        box-sizing: border-box;

        gap: 7px;

        padding: 8px 10px;

        overflow: visible !important;
    }


    /* =====================================================
       قیمت
    ===================================================== */

    .product-sticky-price {
        flex: 0 0 auto !important;

        width: 175px;
        min-width: 175px;
        max-width: 175px;

        display: flex !important;
        align-items: center !important;

        justify-content: flex-start;

        overflow: visible !important;

        white-space: nowrap;

        direction: rtl;
    }


    .product-sticky-price .price-value {
        display: block;

        width: max-content;
        min-width: max-content;

        max-width: none;

        overflow: visible !important;

        white-space: nowrap;

        font-size: 18px;

        font-weight: 900;

        line-height: 1.2;
    }


    /* =====================================================
       دکمه سبد
    ===================================================== */

    .product-sticky-bar .add-to-cart-btn {
        flex: 1 1 0 !important;

        width: auto !important;

        min-width: 0 !important;

        max-width: none !important;

        box-sizing: border-box;

        height: 48px;

        padding: 8px 10px;

        display: flex !important;

        align-items: center;

        justify-content: center;

        gap: 6px;

        font-size: 14px;

        font-weight: 800;

        border-radius: 12px;

        white-space: nowrap;
    }


    .product-sticky-bar .add-to-cart-btn span {
        overflow: hidden !important;

        text-overflow: ellipsis;

        white-space: nowrap;
    }


    .product-sticky-bar .add-to-cart-btn svg {
        width: 17px;
        height: 17px;

        flex-shrink: 0;
    }

}


/* =========================================================
   موبایل‌های خیلی کوچک
========================================================= */

@media (max-width: 380px) {

    .product-sticky-bar {
        gap: 5px;
        padding: 7px 8px;
    }

    .product-sticky-price {
        width: 145px;
        min-width: 145px;
        max-width: 145px;
    }

    .product-sticky-price .price-value {
        font-size: 16px;
    }

    .product-sticky-bar .add-to-cart-btn {
        height: 46px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .product-sticky-bar .add-to-cart-btn svg {
        width: 15px;
        height: 15px;
    }

}

/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {

    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(201, 161, 90, 0.20);

    border-radius: 24px;

    box-shadow:
        0 8px 25px rgba(16, 78, 73, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.product-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(16, 78, 73, 0.12);
}



/* =========================================================
   IMAGE
========================================================= */

.product-card-image {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f5f2eb;
}


.product-card-image a {

    display: block;

    width: 100%;
    height: 100%;
}


.product-card-image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.product-card:hover
.product-card-image img {

    transform: scale(1.04);
}



/* =========================================================
   STATUS
========================================================= */

.product-card-status {

    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 2;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 8px 13px;

    border-radius: 999px;

    background: #104e49;

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    white-space: nowrap;
}


.product-card-status::before {

    content: "";

    width: 7px;
    height: 7px;

    margin-left: 6px;

    border-radius: 50%;

    background: #8bc49b;
}



/* =========================================================
   CONTENT
========================================================= */

.product-card-content {

    display: flex;

    flex-direction: column;

    flex: 1;

    min-height: 0;

    padding: 18px 18px 16px;
}



/* =========================================================
   CATEGORY
========================================================= */

.product-card-category {

    min-height: 20px;

    margin-bottom: 5px;

    color: #b18a4a;

    font-size: 13px;

    font-weight: 700;
}



/* =========================================================
   TITLE
========================================================= */

.product-card-title {

    margin: 0 0 10px;

    /*
    دو خط ثابت
    */

    height: 52px;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    overflow: hidden;

    line-height: 1.6;

    font-size: 19px;

    font-weight: 900;
}


.product-card-title a {

    color: #171717;

    text-decoration: none;
}



/* =========================================================
   PRODUCT CODE
========================================================= */

.product-card-code {

    display: flex;

    align-items: center;

    gap: 5px;

    min-height: 24px;

    margin-bottom: 12px;

    color: #777;

    font-size: 13px;
}


.product-card-code strong {

    color: #202020;

    font-weight: 800;
}



/* =========================================================
   COLORS
========================================================= */

.product-card-colors {

    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 34px;

    margin-bottom: 12px;
}


.product-card-colors-label {

    flex-shrink: 0;

    color: #555;

    font-size: 13px;

    font-weight: 700;
}


.product-card-color-list {

    display: flex;

    align-items: center;

    gap: 6px;

    min-width: 0;

    overflow: hidden;
}


.product-card-color {

    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    border: 2px solid #ffffff;

    outline: 1px solid rgba(0, 0, 0, 0.13);

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.08);
}



/* =========================================================
   DESCRIPTION
========================================================= */

.product-card-description {

    height: 25px;

    margin: 0 0 12px;

    overflow: hidden;

    color: #777;

    font-size: 13px;

    line-height: 1.8;

    white-space: nowrap;

    text-overflow: ellipsis;
}



/* =========================================================
   PRICE
========================================================= */

.product-card-price {

    margin-top: auto;

    padding-top: 13px;

    margin-bottom: 14px;

    border-top: 1px solid rgba(201, 161, 90, 0.20);
}


.product-card-price > span {

    display: block;

    margin-bottom: 4px;

    color: #888;

    font-size: 12px;
}


.product-card-price > div {

    display: flex;

    align-items: baseline;

    gap: 5px;
}


.product-card-price strong {

    color: #b18a4a;

    font-size: 22px;

    font-weight: 900;

    line-height: 1.2;
}


.product-card-price small {

    color: #777;

    font-size: 11px;

    font-weight: 600;
}


.product-card-price .contact-price {

    color: #555;

    font-size: 15px;
}



/* =========================================================
   BUTTON
========================================================= */

.product-card-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 100%;

    min-height: 54px;

    padding: 12px 15px;

    border-radius: 15px;

    background: #104e49;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 800;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.product-card-button svg {

    width: 19px;
    height: 19px;

    flex-shrink: 0;

    transition:
        transform 0.25s ease;
}


.product-card-button:hover {

    background: #17796c;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(16, 78, 73, 0.25);
}


.product-card-button:hover svg {

    transform: translateX(-4px);
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .product-card {

        border-radius: 20px;
    }


    .product-card-content {

        padding: 14px 14px 13px;
    }


    .product-card-category {

        font-size: 11px;
    }


    .product-card-title {

        height: 48px;

        font-size: 16px;

        line-height: 1.5;
    }


    .product-card-code {

        font-size: 11px;

        margin-bottom: 9px;
    }


    .product-card-colors {

        gap: 6px;

        margin-bottom: 9px;
    }


    .product-card-colors-label {

        font-size: 11px;
    }


    .product-card-color {

        width: 18px;
        height: 18px;
    }


    .product-card-description {

        font-size: 11px;

        height: 21px;

        margin-bottom: 8px;
    }


    .product-card-price {

        padding-top: 10px;

        margin-bottom: 10px;
    }


    .product-card-price strong {

        font-size: 17px;
    }


    .product-card-button {

        min-height: 46px;

        border-radius: 13px;

        font-size: 12px;
    }


    .product-card-button svg {

        width: 16px;
        height: 16px;
    }

}

/* =========================================================
   FIX PRODUCT CARDS
   کارت‌ها کاملاً یکسان + رنگ‌های کوچک‌تر
========================================================= */

.premium-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}


/* =========================================================
   خود کارت
========================================================= */

.premium-product-card {
    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 0;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   تصویر کارت
========================================================= */

.premium-product-image-wrap {
    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    flex-shrink: 0;

    overflow: hidden;
}


/* =========================================================
   محتوای کارت
========================================================= */

.premium-product-content {
    display: flex;
    flex-direction: column;

    flex: 1 1 auto;

    min-height: 0;

    box-sizing: border-box;
}


/* =========================================================
   دسته‌بندی
========================================================= */

.premium-product-category {
    display: block;

    min-height: 24px;


    overflow: hidden;
}


/* =========================================================
   نام محصول
   همه کارت‌ها فضای یکسان برای عنوان دارند
========================================================= */

.premium-product-title {
    margin: 8px 0 0;

    line-height: 1.6;

    min-height: 52px;

    max-height: 60px;

    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* =========================================================
   کد محصول
========================================================= */

.premium-product-code {
    min-height: 0px;

    margin-top: 6px;

    line-height: 1.8;
}


/* =========================================================
   رنگ‌ها
========================================================= */

.premium-product-colors {
    display: flex;
    align-items: center;

    min-height: 42px;

    margin-top: 0px;
}


/* اگر رنگ‌ها داخل کارت با کلاس دیگری هستند */
.premium-product-color-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-wrap: wrap;

    gap: 7px;

    min-height: 34px;
}


/* دایره رنگ */

.premium-product-color,
.product-card-color {
    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    min-height: 28px !important;

    max-width: 28px !important;
    max-height: 28px !important;

    padding: 0 !important;

    border-radius: 50%;

    box-sizing: border-box;

    flex: 0 0 28px;

    border: 2px solid #ffffff;

    box-shadow:
        0 0 0 1px rgba(16, 78, 73, 0.20),
        0 3px 8px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   اگر ساختار رنگ کارت این شکلی است:
   label + list
========================================================= */

.premium-product-color-section {
    display: flex;
    align-items: center;

    gap: 8px;

    min-height: 42px;
}


/* عنوان رنگ */

.premium-product-colors-label {
    flex: 0 0 auto;
    font-size: 12px;
}
@media (min-width:700px) {
    .premium-product-colors-label{
        margin-left: 8px;
    }
}


/* =========================================================
   قیمت
   به پایین کارت هل داده می‌شود
========================================================= */

.premium-product-price {
    margin-top: auto;

    min-height: 5px;

    display: flex;
    flex-direction: column;

    justify-content: flex-end;
}


/* =========================================================
   دکمه
========================================================= */

.premium-product-button {
    margin-top: 12px;

    flex-shrink: 0;
}


/* =========================================================
   موبایل
========================================================= */

@media (max-width: 600px) {

    .premium-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .premium-product-title {
        min-height: 47px;
        max-height: 50px;

        font-size: 14px;
        line-height: 1.6;
    }

    .premium-product-code {
        font-size: 9px;
    }

    .premium-product-color,
    .product-card-color {
        width: 25px !important;
        height: 25px !important;

        min-width: 25px !important;
        min-height: 25px !important;

        max-width: 25px !important;
        max-height: 25px !important;

        flex-basis: 25px;

        border-width: 1.5px;
    }

    .premium-product-color-list {
        gap: 5px;
    }

    .premium-product-price {
        min-height: 20px;
    }
}


/* =========================================================
   موبایل خیلی باریک
========================================================= */

@media (max-width: 380px) {

    .premium-products-grid {
        gap: 5px;
    }

    .premium-product-title {
        font-size: 14px;

        min-height: 48px;
        max-height: 48px;
    }

    .premium-product-color,
    .product-card-color {
        width: 22px !important;
        height: 22px !important;

        min-width: 22px !important;
        min-height: 22px !important;

        max-width: 22px !important;
        max-height: 22px !important;

        flex-basis: 22px;
    }

    .premium-product-color-list {
        gap: 4px;
    }
}

/* =========================================================
   PRODUCT COLORS
========================================================= */

.premium-product-color {
    display: block !important;

    width: 16px !important;
    height: 16px !important;

    min-width: 16px !important;
    min-height: 16px !important;

    max-width: 16px !important;
    max-height: 16px !important;

    flex: 0 0 16px !important;

    border-radius: 50% !important;

    border: 1px solid #fff !important;

    outline: 1px solid rgba(20, 22, 27, .15);

    box-shadow:
        0 2px 4px rgba(20, 22, 27, .10);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .premium-product-color {
        width: 13px !important;
        height: 13px !important;

        min-width: 13px !important;
        min-height: 13px !important;

        max-width: 13px !important;
        max-height: 13px !important;

        flex: 0 0 13px !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .premium-product-color {
        width: 11px !important;
        height: 11px !important;

        min-width: 14px !important;
        min-height: 14px !important;

        max-width: 11px !important;
        max-height: 11px !important;

        flex: 0 0 11px !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .premium-product-color {
        width: 9px !important;
        height: 9px !important;

        min-width: 13px !important;
        min-height: 13px !important;

        max-width: 9px !important;
        max-height: 9px !important;

        flex: 0 0 9px !important;
    }

}

.product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* هیچ‌وقت خط بعدی نره */
    width: 100%;
}

/* لینک‌ها و جداکننده‌ها هیچ‌وقت جمع نشن، سایز طبیعی خودشون رو نگه دارن */
.product-breadcrumb > a,
.product-breadcrumb .breadcrumb-sep {
    flex-shrink: 0;
    white-space: nowrap;
}

/* فقط اسم محصول (آخرین بخش) کوتاه بشه اگه جا نبود */
.product-breadcrumb .breadcrumb-current {
    flex: 1 1 auto;
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* =========================================================
   featured-slider.css
   اسلایدر محصولات (پرفروش / منتخب / جدیدترین) — صفحه اصلی
   ========================================================= */



.fp-slider-section {
	max-width: 1340px;
	margin: 0 auto;
	padding: 40px 32px;
}

.fp-slider-heading {
	text-align: center;
	margin-bottom: 28px;
}

.fp-slider-heading h2 {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 700;
	color: var(--tosi-deep);
}

.fp-slider-heading p {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: #6b7c78;
}

/* ---------- کانتینر اصلی اسلایدر ---------- */

/* دیگه display:flex بین ویوپورت و دکمه‌ها نداریم؛ دکمه‌ها
   شناور (absolute) روی ویوپورت می‌شینن و هیچ فضایی اشغال نمی‌کنن */
.fp-slider {
	position: relative;
}

.fp-slider-viewport {
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;

	scrollbar-width: none;      /* Firefox */
	-ms-overflow-style: none;   /* IE / Edge قدیمی */
}

.fp-slider-viewport::-webkit-scrollbar {
	display: none;              /* Chrome / Safari / Edge جدید */
}

.fp-slider-track {
	display: flex;
	align-items: stretch; /* همه‌ی کارت‌های یک ردیف، هم‌ارتفاع بشن */
	gap: 12px;
}

/* ---------- کارت محصول ---------- */

.fp-card {
	flex: 0 0 calc(25% - 12px); /* دسکتاپ: ۴ کارت در دید */
	scroll-snap-align: start;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(10, 58, 54, 0.14);
}

.fp-card-image-wrap {
	position: relative;
	display: block;
	aspect-ratio: 3 / 3;
	background: #eef4f2;
	overflow: hidden;
	flex-shrink: 0;
}

.fp-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ease);
}

.fp-card:hover .fp-card-image {
	transform: scale(1.06);
}

.fp-card-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 11px;
}

.fp-card-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(10, 58, 54, 0.85);
    color: var(--gold-light);
	color: var(--cream);
	font-size: 10px;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 999px;
	backdrop-filter: blur(6px);
}

.fp-card-body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

/* ارتفاع ثابت برای عنوان (۲ خط)، تا موقعیت دایره‌های رنگ و
   فوتر روی همه‌ی کارت‌ها یکسان بمونه، حتی وقتی طول اسم فرق داره */
.fp-card-title {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
	min-height: calc(1.5em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fp-card-title a {
	color: var(--tosi-deep);
	text-decoration: none;
}

.fp-card-title a:hover {
	color: var(--kalaghazi);
}

.fp-card-colors {
	display: flex;
    justify-content: center;
	gap: 5px;
	min-height: 12px; /* حتی وقتی رنگی نیست، جای فوتر عوض نشه */
}

.fp-card-color-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	display: flex;
    justify-content: center;
    
}

/* ---------- فوتر: قیمت بالا، دکمه‌ی مشاهده وسط‌چین زیرش ---------- */

.fp-card-footer {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding-top: 8px;
	border-top: 1px dashed var(--border);
	text-align: center;
}

.fp-card-price {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--gold);
	direction: ltr;
	unicode-bidi: plaintext;
	white-space: nowrap;
}

/* عدد و "تومان" چسبیده به هم، فقط یه فاصله‌ی خیلی کم */
.fp-card-price small {
	font-weight: 400;
	font-size: 9.5px;
	color: var(--muted);
	margin-inline-start: 2px;
}

.fp-card-price-unavailable {
	font-size: 11px;
	font-weight: 400;
	color: var(--muted);
}

/* دکمه‌ی مشاهده: لینک ساده با فلش، وسط‌چین */
.fp-card-view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 15px;
	font-weight: 500;
	color: var(--kalaghazi);
	text-decoration: none;
	white-space: nowrap;
	transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}

.fp-card-view-arrow {
	transition: transform 0.2s var(--ease);
}

.fp-card-view:hover {
	color: var(--kalaghazi-light);
	gap: 7px;
}

/* ---------- پیکان‌های کنترل: حذف شدن، فقط با اسکرول/سوایپ و autoplay کار می‌کنه ---------- */

.fp-arrow {
	display: none;
}

/* =========================================================
   ریسپانسیو
   ========================================================= */
   @media (min-width: 1024px) {
    .fp-card-title {
        margin: 0;
        font-size: 14px;
   }

   .fp-card-price {
    font-size: 15px;
}

	

}
/* تبلت: حدود ۳ کارت در دید */
@media (max-width: 1024px) {
	.fp-slider-section {
		padding: 32px 20px;
	}

	.fp-card {
		flex: 0 0 calc(33.333% - 11px);
	}
}
.fp-card-price {
    font-size: 16px;
}


/* موبایل: یه‌کم کوچیک‌تر از قبل، تا نوک کارت سوم هم دیده بشه */
@media (max-width: 640px) {
	.fp-slider-section {
		padding: 22px 12px;
	}

	.fp-slider-heading {
		margin-bottom: 18px;
	}

	.fp-slider-heading h2 {
		font-size: 16px;
	}

	.fp-slider-heading p {
		font-size: 11px;
	}

	.fp-slider-track {
		gap: 10px;
	}

	.fp-card {
		flex: 0 0 calc(45% - 8px);
		border-radius: 12px;
	}

	.fp-card-body {
		padding: 10px;
		gap: 6px;
	}

	.fp-card-title {
		font-size: 12px;
		line-height: 1.4;
		min-height: calc(1.4em * 2);
	}

	.fp-card-color-dot {
		width: 11px;
		height: 11px;
	}

	.fp-card-footer {
		padding-top: 7px;
	}

	.fp-card-price {
		font-size: 12px;
	}

	.fp-card-price small {
		font-size: 9.5px;
	}

	.fp-card-view {
		font-size: 13px;
	}

	.fp-card-badge {
		font-size: 9.5px;
		padding: 4px 8px;
		top: 7px;
		right: 7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fp-slider-viewport {
		scroll-behavior: auto;
	}
}

.fp-slider,
.fp-slider-viewport,
.fp-slider-track {
    direction: ltr !important;
}

.fp-card {
    direction: rtl !important;
}

/* =========================================================
   MINI TOAST - GLASS FULL WIDTH
========================================================= */
/* =========================================================
   GLASS TOAST
========================================================= */

body .app-toast {
    position: fixed !important;

    top: 180px !important;
    left: 50% !important;
    right: auto !important;

    width: calc(100vw - 40px) !important;
    max-width: none !important;

    height: 40px !important;
    min-height: 0 !important;
    max-height: 40px !important;

    margin: 0 !important;
    padding: 8px 18px !important;

    box-sizing: border-box !important;
    display: block !important;

    /* ===== شیشه‌ای ===== */
    background: rgba(255, 255, 255, 0.28) !important;

    backdrop-filter:
        blur(17px) !important;

    -webkit-backdrop-filter:
        blur(20px) !important;

    /* ===== خط دور ===== */
    border: 1px solid rgba(214, 40, 40, 0.65) !important;

    border-radius: 8px !important;

    /* ===== متن ===== */
    color: #d62828 !important;

    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 22px !important;

    text-align: center !important;
    direction: rtl !important;

    white-space: nowrap !important;

    /* ===== درخشش شیشه ===== */
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.8),
        inset 0 -1px 1px rgba(255, 255, 255, 0.2) !important;

    opacity: 0 !important;
    visibility: hidden !important;

    transform:
        translateX(-50%)
        translateY(-8px) !important;

    z-index: 2147483647 !important;

    pointer-events: none !important;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease !important;
}


/* =========================================================
   نمایش
========================================================= */

body .app-toast.is-visible {
    opacity: 1 !important;
    visibility: visible !important;

    transform:
        translateX(-50%)
        translateY(0) !important;
}


/* =========================================================
   ERROR
========================================================= */

body .app-toast-error {
    background: rgba(255, 255, 255, 0.28) !important;

    color: #d62828 !important;

    border-color:
        rgba(214, 40, 40, 0.65) !important;
}


/* =========================================================
   SUCCESS
========================================================= */

body .app-toast-success {
    background: rgba(255, 255, 255, 0.28) !important;

    color: #178a72 !important;

    border-color:
        rgba(23, 138, 114, 0.65) !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body .app-toast {
        top: 156px !important;

        width:
            calc(100vw - 24px) !important;

        height: 38px !important;
        max-height: 38px !important;

        padding: 7px 12px !important;

        font-size: 11px !important;

        border-radius: 7px !important;
    }
}



/* =========================================================
   articles.css
   بخش «آخرین مقالات» + صفحه‌ی تک‌مقاله + صفحه‌ی لیست مقالات
   ========================================================= */


/* ---------- بخش صفحه اصلی ---------- */

.ma-section {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 32px 48px;
}

.ma-heading {
	text-align: center;
	margin-bottom: 26px;
	position: relative;
}

.ma-heading h2 {
	margin: 0;
	font-size: 21px;
	font-weight: 700;
	color: var(--tosi-deep);
}

/* ---------- گرید کارت‌ها ---------- */
/* پیش‌فرض (دسکتاپ واقعی، بالای ۱۰۲۴px): ۳ کارت کنار هم */

.ma-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

/* ---------- کارت مقاله: تصویر (۱۶:۹) + متن، کنار هم ---------- */

.ma-card {
	display: flex;
	align-items: stretch;
	gap: 14px;
	background: #fbf9f4;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 10px;
	text-decoration: none;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ma-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(10, 58, 54, 0.12);
	border-color: var(--kalaghazi-light);
}

/* نسبت تصویر همیشه ۱۶:۹ — در هر سایز صفحه */
.ma-card-image {
	flex-shrink: 0;
	width: 150px;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #eef4f2;
}

.ma-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ma-card-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 10px;
}

.ma-card-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
}

.ma-card-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--tosi-deep);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ma-card-excerpt {
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	color: var(--muted);
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- دکمه‌ی «مشاهده همه مقالات» ---------- */

.ma-more {
	text-align: center;
	margin-top: 24px;
}

.ma-more a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--kalaghazi-deep);
	text-decoration: none;
	padding: 10px 22px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #ffffff;
	transition: background 0.2s var(--ease), color 0.2s var(--ease), gap 0.2s var(--ease);
}

.ma-more a:hover {
	background: var(--kalaghazi);
	color: var(--cream);
	gap: 11px;
}

/* =========================================================
   ریسپانسیو
   -----------------------------------------------------------
   قانون خواسته‌شده: فقط دسکتاپ واقعی (بالای ۱۰۲۴px) سه‌تا کنار
   هم؛ هم تبلت هم موبایل (زیر ۱۰۲۴px) زیر هم (یک ستون).
   ========================================================= */

@media (max-width: 1024px) {
	.ma-section {
		padding: 32px 20px 40px;
	}

	.ma-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ma-card-image {
		width: 130px;
	}
}

@media (max-width: 640px) {
	.ma-section {
		padding: 26px 14px 34px;
	}

	.ma-heading h2 {
		font-size: 18px;
	}

	.ma-grid {
		gap: 10px;
	}

	.ma-card-image {
		width: 110px;
	}

	.ma-card-title {
		font-size: 13px;
	}

	.ma-card-excerpt {
		font-size: 11.5px;
	}
}

/* =========================================================
   صفحه‌ی تک‌مقاله (article.php)
   ========================================================= */

.article-page {
	max-width: 820px;
	margin: 0 auto;
	padding: 36px 24px 64px;
}

.article-container {
	width: 100%;
}

.article-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--kalaghazi);
	text-decoration: none;
	margin-bottom: 18px;
}

.article-back:hover {
	color: var(--kalaghazi-light);
}

.article-title {
	font-size: 24px;
	font-weight: 800;
	color: var(--tosi-deep);
	margin: 0 0 20px;
	line-height: 1.6;
}

/* تصویر شاخص مقاله هم همیشه ۱۶:۹ */
.article-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 24px;
	background: #eef4f2;
}

.article-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* کانتینر متن مقاله: یه جعبه‌ی مشخص با حاشیه و پس‌زمینه،
   نه فقط متن خام رها روی صفحه */
.article-content-box {
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 28px;
}

.article-content {
	font-size: 15px;
	line-height: 2;
	color: #333;
}

@media (max-width: 640px) {
	.article-page {
		padding: 24px 16px 48px;
	}

	.article-title {
		font-size: 19px;
	}

	.article-content-box {
		padding: 18px;
		border-radius: 12px;
	}

	.article-content {
		font-size: 14px;
		line-height: 1.9;
	}
}

/* =========================================================
   صفحه‌ی لیست همه‌ی مقالات (articles.php)
   همون قانون ریسپانسیو گرید بالا رو به ارث می‌بره (.ma-grid)
   ========================================================= */

.article-list-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 36px 32px 64px;
}

.article-list-title {
	text-align: center;
	font-size: 22px;
	font-weight: 800;
	color: var(--tosi-deep);
	margin-bottom: 28px;
}

.article-list-empty {
	text-align: center;
	color: var(--muted);
	padding: 60px 20px;
}

@media (max-width: 640px) {
	.article-list-page {
		padding: 26px 14px 48px;
	}

	.article-list-title {
		font-size: 18px;
	}
}


/* =========================================================
   پوسترهای تبلیغاتی: فقط عکس، سوایپ با انگشت، نسبت ثابت 16:9
   ========================================================= */

   .poster-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.poster-slider {
    display: flex;
    overflow-x: auto;
    gap: 14px;
max-width: 700px;
margin: 0 auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    /* مخفی کردن اسکرول‌بار در همه مرورگرها */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.poster-slider::-webkit-scrollbar {
    display: none;
}

.poster-slide {
    position: relative;

    flex: 0 0 100%;

    width: 100%;

    scroll-snap-align: none;

    scroll-snap-stop: normal;

    aspect-ratio: 16 / 9;

    border-radius: 18px;

    overflow: hidden;

    background: var(--track-bg, #e6efec);

    box-shadow:
        0 8px 24px
        rgba(16, 78, 73, 0.12);
}

.poster-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* تضمین می‌کنه هیچ کلیکی روش اتفاق نیفته */
    user-select: none;
    -webkit-user-drag: none;
}

/* اگه فقط یک پوستر باشه، عرض کامل و بدون گپ اضافه */
.poster-slider:has(.poster-slide:only-child) .poster-slide {
    flex: 0 0 100%;
}


/* ---------- ریسپانسیو ---------- */

@media (max-width: 480px) {

    .poster-section {
        padding: 14px 1px;
    }

    .poster-slide {
        border-radius: 14px;
    }
}

/* =====================================================
   دکمه‌های بیرون از باکس اسلایدر
   فقط دسکتاپ
===================================================== */

.fp-slider {
    position: relative;
}

.fp-slider-buttons {
    position: absolute;

    top: 50%;
    left: -65px;
    right: -65px;

    transform: translateY(-50%);

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 50;

    pointer-events: none;
}

.fp-slider-button {
    width: 46px;
    height: 46px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.35);

    color: #fff;

    font-size: 30px;
    font-weight: 300;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

    pointer-events: auto;
}

.fp-slider-button:hover {
    background: rgba(255, 255, 255, 0.28);

    transform: scale(1.08);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

.fp-slider-button:active {
    transform: scale(0.94);
}


/* =====================================================
   تبلت و موبایل
   دکمه‌ها مخفی
===================================================== */

@media (max-width: 1024px) {

    .fp-slider-buttons {
        display: none !important;
    }

}/* جلوگیری از اسکرول افقی کل صفحه */
html,
body {
    overflow-x: hidden;
}

/* اجازه می‌ده دکمه‌ها بیرون محدوده باکس قرار بگیرن */
.fp-slider {
    position: relative;
    overflow: visible;
}

.fp-slider-buttons {
    position: absolute;
    top: 50%;
    left: -65px;
    right: -65px;
    transform: translateY(-50%);

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 50;
    pointer-events: none;
}

.fp-slider-button {
    pointer-events: auto;
}

.fp-slider {
    position: relative;
}

.fp-slider-buttons {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;

    transform: translateY(-50%);

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 50;
    pointer-events: none;
}

.fp-slider-button {
    pointer-events: auto;

    width: 46px;
    height: 46px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.35);

    color: var(--kalaghazi-deep);
    font-size: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);

    transition: 0.25s ease;
}

.fp-slider-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}


/* فقط دسکتاپ */
@media (max-width: 1024px) {
    .fp-slider-buttons {
        display: none !important;
    }
}

/* =========================================================
   نتایج جستجوی زنده
   ========================================================= */

   .search-results {
    display: none;
    flex-direction: column;
    gap: 2px;

    max-width: 640px;
    margin: 10px auto 0;
    max-height: 60vh;
    overflow-y: auto;

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(16, 78, 73, 0.18);
}

.search-results.is-open {
    display: flex;
}

.search-results-message {
    padding: 18px 16px;
    text-align: center;
    color: var(--muted, #7a8a86);
    font-size: 13px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(16, 78, 73, 0.08);
    transition: background 0.15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(16, 78, 73, 0.05);
}

.search-result-item img,
.search-result-noimg {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--track-bg, #e6efec);
    font-size: 8px;
    color: var(--muted, #7a8a86);
    text-align: center;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-info strong {
    font-size: 13px;
    color: var(--kalaghazi-deep, #0a3a36);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-info small {
    font-size: 10.5px;
    color: var(--muted, #7a8a86);
}

.search-result-price {
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--kalaghazi, #104e49);
    direction: ltr;
    unicode-bidi: plaintext;
    white-space: nowrap;
}

.search-result-price small {
    font-size: 10px;
    font-weight: 400;
    color: var(--muted, #7a8a86);
}

.search-result-price-unavailable {
    font-size: 11px;
    direction: rtl;
}

/* =========================================================
   پیام موفقیت / خطای سبد خرید
   ========================================================= */

   .cart-action-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    animation: cartActionSlideIn 0.35s ease;
    position: relative;
    overflow: hidden;
  }
  
  .cart-action-hide {
    animation: cartActionSlideOut 0.3s ease forwards;
  }
  
  .cart-action-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
  }
  
  .cart-action-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
  }
  
  .cart-action-message-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
  }
  
  .cart-action-success .cart-action-message-icon {
    background: #10b981;
    color: #fff;
  }
  
  .cart-action-error .cart-action-message-icon {
    background: #ef4444;
    color: #fff;
  }
  
  .cart-action-message-text {
    flex: 1;
  }
  
  /* نوار پیشرفت زمان باقی‌مانده */
  .cart-action-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.35;
    animation: cartActionProgress 5s linear forwards;
  }
  
  @keyframes cartActionSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes cartActionSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
  }
  
  @keyframes cartActionProgress {
    from { width: 100%; }
    to   { width: 0%; }
  }
  
/* =========================================================
   هدر ثابت (fixed) با انیمیشن نرم مخفی/نمایان شدن هنگام اسکرول
   =========================================================
   نکته: به‌جای position: sticky از fixed استفاده شده، چون
   ترکیب sticky + transform در بعضی مرورگرها (خصوصاً موبایل)
   باعث می‌شد هدر دیگه واقعاً به بالای صفحه نچسبد.
*/

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  }
  
  .site-header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
  }
  

