/*
Theme Name: Fater Theme
Theme URI: https://fater-saffron.ir
Author: Ava Mohammadpour
Author URI: https://ava-mohammadpour.ir
Description: قالب فروشگاه زعفران فاطر، نسخه بهینه شده با افکت های مدرن و طراحی پیشرفته. Fater Theme is a modern, fully responsive WordPress theme designed for saffron stores and specialty product e-commerce with smooth animations, WooCommerce integration, and advanced customization options.
Version: 2.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fater-theme
Domain Path: /languages
Tags: saffron, e-commerce, modern, responsive, WooCommerce, RTL-ready, customizable, animated, lightweight, SEO-friendly, premium, store, shop, agriculture, luxury, product showcase
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/
/* ==============================
   CSS Variables & Base
================================= */
:root {
    --primary-color: #800000;
    --secondary-color: #b22222;
    --accent-color: #ffd700;
    --bg-light: #fffaf5;
    --bg-dark: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.4);
    --text-dark: #2b2b2b;
    --text-light: #f1f1f1;
    --text-muted: #666;
    --transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --btn-hover-scale: 1.05;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
    color: var(--text-dark);
    line-height: 1.7;
    direction: rtl;
    transition: var(--transition);
    overflow-x: hidden;
}

/* ==============================
   Links & Images
================================= */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
/* Fix logo size specifically on WooCommerce pages */
.woocommerce .site-logo,
.woocommerce-page .site-logo {
    height: 60px !important;
    /* or whatever your theme uses */
    width: auto !important;
    max-height: 60px !important;
    object-fit: contain;
}
/* ==============================
   Header & Navbar - Enhanced
================================= */
.fater-header {
    position: relative;
    z-index: 1000;
}

.fater-header .navbar {
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            #660000 50%,
            var(--primary-color) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow),
        0 8px 32px rgba(128, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Animated background overlay */
.fater-header .navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.fater-header .navbar:hover::before {
    left: 100%;
}

.fater-header .navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(128, 0, 0, 0.95);
    backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.fater-header .navbar.scrolled {
    padding: 0.4rem 1.5rem;
    background: rgba(128, 0, 0, 0.98);
}

/* Enhanced Brand Logo */
.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    color: #fff !important;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.navbar-brand::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

.site-logo {
    height: 75px;
    margin-left: 15px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.site-logo:hover {
    transform: rotate(-5deg) scale(1.12);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

/* Enhanced Navigation Links */
.navbar-nav {
    position: relative;
    z-index: 1;
}

.navbar-nav .nav-item {
    position: relative;
    margin: 0 4px;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 215, 0, 0.2),
            transparent);
    transition: left 0.6s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.15),
            rgba(255, 180, 0, 0.1));
    color: var(--accent-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Active State */
.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--accent-color), #ffb347);
    color: var(--primary-color) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    font-weight: 800;
}

/* Mobile Menu Toggle Enhanced */
.navbar-toggler {
    border: none;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: transform 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* ==============================
   Hero Section - Mobile Optimized
================================= */
.hero {
    background:
        linear-gradient(135deg,
            rgba(128, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.7) 100%),
        url('./images/saffron.jpg') center/cover no-repeat;
    position: relative;
    text-align: center;
    padding: 80px 20px;
    color: #fff;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove fixed background on mobile for performance */
@media (min-width: 768px) {
    .hero {
        background-attachment: fixed;
        padding: 120px 20px;
        min-height: 85vh;
    }
}

@media (min-width: 1200px) {
    .hero {
        padding: 160px 20px;
        min-height: 100vh;
    }
}

/* Optimized Background Overlay for Mobile */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(128, 0, 0, 0.2) 0%, transparent 50%),
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 0;
}

/* Reduce animation intensity on mobile */
@media (prefers-reduced-motion: no-preference) {
    .hero::before {
        animation: gradientShift 12s ease-in-out infinite;
    }
}

/* Simplified particles for mobile */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 1px, transparent 3px),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.05) 1px, transparent 2px);
    background-size: 150px 150px, 100px 100px;
    z-index: 0;
}

/* Reduce particle animation on mobile */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .hero::after {
        background-image:
            radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 4px),
            radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 1px, transparent 3px),
            radial-gradient(circle at 40% 90%, rgba(255, 255, 255, 0.05) 3px, transparent 6px);
        background-size: 200px 200px, 150px 150px, 300px 300px;
        animation: floatParticles 25s linear infinite;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

/* Mobile-optimized typography */
.hero h2 {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.3);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 10px;
}

/* Smaller underline on mobile */
.hero h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: expandWidth 1.2s ease-in-out 0.8s both;
}

@media (min-width: 768px) {
    .hero h2::after {
        width: 100px;
        height: 3px;
        bottom: -10px;
    }
}

