/* ===== VARIABLES & RESET ===== */
:root {
    --green-primary: #00b894;
    --green-dark: #00a085;
    --green-light: #55efc4;
    --green-lighter: #a3e4d7;
    --green-gradient: linear-gradient(135deg, #00b894, #00a085, #019875);
    --green-gradient-light: linear-gradient(135deg, #55efc4, #00b894);
    --gold: #fdcb6e;
    --gold-dark: #e17055;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #dfe6e9;
    --dark: #2d3436;
    --shadow: 0 20px 40px rgba(0, 184, 148, 0.15);
    --shadow-lg: 0 30px 60px rgba(0, 184, 148, 0.2);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --light-text: #888;
    --error: #ff7675;
    --success: #00b894;
    --info: #0984e3;
    --warning: #fdcb6e;
    --pink: #fd79a8;
}

* {
    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);
}

/* ===== 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, #e3f2fd 0%, #f8f9fa 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', cursive;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--green-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}

.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(0, 184, 148, 0.2), transparent);
    z-index: -1;
    border-radius: 6px;
}

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

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: right 0.5s ease;
}

.hero-btn:hover::before {
    right: 100%;
}

.hero-btn-primary {
    background: var(--green-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 184, 148, 0.4);
}

.hero-btn-secondary {
    background: white;
    color: var(--green-dark);
    border: 2px solid var(--green-light);
    box-shadow: 0 5px 20px rgba(0, 184, 148, 0.1);
}

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

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

.hero-btn:hover i {
    transform: scale(1.2);
}

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

.hero-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: perspective(1000px) translateY(0) rotateX(0) rotateY(0);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.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: linear-gradient(135deg, white, #f8f9fa);
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

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

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 184, 148, 0.05), transparent);
    transition: right 0.6s ease;
}

.feature-card:hover::after {
    right: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-light);
}

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

.feature-card:hover .feature-icon {
    transform: rotateY(360deg) scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--green-gradient-light);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.2);
}

/* ===== 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(320px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

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

.products-grid.list-view .product-image {
    height: 100%;
    min-height: 220px;
}

.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-image {
        min-height: 200px;
    }
}

/* کارت محصول بدون انیمیشن */
.product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 184, 148, 0.1);
    contain: layout style paint;
}

.product-card:hover {
    box-shadow: 0 15px 35px rgba(0, 184, 148, 0.15);
    border-color: var(--green-light);
}

.product-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* بدج تخفیف */
.product-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--green-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
    animation: pulse 2s infinite;
}

/* A product can have both a label badge and a discount badge — stack them
   instead of letting them render on top of each other */
.product-badge:empty {
    display: none;
}

.product-badge + .product-badge {
    top: 4.1rem;
}

.product-badge.premium {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.product-badge.organic {
    background: linear-gradient(135deg, #00b894, #00a085);
}

.product-badge.traditional {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.product-rating {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

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

/* مشاهده سریع */
.quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    color: var(--green-dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-card:hover .quick-view-btn {
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-btn:hover {
    background: var(--green-gradient);
    color: white;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* علاقه‌مندی */
.wishlist-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    border: none;
    color: var(--pink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background: var(--pink);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

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

/* تعداد نظرات */
.review-count {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--info);
    z-index: 2;
}

.review-count i {
    color: var(--gold);
}

.product-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 700;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--off-white);
}

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

.product-original-price {
    font-size: 1rem;
    color: #aaa;
    text-decoration: line-through;
    direction: ltr;
    unicode-bidi: embed;
    margin-top: 0.2rem;
}

.product-unit {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--success);
    white-space: nowrap;
}

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

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

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

/* ===== 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;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.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::placeholder {
    color: #999;
    text-align: right;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--green-dark);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--green-primary);
}

.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;
}

.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-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: 450px;
    height: 600px;
    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;
    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,
.dark-theme .product-description {
    color: #f0f0f0;
}

.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: 400px;
        height: 550px;
    }
}

@media (max-width: 992px) {

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

    .ai-window {
        width: 350px;
        height: 500px;
        left: -50px;
    }

    .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: 1fr;
        gap: 1.8rem;
    }

    .product-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .product-content {
        padding: 1.4rem;
    }

    .product-title {
        font-size: 1.2rem;
    }

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

    .product-badge,
    .wishlist-btn,
    .review-count,
    .product-rating {
        top: 1rem;
    }

    .product-badge {
        left: 1rem;
        padding: 0.4rem 1.1rem;
        font-size: 0.8rem;
    }

    .product-badge + .product-badge {
        top: 3.1rem;
    }

    .wishlist-btn {
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
    }

    .review-count,
    .product-rating {
        bottom: 1rem;
        padding: 0.4rem 0.7rem;
        font-size: 0.78rem;
    }

    .review-count {
        left: 1rem;
    }

    .product-rating {
        right: 1rem;
    }

    .star {
        font-size: 1.8rem;
    }

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

    .ai-window {
        width: 300px;
        height: 450px;
        left: -30px;
    }

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

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

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

@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: 1fr;
    }

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

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

    .action-btn-sm {
        width: 100%;
    }

    .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.75rem;
        right: 0.75rem;
        bottom: 6.5rem;
        width: auto;
        height: min(70vh, 480px);
        border-radius: 20px;
    }

    .ai-suggestions {
        padding: 0.8rem;
    }

    .suggestion-chip {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    /* 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: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

/* 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-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;
    }
}

/* ===== 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;
}
