/* ===== DESIGN SYSTEM: VARIABLES & RESET =====
   فاز ۲ — سیستم طراحی یکپارچه «برنج پارسی»
   نکته: متغیرهای قبلی (--green-primary, --shadow, ...) برای سازگاری با
   کدهای موجود حفظ شده‌اند تا چیزی نشکند؛ فقط مقادیرشان لطیف‌تر و لوکس‌تر شده. */
:root {
    /* --- رنگ پایه: سبز طبیعی/تیره (برند) --- */
    --green-primary: #1f8a5f;
    --green-dark: #145c3f;
    --green-light: #4fae83;
    --green-lighter: #cfe8dc;
    --green-gradient: linear-gradient(135deg, #1f8a5f, #145c3f);
    --green-gradient-light: linear-gradient(135deg, #4fae83, #1f8a5f);

    /* --- طلایی: بسیار محدود، فقط برای لمس‌های ویژه --- */
    --gold: #c9a24b;
    --gold-dark: #a9822f;
    --gold-soft: #f3e6c8;

    /* --- خنثی‌ها: سفید، کرم/خاکی، خاکستری --- */
    --white: #ffffff;
    --cream: #faf7f0;
    --off-white: #f7f8f6;
    --sand: #efe8d8;
    --light-gray: #e2e5e1;
    --mid-gray: #9aa39c;
    --dark: #232823;
    --light-text: #6b736c;

    /* --- وضعیت‌ها --- */
    --error: #d64545;
    --success: #1f8a5f;
    --info: #3b7bbf;
    --warning: #c9a24b;
    --pink: #fd79a8;

    /* --- سایه‌ها: ظریف و حرفه‌ای (جایگزین سایه‌های سنگین قبلی) --- */
    --shadow-xs: 0 1px 2px rgba(35, 40, 35, 0.06);
    --shadow-sm: 0 2px 8px rgba(35, 40, 35, 0.07);
    --shadow: 0 6px 20px rgba(35, 40, 35, 0.08);
    --shadow-lg: 0 12px 32px rgba(35, 40, 35, 0.10);
    --shadow-gold: 0 6px 18px rgba(201, 162, 75, 0.18);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(35, 40, 35, 0.08);

    /* --- سیستم فاصله‌گذاری (Spacing Scale) --- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 80px;

    /* --- سیستم گردی گوشه‌ها (Radius Scale) --- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --radius-circle: 50%;

    /* --- تایپوگرافی (Type Scale) --- */
    --fs-caption: 0.8125rem;
    --fs-body: 1rem;
    --fs-label: 0.9375rem;
    --fs-button: 0.9375rem;
    --fs-price: 1.25rem;
    --fs-h3: 1.375rem;
    --fs-h2: 1.875rem;
    --fs-h1: 2.75rem;
    --lh-body: 1.7;
    --lh-heading: 1.3;

    /* --- انیمیشن --- */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration: 220ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    direction: rtl;
}

body {
    font-family: 'Vazirmatn', 'Dana', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    color: var(--dark);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    text-align: right;
}

/* ===== ANIMATIONS ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-25px) rotate(2deg) scale(1.02);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes leaf-fall {
    0% {
        transform: translate(0, -100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), 100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    20% {
        transform: translate(-15%, 5%);
    }

    30% {
        transform: translate(7%, -25%);
    }

    40% {
        transform: translate(-5%, 25%);
    }

    50% {
        transform: translate(-15%, 10%);
    }

    60% {
        transform: translate(15%, 0%);
    }

    70% {
        transform: translate(0%, 15%);
    }

    80% {
        transform: translate(3%, 35%);
    }

    90% {
        transform: translate(-10%, 10%);
    }
}

@keyframes text-reveal {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 184, 148, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 184, 148, 0.6);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

@keyframes water-flow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 0;
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scale-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.7;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-3deg);
    }

    75% {
        transform: rotate(3deg);
    }
}

@keyframes color-change {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* ===== SPECIAL OFFER BAR ===== */
.special-offer-bar {
    background: linear-gradient(135deg, #ff6b6b, #ff7675, #e17055);
    color: white;
    padding: 0.8rem 0;
    position: relative;
    z-index: 1100;
    display: block;
    overflow: hidden;
}

.special-offer-bar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.offer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.offer-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.offer-message .offer-icon {
    animation: pulse 1.5s infinite;
    font-size: 1.2rem;
}

.offer-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.offer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.offer-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}

.offer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.offer-btn.primary {
    background: white;
    color: #ff6b6b;
    font-weight: 600;
}

.offer-btn.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.05);
}

.offer-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.offer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.offer-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--green-gradient);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ===== HOURGLASS LOADER (تم سبز/طلایی برنج پارسی) ===== */
.hourglass {
    --dur: 2s;
    display: block;
    width: 4.5em;
    height: auto;
    font-size: 1.4rem;
}

.hourglass__glare-top,
.hourglass__glare-bottom,
.hourglass__model,
.hourglass__motion-thick,
.hourglass__motion-medium,
.hourglass__motion-thin,
.hourglass__sand-drop,
.hourglass__sand-fill,
.hourglass__sand-grain-left,
.hourglass__sand-grain-right,
.hourglass__sand-line-left,
.hourglass__sand-line-right,
.hourglass__sand-mound-top,
.hourglass__sand-mound-bottom {
    animation-duration: var(--dur);
    animation-timing-function: cubic-bezier(0.83, 0, 0.17, 1);
    animation-iteration-count: infinite;
}

.hourglass__glare-top {
    animation-name: glare-top;
}

.hourglass__glare-bottom {
    animation-name: glare-bottom;
}

.hourglass__model {
    animation-name: hourglass-flip;
    transform-origin: 12.25px 16.75px;
}

.hourglass__motion-thick,
.hourglass__motion-medium,
.hourglass__motion-thin {
    transform-origin: 26px 26px;
}

.hourglass__motion-thick {
    animation-name: motion-thick;
}

.hourglass__motion-medium {
    animation-name: motion-medium;
}

.hourglass__motion-thin {
    animation-name: motion-thin;
}

.hourglass__sand-drop {
    animation-name: sand-drop;
}

.hourglass__sand-fill {
    animation-name: sand-fill;
}

.hourglass__sand-grain-left {
    animation-name: sand-grain-left;
}

.hourglass__sand-grain-right {
    animation-name: sand-grain-right;
}

.hourglass__sand-line-left {
    animation-name: sand-line-left;
}

.hourglass__sand-line-right {
    animation-name: sand-line-right;
}

.hourglass__sand-mound-top {
    animation-name: sand-mound-top;
}

.hourglass__sand-mound-bottom {
    animation-name: sand-mound-bottom;
    transform-origin: 12.25px 31.5px;
}

@keyframes hourglass-flip {
    from {
        transform: translate(13.75px, 9.25px) rotate(-180deg);
    }

    24%,
    to {
        transform: translate(13.75px, 9.25px) rotate(0);
    }
}

@keyframes glare-top {
    from {
        stroke: rgba(255, 255, 255, 0);
    }

    24%,
    to {
        stroke: hsl(168, 90%, 65%);
    }
}

@keyframes glare-bottom {
    from {
        stroke: hsl(168, 90%, 65%);
    }

    24%,
    to {
        stroke: rgba(255, 255, 255, 0);
    }
}

@keyframes motion-thick {
    from {
        animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(0.67turn);
    }

    20% {
        animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
        stroke: hsl(168, 90%, 60%);
        stroke-dashoffset: 141.11;
        transform: rotate(1turn);
    }

    40%,
    to {
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(1.33turn);
    }
}