/* Better paragraph sizing for mobile */
.hero p {
    font-size: clamp(0.95rem, 4vw, 1.3rem);
    max-width: 90%;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    font-weight: 500;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .hero p {
        max-width: 680px;
        margin-bottom: 40px;
        line-height: 1.7;
    }
}

/* Mobile-optimized button */
.hero .btn {
    z-index: 2;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg,
            var(--accent-color),
            #ffb347,
            var(--accent-color));
    border: none;
    color: var(--primary-color);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 4px 15px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
    min-width: 180px;
}

@media (min-width: 768px) {
    .hero .btn {
        padding: 18px 42px;
        font-size: 1.1rem;
        font-weight: 800;
        min-width: 220px;
        box-shadow:
            var(--shadow-lg),
            0 8px 30px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

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

.hero .btn:hover {
    background: linear-gradient(135deg,
            #ffb347,
            var(--accent-color),
            #ffb347);
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #800000;
}

@media (min-width: 768px) {
    .hero .btn:hover {
        transform: translateY(-6px) scale(1.05);
        box-shadow:
            0 15px 40px rgba(255, 215, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

.hero .btn:hover::before {
    left: 100%;
}

.hero .btn:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

@media (min-width: 768px) {
    .hero .btn:active {
        transform: translateY(-2px) scale(1.02);
    }
}

/* Optimized animations for mobile */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 60px;
        opacity: 1;
    }
}

@media (min-width: 768px) {
    @keyframes expandWidth {
        from {
            width: 0;
            opacity: 0;
        }

        to {
            width: 100px;
            opacity: 1;
        }
    }
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

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

    to {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Extra small devices optimization */
@media (max-width: 375px) {
    .hero {
        padding: 60px 15px;
        min-height: 65vh;
    }

    .hero h2 {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .hero p {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .hero .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        min-width: 160px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .hero::before,
    .hero::after,
    .hero h2,
    .hero p,
    .hero .btn,
    .hero h2::after {
        animation: none !important;
    }

    .hero .btn:hover {
        transform: none;
    }
}
/* Enhanced Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

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

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

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

    to {
        transform: translateY(-100px) rotate(360deg);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100px;
        opacity: 1;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: "";
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--accent-color), transparent);
    display: block;
    margin: 0 auto;
}

@keyframes bounce {

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

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

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fater-header .navbar {
        padding: 0.5rem 1rem;
        backdrop-filter: blur(15px);
    }

    .site-logo {
        height: 60px;
        margin-left: 8px;
    }

    .navbar-nav .nav-link {
        padding: 10px 16px;
        margin: 2px 0;
    }

    .hero {
        padding: 120px 20px;
        background-attachment: scroll;
    }

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

    .hero .btn {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .fater-header .navbar::before,
    .hero::before,
    .hero::after,
    .navbar-nav .nav-link::before,
    .hero .btn::before,
    .scroll-indicator {
        animation: none;
        transition: none;
    }

    .navbar-nav .nav-link:hover,
    .hero .btn:hover,
    .site-logo:hover {
        transform: none;
    }
}

/* ==============================
   Product Grid - Enhanced
================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 100px 0;
    padding: 0 20px;
    position: relative;
}

.product-grid-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(1.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        var(--shadow),
        0 8px 32px rgba(128, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 32px 24px;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-grid-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--accent-color), #ffb347);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.product-badge.sale {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
}

.product-badge.new {
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-grid-card h5 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-grid-card .price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.original-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 600;
}

.discount {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    color: var(--accent-color);
    font-size: 1rem;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==============================
   Quantity Counter - Inside Product Card
================================= */
/* ==============================
   Quantity Counter - Fixed for Mobile
================================= */
.product-quantity-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.quantity-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    direction: ltr;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(128, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.quantity-counter button {
    background: linear-gradient(135deg, var(--primary-color), #660000);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.2);
    flex-shrink: 0;
    /* Prevent button shrinking */
}

.quantity-input {
    width: 80px;
    height: 45px;
    border: 2px solid transparent;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    background: white;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    /* Prevent input shrinking */
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--accent-color), #ffb347);
    color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    /* Prevent button shrinking */
    min-width: 120px;
    /* Ensure minimum width */
}

/* Mobile responsiveness - FIXED */
@media (max-width: 768px) {
    .quantity-counter {
        flex-wrap: nowrap;
        /* Prevent wrapping */
        gap: 10px;
        padding: 10px;
    }

    .quantity-controls {
        gap: 8px;
        flex-shrink: 0;
    }

    .quantity-counter button {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .quantity-input {
        width: 60px;
        height: 40px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .add-to-cart-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 100px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .quantity-counter {
        gap: 8px;
        padding: 8px;
    }

    .quantity-controls {
        gap: 6px;
    }

    .quantity-counter button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .quantity-input {
        width: 50px;
        height: 36px;
        font-size: 1rem;
    }

    .add-to-cart-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 90px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .quantity-counter {
        gap: 6px;
        padding: 6px;
    }

    .quantity-counter button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .quantity-input {
        width: 45px;
        height: 32px;
        font-size: 0.9rem;
    }

    .add-to-cart-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 80px;
    }
}

/* Ensure everything stays in one line */
.quantity-counter>* {
    flex-shrink: 0;
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .product-grid-card,
    .product-grid-card:hover,
    .quantity-counter button,
    .product-image img,
    .add-to-cart-btn {
        transition: none;
        animation: none;
        transform: none;
    }

    .product-actions {
        opacity: 1;
        transform: none;
    }
}
/* ==============================
   Footer Desktop - Enhanced
============================== */
.fater-footer {
    position: relative;
    background: linear-gradient(135deg,
            #800000 0%,
            #660000 30%,
            #4d0000 70%,
            #800000 100%);
    color: var(--text-light);
    overflow: hidden;
    padding: 80px 20px 40px;
    isolation: isolate;
    border-top: 3px solid rgba(128, 0, 0, 0.3);
}

/* Enhanced background animation with maroon theme */
.fater-footer::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        radial-gradient(circle at 20% 30%, rgba(128, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: moveBg 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Pattern overlay with maroon accents */
.fater-footer::after {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(128, 0, 0, 0.1) 10px,
            rgba(128, 0, 0, 0.1) 20px);
    animation: movePattern 40s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

/* Content wrapper */
.fater-footer-content {
    position: relative;
    z-index: 2;
}

/* Enhanced heading styles with maroon theme */
.fater-footer h5 {
    position: relative;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fater-footer h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #800000);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fater-footer h5:hover::after {
    width: 80px;
    background: linear-gradient(90deg, #ff6b6b, #ff5252, #800000);
}

/* Enhanced text elements */
.fater-footer p {
    position: relative;
    line-height: 1.7;
    opacity: 0.9;
    font-weight: 400;
    color: #f8f9fa;
}

/* Enhanced list styling */
.fater-footer ul {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fater-footer li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.fater-footer li:hover {
    padding-left: 12px;
    border-left-color: #800000;
}

/* Enhanced footer links with maroon accent */
.footer-link {
    color: #f0f0f0;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    position: relative;
    opacity: 0.85;
    border-radius: 4px;
}

.footer-link::before {
    content: "▶";
    margin-right: 12px;
    font-size: 0.7em;
    opacity: 0;
    transform: translateX(-15px) scale(0.8);
    transition: all 0.3s ease;
    color: #ff6b6b;
}

.footer-link:hover {
    color: #ff6b6b;
    transform: translateX(10px);
    opacity: 1;
    text-shadow: 0 0 12px rgba(255, 107, 107, 0.4);
    background: linear-gradient(90deg, rgba(128, 0, 0, 0.2), transparent);
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Social media links with maroon theme */
.footer-link.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.3), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    margin: 0 10px 10px 0;
    padding: 0;
    transform: none;
    border: 1px solid rgba(128, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-link.social:hover {
    background: linear-gradient(135deg, #800000, #ff6b6b);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.4);
    border-color: #ff6b6b;
}

/* Contact info links */
.footer-link.contact {
    padding-left: 30px;
    position: relative;
}

.footer-link.contact::before {
    position: absolute;
    left: 0;
    margin-right: 0;
}

/* Bottom section styling */
.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(128, 0, 0, 0.4);
    margin-top: 3rem;
    padding-top: 2rem;
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(128, 0, 0, 0.2), transparent);
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
    color: #e9ecef;
    text-align: center;
}

/* Enhanced animations */
@keyframes moveBg {

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

    25% {
        transform: translate(-3%, -3%) rotate(0.5deg);
        opacity: 0.9;
    }

    50% {
        transform: translate(-6%, -6%) rotate(1deg);
        opacity: 0.8;
    }

    75% {
        transform: translate(-3%, -3%) rotate(0.5deg);
        opacity: 0.9;
    }
}

@keyframes movePattern {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(-25px) translateY(-25px);
    }

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

    75% {
        transform: translateX(-25px) translateY(-25px);
    }

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

/* Scroll progress indicator with maroon theme */
.footer-scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #800000, #ff6b6b, #800000);
    width: 0%;
    transition: width 0.1s ease;
    z-index: 3;
    box-shadow: 0 0 10px rgba(128, 0, 0, 0.5);
}

/* Pulse animation for attention */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(128, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(128, 0, 0, 0.8), 0 0 30px rgba(255, 107, 107, 0.4);
    }
}

.fater-footer {
    animation: pulse-glow 8s ease-in-out infinite;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .fater-footer {
        padding: 60px 15px 30px;
        background: linear-gradient(135deg, #800000, #660000, #800000);
    }

    .fater-footer::before,
    .fater-footer::after {
        animation-duration: 60s;
        opacity: 0.6;
    }

    .footer-link:hover {
        transform: translateX(6px);
        background: rgba(128, 0, 0, 0.3);
    }

    .footer-link.social:hover {
        transform: translateY(-2px) scale(1.05);
    }

    .fater-footer li:hover {
        padding-left: 8px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .fater-footer::before,
    .fater-footer::after,
    .footer-link,
    .fater-footer h5::after,
    .fater-footer {
        animation: none;
        transition: none;
    }

    .fater-footer {
        background: #800000 !important;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .fater-footer {
        background: linear-gradient(135deg,
                #800000 0%,
                #550000 30%,
                #330000 70%,
                #800000 100%);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .fater-footer {
        background: #800000;
        border-top: 3px solid #ff6b6b;
    }

    .footer-link {
        opacity: 1;
        font-weight: 600;
        color: #ffffff;
    }

    .footer-link:hover {
        color: #ff6b6b;
        background: #660000;
    }
}

/* Print styles */
@media print {

    .fater-footer::before,
    .fater-footer::after {
        display: none;
    }

    .fater-footer {
        background: #800000 !important;
        color: #ffffff !important;
        border: 2px solid #000000;
    }

    .footer-link {
        color: #ffffff !important;
    }
}
/* ==============================
   Mobile Footer - Enhanced Sticky & Animated
================================= */
.mobile-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 12px 8px;
    z-index: 9999;
    background: linear-gradient(135deg, #800000 0%, #660000 50%, #800000 100%);
    box-shadow:
        0 -8px 32px rgba(0, 0, 0, 0.4),
        0 -4px 16px rgba(128, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    transform: translateY(0);
    opacity: 1;
}

/* Hide/show animation */
.mobile-footer.hidden {
    transform: translateY(100%);
    opacity: 0;
}

.mobile-footer.visible {
    transform: translateY(0);
    opacity: 1;
}

.mobile-footer .mf-btn {
    flex: 1;
    margin: 0 6px;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Ripple Effect */
.mobile-footer .mf-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.mobile-footer .mf-btn:active::before {
    width: 120px;
    height: 120px;
}

/* Hover & Active Effects */
.mobile-footer .mf-btn:hover,
.mobile-footer .mf-btn.active {
    background: linear-gradient(135deg, var(--accent-color), #ffb347);
    color: var(--primary-color);
    transform: translateY(-8px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--accent-color);
}

/* Active state indicator */
.mobile-footer .mf-btn.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Notification Badge */
.mf-badge {
    position: absolute;
    top: 8px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #800000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: translateX(50%) scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: translateX(50%) scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
    }
}

/* ==============================
   Icons - Enhanced with Animations
================================= */
.mobile-footer .mf-icon,
.mobile-footer .mf-btn .bi {
    font-size: 1.6rem;
    margin-bottom: 6px;
    line-height: 1;
    color: inherit !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Icon animations on hover */
.mobile-footer .mf-btn:hover .mf-icon,
.mobile-footer .mf-btn:hover .bi,
.mobile-footer .mf-btn.active .mf-icon,
.mobile-footer .mf-btn.active .bi {
    transform: scale(1.2) rotate(5deg);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

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

    50% {
        transform: scale(1.3) rotate(-5deg);
    }
}

/* Assign individual colors with gradients */
/* Home - Red gradient */
.mobile-footer .mf-btn:nth-child(1) .mf-icon,
.mobile-footer .mf-btn:nth-child(1) .bi {
    background: linear-gradient(135deg, #ff5e5e, #ff1a1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Us - Blue gradient */
.mobile-footer .mf-btn:nth-child(2) .mf-icon,
.mobile-footer .mf-btn:nth-child(2) .bi {
    background: linear-gradient(135deg, #00aaff, #0077cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cart - Orange gradient */
.mobile-footer .mf-btn:nth-child(3) .mf-icon,
.mobile-footer .mf-btn:nth-child(3) .bi {
    background: linear-gradient(135deg, #ffb347, #ff9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Account - Purple gradient */
.mobile-footer .mf-btn:nth-child(4) .mf-icon,
.mobile-footer .mf-btn:nth-child(4) .bi {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover effect for all icons */
.mobile-footer .mf-btn:hover .mf-icon,
.mobile-footer .mf-btn:hover .bi,
.mobile-footer .mf-btn.active .mf-icon,
.mobile-footer .mf-btn.active .bi {
    background: linear-gradient(135deg, var(--primary-color), #660000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}
/* ==============================
   Text Styling - Enhanced
================================= */
.mobile-footer .mf-text {
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-footer .mf-btn:hover .mf-text,
.mobile-footer .mf-btn.active .mf-text {
    transform: translateY(1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==============================
   Swipe Indicator
================================= */
.mobile-footer::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-footer:hover::after {
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

/* ==============================
   Enhanced Animations
================================= */
@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes slideDownOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

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

@keyframes buttonPress {
    0% {
        transform: translateY(-8px) scale(1.05);
    }

    50% {
        transform: translateY(-4px) scale(1.02);
    }

    100% {
        transform: translateY(-8px) scale(1.05);
    }
}

/* ==============================
   Show only on small screens
================================= */
@media (max-width: 767px) {
    .fater-footer {
        display: none !important;
    }

    .mobile-footer {
        display: flex !important;
        animation: slideUpIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Auto-hide on scroll */
    .mobile-footer.auto-hide {
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-footer.auto-hide.show {
        transform: translateY(0);
    }
}

/* Hide on desktop */
@media (min-width: 768px) {
    .mobile-footer {
        display: none !important;
    }
}

/* Extra small devices optimization */
@media (max-width: 360px) {
    .mobile-footer {
        padding: 10px 6px;
    }

    .mobile-footer .mf-btn {
        margin: 0 4px;
        padding: 10px 0;
    }

    .mobile-footer .mf-icon,
    .mobile-footer .mf-btn .bi {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .mobile-footer .mf-text {
        font-size: 0.7rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .mobile-footer,
    .mobile-footer .mf-btn,
    .mobile-footer .mf-icon,
    .mobile-footer .mf-btn .bi,
    .mobile-footer .mf-text {
        transition: none !important;
        animation: none !important;
    }

    .mobile-footer .mf-btn:hover,
    .mobile-footer .mf-btn.active {
        transform: none !important;
    }

    .mf-badge {
        animation: none !important;
    }
}
/* ==============================
   Dashboard Container
   ============================== */
.sm-dashboard {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    /* RTL support */
    color: #333;
}

/* ==============================
   Sidebar
   ============================== */
.sm-dashboard .sm-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.sm-dashboard .sm-user {
    margin-bottom: 20px;
}

.sm-dashboard .sm-avatar img {
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.sm-dashboard .sm-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.sm-dashboard .sm-role {
    font-size: 0.85rem;
    color: #777;
}

/* ==============================
   Menu Items
   ============================== */
.sm-menu-item {
    color: #333;
    display: block;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: right;
}

.sm-menu-item.active,
.sm-menu-item:hover {
    background: rgba(128, 0, 0, 0.08);
    color: #800;
    font-weight: 700;
    transform: translateX(2px);
}

/* ==============================
   Cards
   ============================== */
.sm-content .card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.sm-content .card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* ==============================
   Tables
   ============================== */
.sm-table th,
.sm-table td {
    vertical-align: middle;
    text-align: right;
}

.sm-table img {
    max-width: 60px;
    border-radius: 6px;
}

.sm-table button {
    font-size: 0.85rem;
}

/* ==============================
   Form Elements
   ============================== */
.sm-content input,
.sm-content select,
.sm-content textarea {
    border-radius: 6px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    transition: all 0.2s ease;
}

.sm-content input:focus,
.sm-content select:focus,
.sm-content textarea:focus {
    border-color: #800;
    box-shadow: 0 0 0 2px rgba(128, 0, 0, 0.1);
    outline: none;
}

/* ==============================
   Reviews List
   ============================== */
.sm-content .list-unstyled li {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sm-content .list-unstyled li:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ==============================
   Accordion
   ============================== */
.accordion-button {
    border-radius: 8px;
    background: #f4f4f4;
    color: #333;
    font-weight: 500;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: #eaeaea;
    color: #800;
}

/* ==============================
   Badges
   ============================== */
.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.6em;
}

/* ==============================
   Buttons
   ============================== */
.sm-content .btn {
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sm-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 992px) {
    .sm-dashboard .sm-sidebar {
        position: relative;
        top: auto;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {

    .sm-dashboard .sm-sidebar,
    .sm-content .card {
        padding: 15px;
    }

    .sm-menu-item {
        padding: 8px 12px;
    }

    .sm-table th,
    .sm-table td {
        font-size: 0.85rem;
    }

    .sm-content input,
    .sm-content select,
    .sm-content textarea {
        font-size: 0.85rem;
    }

    .accordion-button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* =========================
   WHY FATER — Enhanced Cards
   ========================= */
.why-fater-section {
    direction: rtl;
    background: linear-gradient(135deg, #fff5eb 0%, #ffe4d0 50%, #fff5eb 100%);
    padding: 100px 20px;
    font-family: "Vazirmatn", "IRANSans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #5a2e0b;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.why-fater-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 10%, rgba(177, 36, 36, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.why-fater-section .wf-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #b12424;
    margin: 0 0 12px;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 8px rgba(177, 36, 36, 0.1);
}

.why-fater-section .wf-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #b12424, transparent);
    border-radius: 2px;
}

.why-fater-section .wf-subtitle {
    color: #6b3b27;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 0 0 60px;
    text-align: center;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    opacity: 0.9;
    font-weight: 500;
}

/* Enhanced Grid */
.wf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-items: center;
    align-items: stretch;
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 20px;
}

/* Enhanced Card */
.wf-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 250, 240, 0.95) 100%);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(177, 36, 36, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Card accent border */
.wf-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b12424, #ffd700, #b12424);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

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

    50% {
        background-position: 200% 0;
    }
}

/* Enhanced Icon */
.wf-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #b12424, #ff6b6b);
    color: white;
    font-size: 2rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 8px 25px rgba(177, 36, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.wf-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.6s ease;
}

/* Enhanced Typography */
.wf-card h3 {
    margin: 0 0 16px;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    line-height: 1.3;
    font-weight: 800;
    color: #5a2e0b;
    position: relative;
}

.wf-card p {
    margin: 0;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.7;
    color: #5a2e0b;
    opacity: 0.9;
    flex: 1;
}

/* Number badge */
.wf-card-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #5a2e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Enhanced Hover Effects */
.wf-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(177, 36, 36, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wf-card:hover .wf-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #ff6b6b, #b12424);
}

.wf-card:hover .wf-icon::before {
    left: 100%;
}

.wf-card:hover .wf-card-number {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

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

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

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

/* Individual card color variations */
.wf-card:nth-child(1) .wf-icon {
    background: linear-gradient(135deg, #b12424, #ff6b6b);
}

.wf-card:nth-child(2) .wf-icon {
    background: linear-gradient(135deg, #ff9500, #ffb347);
}

.wf-card:nth-child(3) .wf-icon {
    background: linear-gradient(135deg, #25d366, #128C7E);
}

.wf-card:nth-child(4) .wf-icon {
    background: linear-gradient(135deg, #0077cc, #00aaff);
}

.wf-card:nth-child(5) .wf-icon {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.wf-card:nth-child(6) .wf-icon {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

/* Staggered animation for cards */
.wf-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.wf-card:nth-child(1) {
    animation-delay: 0.1s;
}

.wf-card:nth-child(2) {
    animation-delay: 0.2s;
}

.wf-card:nth-child(3) {
    animation-delay: 0.3s;
}

.wf-card:nth-child(4) {
    animation-delay: 0.4s;
}

.wf-card:nth-child(5) {
    animation-delay: 0.5s;
}

.wf-card:nth-child(6) {
    animation-delay: 0.6s;
}

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

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .wf-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
        padding: 0 20px;
    }

    .why-fater-section {
        padding: 80px 20px;
    }
}

@media (max-width: 992px) {
    .wf-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 15px;
    }

    .why-fater-section {
        padding: 70px 15px;
    }

    .wf-card {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .wf-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
    }

    .why-fater-section {
        padding: 60px 15px;
    }

    .wf-card {
        padding: 30px 20px;
        text-align: center;
    }

    .wf-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .wf-card-number {
        top: 15px;
        left: 15px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .why-fater-section {
        padding: 50px 12px;
    }

    .wf-card {
        padding: 25px 18px;
        border-radius: 20px;
    }

    .wf-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .wf-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .wf-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .wf-card,
    .wf-icon,
    .wf-card::before,
    .wf-card-number {
        animation: none !important;
        transition: none !important;
    }

    .wf-card {
        opacity: 1;
        transform: none;
    }

    .wf-card:hover {
        transform: none;
    }
}
/* ==============================
   Cart Dropdown - Enhanced to Overlap Header
================================= */
.cart-dropdown {
    position: relative;
    z-index: 1001;
    /* Higher than navbar z-index */
}

.cart-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 380px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow:0 25px 70px rgba(0, 0, 0, 0.3),
        0 12px 35px rgba(128, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transform: translateY(-15px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1002;
    /* Ensure it's above everything */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-dropdown.show .dropdown-menu {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Cart dropdown header */
.cart-dropdown .dropdown-header {
    background: linear-gradient(135deg, var(--primary-color), #660000);
    color: white;
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cart-dropdown .dropdown-header .badge {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 900;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Cart items */
.cart-dropdown .dropdown-item {
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.cart-dropdown .dropdown-item:hover {
    background: rgba(128, 0, 0, 0.05);
    transform: translateX(8px);
    border-left: 3px solid var(--accent-color);
}

.cart-dropdown .cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(128, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cart-dropdown .dropdown-item:hover .cart-item-img {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.cart-dropdown .cart-item-details {
    flex: 1;
}

.cart-dropdown .cart-item-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.4;
}

.cart-dropdown .cart-item-price {
    font-weight: 800;
    color: var(--accent-color);
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.2);
}

.cart-dropdown .cart-item-quantity {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Cart footer */
.cart-dropdown .dropdown-footer {
    padding: 1.5rem 1.8rem;
    background: rgba(128, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-dropdown .cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary-color);
    padding: 0.8rem 0;
    border-bottom: 2px dashed rgba(128, 0, 0, 0.2);
}

.cart-dropdown .cart-buttons {
    display: flex;
    gap: 12px;
}

.cart-dropdown .cart-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    border: none;
}

.cart-dropdown .btn-view-cart {
    background: transparent;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color);
}

.cart-dropdown .btn-checkout {
    background: linear-gradient(135deg, var(--primary-color), #660000);
    border: 2px solid var(--primary-color) !important;
    color: white;
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.3);
}

.cart-dropdown .btn-view-cart:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.4);
}

.cart-dropdown .btn-checkout:hover {
    background: linear-gradient(135deg, #660000, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(128, 0, 0, 0.5);
}

/* Empty cart state */
.cart-dropdown .cart-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: #6c757d;
}

.cart-dropdown .cart-empty i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    color: var(--primary-color);
}

.cart-dropdown .cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Cart icon in navbar */
.cart-icon {
    position: relative;
    padding: 12px 16px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.cart-icon:hover {
    background: rgba(255, 215, 0, 0.25) !important;
    transform: scale(1.15) rotate(-5deg) !important;
    border-color: var(--accent-color) !important;
}

.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--accent-color), #ffb347);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 900;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
    }
}

/* Remove item button */
.cart-remove-item {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.cart-remove-item:hover {
    color: #c82333;
    background: rgba(220, 53, 69, 0.1);
    opacity: 1;
    transform: scale(1.1);
}

/* Critical fix for navbar overflow */
.fater-header .navbar {
    overflow: visible !important;
    /* Allow dropdown to overflow */
}

/* Ensure cart dropdown overlaps everything */
.cart-dropdown .dropdown-menu {
    z-index: 10000 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cart-dropdown .dropdown-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        margin-top: 0;
        min-width: auto;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        transform: translateX(100%);
    }

    .cart-dropdown.show .dropdown-menu {
        transform: translateX(0);
    }
}

/* Prevent body scroll when cart is open on mobile */
body.cart-open {
    overflow: hidden;
}
/* ===============================
    404 Page Styles - Enhanced
    ================================== */
.error-404 {
    min-height: 100vh;
    background:
        linear-gradient(135deg, var(--primary-color) 0%, #660000 30%, #4d0000 70%, var(--primary-color) 100%),
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(128, 0, 0, 0.2) 0%, transparent 50%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
        perspective: 1000px;
        transform-style: preserve-3d;
}

/* Animated Background Layers */
.error-404::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: moveBg 30s ease-in-out infinite;
    z-index: 1;
}

.error-404::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 4px),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 1px, transparent 3px),
        radial-gradient(circle at 40% 90%, rgba(255, 255, 255, 0.05) 3px, transparent 6px);
    background-size: 200px 200px, 150px 150px, 300px 300px;
    animation: floatParticles 20s linear infinite;
    z-index: 1;
}

@keyframes moveBg {

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

    25% {
        transform: translate(-3%, -3%) rotate(0.5deg);
        opacity: 0.9;
    }

    50% {
        transform: translate(-6%, -6%) rotate(1deg);
        opacity: 0.8;
    }

    75% {
        transform: translate(-3%, -3%) rotate(0.5deg);
        opacity: 0.9;
    }
}

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

    to {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Floating Elements Animation */
@keyframes float {

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

    33% {
        transform: translateY(-20px) rotate(120deg);
    }

    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

.error-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: contentFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

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

/* 404 Number with Glitch Effect */
.error-number {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow:
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 215, 0, 0.4),
        0 0 90px rgba(255, 215, 0, 0.2);
    position: relative;
    animation: numberGlow 3s ease-in-out infinite alternate;
}

@keyframes numberGlow {
    0% {
        text-shadow:
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 215, 0, 0.2);
        transform: scale(1);
    }

    100% {
        text-shadow:
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 0 90px rgba(255, 215, 0, 0.4);
        transform: scale(1.02);
    }
}

/* Error Title */
.error-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: titleSlideIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

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

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

/* Error Description */
.error-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: descriptionFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
}

@keyframes descriptionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Action Buttons Container */
.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    animation: buttonsFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 1.2s both;
}

@keyframes buttonsFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Primary Button */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-color), #ffb347);
    color: var(--primary-color);
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.back-home-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.6s ease;
}

.back-home-btn:hover {
    background: linear-gradient(135deg, #ffb347, var(--accent-color));
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(255, 215, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: var(--primary-color);
}

.back-home-btn:hover::before {
    left: 100%;
}

/* Secondary Button */
.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Quick Links */
.quick-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: linksFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 1.4s both;
}

@keyframes linksFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.quick-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 600;
}

.quick-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-list a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.quick-links-list a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    color: var(--accent-color);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    will-change: transform;
    transform: translateZ(0);
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

.floating-icon:nth-child(5) {
    top: 40%;
    left: 5%;
    animation-delay: 4s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-content {
        margin: 20px;
        padding: 30px 20px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .back-home-btn,
    .search-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .quick-links-list {
        flex-direction: column;
        align-items: center;
    }

    .quick-links-list a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .floating-icon {
        font-size: 1.5rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .error-404::before,
    .error-404::after,
    .floating-icon,
    .error-number,
    .error-title,
    .error-description,
    .error-actions,
    .quick-links {
        animation: none !important;
    }

    .back-home-btn:hover,
    .search-btn:hover,
    .quick-links-list a:hover {
        transform: none !important;
    }
}
/* === BLOG PAGE STYLES === */
body.blog {
  background-color: #f9f9f9;
  font-family: 'Vazirmatn', sans-serif; /* Optional Persian font */
  direction: rtl;
  text-align: right;
}

/* Card styles */
body.blog .card {
  transition: all 0.3s ease;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
}

body.blog .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Image corners match the card */
body.blog .card-img-top {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

/* Title link */
body.blog .card-title a {
  color: #222;
  transition: color 0.2s;
}

body.blog .card-title a:hover {
  color: #d97706;
}

/* Excerpt text */
body.blog .card-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Button */
body.blog .btn-warning {
  background-color: #ffb300;
  border: none;
  transition: all 0.3s;
}

body.blog .btn-warning:hover {
  background-color: #ff9900;
  color: #fff;
}

/* Pagination */
body.blog .pagination {
  gap: 8px;
}

body.blog .pagination .page-numbers {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 6px;
  color: #333;
  transition: 0.3s;
}

body.blog .pagination .page-numbers:hover,
body.blog .pagination .page-numbers.current {
  background-color: #ffb300;
  color: #fff;
  border-color: #ffb300;
}
/*----------------------
 Enhanced Products Dashboard Styles
 ------------------------- */
.dashboard-products-section {
    padding: 1rem 0;
}

.quick-actions {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.product-info-editable .form-control,
.pricing-editable .form-control,
.stock-management .form-control,
.status-management .form-control {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.product-info-editable .form-control:focus,
.pricing-editable .form-control:focus,
.stock-management .form-control:focus,
.status-management .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(128, 0, 0, 0.1);
}

.product-thumbnail-editable {
    text-align: center;
}

.thumbnail-container {
    position: relative;
    display: inline-block;
}

.product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.sale-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}

.featured-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, var(--accent-color), #ffb347);
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}

.image-actions .btn {
    font-size: 0.8rem;
}

.action-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-buttons-vertical .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    justify-content: center;
}

.save-all-btn,
.save-stock-btn,
.save-status-btn {
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.save-all-btn:hover,
.save-stock-btn:hover,
.save-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-label {
    margin-bottom: 0.25rem;
}

.input-group-sm .input-group-text {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.sale-dates .form-control {
    font-size: 0.75rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 1200px) {
    .products-table {
        font-size: 0.9rem;
    }

    .product-img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 992px) {
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 12px;
    }

    .products-table th,
    .products-table td {
        padding: 0.75rem 0.5rem;
    }

    .action-buttons-vertical .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-card {
        margin: 0 -1rem;
        border-radius: 0;
    }

    .quick-actions {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .products-table {
        min-width: 800px;
    }

    .product-info-editable textarea {
        font-size: 0.8rem;
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
}
.woocommerce-message a.button {
    font-size: 18px;
    padding: 12px 25px;
    margin: 10px 5px;
    display: inline-block;
    border-radius: 8px;
    text-align: center;
}

.woocommerce-message {
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
}
.why-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.why-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
}

/* Image wrapper fixes stretched images */
.card-img-wrapper {
    width: 100%;
    height: 220px;
    /* uniform height for all cards */
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* crop instead of stretching */
    display: block;
    transition: transform 0.3s ease;
}

.why-card:hover .card-img-wrapper img {
    transform: scale(1.05);
    /* subtle zoom on hover */
}

/* Card body padding */
.card-body {
    padding: 1.5rem;
}