/* Define the custom font */
@font-face {
    font-family: 'Noora-bold';
    src: url('http://raya-bit.com/betashop/ecommerce/assets/fonts/Noora-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noora-Medium';
    src: url('http://raya-bit.com/betashop/ecommerce/assets/fonts/Noora-Medium.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* Product and Review Styles */
.product-details h1,
.product-details p,
.product-info p,
.reviews h2,
.reviews p,
.review p {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    color: var(--rose-gold); /* #DEA193 */
}

/* Form and Link Styles */
label,
input,
textarea,
select,
button,
a {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    color: var(--rose-gold); /* #DEA193 */
}
a {
    transition: color 0.3s ease;
}
a:hover {
    color: var(--rose-gold-light); /* #F9EDEB for hover contrast */
}
input,
textarea,
select {
    border: 1px solid var(--rose-gold);
    background-color: #ffffff;
    padding: clamp(0.5rem, 1vw, 0.75rem);
    border-radius: 0.375rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--rose-gold-dark);
    box-shadow: 0 0 0 3px rgba(222, 161, 147, 0.2);
}
button,
form button {
    background-color: var(--rose-gold);
    color: var(--text-white);
    padding: clamp(0.5rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover,
form button:hover {
    background-color: var(--rose-gold-dark);
    transform: scale(1.05);
}
button:active,
form button:active {
    transform: scale(1);
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    direction: rtl;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}
/* Color Variables */
:root {
    /* Rose Gold Palette */
    --rose-gold: #EEB9b8;
    --rose-gold-dark: #A24957;
    --rose-gold-light: #F9EDEB;
    --rose-gold-accent: #ec4899;
    --rose-gold-accent-dark: #db2777;
    --alert-red: #ff4444;
    /* Gray Scale */
    --gray-dark: #1F2937;
    --gray-light: #F3F4F6;
    /* Base Colors */
    --text-white: #ffffff;
    --black: #000000;
    /* Shadows */
    --shadow: rgba(222, 161, 147, 0.2);
    --shadow-hover: rgba(162, 73, 87, 0.4);
    /* Accent */
    --blue-700: #1E40AF;
    --beige: #DDB892;
}
/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}
/* Header Styles */

/* Header Styles */
header {
    position: sticky !important;
    top: 0;
    z-index: 100 !important;
    background: linear-gradient(180deg, #ffffff 80%, rgba(255, 255, 255, 0.9));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--rose-gold);
    transition: padding 0.3s ease;
}
header.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
header.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.75rem 0;
}
.logo {
    font-family: 'Vazir', 'Noora-bold', 'IRANSans', Tahoma, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rose-gold-dark);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}
.nav-menu li {
    margin-left: 1.5rem;
}
.nav-menu li a {
    font-family: 'Vazir', 'Noora-bold', 'IRANSans', Tahoma, sans-serif;
    text-decoration: none;
    color: var(--rose-gold-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav-menu li a:hover {
    color: var(--rose-gold);
    background: var(--rose-gold-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nav-menu li a i {
    margin-left: 0.5rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.nav-menu li a:hover i {
    transform: scale(1.1);
}

/* Search Bar Styles */
.search-bar {
    width: 100%;
    max-width: 400px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}
.search-bar .relative {
    position: relative;
    width: 100%;
    max-width: 400px;
}
.search-bar input {
    font-family: 'Vazir', 'Noora-bold', 'IRANSans', Tahoma, sans-serif;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    width: 100%;
    font-size: 0.95rem;
    color: var(--rose-gold-dark);
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-bar input:focus {
    border-color: var(--rose-gold);
    box-shadow: 0 0 5px rgba(232, 185, 35, 0.3);
    outline: none;
}
.search-bar input::placeholder {
    color: var(--rose-gold);
    font-weight: 500;
    opacity: 0.7;
}
.search-bar button {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--rose-gold);
    border: none;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}
.search-bar button:hover {
    background: var(--rose-gold-dark);
}
.search-bar button i {
    font-size: 0.85rem;
    color: var(--text-white);
}
.search-bar button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 20rem; /* Slightly wider for better usability */
    background: linear-gradient(180deg, #ffffff 0%, #fff9e6 100%);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 60;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.sidebar:not(.hidden) {
    right: 0;
    display: block !important;
}
.sidebar .border-b {
    border-bottom: 2px solid var(--rose-gold);
}
.sidebar ul li a {
    font-family: 'Vazir', 'Noora-bold', 'IRANSans', Tahoma, sans-serif;
    transition: all 0.2s ease;
}
.sidebar ul li a:hover {
    transform: translateX(-5px);
}
.hamburger {
    z-index: 70;
    touch-action: manipulation;
}

/* Android WebView Fixes */
.android-webview .sidebar {
    position: absolute;
    z-index: 100;
}
.android-webview body {
    position: relative;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-bar {
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
    }
    .search-bar input {
        padding-left: 2.5rem;
        font-size: 0.9rem;
    }
    .search-bar button {
        width: 1.5rem;
        height: 1.5rem;
    }
    .search-bar button i {
        font-size: 0.75rem;
    }
    .sidebar {
        width: 80%;
        max-width: 300px;
    }
}

/* Animation for Search Button */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}
.search-bar button:hover i {
    animation: pulse 0.5s ease;
}

/* Ensure Header Visibility */
body > header {
    display: block !important;
}
/* Fancy Button Styles */
.fancy-btn {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-dark));
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px var(--shadow), 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transform: perspective(1200px) translateZ(0);
    position: relative;
    overflow: hidden;
}
.fancy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}
.fancy-btn:hover::before {
    left: 100%;
}
.fancy-btn:hover, .fancy-btn:focus {
    background: var(--black);
    color: var(--text-white);
    box-shadow: 0 12px 24px var(--shadow-hover), 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: perspective(1200px) translateZ(10px) scale(1.05);
    outline: none;
}
.fancy-btn:active {
    transform: perspective(1200px) translateZ(10px) scale(0.95);
}
.fancy-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.fancy-btn:hover i, .fancy-btn:focus i {
    transform: scale(1.1);
}
/* Support Button Styles */
.support-btn {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    background: linear-gradient(to right, var(--rose-gold), var(--rose-gold-dark));
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 15px var(--shadow), 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--rose-gold-dark);
    transform: perspective(1200px) translateZ(0);
    animation: bounce 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1), pulse 3s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}
.support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}
.support-btn:hover::before {
    left: 100%;
}
.support-btn:hover, .support-btn:focus {
    background: var(--black);
    color: var(--text-white);
    box-shadow: 0 12px 24px var(--shadow-hover), 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: perspective(1200px) translateZ(10px) scale(1.05);
    border: 2px solid var(--black);
    animation: none;
    outline: none;
}
.support-btn:active {
    transform: perspective(1200px) translateZ(10px) scale(0.95);
}
.support-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.support-btn:hover i, .support-btn:focus i {
    transform: scale(1.1);
}
@keyframes bounce {
    0%, 100% {
        transform: perspective(1200px) translateZ(0) translateY(0);
    }
    50% {
        transform: perspective(1200px) translateZ(10px) translateY(-5px);
    }
}
@keyframes pulse {
    0%, 100% {
        transform: perspective(1200px) translateZ(0) scale(1);
    }
    50% {
        transform: perspective(1200px) translateZ(0) scale(1.05);
    }
}
/* Hamburger Styles */
.hamburger {
    display: none;
}
.hamburger i {
    font-size: 1.5rem;
    color: var(--rose-gold-dark);
    transition: transform 0.3s ease;
}
.hamburger:hover i {
    transform: scale(1.25);
    color: var(--rose-gold);
}
.hamburger:active i {
    transform: scale(1.1);
}
/* Sidebar Styles */
.sidebar {
    background: var(--gray-light); /* Fallback for unsupported backdrop-filter */
    transition: transform 0.3s ease-in-out;
    width: 80%;
    max-width: 300px;
    z-index: 50;
}
.sidebar:not(.hidden) {
    display: block; /* Show when not hidden */
}
.sidebar .logo {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: 1.25rem;
}
.sidebar ul {
    padding: 1rem;
}
.sidebar ul li a {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: 1rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.sidebar ul li a:hover {
    background: var(--rose-gold-light);
    color: var(--rose-gold);
}
.sidebar ul li a i {
    margin-left: 0.75rem;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}
.sidebar ul li a:hover i {
    transform: scale(1.1);
}
.sidebar .close-sidebar {
    padding: 0.5rem;
}
.sidebar .close-sidebar i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.sidebar .close-sidebar:hover i {
    transform: rotate(90deg);
}
.sidebar .close-sidebar:active i {
    transform: rotate(90deg) scale(0.95);
}
/* Cart Badge */
#cart-count {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.5rem;
    text-align: center;
    background: var(--alert-red);
    color: var(--text-white);
    border-radius: 50%;
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
#cart-count.animate__heartBeat {
    transform: scale(1);
}
/* Top Banner */
.top-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, var(--rose-gold-light), var(--rose-gold));
}
.top-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: clamp(250px, 40vw, 600px);
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.top-banner:hover img {
    opacity: 1;
}
.top-banner .text-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.top-banner h2 {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
}
.top-banner a {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(0.875rem, 2vw, 1rem);
    padding: 0.5rem 1.5rem;
}
/* Hero Slider */
.hero {
    position: relative;
    height: clamp(50vh, 80vh, 80vh);
    overflow: hidden;
}
.slider {
    position: relative;
    height: 100%;
}
.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.slide.active {
    display: block;
}
.slide .relative {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide h1 {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
}
.slide p {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(0.875rem, 2vw, 1.25rem);
}
.slider-prev, .slider-next {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 20;
}
.slider-prev:hover, .slider-next:hover {
    background: var(--rose-gold);
}
.slider-prev:active, .slider-next:active {
    transform: scale(0.95);
}
/* Support Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--gray-light); /* Fallback for unsupported backdrop-filter */
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.modal-content h2 {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--rose-gold-dark);
}
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.modal-content label {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: 0.875rem;
    color: #333;
}
.modal-content input,
.modal-content textarea {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    padding: 0.5rem;
    border: 1px solid var(--rose-gold-light);
    border-radius: 0.25rem;
    width: 100%;
    font-size: 0.875rem;
}
.modal-content button {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    background: var(--rose-gold);
    color: var(--text-white);
    padding: 0.75rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.modal-content button:hover {
    background: var(--rose-gold-dark);
}
.modal-content button:active {
    background: var(--rose-gold-dark);
    transform: scale(0.95);
}
.modal-content #close-modal {
    background: none;
    color: var(--rose-gold-dark);
    text-decoration: underline;
    padding: 0;
    margin-top: 0.5rem;
}
.modal-content #modal-message {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
}
/* Loader */
.loader {
    transition: opacity 0.3s ease;
}
.spinner {
    border: 2px solid transparent;
    border-top-color: var(--rose-gold);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Featured Products */
.featured-products {
    padding: clamp(2rem, 4vw, 4rem) 0;
}
.featured-products h2 {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(1rem, 2vw, 2rem);
}
.filter-bar {
    gap: clamp(0.5rem, 1vw, 1rem);
    margin-bottom: clamp(1rem, 2vw, 2rem);
}
.filter-bar button {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
}
.masonry-item {
    break-inside: avoid;
}
.product-card {
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}
.product-card:hover,
.product-card:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.product-card img {
    width: 100%;
    height: clamp(100px, 20vw, 200px);
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}
.product-card h3 {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
}
.product-card p {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    margin: 0.5rem 0;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}
.product-card .text-rose-gold {
    color: var(--rose-gold);
    font-weight: 700;
}
.product-card .line-through {
    color: #6B7280;
}
.product-card a {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.product-card a.bg-rose-gold:hover {
    background: var(--rose-gold-dark);
}
.product-card a.bg-blue-600:hover {
    background: var(--blue-700);
}
.product-card .bg-red-500 {
    background-color: var(--alert-red);
}
.product-card a:active {
    transform: scale(0.95);
}
.featured-products h2,
.plus-categories h2 {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    color: var(--beige); /* #F5F5DC for section titles */
    
}

/* Product Navigation */
.product-swiper {
    position: relative;
    overflow: hidden;
    padding: 0 clamp(1rem, 2vw, 2rem);
}
.product-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
}
.product-swiper .swiper-slide {
    width: clamp(120px, 25vw, 200px);
    display: flex;
    justify-content: center;
}
.product-swiper .swiper-button-prev,
.product-swiper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(2rem, 5vw, 2.5rem);
    height: clamp(2rem, 5vw, 2.5rem);
    background: var(--rose-gold);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}