@keyframes motion-medium {

    from,
    8% {
        animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(0.5turn);
    }

    20% {
        animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
        stroke: hsl(168, 90%, 60%);
        stroke-dashoffset: 147.53;
        transform: rotate(0.83turn);
    }

    32%,
    to {
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(1.17turn);
    }
}

@keyframes motion-thin {

    from,
    4% {
        animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(0.33turn);
    }

    24% {
        animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
        stroke: hsl(168, 90%, 60%);
        stroke-dashoffset: 134.7;
        transform: rotate(0.67turn);
    }

    44%,
    to {
        stroke: rgba(255, 255, 255, 0);
        stroke-dashoffset: 153.94;
        transform: rotate(1turn);
    }
}

@keyframes sand-drop {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 1;
    }

    70%,
    to {
        stroke-dashoffset: -107;
    }
}

@keyframes sand-fill {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 55;
    }

    70%,
    to {
        stroke-dashoffset: -54;
    }
}

@keyframes sand-grain-left {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 29;
    }

    70%,
    to {
        stroke-dashoffset: -22;
    }
}

@keyframes sand-grain-right {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 27;
    }

    70%,
    to {
        stroke-dashoffset: -24;
    }
}

@keyframes sand-line-left {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 53;
    }

    70%,
    to {
        stroke-dashoffset: -55;
    }
}

@keyframes sand-line-right {

    from,
    10% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        stroke-dashoffset: 14;
    }

    70%,
    to {
        stroke-dashoffset: -24.5;
    }
}

@keyframes sand-mound-top {

    from,
    10% {
        animation-timing-function: linear;
        transform: translate(0, 0);
    }

    15% {
        animation-timing-function: cubic-bezier(0.12, 0, 0.39, 0);
        transform: translate(0, 1.5px);
    }

    51%,
    to {
        transform: translate(0, 13px);
    }
}

@keyframes sand-mound-bottom {

    from,
    31% {
        animation-timing-function: cubic-bezier(0.61, 1, 0.88, 1);
        transform: scale(1, 0);
    }

    56%,
    to {
        transform: scale(1, 1);
    }
}

/* ===== TOP BAR ===== */
.top-bar {
    position: relative;
    width: 100%;
    background: var(--green-gradient);
    color: var(--white);
    font-size: 0.9rem;
    z-index: 1001;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-message strong {
    color: var(--gold);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.top-bar-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.top-bar-btn.register-btn {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
    font-weight: 600;
}

.top-bar-btn.register-btn:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.top-bar-close {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.top-bar-close:hover {
    opacity: 1;
}

.top-bar-user-btn {
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.top-bar-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.top-bar-user-caret {
    font-size: 0.7rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .top-bar-container {
        padding: 0.6rem 1rem;
        gap: 0.75rem;
    }

    .top-bar-message span {
        font-size: 0.8rem;
    }
}

/* ===== ENHANCED HEADER ===== */
.enhanced-header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid rgba(0, 184, 148, 0.15);
    box-shadow: 0 5px 30px rgba(0, 184, 148, 0.1);
}

.enhanced-header.scrolled {
    padding: 0.8rem 3rem;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--green-primary);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animated Logo */
.animated-logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon {
    position: relative;
    width: 70px;
    height: 70px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 15px rgba(0, 184, 148, 0.3));
}

.logo-particles {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.logo-particle {
    position: absolute;
    width: 6px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
}

.logo-text {
    line-height: 1.2;
}

.logo-text h1 {
    font-family: 'Vazirmatn', 'Dana', cursive;
    font-size: 2.4rem;
    background: var(--green-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-text p {
    font-size: 0.95rem;
    color: var(--green-dark);
    opacity: 0.9;
    font-weight: 500;
}

/* Enhanced Navigation */
.enhanced-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    padding: 0.6rem 1.5rem;
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50px;
    overflow: hidden;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--green-gradient);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: var(--green-primary);
    transition: all 0.3s ease;
    transform: translateX(50%);
}

.nav-link:hover::before {
    right: 0;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.nav-link-profile {
    background: var(--green-gradient);
    color: white;
    padding-right: 0.7rem;
}

.nav-link-profile::before {
    display: none;
}

.nav-link-profile:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.nav-link-profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.action-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--off-white);
    border: 2px solid var(--green-light);
    color: var(--green-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.action-btn:hover {
    background: var(--green-gradient);
    color: white;
    transform: translateY(-3px) rotate(10deg);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.cart-header-btn {
    text-decoration: none;
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--pink);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ===== MOBILE HAMBURGER MENU ===== */
.nav-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--off-white);
    border: 2px solid var(--green-light);
    color: var(--green-dark);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-hamburger:hover,
.nav-hamburger.active {
    background: var(--green-gradient);
    color: white;
    border-color: transparent;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 52, 54, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-nav-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 360px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 2rem 1.5rem 1.5rem;
    z-index: 2501;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s ease;
}

.mobile-nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.mobile-nav-close {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--off-white);
    color: var(--dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: var(--error);
    color: white;
}

.mobile-nav-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.8rem;
}

.mobile-nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 184, 148, 0.3));
}

.mobile-nav-title {
    font-family: 'Vazirmatn', 'Dana', cursive;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--green-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.6rem;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 0.6rem;
    border-radius: 16px;
    background: var(--off-white);
    border: 2px solid transparent;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    background: rgba(0, 184, 148, 0.08);
    border-color: var(--green-light);
    color: var(--green-dark);
    transform: translateY(-2px);
}

.mobile-nav-item.current {
    background: var(--green-gradient);
    border-color: transparent;
    color: white;
}

.mobile-nav-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--green-primary);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.15);
}

.mobile-nav-item.current .mobile-nav-icon {
    color: var(--green-dark);
}

.mobile-nav-item-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.15);
}

.mobile-nav-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 184, 148, 0.15);
}

.mobile-nav-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--off-white);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-nav-socials a:hover {
    background: var(--green-gradient);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--gold-dark);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid white;
}

/* ===== FLOATING ELEMENTS ===== */
.floating-elements {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.2;
}

.rice-leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
    overflow: hidden;
    padding-top: 140px;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Water Animation */
.water-animation {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300%;
    height: 150px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 184, 148, 0.1) 25%,
            rgba(0, 184, 148, 0.2) 50%,
            rgba(0, 184, 148, 0.1) 75%,
            transparent 100%);
}

/* Rice Field Pattern */
.rice-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 40%;
    background-image:
        radial-gradient(circle at 75% 25%, rgba(0, 184, 148, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(0, 184, 148, 0.1) 2px, transparent 2px);
    background-size: 100px 100px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: slide-in-right 1s ease-out;
}

.hero-title {
    font-family: 'Vazirmatn', 'Dana', sans-serif;
    font-size: var(--fs-h1);
    line-height: var(--lh-heading);
    margin-bottom: var(--space-4);
    color: var(--green-dark);
    font-weight: 800;
}

.hero-title p {
    font-size: inherit !important;
    display: block;
    margin-top: 0 !important;
}

.hero-title p:last-child {
    font-size: 0.72em !important;
    color: var(--green-primary);
    font-weight: 600;
    margin-top: var(--space-2) !important;
}

.hero-title span {
    display: block;
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, transparent, rgba(31, 138, 95, 0.15), transparent);
    z-index: -1;
    border-radius: var(--radius-sm);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--green-dark);
    margin-bottom: var(--space-5);
    font-weight: 600;
    line-height: 1.4;
}

