/**
 * Stakhr-Safar - Unified Shop Stylesheet
 * Theme: Aquatic, Glassmorphism, Fluid Animations
 */

/* ==========================================================================
   ۱. معرفی فونت سفارشی (Peyda Font)
========================================================================== */
@font-face {
    font-family: 'Peyda';
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.eot');
    src: url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff2') format('woff2'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.woff') format('woff'),
    url('../font/peyda/Web Fonts/30fa25c99fe33691d39c95bf780bf7c1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   ۲. متغیرهای سراسری (CSS Variables)
========================================================================== */
:root {
    --main-font: 'Peyda', Tahoma, Arial, sans-serif;
    --accent-blue: #00f2fe;
    --text-light: #e2e8f0;
    --text-white: #ffffff;
    --text-muted: #8a99ad;
    --aquatic-deep-abyss: #0a192f;

    --glass-bg: rgba(10, 25, 47, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --sf-glass-bg: rgba(38, 44, 51, 0.25);
    --sf-glass-border: rgba(255, 255, 255, 0.05);

    --neon-aqua-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --sf-neon-cyan: #00f2fe;
    --sf-neon-blue: #4facfe;
    --sf-deep-bg: #040c1a;
}

/* ==========================================================================
   ۳. ریست و تنظیمات پایه (Reset & Base)
========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--main-font);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, #08224b, #072543, #05204f);
    background-size: 400% 400%;
    animation: oceanFluid 15s ease infinite;
    font-family: var(--main-font);
}

input, button, textarea, select {
    font-family: var(--main-font);
}

@keyframes oceanFluid {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================================================
   ۴. حباب‌های متحرک پس‌زمینه (Background Bubbles)
========================================================================== */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 4px rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-110vh) scale(1.2);
        opacity: 0;
    }
}

.site-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ==========================================================================
   ۵. نوبار فوق‌لوکس (Elite Floating Header)
========================================================================== */
.elite-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 20px;
    transition: padding 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.header-island {
    pointer-events: auto;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(8, 22, 45, 0.45);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(0, 242, 254, 0.05);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(-100px);
    animation: dropDownIsland 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

@keyframes dropDownIsland {
    to {
        transform: translateY(0);
    }
}

.elite-header.scrolled {
    padding: 0;
}

.elite-header.scrolled .header-island {
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: rgba(6, 18, 38, 0.75);
    padding: 15px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-logo .flex-col-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));
    transition: filter 0.3s ease;
}

.magnetic-wrap:hover .logo-text {
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.6));
}

.logo-sub {
    font-size: 9px;
    color: #94a3b8;
    letter-spacing: 1.5px;
    margin-top: -3px;
}

.island-nav .nav-links {
    position: relative;
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
}