.product-swiper .swiper-button-prev:hover,
.product-swiper .swiper-button-next:hover {
    background: var(--rose-gold-dark);
    transform: translateY(-50%) scale(1.1);
}
.product-swiper .swiper-button-prev:active,
.product-swiper .swiper-button-next:active {
    transform: translateY(-50%) scale(0.95);
}
.product-swiper .swiper-button-prev {
    right: 0.5rem;
}
.product-swiper .swiper-button-next {
    left: 0.5rem;
}
.product-swiper .swiper-button-prev::after,
.product-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}
.product-swiper .swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 1rem;
    text-align: center;
}
.product-swiper .swiper-pagination-bullet {
    background: var(--rose-gold);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    transition: opacity 0.3s ease;
}
.product-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--rose-gold-dark);
}
/* Social Proof Section */
.social-proof {
    background: var(--rose-gold-light);
    padding: clamp(2rem, 4vw, 4rem) 0;
}
.social-post {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}
.social-post:hover,
.social-post:active {
    transform: scale(1.05);
}
.social-post img {
    width: 100%;
    height: clamp(8rem, 15vw, 12rem);
    object-fit: cover;
}
.social-post .absolute {
    background: rgba(0, 0, 0, 0.2);
}
.social-post span {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 600;
}
/* Footer */
footer {
    background: var(--rose-gold); /* #DEA193 */
    color: var(--text-white);
    padding: clamp(2rem, 4vw, 3rem) 0;
}
footer h3 {
    font-family: 'Noora-Medium', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}