.hero-description {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--light-text);
    margin-bottom: var(--space-6);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 700;
    font-size: var(--fs-button);
    cursor: pointer;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
    min-width: 170px;
}

.hero-btn-primary {
    background: var(--green-gradient);
    color: white;
    box-shadow: var(--shadow);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-btn-secondary {
    background: var(--white);
    color: var(--green-dark);
    border: 1.5px solid var(--green-lighter);
    box-shadow: var(--shadow-xs);
}

.hero-btn-secondary:hover {
    background: var(--cream);
    border-color: var(--green-light);
    transform: translateY(-2px);
}

.hero-btn i {
    font-size: 1.05rem;
}

.hero-visual {
    animation: slide-in-left 1s ease-out;
    position: relative;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--duration) var(--ease);
}

.hero-image:hover {
    transform: scale(1.015);
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    filter: brightness(1.05) contrast(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 184, 148, 0.9));
    color: white;
}

.image-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.image-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 8rem 3rem;
    background: white;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Vazirmatn', 'Dana', cursive;
    font-size: 3.5rem;
    background: var(--green-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: var(--green-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--green-dark);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-7) var(--space-5);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
    border: 1.5px solid var(--light-gray);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--green-gradient);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--green-lighter);
}

.feature-icon {
    width: 78px;
    height: 78px;
    background: var(--green-gradient);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    font-size: 2rem;
    color: white;
    transition: transform var(--duration) var(--ease);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover .feature-icon {
    transform: scale(1.06);
}

.feature-card h3 {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-3);
    color: var(--dark);
}

.feature-card p {
    color: var(--light-text);
    line-height: var(--lh-body);
    margin-bottom: var(--space-4);
}

.feature-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--sand);
    color: var(--green-dark);
    border-radius: var(--radius-pill);
    font-size: var(--fs-caption);
    font-weight: 600;
}

/* ===== ENHANCED PRODUCTS SECTION ===== */
.products-section {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
}

.products-header {
    text-align: center;
    margin-bottom: 4rem;
}

.products-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2.5rem;
    background: white;
    border: 2px solid var(--green-light);
    border-radius: 50px;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--green-gradient);
    transition: right 0.4s ease;
    z-index: -1;
}

.tab-btn:hover::before,
.tab-btn.active::before {
    right: 0;
}

.tab-btn:hover,
.tab-btn.active {
    color: white;
    border-color: var(--green-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.2);
}

.tab-btn i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.tab-btn:hover i {
    transform: rotate(15deg);
}

/* ===== PRODUCTS TOOLBAR ===== */
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    max-width: 1400px;
    margin: 0 auto 2.5rem;
    padding: 1.2rem 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.08);
    border: 1px solid rgba(0, 184, 148, 0.1);
}

.products-search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 380px;
}

.products-search-box i {
    position: absolute;
    top: 50%;
    right: 1.2rem;
    transform: translateY(-50%);
    color: var(--green-primary);
    pointer-events: none;
}

.products-search-box input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1.2rem;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark);
    transition: all 0.3s ease;
}

.products-search-box input:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

.products-toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.products-result-count {
    font-size: 0.9rem;
    color: #888;
    font-weight: 600;
    white-space: nowrap;
}

.products-sort {
    padding: 0.7rem 1.2rem;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--dark);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-sort:focus {
    outline: none;
    border-color: var(--green-primary);
}

.view-toggle {
    display: flex;
    gap: 0.3rem;
    background: var(--off-white);
    padding: 0.3rem;
    border-radius: 50px;
}

.view-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: var(--green-gradient);
    color: white;
}

/* ===== NO PRODUCTS ===== */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: #888;
}

.no-products i {
    font-size: 3rem;
    color: var(--green-light);
    margin-bottom: 1.2rem;
}

.no-products h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.no-products p {
    margin-bottom: 1.5rem;
}

.no-products .action-btn-sm {
    display: inline-flex;
    max-width: 220px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== LIST VIEW ===== */
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.products-grid.list-view .product-media {
    height: 100%;
    aspect-ratio: auto;
}

.products-grid.list-view .product-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }

    .products-grid.list-view .product-media {
        aspect-ratio: 4 / 3.4;
    }
}

/* ============================================================
   کارت محصول برنج پارسی — طراحی پرمیوم/مینیمال (v2)
   ============================================================ */
.product-card {
    --card-radius: var(--radius-lg);
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
    contain: layout style paint;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--green-lighter);
}

.product-card:focus-within {
    box-shadow: 0 0 0 3px rgba(31, 138, 95, 0.22);
}

/* ---------- تصویر ---------- */
.product-media {
    position: relative;
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
    background: var(--off-white);
}

.product-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.045);
}

.product-card.img-error .product-media img {
    object-fit: contain;
    padding: 2rem;
    opacity: 0.45;
}

/* ---------- Badgeها ---------- */
.product-badges {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    max-width: calc(100% - 3.6rem);
    pointer-events: none;
}

.product-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--green-dark);
    padding: 0.32rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: var(--shadow-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.product-badge:empty {
    display: none;
}

.product-badge-discount {
    background: var(--green-dark);
    color: #fff;
}

/* ---------- علاقه‌مندی / مشاهده سریع ---------- */
.wishlist-btn,
.quick-view-btn {
    position: absolute;
    left: auto;
    z-index: 3;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(45, 52, 54, 0.12);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.wishlist-btn {
    top: 0.85rem;
    right: 0.85rem;
    color: var(--pink);
}

.wishlist-btn:hover {
    background: var(--pink);
    color: white;
    transform: scale(1.08);
}

.wishlist-btn.active {
    background: var(--pink);
    color: white;
}

/* Micro Interaction ظریف هنگام تغییر وضعیت علاقه‌مندی (بخش حساب کاربری) */
.wishlist-btn.heart-pop {
    animation: heartPopScale .32s ease;
}

@keyframes heartPopScale {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.quick-view-btn {
    top: calc(0.85rem + 46px);
    right: 0.85rem;
    color: var(--green-dark);
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
}

.product-card:hover .quick-view-btn,
.product-card:focus-within .quick-view-btn {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.quick-view-btn:hover {
    background: var(--green-dark);
    color: white;
    transform: scale(1.08);
}

@media (hover: none) {

    /* در موبایل هاور وجود ندارد؛ دکمه مشاهده سریع همیشه در دسترس باشد */
    .quick-view-btn {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    /* Touch Target مناسب در موبایل (حداقل ۴۴px) */
    .wishlist-btn,
    .quick-view-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}

/* ---------- محتوا ---------- */
.product-content {
    padding: 1.1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.product-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover,
.product-title a:focus-visible {
    color: var(--green-dark);
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--dark);
    min-height: 1.2em;
}

.product-rating-row i {
    color: var(--gold);
}

.product-rating-count {
    color: var(--light-text);
    font-weight: 500;
}

.product-rating-empty {
    color: var(--light-text);
    font-size: 0.78rem;
}

.product-info-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.65rem;
    font-size: 0.78rem;
    color: var(--light-text);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--off-white);
}

.product-info-line span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.product-info-line i {
    color: var(--green-primary);
    font-size: 0.72rem;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--dark);
    direction: ltr;
    unicode-bidi: embed;
}

.product-original-price {
    font-size: 0.8rem;
    color: var(--light-text);
    text-decoration: line-through;
    direction: ltr;
    unicode-bidi: embed;
}

.product-unit {
    font-size: 0.74rem;
    color: var(--light-text);
    white-space: nowrap;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
}

.product-stock.low {
    color: var(--gold-dark);
}

.product-stock.out {
    color: var(--error);
}

/* ---------- آیکن ایتا (کوچک و ثابت در همه مرورگرها - v2) ---------- */
.eitaa-icon,
.product-cta-btn img.eitaa-icon,
.product-cta-btn > img,
.action-button .eitaa-icon,
.action-btn-sm .eitaa-icon,
.cmp-btn-solid .eitaa-icon,
button .eitaa-icon,
img.eitaa-icon {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    object-fit: contain !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}
.product-cta-btn {
    overflow: hidden;
}
.product-cta-btn img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

/* ---------- اکشن‌ها ---------- */
.product-cta-row {
    display: flex;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.35rem;
    align-items: stretch;
}

.product-cta-btn {
    flex: 1;
    min-height: 46px;
    max-height: 52px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--green-gradient);
    color: white;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.product-cta-btn .btn-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-cta-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.product-cta-btn:active:not(:disabled) {
    transform: translateY(0);
}

.product-cta-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.product-cta-btn.is-loading {
    opacity: 0.85;
    cursor: wait;
}

.product-cta-btn.is-success {
    background: var(--success);
}

.product-cta-notify {
    background: var(--off-white);
    color: var(--dark);
    border: 1.5px solid var(--light-gray);
}

.product-cta-notify:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.product-icon-btn {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--off-white);
    color: var(--green-dark);
    border: 1.5px solid var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.product-icon-btn:hover,
.product-icon-btn:focus-visible {
    background: var(--green-light);
    color: white;
    transform: translateY(-2px);
}

.action-btn-sm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== مقایسه محصولات: چک‌باکس روی کارت ===== */
.compare-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    width: fit-content;
    padding: 0.15rem 0;
}

.compare-check-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.compare-check-box {
    width: 19px;
    height: 19px;
    min-width: 19px;
    border-radius: 6px;
    border: 1.5px solid var(--light-gray);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.68rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.compare-check-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--light-text);
    transition: color 0.2s ease;
}