.nav-item {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.liquid-indicator {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 30px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.island-nav:hover .liquid-indicator {
    opacity: 1;
}

.magnetic-wrap {
    display: inline-block;
    padding: 10px;
    margin: -10px;
    cursor: pointer;
}

.magnetic-inner {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.elite-pill {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    max-width: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    overflow: hidden;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.4, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pill-icon {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.4s ease;
}

.pill-icon svg {
    width: 19px;
    height: 19px;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.pill-text {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding-right: 2px;
    padding-left: 20px;
    z-index: 2;
}

.elite-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

.elite-pill:hover {
    max-width: 160px;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.25);
}

.elite-pill:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.elite-pill:hover .pill-icon svg {
    color: #040c1a;
    transform: scale(1.15) rotate(-5deg);
}

.elite-pill:hover .pill-text {
    opacity: 1;
    transform: translateX(0);
    color: #040c1a;
}

.cart-pill::after {
    content: attr(data-count);
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ff0055, #ff3366);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.6);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-pill:hover::after {
    transform: scale(1.1) translateY(-2px);
    border: 2px solid #00f2fe;
}

/* ---------------- دکمه منوی همبرگری موبایل ---------------- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    position: relative;
}

.burger-lines {
    width: 20px;
    height: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.burger-lines span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.burger-lines span:nth-child(1) {
    top: 0;
}

.burger-lines span:nth-child(2) {
    top: 6px;
    width: 70%;
    right: 0;
}

.burger-lines span:nth-child(3) {
    top: 12px;
}

.menu-toggle.open .burger-lines span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.menu-toggle.open .burger-lines span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-toggle.open .burger-lines span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   ۶. منوی موبایل (Fluid Circular Mobile Menu)
========================================================================== */
.fluid-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    pointer-events: none;
    overflow: hidden;
}

.sidebar-water-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 18, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    clip-path: circle(0px at 40px 40px);
    transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.15, 1);
}

.fluid-sidebar.active {
    pointer-events: auto;
}

.fluid-sidebar.active .sidebar-water-bg {
    clip-path: circle(150% at 40px 40px);
}

.sidebar-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.fluid-sidebar .sidebar-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

.fluid-sidebar .sidebar-item {
    font-size: 28px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.4s ease;
    display: inline-block;
    position: relative;
}

.fluid-sidebar .sidebar-item.active,
.fluid-sidebar .sidebar-item:hover {
    color: #fff;
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
    transform: scale(1.1);
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fluid-sidebar.active .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.fluid-sidebar.active .stagger-item:nth-child(1) {
    transition-delay: 0.2s;
}

.fluid-sidebar.active .stagger-item:nth-child(2) {
    transition-delay: 0.3s;
}

.fluid-sidebar.active .stagger-item:nth-child(3) {
    transition-delay: 0.4s;
}

.fluid-sidebar.active .stagger-item:nth-child(4) {
    transition-delay: 0.5s;
}

.fluid-sidebar.active .stagger-item:nth-child(5) {
    transition-delay: 0.6s;
}

.fluid-sidebar.active .stagger-item:nth-child(6) {
    transition-delay: 0.7s;
}

.fluid-sidebar.active .sidebar-footer-logo {
    transition-delay: 0.9s;
    margin-top: 50px;
}

/* ==========================================================================
   ۷. صفحه محصولات - استایل‌های اصلی (Shop Layout & Core)
========================================================================== */
.shop-page-wrapper {
    width: 100%;
    background: transparent;
    direction: rtl;
    box-sizing: border-box;
}

.shop-inside-container {
    display: flex;
    width: 95% !important;
    max-width: 1850px !important;
    margin: 0 auto;
    gap: 35px;
    padding-top: 140px;
    padding-bottom: 60px;
    height: auto !important;
    align-items: flex-start;
}

.products-sidebar {
    width: 35% !important;
    max-width: 440px;
    height: auto !important;
    position: sticky;
    top: 130px;
    z-index: 90;
}

.products-main-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 110vh !important;
    position: relative;
    z-index: 85;
    overflow: hidden !important;
    padding-left: 0;
    box-sizing: border-box;
}

.mini-hero-banner {
    flex-shrink: 0 !important;
    z-index: 10;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.003) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 20px 25px;
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: 0 25px 50px -20px rgba(4, 12, 26, 0.6);
}

.main-scrollable-content {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-top: 35px !important;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 50px;
}

.main-scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.main-scrollable-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.main-scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 10px;
}

.main-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.6);
}

/* ==========================================================================
   ۸. فیلترها (Filters Panel)
========================================================================== */
.filter-glass-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px 8px;
    padding: 26px;
    margin-bottom: 25px;
    box-shadow: 0 20px 45px -20px rgba(4, 12, 26, 0.4);
    position: relative;
    overflow: hidden;
    animation: poolFilterFloat 6s ease-in-out infinite alternate;
    transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.filter-glass-card:nth-child(2) {
    animation-delay: 1.5s;
}

.filter-glass-card:nth-child(3) {
    animation-delay: 3s;
}

@keyframes poolFilterFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-6px);
    }
}

.filter-glass-card:hover {
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 25px 50px -15px rgba(0, 242, 254, 0.15);
    transform: translateY(-8px);
}

.filter-box-title {
    font-size: 15px;
    font-weight: 850;
    color: #ffffff;
    margin-bottom: 22px;
    padding-right: 12px;
    border-right: 3px solid #00f2fe;
    letter-spacing: 0.3px;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(3, 42, 57, 0.697);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.search-input-wrapper input:focus {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 53, 84, 0.7);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1), inset 0 0 10px rgba(0, 242, 254, 0.05);
}