footer p, footer ul li a {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(0.8rem, 1.5vw, 0.875rem);
    color: var(--text-white);
}
footer ul li {
    margin-bottom: 0.5rem;
}
footer a {
    color: var(--text-white);
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--rose-gold-light); /* #F9EDEB for hover contrast */
}
footer img {
    max-width: clamp(4rem, 6vw, 6rem);
}
footer .social-icons {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    align-items: center;
    margin-top: 0.5rem;
}
footer .social-icons a {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-white);
    transition: color 0.3s ease, transform 0.3s ease;
}
footer .social-icons a:hover {
    color: var(--rose-gold-light);
    transform: scale(1.2);
}
footer .social-icons a:active {
    transform: scale(1.1);
}
/* Confetti Animation */
.confetti {
    position: fixed;
    width: 1rem;
    height: 1rem;
    opacity: 0.8;
}
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
@keyframes fall {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}
/* Success and Error Messages */
.success-message, .error-message {
    z-index: 40;
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    padding: 1rem;
    border-radius: 0.5rem;
}
/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: clamp(0.5rem, 1vw, 1.5rem);
    right: clamp(0.5rem, 1vw, 1.5rem);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.fa-whatsapp:before {
    margin-left: 0.3rem;
}
/* Categories Section */
.categories {
    padding: clamp(1rem, 4vw, 4rem) 0;
}
.categories h2 {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(1rem, 2vw, 2rem);
}
#category-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}
#category-container {
    overflow-x: hidden;
    transition: transform 0.5s ease-in-out;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
}
#category-container::-webkit-scrollbar {
    display: none;
}
.category-card {
    flex: 0 0 auto;
    width: clamp(4rem, 12vw, 8rem);
    height: clamp(4rem, 12vw, 8rem);
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}
.category-card:hover img {
    transform: scale(1.05);
}
.category-card .truncate {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.category-nav {
    cursor: pointer;
    z-index: 10;
    display: block;
    width: clamp(2rem, 5vw, 2.5rem);
    height: clamp(2rem, 5vw, 2.5rem);
    background: var(--rose-gold);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    
}
.category-nav.prev {
    right: clamp(0.5rem, 1vw, 1rem);
}
.category-nav.next {
    left: clamp(0.5rem, 1vw, 1rem);
}
.category-nav:hover {
    background: var(--rose-gold-dark);
    transform: scale(1.1);
}
.category-nav:active {
    transform: scale(0.95);
}
/* Swiper Custom Styles */
.plus-category-swiper {
    position: relative;
    overflow: hidden;
    
    padding: 0 clamp(1rem, 2vw, 2rem);
}
.plus-category-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
    
}
.plus-category-swiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    
}
.plus-category-swiper .swiper-button-prev,
.plus-category-swiper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(2rem, 5vw, 2.5rem);
    height: clamp(2rem, 5vw, 2.5rem);
    background: var(--rose-gold);
    color: #FBF2EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}