.compare-check:hover .compare-check-box {
    border-color: var(--green-primary);
}

.compare-check-input:checked+.compare-check-box {
    background: var(--green-gradient);
    border-color: var(--green-dark);
    color: white;
    transform: scale(1.05);
}

.compare-check-input:checked~.compare-check-label {
    color: var(--green-dark);
}

.compare-check-input:focus-visible+.compare-check-box {
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.25);
}

/* ===== نوار مقایسه (Compare Bar) ===== */
body.has-compare-bar {
    scroll-padding-bottom: 90px;
}

.compare-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -140px;
    z-index: 900;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.compare-bar.visible {
    bottom: 0;
    pointer-events: auto;
}

.compare-bar-desktop {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto 1.1rem;
    background: var(--white);
    border: 1px solid rgba(45, 52, 54, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(45, 52, 54, 0.18);
    padding: 0.9rem 1.4rem;
}

.compare-bar-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

.compare-bar-info i {
    color: var(--green-primary);
    font-size: 1.1rem;
}

.compare-bar-chips {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    max-width: 220px;
}

.compare-chip button {
    border: none;
    background: rgba(45, 52, 54, 0.08);
    color: var(--dark);
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.compare-chip button:hover {
    background: var(--error);
    color: white;
}

.compare-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.compare-bar-clear {
    border: none;
    background: transparent;
    color: var(--light-text);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    padding: 0.6rem 0.5rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.compare-bar-clear:hover {
    color: var(--error);
}

.compare-bar-cta {
    border: none;
    background: var(--green-gradient);
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compare-bar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 184, 148, 0.3);
}

.compare-bar-mobile {
    display: none;
}

@media (max-width: 860px) {
    .compare-bar-desktop {
        display: none;
    }

    .compare-bar-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        background: var(--white);
        box-shadow: 0 -8px 24px rgba(45, 52, 54, 0.15);
        padding: 0.85rem 1.1rem;
        padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    }

    .compare-bar-mobile-text {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--dark);
    }

    .compare-bar-mobile .compare-bar-cta {
        padding: 0.65rem 1.1rem;
        font-size: 0.82rem;
    }
}

/* ===== PAGINATION ===== */
.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 0.6rem;
    border: 2px solid var(--light-gray);
    background: white;
    border-radius: 14px;
    color: var(--dark);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--green-primary);
    color: var(--green-dark);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--green-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: #aaa;
    font-weight: 700;
    padding: 0 0.3rem;
}

.action-btn-sm {
    flex: 1;
    min-width: 120px;
    padding: 0.9rem;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.action-btn-primary {
    background: var(--green-gradient);
    color: white;
}

.action-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

.action-btn-secondary {
    background: var(--off-white);
    color: var(--green-dark);
    border: 2px solid var(--green-light);
}

.action-btn-secondary:hover {
    background: var(--green-light);
    color: white;
    transform: translateY(-3px);
}

/* ===== QUICK VIEW MODAL ===== */
.quick-view-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-view-modal.active {
    display: flex;
    opacity: 1;
}

.quick-view-container {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    margin: auto;
    background: var(--white);
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-view-header {
    background: var(--green-gradient);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.quick-view-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.quick-view-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.quick-view-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.quick-view-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.quick-view-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

/* ===== QUICK VIEW - DYNAMIC CONTENT ===== */
.qv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.qv-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
}

.qv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.qv-tag {
    background: var(--off-white);
    color: var(--green-dark);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--green-light);
}

.qv-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.qv-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    color: var(--dark);
    font-weight: 700;
}

.qv-rating i {
    color: var(--gold);
}

.qv-reviews {
    color: #888;
    font-weight: 500;
}

.qv-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.qv-price-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 2px solid var(--off-white);
    margin-bottom: 1rem;
}

.qv-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green-primary);
    direction: ltr;
    unicode-bidi: embed;
}

.qv-original-price {
    font-size: 1.2rem;
    color: #aaa;
    text-decoration: line-through;
    direction: ltr;
    unicode-bidi: embed;
}

.qv-unit {
    font-size: 0.9rem;
    color: #888;
    width: 100%;
}

.qv-qty-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-weight: 600;
    color: var(--dark);
}

.qv-qty {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--off-white);
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
}

.qv-qty button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--green-dark);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.qv-qty button:hover:not(:disabled) {
    background: var(--green-gradient);
    color: white;
}

.qv-qty button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qv-qty span {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
}

.qv-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.qv-actions .action-btn-sm.active {
    background: var(--pink);
    color: white;
    border-color: var(--pink);
}

@media (max-width: 768px) {
    .qv-layout {
        grid-template-columns: 1fr;
    }

    .qv-image {
        min-height: 240px;
    }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 8rem 3rem;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, #f8f9fa, white);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 6rem;
    color: var(--green-light);
    opacity: 0.2;
    font-family: 'Vazirmatn', 'Dana', cursive;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--green-light);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--green-light);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.testimonial-info p {
    color: var(--green-dark);
    font-size: 0.9rem;
}

.testimonial-content {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-rating {
    color: var(--gold);
}

/* ===== REGISTRATION SECTION ===== */
.registration-section {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
}

.registration-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.registration-card {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--green-light);
    position: relative;
    overflow: hidden;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--green-gradient);
}

.registration-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.registration-icon {
    width: 80px;
    height: 80px;
    background: var(--green-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.3);
}

.registration-header h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.registration-header p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--green-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(0, 184, 148, 0.2);
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 184, 148, 0.03);
    color: var(--dark);
    text-align: right;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
    background: white;
}