.search-glow-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.search-input-wrapper input:focus ~ .search-glow-line {
    width: 80%;
}

.search-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.search-input-wrapper input:focus ~ .search-btn {
    color: #00f2fe;
    transform: translateY(-50%) scale(1.1);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* Categories & Brands Filter */
.category-list-wrapper, .brand-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-option, .brand-option {
    cursor: pointer;
    display: block;
    width: 100%;
    position: relative;
}

.category-option input, .brand-option input {
    display: none;
}

.category-custom-box, .brand-custom-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-custom-box {
    padding: 12px 18px;
    border-radius: 14px;
}

.category-text, .brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #8a99ad;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-name {
    font-size: 13.5px;
}

.category-custom-box::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #00f2fe;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px #00f1fe46, 0 0 20px #00f1fe38;
}

.category-custom-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(0, 242, 254, 0.08) 50%, rgba(79, 172, 254, 0.02) 100%);
    z-index: -1;
    transform: skewX(-25deg);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-option:hover .category-custom-box::before {
    left: -120%;
}

.category-option:hover .category-custom-box, .brand-option:hover .brand-custom-box {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.05), 0 5px 15px rgba(4, 12, 26, 0.3);
}

.brand-option:hover .brand-custom-box {
    background: rgba(0, 242, 254, 0.02);
}

.category-option:hover .category-text, .brand-option:hover .brand-name {
    color: #ffffff;
    transform: translateX(-4px);
    text-shadow: 0 0 8px rgba(0, 241, 254, 0.323);
}

.category-option input:checked + .category-custom-box, .brand-option input:checked + .brand-custom-box {
    background: linear-gradient(135deg, rgba(0, 86, 182, 0.2) 0%, rgba(0, 242, 254, 0.08) 100%);
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.15), 0 10px 25px -8px rgba(0, 241, 254, 0.179);
}

.category-option input:checked + .category-custom-box .category-text, .brand-option input:checked + .brand-custom-box .brand-name {
    color: #ffffff;
    font-weight: 850;
    transform: translateX(-5px);
    text-shadow: 0 0 12px rgba(0, 241, 254, 0.327), 0 0 25px rgba(0, 242, 254, 0.4);
}

.category-option input:checked + .category-custom-box::after {
    opacity: 1;
    transform: scale(1);
    animation: poolPointPulse 2s infinite ease-in-out;
}

@keyframes poolPointPulse {
    0%, 100% {
        box-shadow: 0 0 8px #00f1fe77, 0 0 15px #00f1fe74;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px #00f1fe95, 0 0 28px #00f1fe90;
        transform: scale(1.2);
    }
}