.plus-category-swiper .swiper-button-prev:hover,
.plus-category-swiper .swiper-button-next:hover {
    background: var(--rose-gold-dark);
    transform: translateY(-50%) scale(1.1);
}
.plus-category-swiper .swiper-button-prev:active,
.plus-category-swiper .swiper-button-next:active {
    transform: translateY(-50%) scale(0.95);
}
.plus-category-swiper .swiper-button-prev {
    right: 0.5rem;
}
.plus-category-swiper .swiper-button-next {
    left: 0.5rem;
}
.plus-category-swiper .swiper-button-prev::after,
.plus-category-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: bold;
}
.plus-category-swiper .swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 1rem;
    text-align: center;
}
.plus-category-swiper .swiper-pagination-bullet {
    background: var(--rose-gold);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    transition: opacity 0.3s ease;
}
.plus-category-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--rose-gold-dark);
}
/* Category Navigation and Search Container */
.plus-nav-categori-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.plus-nav-categori {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0;
}
.plus-nav-categori .category-link {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    height: clamp(50px, 10vw, 60px);
    transition: all 0.2s ease;
    text-align: center;
}
.plus-nav-categori .category-link:hover {
    background-color: var(--rose-gold-accent);
    color: var(--text-white);
    border-color: var(--rose-gold-accent);
}
.plus-nav-categori .category-link.active {
    background-color: var(--rose-gold-accent);
    color: var(--text-white);
    font-weight: 600;
    border-color: var(--rose-gold-accent);
}
.plus-nav-categori .category-link:active {
    transform: scale(0.95);
}
/* Search Bar Styles */
.search-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}
.search-input {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    width: 100%;
    max-width: 300px;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.search-input:focus {
    border-color: var(--rose-gold-accent);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}
.search-button {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-white);
    background-color: var(--rose-gold-accent);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.search-button:hover {
    background-color: var(--rose-gold-accent-dark);
}
.search-button:active {
    transform: scale(0.95);
}
/* Sparkle Effect */
.sparkle {
    position: relative;
    overflow: hidden;
}
.sparkle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
    animation: sparkle 1.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sparkle {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
/* Custom Divs */
.custom-divs {
    display: flex;
    gap: clamp(0.5rem, 1vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
}
.custom-div {
    font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
    background-color: var(--rose-gold-light);
    color: var(--rose-gold-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.custom-div:hover {
    background-color: var(--rose-gold);
    color: var(--text-white);
    transform: translateY(-2px);
}
.custom-div:active {
    transform: translateY(0);
}
/* Responsive Adjustments */
@media (min-width: 769px) {
    .category-nav {
        display: block;
    }
}
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .search-bar {
        max-width: 100%;
        flex-grow: 1;
    }
    .top-banner h2 {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    .slide h1 {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    .slide p {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(0.875rem, 2vw, 1rem);
    }
}
@media (max-width: 768px) {
    .sticky-cta {
        bottom: clamp(0.5rem, 1vw, 1rem);
        right: clamp(0.5rem, 1vw, 1rem);
    }
    .support-btn, .fancy-btn {
        padding: clamp(0.7rem, 1vw, 0.9rem) clamp(1rem, 1.5vw, 1.2rem);
        font-size: 0.9rem;
        box-shadow: 0 3px 10px var(--shadow), 0 2px 8px var(--shadow);
        transform: perspective(800px) translateZ(0);
    }
    .support-btn:hover, .support-btn:focus, .fancy-btn:hover, .fancy-btn:focus {
        box-shadow: 0 8px 16px var(--shadow-hover), 0 4px 12px rgba(0, 0, 0, 0.5);
        transform: perspective(800px) translateZ(10 Ascending
    }
    .hero {
        height: clamp(40vh, 60vh, 60vh);
    }
    .category-card {
        width: clamp(6rem, 12vw, 7rem);
        height: clamp(6rem, 12vw, 7rem);
    }
    .social-post img {
        height: clamp(8rem, 15vw, 10rem);
    }
    footer .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-card {
        width: 100%;
    }
    .product-card img {
        height: clamp(8rem, 15vw, 12rem);
    }
    .filter-btn {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        padding: clamp(0.25rem, 1vw, 0.5rem) clamp(0.5rem, 1.5vw, 1rem);
    }
    .sticky-cta a {
        width: clamp(2rem, 5vw, 3rem);
        height: clamp(2rem, 5vw, 3rem);
    }
}
@media (max-width: 640px) {
    .logo {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(1.1rem, 3vw, 1.25rem);
    }
    .search-bar {
        max-width: 100%;
    }
    .search-bar input {
        font-size: 0.85rem;
    }
    .search-bar button {
        width: 1.5rem;
        height: 1.5rem;
    }
    .hamburger i {
        font-size: 1.25rem;
    }
    .sidebar {
        width: 100%;
        max-width: 250px;
    }
    .sidebar ul li a {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: 0.9rem;
    }
    .sidebar ul li a i {
        font-size: 1.1rem;
    }
    .top-banner img {
        max-height: clamp(200px, 30vw, 400px);
    }
    .top-banner h2 {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    .top-banner a {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(0.75rem, 2vw, 0.875rem);
        padding: 0.5rem 1rem;
    }
    .slide h1 {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(1.5rem, 4vw, 1.75rem);
    }
    .slide p {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(0.75rem, 2vw, 0.875rem);
    }
    .category-card {
        width: clamp(5rem, 10vw, 6rem);
        height: clamp(5rem, 10vw, 6rem);
    }
    .category-card span {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(0.7rem, 1.5vw, 0.75rem);
    }
    .product-card img {
        height: clamp(8rem, 15vw, 12rem);
    }
    .product-card h3 {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(0.75rem, 2vw, 0.875rem);
    }
    .product-card p {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(0.7rem, 1.5vw, 0.75rem);
    }
    .product-card a {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(0.7rem, 1.5vw, 0.75rem);
        padding: 0.5rem 1rem;
    }
    .social-post img {
        height: clamp(6rem, 15vw, 8rem);
    }
    footer .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    footer h3 {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(1rem, 2vw, 1.1rem);
    }
    footer p, footer ul li a {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    }
    .plus-category-card {
        width: clamp(20px, 5vw, 40px);
        height: clamp(20px, 5vw, 40px);
    }
    #plus-category-container {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    .category-nav {
        right: 0.5rem;
        left: 0.5rem;
    }
}
@media (max-width: 480px) {
    .top-banner h2 {
        font-family: 'Noora-bold', 'IRANSans', Tahoma, sans-serif, system-ui;
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }
    .category-container,
    .product-container {
        gap: clamp(0.25rem, 1vw, 0.5rem);
    }
    .social-post {
        height: clamp(5rem, 15vw, 6rem);
    }
}
@media (prefers-reduced-motion: reduce) {
    .fancy-btn, .support-btn, .category-card, .social-post {
        animation: none;
        transition: none;
    }
}
.android-webview .sidebar,
.android-webview .modal-content {
    background: var(--gray-light);
}

/* cart-factor — v2 (stable mobile via horizontal scroll) */
.cart-factor{
  --cf-accent:#EEB9b8;         /* rose-gold */
  --cf-accent-dark:#A24957;    /* rose-gold-dark */
  --cf-soft:#F9EDEB;
  --cf-danger:#dc2626;
}

/* سبد خرید: جدول معمولی + رپر اسکرول */
.cart-factor .table-responsive{
  display:block;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width: thin;              /* Firefox */
}
.cart-factor table{
  width:100%;
  min-width:640px;                    /* ستون‌ها له نشن */
  border-collapse:separate;
  border-spacing:0;
}
.cart-factor th,
.cart-factor td{
  white-space:nowrap;
}

/* ردیف‌های زیبرا */
.cart-factor tbody tr{background:#fff;}
.cart-factor tbody tr:nth-child(even){background:#fff7f9;}

/* هِدِر چسبان فقط دسکتاپ؛ موبایل آزاد */
.cart-factor thead th{
  position:sticky; top:0; z-index:1; background:#ec4899; color:#fff;
}
@media (max-width:640px){
  .cart-factor thead th{ position:static !important; }
}

/* خنثی‌سازی کامل قوانین «کارت‌شدن» که قبلاً برای .cart تعریف شده بودن */
/* --- CART MOBILE STACK (<=640px) --- */
@media (max-width:640px){
  .cart-factor .table-responsive{ overflow: visible; }
  .cart-factor table{ min-width: 0; border-collapse: separate; }
  .cart-factor thead{ display: none; }

  .cart-factor tbody,
  .cart-factor tr,
  .cart-factor td{ display: block; width: 100%; }

  .cart-factor tr{
    margin-bottom: .75rem;
    border: 1px solid #f0d4d4;
    border-radius: .75rem;
    overflow: hidden;
    background: #fff;
  }

  .cart-factor td{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    white-space: normal;         /* اجازهٔ چند خطی برای نام محصول */
  }

  .cart-factor td::before{
    content: attr(data-label);
    font-weight: 700;
    color: var(--cf-accent-dark);
    margin-left: 1rem;
  }

  .cart-factor .qty-form{ justify-content: flex-end; }
  .cart-factor .qty-form input[type="number"]{ width: 4rem; text-align: center; }

  /* خلاصه سبد چسبان به پایین برای CTA بهتر */
  .cart-factor .cart-total{
    position: sticky;
    bottom: 0;
    margin: 0;
    border-radius: .75rem;
    box-shadow: 0 -6px 16px rgba(0,0,0,.08);
    background: #fff;
  }
}

/* ریزفیکس‌های موبایل اندروید */
html { -webkit-text-size-adjust:100%; }
@media (max-width:768px){
  .cart-factor input, .cart-factor select, .cart-factor textarea { font-size:16px; } /* جلوگیری از زوم */
}
a, button { -webkit-tap-highlight-color:transparent; }