.form-group input[aria-invalid="true"] {
    border-color: var(--error);
    background: rgba(214, 69, 69, 0.04);
}

.form-group input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}

.form-group input::placeholder {
    color: #999;
    text-align: right;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3.25rem;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--green-dark);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, background 0.3s ease;
}

.toggle-password:hover {
    color: var(--green-primary);
    background: rgba(0, 184, 148, 0.08);
}

.toggle-password:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    position: relative;
    padding-left: 2rem;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label input:focus-visible~.checkmark {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: rgba(0, 184, 148, 0.1);
    border: 2px solid var(--green-light);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input~.checkmark {
    background-color: rgba(0, 184, 148, 0.2);
}

.checkbox-label input:checked~.checkmark {
    background-color: var(--green-primary);
    border-color: var(--green-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked~.checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    right: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--green-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-error i {
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.registration-submit {
    flex: 2;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    justify-content: center;
    min-width: 160px;
}

.btn-primary {
    background: var(--green-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 184, 148, 0.3);
}

.btn:focus-visible {
    outline: 2px solid var(--green-dark);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn[aria-busy="true"] {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover,
.btn[aria-busy="true"]:hover {
    transform: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
}

.btn-secondary:hover {
    background: var(--green-primary);
    color: white;
    transform: translateY(-3px);
}

.registration-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 184, 148, 0.1);
    color: #666;
}

.registration-footer a {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.registration-footer a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.registration-benefits {
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    border-radius: 25px;
    padding: 3rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.registration-benefits h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.benefit-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* ===== REVIEW SECTION ===== */
.review-section {
    padding: 8rem 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
}

.review-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.review-form-card {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--green-light);
    position: relative;
    overflow: hidden;
}

.review-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--green-gradient);
}

.review-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.review-icon {
    width: 80px;
    height: 80px;
    background: var(--green-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.3);
}

.review-header h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.review-header p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Rating Input Styles */
.rating-input {
    margin-top: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.star {
    position: relative;
    cursor: pointer;
    font-size: 2rem;
    color: var(--light-gray);
    transition: all 0.2s ease;
}

.star .fa-star {
    transition: all 0.2s ease;
}

.star .far.fa-star {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 1;
}

.star .fas.fa-star {
    position: relative;
    opacity: 0;
    color: var(--gold);
}

.star:hover .far.fa-star {
    opacity: 0;
}

.star:hover .fas.fa-star {
    opacity: 1;
}

.star.active .far.fa-star {
    opacity: 0;
}

.star.active .fas.fa-star {
    opacity: 1;
}

.rating-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.rating-value {
    font-weight: bold;
    color: var(--gold-dark);
    font-size: 1.1rem;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #888;
}

/* Textarea Styles */
textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(0, 184, 148, 0.2);
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 184, 148, 0.03);
    color: var(--dark);
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    text-align: right;
}

textarea:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
    background: white;
}

textarea::placeholder {
    color: #999;
    text-align: right;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.3rem;
}

.char-counter.warning {
    color: var(--gold-dark);
}

.char-counter.error {
    color: var(--error);
}

/* File Upload Styles */
.file-upload {
    margin-top: 0.5rem;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed rgba(0, 184, 148, 0.3);
    border-radius: 15px;
    background: rgba(0, 184, 148, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    background: rgba(0, 184, 148, 0.08);
    border-color: var(--green-primary);
}

.file-upload-label i {
    font-size: 2.5rem;
    color: var(--green-primary);
    margin-bottom: 0.8rem;
}

.file-upload-label span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #888;
}

.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.file-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.file-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.file-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--error);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.file-preview-remove:hover {
    background: white;
    transform: scale(1.1);
}

.form-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 184, 148, 0.05);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.form-note i {
    color: var(--green-primary);
    margin-right: 0.5rem;
}

/* Review Guidelines */
.review-guidelines {
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    border-radius: 25px;
    padding: 3rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.review-guidelines h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.guidelines-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.guideline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.guideline-item:hover {
    transform: translateX(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.guideline-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.guideline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.guideline-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.review-benefits {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.review-benefits h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.review-benefits ul {
    list-style: none;
    padding: 0;
}

.review-benefits li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.review-benefits i {
    color: var(--gold);
    font-size: 1rem;
}

/* Reviews Modal */
.reviews-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reviews-modal.active {
    display: flex;
    opacity: 1;
}

.reviews-modal-content {
    width: 90%;
    max-width: 800px;
    height: 80vh;
    margin: auto;
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reviews-modal-header {
    background: var(--green-gradient);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.reviews-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.reviews-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.reviews-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: rgba(0, 184, 148, 0.03);
}

.review-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 184, 148, 0.1);
}

.reviews-loading,
.empty-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: var(--text-light, #888);
    text-align: center;
}

.reviews-loading i,
.empty-reviews i {
    font-size: 2rem;
    color: var(--primary-color, #00b894);
}

.empty-reviews h4 {
    margin: 0;
    color: var(--text-dark, #333);
}

.review-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
}

.review-product {
    display: inline-block;
    background: rgba(0, 184, 148, 0.1);
    color: var(--green-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.review-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.review-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-images {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.review-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-image:hover {
    transform: scale(1.05);
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CART MODAL ===== */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal.active {
    display: flex;
    opacity: 1;
}

.cart-container {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    margin: auto;
    background: var(--white);
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-header {
    background: var(--green-gradient);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cart-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.cart-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.cart-stats {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cart-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

.cart-items {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cart-item {
    background: var(--off-white);
    border-radius: 15px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-5px);
    border-color: var(--green-light);
    box-shadow: var(--shadow-lg);
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cart-item:hover .item-image img {
    transform: scale(1.1);
}

.item-details {
    padding: 0.5rem 0;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-primary);
}

.item-original-price {
    font-size: 0.9rem;
    color: var(--light-text);
    text-decoration: line-through;
    margin-left: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border-radius: 50px;
    padding: 0.5rem;
    margin-top: 1rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--green-primary);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--green-dark);
    transform: scale(1.1);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--off-white);
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-action-btn:hover {
    transform: rotate(15deg) scale(1.1);
}

.cart-action-btn.delete:hover {
    background: var(--error);
    color: white;
}

.cart-action-btn.wishlist:hover {
    background: #fd79a8;
    color: white;
}

.cart-summary {
    background: var(--off-white);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.summary-items {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--light-gray);
}

.summary-item.total {
    border-bottom: none;
    border-top: 2px solid var(--green-primary);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-primary);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-icon {
    font-size: 5rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

/* ===== ENHANCED AI ASSISTANT ===== */
.ai-assistant {
    position: fixed;
    bottom: 2.5rem;
    left: 2.5rem;
    z-index: 1000;
}

.ai-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--green-gradient);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 20px 50px rgba(0, 184, 148, 0.4);
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--green-gradient);
    opacity: 0.5;
}

.ai-window {
    position: absolute;
    bottom: 90px;
    left: 0;
    width: min(450px, calc(100vw - 2.5rem));
    height: min(600px, calc(100vh - 170px));
    max-height: calc(100vh - 170px);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 184, 148, 0.15);
    overflow: hidden;
    flex-direction: column;
}

.ai-window.active {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ai-header {
    padding: 1.5rem;
    background: var(--green-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ai-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.ai-title p {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.ai-controls {
    display: flex;
    gap: 0.5rem;
}

.ai-control-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ai-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(15deg);
}

.ai-conversation {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: rgba(0, 184, 148, 0.03);
}

.message {
    margin-bottom: 1.2rem;
}

.message-content {
    padding: 1rem 1.2rem;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    font-size: 0.95rem;
}

.message.ai .message-content {
    background: var(--green-gradient);
    color: white;
    border-bottom-right-radius: 5px;
    margin-right: auto;
}

.message.user .message-content {
    background: white;
    color: var(--dark);
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-bottom-left-radius: 5px;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-time {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    margin-top: 0.3rem;
    text-align: left;
    padding-left: 0.5rem;
}

.message.user .message-time {
    text-align: right;
    padding-right: 0.5rem;
    color: rgba(0, 0, 0, 0.5);
}

.ai-suggestions {
    padding: 1rem;
    background: white;
    border-top: 1px solid rgba(0, 184, 148, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-chip {
    padding: 0.6rem 1rem;
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--green-dark);
    font-weight: 500;
}

.suggestion-chip:hover {
    background: var(--green-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.2);
}

/* ===== کارت پیشنهاد محصول در دستیار هوشمند ===== */
@keyframes suggestionPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-suggestion {
    background: var(--white);
    border: 1px solid rgba(0, 184, 148, 0.15);
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    margin: 0 0 1.2rem;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.1);
    position: relative;
    overflow: hidden;
    animation: suggestionPop 0.35s ease;
}

.product-suggestion::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--green-gradient);
}

.suggestion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.product-suggestion h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.suggestion-discount-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(225, 112, 85, 0.25);
}

.product-suggestion p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--light-text);
    margin: 0 0 1rem;
}

.suggestion-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 0;
    margin-bottom: 1rem;
    border-top: 1px dashed rgba(0, 184, 148, 0.2);
    border-bottom: 1px dashed rgba(0, 184, 148, 0.2);
}

.suggestion-price-box {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.suggestion-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--green-dark);
}

.suggestion-original-price {
    font-size: 0.85rem;
    color: var(--light-text);
    text-decoration: line-through;
}

.suggestion-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(253, 203, 110, 0.15);
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 50px;
    white-space: nowrap;
}

.suggestion-rating i {
    color: var(--gold);
}

.suggestion-rating span {
    color: var(--light-text);
    font-weight: 500;
}

.product-suggestion .ai-action-buttons {
    display: flex;
    gap: 0.6rem;
}

.action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(0, 184, 148, 0.1);
    color: var(--green-dark);
}

.action-button:hover {
    transform: translateY(-2px);
}

.action-button-primary {
    background: var(--green-gradient);
    color: white;
    box-shadow: 0 8px 18px rgba(0, 184, 148, 0.25);
}

.action-button-primary:hover {
    box-shadow: 0 10px 22px rgba(0, 184, 148, 0.35);
}

.action-button-secondary {
    background: white;
    color: var(--green-dark);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.action-button-secondary:hover {
    background: rgba(0, 184, 148, 0.08);
}

.ai-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid rgba(0, 184, 148, 0.1);
    display: flex;
    gap: 0.8rem;
}

.ai-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid rgba(0, 184, 148, 0.2);
    border-radius: 50px;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 184, 148, 0.03);
    color: var(--dark);
}