.brand-count {
    font-size: 11px;
    color: #52637a;
    background: rgba(255, 255, 255, 0.03);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.brand-option input:checked + .brand-custom-box .brand-count {
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   ۹. کارت محصول و نوار مرتب‌سازی (Product Cards & Sorting)
========================================================================== */
.hero-content-wrapper {
    width: 100%;
}

.sort-options-group {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.sort-options-group::-webkit-scrollbar {
    display: none;
}

.sort-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #8a99ad;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.sort-opt-btn {
    background: transparent;
    border: none;
    color: #8a99ad;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 10px;
    transition: color 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
    white-space: nowrap;
}

.sort-opt-btn:hover {
    color: #ffffff;
}

.sort-opt-btn.active {
    color: #00f2fe;
    font-weight: 800;
}

.products-fluid-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    padding: 10px 15px;
}

.product-card.liquid-card {
    width: 100% !important;
    background: rgba(14, 31, 56, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: clamp(12px, 1.5vw, 22px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(8px, 1vw, 16px);
    z-index: 1;
    box-shadow: 0 15px 35px -10px rgba(4, 12, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 1 !important;
    transform: translateY(0) scale(1);
    transition: border-radius 0.8s cubic-bezier(0.3, 1, 0.2, 1), transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.product-card.liquid-card > * {
    opacity: 0;
    transform: translateY(35px) scale(0.92) rotateX(-10deg);
    filter: blur(12px) brightness(0.5);
    animation: premiumLiquidReveal 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes premiumLiquidReveal {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(0.92) rotateX(-10deg);
        filter: blur(12px) brightness(0.5);
    }
    60% {
        filter: blur(4px) brightness(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0) brightness(1);
    }
}

.product-card.liquid-card .img-wrapper {
    animation-delay: 0.02s;
}

.product-card.liquid-card .card-meta-tags {
    animation-delay: 0.08s;
}

.product-card.liquid-card .product-name {
    animation-delay: 0.16s;
}

.product-card.liquid-card .card-footer {
    animation-delay: 0.24s;
}

.liquid-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(0, 242, 254, 0.06) 0%, transparent 60%);
    opacity: 0;
    z-index: -1 !important;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.product-card.liquid-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 242, 254, 0.4);
    border-radius: 20% 20% 25% 15% / 15% 25% 15% 20%;
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.5), 0 0 40px -10px rgba(0, 242, 254, 0.2), inset 0 0 20px rgba(0, 242, 254, 0.1);
    animation: cardLiquidWave 4s linear infinite alternate;
    z-index: 10 !important;
}

@keyframes cardLiquidWave {
    0% {
        border-radius: 20% 20% 25% 15% / 15% 25% 15% 20%;
    }
    33% {
        border-radius: 22% 18% 20% 20% / 18% 22% 20% 15%;
    }
    66% {
        border-radius: 18% 22% 15% 25% / 22% 18% 25% 20%;
    }
    100% {
        border-radius: 25% 15% 22% 18% / 20% 20% 18% 22%;
    }
}

.product-card.liquid-card:hover .liquid-bg {
    opacity: 1;
}

.product-card.liquid-card:hover .img-wrapper {
    border-radius: 24px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card.liquid-card:hover .img-wrapper img {
    transform: scale(1.08);
}

.product-card.liquid-card:hover .product-name {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.img-wrapper {
    position: relative;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    max-height: 230px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    transition: border-radius 0.7s cubic-bezier(0.3, 1, 0.2, 1), box-shadow 0.5s ease;
    z-index: 2 !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card-meta-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 10;
    width: 100%;
    margin-top: 4px;
}

.meta-tag {
    font-size: clamp(9px, 0.85vw, 11.5px);
    font-weight: 700;
    padding: clamp(4px, 0.5vw, 6px) clamp(6px, 0.8vw, 14px);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tag-category {
    background: rgba(0, 242, 254, 0.05);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.15);
    box-shadow: 0 4px 10px rgba(0, 242, 254, 0.05);
}

.tag-date {
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-name {
    font-size: clamp(12px, 1.1vw, 15.5px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
    text-align: right;
    position: relative;
    z-index: 2 !important;
    transition: color 0.3s ease;
    line-height: 1.6;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: clamp(38px, 3.5vw, 48px);
}

.price-btn {
    width: 100%;
    padding: clamp(8px, 1vw, 14px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 10 !important;
    transition: all 0.4s ease;
}

.price-btn .btn-text {
    font-size: clamp(11.5px, 1.1vw, 14.5px);
    font-weight: 800;
    color: #00f2fe;
    position: relative;
    z-index: 3;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.price-btn::before {
    content: '';
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    bottom: -115%;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V95c150,0,150,20,300,20s150-20,300-20,150,20,300,20,150-20,300-20V0Z' fill='%2300f2fe'/%3E%3C/svg%3E"),
    linear-gradient(to top, #0072ff 0%, #00f2fe 100%);
    background-position: top center;
    background-repeat: repeat-x, no-repeat;
    background-size: 50% 10px, 100% 100%;
    transform: scaleY(-1);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.product-card:hover .price-btn {
    background: #00f1fe5c;
    border-color: #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.product-card:hover .price-btn .btn-text {
    color: #040c1a;
}

.product-card:hover .price-btn::before {
    bottom: 0;
    animation: btnLiquidWave 1.2s linear infinite;
}

.no-products-found {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #8a99ad;
    width: 100%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
}

.no-products-found svg {
    width: 48px;
    height: 48px;
    color: #64748b;
    margin-bottom: 15px;
}

/* ==========================================================================
   ۱۰. فوتر (Main Footer)
========================================================================== */
.main-footer {
    position: relative;
    width: 100%;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    padding: 70px 0 25px 0;
    margin-top: 80px;
    overflow: hidden;
    direction: rtl;
}

.footer-water-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 85%, rgba(0, 49, 52, 0.127) 0%, transparent 40%), radial-gradient(circle at 85% 20%, rgba(13, 33, 50, 0.142) 0%, transparent 45%);
    z-index: 1;
    pointer-events: none;
    animation: footerWaterMove 10s ease-in-out infinite alternate;
}

@keyframes footerWaterMove {
    0% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: scale(1.08) rotate(2deg);
        filter: hue-rotate(10deg);
    }
}

.footer-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 50px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.col-brand .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-info li:hover {
    color: #fff;
}

.contact-info .icon {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.en-text {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 5px 20px rgba(238, 42, 123, 0.5);
}

.social-btn[aria-label="Telegram"]:hover {
    background: linear-gradient(135deg, #26a5e4, #1d93d2);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 5px 20px rgba(38, 165, 228, 0.5);
}

.social-btn[aria-label="YouTube"]:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-blue);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    position: relative;
    padding: 2px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    transition: width 0.4s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-about-text {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

.footer-auth-buttons {
    display: flex;
    gap: 16px;
    margin-top: 25px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 52px;
    padding: 0 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-btn .btn-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    transition: color 0.4s ease;
    display: block;
}

.footer-btn span {
    position: relative;
    z-index: 3;
    transition: color 0.4s ease;
    line-height: 1;
}

.auth-login {
    background: rgba(0, 242, 254, 0.08);
    color: var(--accent-blue);
    border-color: rgba(0, 242, 254, 0.2);
}

.auth-register {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.footer-btn::before {
    content: '';
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    bottom: -110%;
    z-index: 2;
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.auth-login:hover {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.auth-login:hover .btn-icon, .auth-login:hover span {
    color: #040c1a;
}

.auth-login:hover::before {
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V45c100,0,200,20,300,20s200-20,300-20,200,20,300,20,200-20,300-20V0Z' fill='%23ffffff'/%3E%3C/svg%3E"), linear-gradient(to top, #ffffff 80%, transparent);
    background-position: top center;
    background-repeat: repeat-x, no-repeat;
    background-size: 50% 12px, 100% 100%;
    animation: btnWaveFlow 1.5s linear infinite;
}

.auth-register:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transform: translateY(-3px);
}

.auth-register:hover .btn-icon, .auth-register:hover span {
    color: #040c1a;
}

.auth-register:hover::before {
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V45c100,0,200,20,300,20s200-20,300-20,200,20,300,20,200-20,300-20V0Z' fill='%234facfe'/%3E%3C/svg%3E"), linear-gradient(to top, #4facfe 80%, transparent);
    background-position: top center;
    background-repeat: repeat-x, no-repeat;
    background-size: 50% 12px, 100% 100%;
    animation: btnWaveFlow 1.5s linear infinite;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    margin: 50px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 13px;
    direction: ltr;
}

/* ==========================================================================
   ۱۱. استایل‌های تکمیلی (Auth Drawer) 🌟 نسخه کامل و یکپارچه
========================================================================== */
.auth-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

.auth-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 2000;
    background: linear-gradient(165deg, rgba(7, 24, 53, 0.94) 0%, rgba(5, 19, 43, 0.97) 100%);
    backdrop-filter: blur(30px) saturate(220%);
    -webkit-backdrop-filter: blur(30px) saturate(220%);
    border-left: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: -25px 0 60px rgba(0, 0, 0, 0.7), inset 2px 0 20px rgba(0, 242, 254, 0.12);
    perspective: 1000px;
    transform: translateX(105%) rotateY(-5deg);
    transform-origin: right center;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-drawer.active {
    transform: translateX(0) rotateY(0deg);
}

.auth-drawer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.08) 0%, rgba(0, 119, 255, 0.03) 45%, transparent 70%);
    animation: poolWaterFlow 14s infinite linear;
    pointer-events: none;
    z-index: 0;
}

.drawer-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 35px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drawer-close-btn:hover {
    background: rgba(255, 0, 85, 0.2);
    border-color: #ff0055;
    color: #ff0055;
    transform: rotate(180deg) scale(1.12);
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.5), inset 0 0 10px rgba(255, 0, 85, 0.3);
}

.drawer-close-btn svg {
    width: 20px;
    height: 20px;
}

.drawer-body {
    position: relative;
    z-index: 2;
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.auth-view {
    display: none;
    opacity: 0;
    filter: blur(10px);
    transform: translateX(40px) scale(0.96);
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-view.exiting {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-40px) scale(0.96);
}

.auth-view.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    filter: blur(0px);
    transform: translateX(0) scale(1);
}

/* Stagger Animations */
.auth-view .auth-heading, .auth-view .input-group, .auth-view .form-row, .auth-view .btn-auth-submit, .auth-view .auth-switch-text, .auth-view .profile-card-header, .auth-view .info-tile, .auth-view .profile-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-view.active .auth-heading {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .form-row {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(1) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(2) {
    transition-delay: 0.22s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(3) {
    transition-delay: 0.29s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(4) {
    transition-delay: 0.36s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .input-group:nth-child(5) {
    transition-delay: 0.43s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .btn-auth-submit {
    transition-delay: 0.48s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .auth-switch-text {
    transition-delay: 0.55s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .profile-card-header {
    transition-delay: 0.12s;
    opacity: 1;
    transform: translateY(0);
}

.auth-view.active .profile-actions {
    transition-delay: 0.42s;
    opacity: 1;
    transform: translateY(0);
}

/* Typography Forms */
.auth-heading {
    margin-bottom: 30px;
}

.auth-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #00f2fe;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: rgba(0, 242, 254, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
    transition: all 0.3s ease;
}

.auth-badge:hover {
    background: rgba(0, 242, 254, 0.18);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
}

.auth-heading h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.auth-heading p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

.elite-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    position: relative;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.input-group:hover {
    background: rgba(0, 242, 254, 0.02);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.4s ease;
}

.input-group label {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 13px;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label {
    top: -12px;
    right: 0;
    font-size: 11px;
    color: #00f2fe;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #4facfe, #00f2fe);
    box-shadow: 0 0 15px #00f2fe;
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-50%);
}

.input-group input:focus ~ .input-glow, .input-group:hover .input-glow {
    width: 100%;
}

.form-options {
    display: flex;
    justify-content: flex-end;
}

.forgot-link {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #00f2fe;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
    transform: translateX(-3px);
}

.btn-auth-submit {
    position: relative;
    margin-top: 10px;
    padding: 16px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #00f2fe 0%, #0077ff 50%, #00d2ff 100%);
    background-size: 200% 200%;
    color: #030a16;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 4px 4px #00171847, 0 0 4px #0010223b;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-auth-submit::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 70%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(25deg);
    transition: left 0.75s ease;
}

.btn-auth-submit::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.btn-auth-submit:hover {
    transform: translateY(-4px) scale(1.025);
    background-position: 100% 0%;
    box-shadow: 0 7px 7px rgba(0, 242, 254, 0.5), 0 0 7px rgba(0, 119, 255, 0.4);
    background: linear-gradient(135deg, #b0f3f7 0%, #5db2f7 50%, #82d7e7 100%);
}

.btn-auth-submit:hover::before {
    left: 140%;
}

.btn-auth-submit:hover::after {
    width: 320px;
    height: 320px;
    opacity: 1;
}

.btn-auth-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-auth-submit:hover svg {
    transform: translateX(-8px) scale(1.15);
}

.auth-switch-text {
    margin-top: auto;
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.link-btn {
    background: none;
    border: none;
    color: #00f2fe;
    font-weight: 700;
    cursor: pointer;
    margin-right: 5px;
    position: relative;
    font-size: 13px;
    transition: all 0.3s ease;
}

.link-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #0077ff);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right;
    box-shadow: 0 0 8px #00f2fe;
}

.link-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

.link-btn:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

/* Profile View */
.profile-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}

.user-avatar-glow {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00f2fe, #0077ff);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
    margin-bottom: 12px;
    animation: avatarPulse 4s infinite alternate;
    transition: transform 0.4s ease;
}

.user-avatar-glow:hover {
    transform: scale(1.06) rotate(4deg);
}

@keyframes avatarPulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    }
    100% {
        box-shadow: 0 0 38px rgba(0, 242, 254, 0.65);
    }
}

.avatar-inner {
    width: 100%;
    height: 100%;
    background: #061226;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f2fe;
}

.avatar-inner svg {
    width: 36px;
    height: 36px;
}

.profile-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.user-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.user-badge-vip {
    font-size: 10.5px;
    font-weight: 700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
    transition: all 0.3s ease;
}

.profile-details-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 20px;
    padding: 10px 22px;
    backdrop-filter: blur(15px);
    box-shadow: inset 0 0 25px rgba(0, 242, 254, 0.03), 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 25px;
}

.details-row {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.details-row:last-child {
    border-bottom: none;
}

.details-row.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bullet-dot {
    width: 5px;
    height: 5px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 6px #00f2fe;
}

.field-value {
    font-size: 14.5px;
    color: #f1f5f9;
    font-weight: 700;
}

.field-value.highlight {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.field-value.address-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.btn-profile-action {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-profile-action span {
    position: relative;
    z-index: 2;
}

/* 🌟 فیکس شدن سایز آیکون‌های دکمه‌ها 🌟 */
.btn-profile-action svg {
    position: relative;
    z-index: 2;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.btn-profile-action.primary {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(0, 119, 255, 0.12));
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.35);
}

.btn-profile-action.primary:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(0, 119, 255, 0.25));
    transform: translateY(-3px);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.35);
}

.btn-profile-action.primary:hover svg {
    transform: translateX(-4px);
}

.btn-profile-action.secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 242, 254, 0.03));
    color: #e2e8f0;
    border: 1px solid rgba(0, 242, 254, 0.22);
}

.btn-profile-action.secondary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.25) 50%, transparent);
    transform: rotate(25deg);
    transition: left 0.75s ease;
}

.btn-profile-action.secondary:hover {
    border-color: rgba(0, 242, 254, 0.55);
    color: #00f2fe;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.22);
}

.btn-profile-action.secondary:hover::before {
    left: 140%;
}

.btn-profile-action.secondary:hover svg {
    transform: rotate(-10deg) scale(1.18);
    color: #00f2fe;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.8));
}

.btn-profile-action.logout {
    background: rgba(255, 51, 102, 0.06);
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.22);
}

.btn-profile-action.logout:hover {
    background: rgba(255, 51, 102, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.3);
}

/* 🌟 تاریخچه سفارشات در سایدبار */
.orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 10px;
}

.orders-list-container::-webkit-scrollbar {
    width: 4px;
}

.orders-list-container::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 4px;
}