.ai-input:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
    background: white;
}

.ai-send-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.ai-send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.3);
}

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    display: none;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green-gradient);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 184, 148, 0.4);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #2d3436, #1a1a2e);
    color: white;
    padding: 6rem 3rem 3rem;
    position: relative;
    margin-top: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--green-gradient);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--green-gradient);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--green-light);
    transform: translateX(-5px);
}

.footer-links i {
    font-size: 0.9rem;
    color: var(--green-light);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-decoration: none;
}

.social-link:hover {
    background: var(--green-gradient);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

/* ===== UTILITY CLASSES ===== */
.grain-texture::before {
    content: "";
    position: absolute;
    top: -100%;
    right: -100%;
    width: 300%;
    height: 300%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--green-gradient);
    border-radius: 10px;
    border: 3px solid var(--off-white);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-dark);
}

/* Custom scrollbar for AI window */
.ai-conversation::-webkit-scrollbar {
    width: 6px;
}

.ai-conversation::-webkit-scrollbar-track {
    background: rgba(0, 184, 148, 0.05);
    border-radius: 3px;
}

.ai-conversation::-webkit-scrollbar-thumb {
    background: var(--green-gradient);
    border-radius: 3px;
}

.ai-conversation::-webkit-scrollbar-thumb:hover {
    background: var(--green-dark);
}

/* ===== DARK THEME ===== */
.dark-theme {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: #f0f0f0;
}

.dark-theme .special-offer-bar {
    background: linear-gradient(135deg, #ff4757, #ff3838, #ff6348);
}

.dark-theme .enhanced-header {
    background: rgba(26, 26, 46, 0.98);
    border-bottom-color: rgba(0, 184, 148, 0.3);
}

.dark-theme .nav-link {
    color: #f0f0f0;
}

.dark-theme .action-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 184, 148, 0.3);
    color: var(--green-light);
}

.dark-theme .nav-hamburger {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 184, 148, 0.3);
    color: var(--green-light);
}

.dark-theme .mobile-nav-menu {
    background: #1a1a2e;
}

.dark-theme .mobile-nav-item {
    background: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

.dark-theme .mobile-nav-icon {
    background: rgba(255, 255, 255, 0.08);
}

.dark-theme .mobile-nav-close {
    background: rgba(255, 255, 255, 0.08);
    color: #f0f0f0;
}

.dark-theme .mobile-nav-socials {
    border-top-color: rgba(0, 184, 148, 0.2);
}

.dark-theme .mobile-nav-socials a {
    background: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

.dark-theme .hero-section {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.dark-theme .features-section {
    background: #1a1a2e;
}

.dark-theme .feature-card {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    color: #f0f0f0;
    border-color: rgba(0, 184, 148, 0.3);
}

.dark-theme .feature-card h3,
.dark-theme .feature-card p {
    color: #f0f0f0;
}

.dark-theme .products-section {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.dark-theme .product-card {
    background: #16213e;
    color: #f0f0f0;
    border-color: rgba(0, 184, 148, 0.3);
}

.dark-theme .product-title {
    color: #f0f0f0;
}

.dark-theme .product-media {
    background: #0f3460;
}

.dark-theme .product-info-line {
    color: rgba(255, 255, 255, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-theme .product-price {
    color: #f0f0f0;
}

.dark-theme .product-badge {
    background: rgba(22, 33, 62, 0.92);
    color: var(--green-light);
}

.dark-theme .product-cta-notify {
    background: rgba(255, 255, 255, 0.06);
    color: #f0f0f0;
    border-color: rgba(255, 255, 255, 0.15);
}

.dark-theme .product-icon-btn {
    background: rgba(255, 255, 255, 0.06);
}

.dark-theme .products-toolbar {
    background: #16213e;
    border-color: rgba(0, 184, 148, 0.3);
}

.dark-theme .products-search-box input,
.dark-theme .products-sort {
    background: #0f3460;
    border-color: rgba(0, 184, 148, 0.3);
    color: #f0f0f0;
}

.dark-theme .view-toggle {
    background: #0f3460;
}

.dark-theme .page-btn {
    background: #16213e;
    border-color: rgba(0, 184, 148, 0.3);
    color: #f0f0f0;
}

.dark-theme .qv-title,
.dark-theme .qv-rating,
.dark-theme .qv-qty-row {
    color: #f0f0f0;
}

.dark-theme .registration-section {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.dark-theme .registration-card {
    background: #16213e;
    color: #f0f0f0;
    border-color: rgba(0, 184, 148, 0.3);
}

.dark-theme .form-group label {
    color: #f0f0f0;
}

.dark-theme .form-group input,
.dark-theme .form-group select {
    background: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
    border-color: rgba(0, 184, 148, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.8rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image img {
        height: 400px;
    }

    .registration-container,
    .review-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ai-window {
        width: min(400px, calc(100vw - 2.5rem));
        height: min(550px, calc(100vh - 170px));
    }
}

@media (max-width: 992px) {

    .form-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .ai-window {
        width: min(350px, calc(100vw - 2.5rem));
        height: min(500px, calc(100vh - 170px));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .products-search-box {
        max-width: none;
    }

    .products-toolbar-left {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .special-offer-bar {
        padding: 0.6rem 0;
    }

    .offer-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .offer-message {
        flex-direction: column;
        gap: 0.5rem;
    }

    .enhanced-header {
        padding: 0.8rem 1.2rem;
    }

    .header-container {
        flex-direction: row;
        gap: 0.75rem;
    }

    /* Desktop inline nav is replaced by the hamburger menu on mobile */
    .enhanced-nav {
        width: auto;
    }

    .nav-links {
        display: none;
    }

    .logo-icon {
        width: 46px;
        height: 46px;
    }

    .logo-text p {
        font-size: 18px !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
    }

    /* Prevent the fixed header from covering a section when a nav link scrolls to it */
    #home,
    #features,
    #products,
    #register {
        scroll-margin-top: 100px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .cart-container {
        width: 95%;
        height: 95vh;
    }

    .hero-content {
        padding: 3rem 1.5rem;
    }

    .features-section,
    .products-section,
    .testimonials-section,
    .registration-section,
    .review-section {
        padding: 4rem 1.5rem;
    }

    .registration-card,
    .registration-benefits,
    .review-form-card,
    .review-guidelines {
        padding: 2rem;
    }

    /* Products: one full-width card per row so photos are big and easy to see,
       plus a scrollable category bar and a tighter, thumb-friendly toolbar */
    .products-section {
        padding: 3.5rem 1rem;
    }

    .products-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -1rem 2rem;
        padding: 0 1rem 0.4rem;
    }

    .products-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .products-toolbar {
        padding: 1rem 1.1rem;
        gap: 0.9rem;
    }

    .products-toolbar-left {
        width: 100%;
    }

    .products-search-box {
        min-width: 100%;
        max-width: none;
        order: -1;
    }

    .products-sort {
        flex: 1;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-media {
        aspect-ratio: 1 / 1;
    }

    .product-content {
        padding: 0.85rem 0.85rem 1rem;
        gap: 0.4rem;
    }

    .product-title {
        font-size: 0.88rem;
        min-height: 2.5em;
    }

    .product-price {
        font-size: 1.05rem;
    }

    .product-badges {
        top: 0.6rem;
        left: 0.6rem;
        max-width: calc(100% - 3rem);
    }

    .product-badge {
        padding: 0.26rem 0.6rem;
        font-size: 0.64rem;
    }

    .wishlist-btn {
        top: 0.6rem;
        right: 0.6rem;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .quick-view-btn {
        top: calc(0.6rem + 38px);
        right: 0.6rem;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .product-info-line {
        font-size: 0.68rem;
    }

    .product-cta-row {
        gap: 0.4rem;
    }

    .product-cta-btn {
        min-height: 40px;
        font-size: 0.74rem;
        border-radius: 10px;
    }

    .product-cta-btn span.btn-label {
        display: inline;
    }

    .product-icon-btn {
        width: 40px;
        min-width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .star {
        font-size: 1.8rem;
    }

    .reviews-modal-content {
        width: 95%;
        height: 90vh;
    }

    .ai-window {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 6rem;
        width: auto;
        height: min(78vh, 620px);
        border-radius: 22px;
    }

    .ai-assistant {
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .ai-toggle {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    #backToTop {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    /* Compact header & quick-suggestions so chat text gets more room to breathe */
    .ai-header {
        padding: 0.85rem 1rem;
    }

    .ai-avatar {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .ai-title h3 {
        font-size: 1rem;
    }

    .ai-title p {
        font-size: 0.75rem;
        margin-top: 0.2rem;
    }

    .ai-control-btn {
        width: 30px;
        height: 30px;
    }

    .ai-suggestions {
        padding: 0.6rem 0.75rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ai-suggestions::-webkit-scrollbar {
        display: none;
    }

    .suggestion-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .special-offer-bar .offer-message {
        font-size: 0.85rem;
    }

    .offer-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        justify-content: center;
        min-width: auto;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .product-media {
        aspect-ratio: 1 / 1;
    }

    .product-content {
        padding: 0.7rem 0.7rem 0.85rem;
    }

    .product-title {
        font-size: 0.8rem;
        min-height: 2.3em;
    }

    .product-info-line,
    .product-rating-row,
    .product-rating-empty {
        display: none;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .product-unit {
        font-size: 0.66rem;
    }

    .product-cta-row {
        flex-direction: column;
    }

    .product-cta-btn {
        width: 100%;
    }

    .product-icon-btn {
        width: 100%;
        height: 36px;
    }

    .cart-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cart-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* AI assistant becomes a full-width bottom sheet on small phones */
    .ai-assistant {
        bottom: 1rem;
        left: 1rem;
    }

    .ai-window {
        position: fixed;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 6rem;
        width: auto;
        height: min(82vh, 640px);
        border-radius: 20px;
    }

    .ai-toggle {
        width: 60px;
        height: 60px;
        font-size: 1.55rem;
    }

    .ai-header {
        padding: 0.6rem 0.85rem;
    }

    .ai-header-info {
        gap: 0.5rem;
    }

    .ai-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .ai-title h3 {
        font-size: 0.85rem;
    }

    .ai-title p {
        font-size: 0.68rem;
        margin-top: 0.1rem;
    }

    .ai-control-btn {
        width: 26px;
        height: 26px;
    }

    /* Single scrollable row instead of wrapping, so it doesn't eat the chat area */
    .ai-suggestions {
        padding: 0.5rem 0.6rem;
        gap: 0.4rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ai-suggestions::-webkit-scrollbar {
        display: none;
    }

    .suggestion-chip {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    /* Hero & sections: tighten spacing further for small phones */
    .hero-content {
        padding: 2.5rem 1.2rem;
        gap: 2rem;
    }

    .hero-image img {
        height: 260px;
    }

    .hero-description {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .footer-content {
        gap: 2.5rem;
    }

    .quick-view-header {
        padding: 1.2rem;
    }

    .quick-view-title {
        font-size: 1.3rem;
        gap: 0.6rem;
    }

    .quick-view-title h2 {
        font-size: 1.1rem;
    }

    .quick-view-content {
        padding: 1.2rem;
    }

    .qv-layout {
        gap: 1.5rem;
    }

    .qv-image {
        min-height: 220px;
    }

    .login-form-side {
        padding: 2rem 1.2rem;
    }

    /* Comfortable touch targets */
    .btn,
    .hero-btn,
    .nav-link,
    .toggle-password,
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
    }

    #backToTop {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Extra-small phones (e.g. 320-380px) */
@media (max-width: 380px) {
    .top-bar-message span {
        font-size: 0.72rem;
    }

    .top-bar-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .nav-link span,
    .nav-link {
        font-size: 0.68rem;
    }

    .nav-link {
        padding: 0.5rem 0.5rem;
        gap: 0.25rem;
    }

    .nav-link i {
        font-size: 0.8rem;
    }

    .mobile-nav-menu {
        width: 92%;
        padding: 1.6rem 1.2rem 1.4rem;
    }

    .mobile-nav-title {
        font-size: 1.3rem;
    }

    .logo-text p {
        font-size: 17px !important;
    }

    .ai-toggle {
        width: 58px;
        height: 58px;
        font-size: 1.45rem;
    }

    .ai-window {
        left: 0.4rem;
        right: 0.4rem;
        bottom: 5.5rem;
        height: min(85vh, 660px);
    }

    .ai-header {
        padding: 0.55rem 0.7rem;
    }

    .ai-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.78rem;
    }

    .ai-title h3 {
        font-size: 0.78rem;
    }

    .ai-title p {
        font-size: 0.6rem;
    }

    .ai-control-btn {
        width: 22px;
        height: 22px;
        font-size: 0.72rem;
    }

    .ai-suggestions {
        padding: 0.45rem 0.5rem;
        gap: 0.3rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ai-suggestions::-webkit-scrollbar {
        display: none;
    }

    .suggestion-chip {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* Price formatting */
.product-price,
.item-price,
.stat-value {
    direction: ltr;
    unicode-bidi: embed;
}

/* Form adjustments */
.form-group input,
.form-group textarea,
.form-group select {
    text-align: right;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    text-align: right;
}

/* Fix for RTL issues */
.ai-conversation .message.ai {
    margin-right: 0;
    margin-left: auto;
}

.ai-conversation .message.user {
    margin-left: 0;
    margin-right: auto;
}

.message-time {
    text-align: left;
}

.message.user .message-time {
    text-align: right;
}

/* Smooth transitions */
* {
    scroll-behavior: smooth;
}

/* Fix for header position when special offer bar is visible */
body.has-special-offer .enhanced-header {
    top: 49.6px;
}

body.has-special-offer.scrolled .enhanced-header {
    top: 0;
}

/* ===================================================================
   LOGIN MODAL — redesigned two-panel login experience
   =================================================================== */
.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-modal.active {
    display: flex;
    opacity: 1;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 920px;
    max-height: 92vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: var(--white);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.login-modal.active .login-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.login-container--single {
    grid-template-columns: 1fr;
    max-width: 460px;
}

.login-close {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--dark);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.login-close:hover {
    background: var(--error);
    color: white;
    transform: rotate(90deg);
}

.login-close:focus-visible,
.login-forgot:focus-visible,
.login-footer a:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
}

.login-visual {
    position: relative;
    background: var(--green-gradient);
    color: white;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.login-visual-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.14) 0%, transparent 50%);
    animation: shimmer 6s infinite;
}

.login-visual-content {
    position: relative;
    z-index: 2;
}

.login-visual-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
}

.login-visual-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.login-visual-content p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.login-visual-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.login-visual-perks li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

.login-visual-perks i {
    color: var(--gold);
}

.login-form-side {
    padding: 3rem 2.75rem;
    overflow-y: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: var(--green-gradient-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow);
}

.login-header h3 {
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.login-header p {
    color: var(--light-text);
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.login-forgot {
    color: var(--green-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.05rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--light-text);
    font-size: 0.92rem;
}

.login-footer a {
    color: var(--green-primary);
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 860px) {
    .login-container {
        grid-template-columns: 1fr;
        max-height: 94vh;
    }

    .login-visual {
        display: none;
    }

    .login-form-side {
        padding: 2.5rem 1.5rem;
    }
}

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

    .login-modal,
    .login-container,
    .login-close,
    .btn-primary,
    .form-group input,
    .toggle-password {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .login-visual-pattern {
        animation: none;
    }

    .btn-primary:hover,
    .login-close:hover {
        transform: none;
    }
}

/* ===== REGISTER MODAL (فاز 4.4) ===== */
.register-container {
    max-width: 960px;
}

.register-form-side {
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--green-light) transparent;
}

.register-modal-form .form-group {
    margin-bottom: 1rem;
}

.optional-label {
    font-weight: 400;
    font-size: 0.85em;
    color: var(--light-text);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.password-strength-track {
    height: 5px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width 0.25s ease, background-color 0.25s ease;
    background: var(--mid-gray);
}

.password-strength-bar.strength-weak {
    width: 33%;
    background: var(--error);
}

.password-strength-bar.strength-medium {
    width: 66%;
    background: var(--warning);
}

.password-strength-bar.strength-strong {
    width: 100%;
    background: var(--success);
}

.password-strength-label {
    font-size: 0.78rem;
    color: var(--light-text);
    line-height: 1.3;
}

.password-strength-label.strength-weak {
    color: var(--error);
}

.password-strength-label.strength-medium {
    color: var(--warning);
}

.password-strength-label.strength-strong {
    color: var(--success);
}

/* Register Success State */
.register-success-state {
    text-align: center;
    padding: 2rem 0.5rem 1rem;
}

.register-success-state[hidden] {
    display: none !important;
}

.register-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(31, 138, 95, 0.12);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.register-success-state h4 {
    color: var(--dark);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.register-success-state p {
    color: var(--light-text);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.register-terms-group {
    margin: 0.75rem 0 0.25rem;
}

/* Dark mode support for register modal */
.dark-theme .login-container,
.dark-theme .register-container {
    background: #1e2420;
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-theme .login-header h3,
.dark-theme .register-success-state h4 {
    color: #f0f2f0;
}

.dark-theme .login-header p,
.dark-theme .register-success-state p,
.dark-theme .login-footer,
.dark-theme .password-strength-label {
    color: #a8b0aa;
}

.dark-theme .password-strength-track {
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .login-close {
    background: rgba(30, 36, 32, 0.9);
    color: #f0f2f0;
}

.dark-theme .form-group input,
.dark-theme .form-group select {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f0f2f0;
}

.dark-theme .form-group input:focus,
.dark-theme .form-group select:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--green-primary);
}

@media (max-width: 860px) {
    .register-container {
        max-width: 100%;
    }

    .register-form-side {
        padding: 2rem 1.25rem 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .password-strength-bar {
        transition: none;
    }
}

/* ===== PROFILE MODAL ===== */
.profile-modal-container {
    max-width: 440px;
}

.profile-modal-side {
    padding-top: 2.5rem;
}

.profile-modal-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.profile-avatar-lg {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--green-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    border: 3px solid var(--gold);
}

.profile-modal-header h3 {
    color: var(--dark);
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.profile-mobile {
    color: var(--light-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    direction: ltr;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--off-white);
    border: 1px solid rgba(0, 184, 148, 0.15);
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.profile-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green-gradient-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.profile-stat-text strong {
    font-size: 1.15rem;
    color: var(--dark);
}

.profile-stat-text span {
    font-size: 0.8rem;
    color: var(--light-text);
}

.profile-details {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.profile-detail-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0;
    font-size: 0.92rem;
}

.profile-detail-row i {
    color: var(--green-primary);
    width: 18px;
    text-align: center;
}

.profile-detail-label {
    color: var(--light-text);
}

.profile-detail-value {
    margin-right: auto;
    color: var(--dark);
    font-weight: 600;
}

.profile-modal-actions {
    display: flex;
}

.profile-logout-btn {
    width: 100%;
    justify-content: center;
}
.hero-title-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin: 0.35rem 0 1rem;
    font-weight: 500;
}

/* ===== PHASE 21 — Performance helpers ===== */
.products-grid {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}
.product-card .product-media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}
/* Reduce paint cost on hover for low-end mobile */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card img,
  .feature-card {
    transition: none !important;
  }
}