.order-history-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s ease;
}

.order-history-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.05);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.order-track {
    font-size: 13px;
    color: #00f2fe;
    font-weight: 700;
    font-family: monospace;
}

.order-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-processing {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-shipped {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-delivered {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-canceled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.order-info {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 6px;
}

.info-label {
    color: #94a3b8;
}

.info-val {
    color: #e2e8f0;
    font-weight: 600;
}

.empty-orders {
    text-align: center;
    padding: 50px 0;
    color: #64748b;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   ۱۳. استایل‌های زیردسته (Sub-category Dropdown)
========================================================================== */
.category-wrapper {
    display: flex;
    flex-direction: column;
}

.category-wrapper .dropdown-icon {
    width: 16px;
    height: 16px;
    color: #8a99ad;
    margin-right: auto;
    transition: transform 0.4s, color 0.3s;
    z-index: 5;
}

.category-option:hover .dropdown-icon {
    color: #fff;
}

.category-wrapper:has(input[name="product-category"]:checked) .dropdown-icon {
    transform: rotate(180deg);
    color: #00f2fe;
}

.sub-category-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 20px;
    margin-right: 15px;
    border-right: 2px solid rgba(0, 242, 254, 0.15);
    transition: all 0.5s;
    transform: translateY(-10px);
}

.category-wrapper:has(input[name="product-category"]:checked) .sub-category-list {
    max-height: 300px;
    opacity: 1;
    margin-top: 12px;
    margin-bottom: 8px;
    transform: translateY(0);
}

.sub-category-option {
    cursor: pointer;
    display: block;
}

.sub-category-option input {
    display: none;
}

.sub-custom-box {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 13px;
    color: #8a99ad;
    font-weight: 600;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
}

.sub-custom-box::before {
    content: '';
    position: absolute;
    right: -22px;
    top: 50%;
    width: 15px;
    height: 2px;
    background: rgba(0, 242, 254, 0.15);
    transition: all 0.3s;
}

.sub-category-option:hover .sub-custom-box {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(-4px);
}

.sub-category-option:hover .sub-custom-box::before {
    background: rgba(0, 242, 254, 0.4);
    width: 19px;
    right: -26px;
}

.sub-category-option input:checked + .sub-custom-box {
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.sub-category-option input:checked + .sub-custom-box::before {
    background: #00f2fe;
    box-shadow: 0 0 8px #00f2fe;
}

/* ==========================================================================
   🌟 کدهای ریسپانسیو و مدیا کوئری‌ها
========================================================================== */
@media screen and (max-width: 1024px) {
    .desktop-nav {
        display: none !important;
    }

    .menu-toggle {
        display: block !important;
    }

    .header-island {
        padding: 10px 20px;
    }

    .logo-text {
        font-size: 22px;
    }

    .shop-inside-container {
        flex-direction: column;
        width: 92% !important;
        gap: 25px;
        padding-top: 110px;
    }

    .products-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
    }

    .sidebar-scrollable-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .products-main-content {
        width: 100% !important;
        position: static !important;
        overflow-y: visible !important;
    }

    .products-fluid-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-col {
        align-items: center;
        text-align: center;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .col-brand .footer-logo {
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    .shop-inside-container {
        width: 95% !important;
        padding-top: 100px;
        gap: 20px;
        align-items: stretch !important;
    }

    .sidebar-scrollable-content {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px;
    }

    .sidebar-scrollable-content .filter-glass-card:nth-child(1) {
        order: 3;
        grid-column: 1 / -1;
    }

    .sidebar-scrollable-content .filter-glass-card:nth-child(2) {
        order: 1;
    }

    .sidebar-scrollable-content .filter-glass-card:nth-child(3) {
        order: 2;
    }

    .filter-glass-card {
        padding: 18px 15px;
        border-radius: 20px;
        margin-bottom: 0 !important;
    }

    .filter-box-title {
        font-size: 14px;
        margin-bottom: 15px;
        padding-right: 10px;
    }

    .category-custom-box, .brand-custom-box {
        padding: 12px 15px;
    }

    .mini-hero-banner {
        padding: 15px 12px;
        border-radius: 18px;
    }

    .sort-options-group {
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .sort-title-box span {
        display: none;
    }

    .products-fluid-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 10px 0;
    }

    .product-card.liquid-card {
        max-width: 420px;
        margin: 0 auto;
        padding: 18px;
        border-radius: 24px;
        gap: 15px;
    }

    .img-wrapper {
        height: 210px !important;
        padding: 15px;
        border-radius: 18px;
    }

    .product-name {
        font-size: 15px;
        min-height: 48px;
    }
}

@media screen and (max-width: 480px) {
    .sort-opt-btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .product-card.liquid-card {
        max-width: 92%;
    }

    .elite-pill {
        height: 38px;
        max-width: 38px !important;
    }

    .pill-icon {
        height: 38px;
        min-width: 38px;
    }

    .pill-text {
        display: none !important;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 20px;
    }

    .fluid-sidebar .sidebar-item {
        font-size: 22px;
    }

    .footer-auth-buttons {
        flex-direction: column;
    }

    .auth-drawer {
        width: 100vw;
        border-left: none;
    }

    .drawer-body {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-profile-action {
        padding: 13px 16px;
        font-size: 12.5px;
        border-radius: 25px;
    }

    .btn-profile-action svg {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px;
    }
}

