/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
}

:root {
    /* Brown + Gold palette derived from provided scheme */
    --brown-900: #71412C; /* deep leather brown */
    --gold-700: #BD9334;  /* rich gold */
    --gold-500: #DEBE5A;  /* warm gold */
    --gold-400: #E3CE76;  /* light gold */
    --ink-900: #1e272e;   /* near-black text */
    --ink-700: #2c3e50;   /* dark slate */
    --ink-500: #6c757d;   /* muted text */
    --surface-50: #faf7f2; /* ivory background */
    --surface-100: #f6efe4; /* warm light */
    --shadow-gold: 0 10px 30px rgba(189, 147, 52, 0.28);
    --shadow-brown: 0 8px 24px rgba(113, 65, 44, 0.28);
    --radius-md: 12px;
    --radius-lg: 16px;
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #666666;
    --border-color: #e9ecef;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
}

body {
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    font-size: 16px;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(90deg, var(--brown-900), #5b3324);
    color: #fdf8e8;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
}

.banner-content strong {
    color: var(--gold-500);
    cursor: pointer;
}

/* Header - Enhanced */
.header {
    background: linear-gradient(135deg, #fffdf8, var(--surface-100));
    box-shadow: var(--shadow-brown);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(189, 147, 52, 0.18);
}
/* Compact header layout */
.header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    gap: 16px;
}

.header .logo img {
    height: 24px;
    width: auto;
}

.header .logo span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brown-900);
}

.navbar {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(189, 147, 52, 0.14);
    position: relative;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-700), transparent);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
}

.nav-left {
    flex: 1;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo h1 {
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-700), var(--gold-400), var(--gold-700));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: 0 4px 8px rgba(189, 147, 52, 0.35);
    animation: logoShimmer 3s ease-in-out infinite;
    position: relative;
    margin: 0;
}

.logo h1::before {
    content: 'بانوک';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--brown-900), #3c241a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    transform: translate(2px, 2px);
}

@keyframes logoShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 10000;
}

.nav-action {
    color: var(--ink-700) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 9999;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    background: transparent;
    border: none;
    user-select: none;
    min-width: 60px;
    text-align: center;
}

.nav-action:hover {
    color: var(--brown-900) !important;
    background: rgba(189, 147, 52, 0.12);
    transform: translateY(-1px);
}

.nav-action:active {
    transform: translateY(0);
}

.nav-action:focus {
    outline: 2px solid var(--gold-700);
    outline-offset: 2px;
}

/* Ensure nav actions are clickable */
.nav-actions a {
    position: relative;
    z-index: 9999;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
}

/* Force clickability */
.nav-actions a.nav-action {
    position: relative;
    z-index: 9999;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
}

.nav-actions a.nav-action:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

/* Override any conflicting styles */
.nav-right .nav-actions a {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
}

.nav-right .nav-actions a:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

/* Final override for nav actions */
.nav-actions a[href="user/login.html"],
.nav-actions a[href="user/register.html"] {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
}

.nav-actions a[href="user/login.html"]:hover,
.nav-actions a[href="user/register.html"]:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Force clickability with highest specificity */
.nav-right .nav-actions a.nav-action[href="user/login.html"],
.nav-right .nav-actions a.nav-action[href="user/register.html"] {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

.nav-right .nav-actions a.nav-action[href="user/login.html"]:hover,
.nav-right .nav-actions a.nav-action[href="user/register.html"]:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Force clickability for login button specifically */
a[href="user/login.html"] {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

a[href="user/login.html"]:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Override any conflicting styles for login link */
.nav-actions a[href="user/login.html"] {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

.nav-actions a[href="user/login.html"]:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Force all nav actions to be clickable */
.nav-actions a {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

.nav-actions a:hover, .nav-actions button:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Override any conflicting styles */
* {
    box-sizing: border-box;
}

.nav-actions a.nav-action {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

.nav-actions a.nav-action:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Force clickability for all nav actions */
.nav-actions a[href] {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

.nav-actions a[href]:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Override any conflicting styles for nav actions */
.nav-right .nav-actions a[href] {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

.nav-right .nav-actions a[href]:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Force all nav actions to be clickable */
.nav-actions a {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

.nav-actions a:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Override any conflicting styles */
.nav-right a[href="user/login.html"] {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

.nav-right a[href="user/login.html"]:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Final override for login button */
a[href="user/login.html"] {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    cursor: pointer !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

a[href="user/login.html"]:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Force all links to be clickable */
a {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
}

/* Override any conflicting styles */
.nav-actions a.nav-action {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 9999 !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
}

.nav-actions a.nav-action:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Force all nav actions to be clickable */
.nav-actions a {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 9999 !important;
    color: #333 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    min-width: 60px !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
}

.nav-actions a:hover {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    transform: translateY(-1px) !important;
}

.search-icon,
.cart-icon {
    cursor: pointer;
    color: var(--ink-700);
    font-size: 1.3rem;
    position: relative;
    padding: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f3ea, #efe6d3);
    z-index: 1000;
    pointer-events: auto;
    display: inline-block;
}

.search-icon:hover,
.cart-icon:hover {
    background: linear-gradient(135deg, var(--gold-700), var(--gold-400));
    color: var(--brown-900);
    transform: translateY(-2px) scale(1.1);
    box-shadow: var(--shadow-gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold-700);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Main Navigation - Enhanced */
.main-nav {
    background: linear-gradient(135deg, #fffdf8, var(--surface-100));
    border-bottom: 2px solid rgba(189, 147, 52, 0.14);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-700), var(--gold-400), var(--gold-700));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

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

.main-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.25rem 0;
    position: relative;
}

.menu-item {
    position: relative;
}

.menu-link {
    color: var(--ink-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    letter-spacing: 0.5px;
    padding: 0.7rem 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    display: block;
}

.menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-700), var(--gold-400));
    transition: width 0.4s ease;
    z-index: -1;
    border-radius: 25px;
}

.menu-link:hover::before {
    width: 100%;
}

.menu-link:hover {
    color: var(--brown-900);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* Mega Menu Styles - Modern & Elegant */
.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    direction: rtl; /* برای فارسی */
}

.main-menu > ul > li {
    position: relative;
    display: inline-block;
}

.main-menu a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--brown-900), #5b3324);
    color: #fff;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 10px;
    font-weight: 500;
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

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

.main-menu a:hover::before {
    left: 100%;
}

.main-menu a:hover {
    background: linear-gradient(135deg, var(--gold-700), var(--gold-400));
    color: var(--brown-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.submenu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: linear-gradient(135deg, #2a1711, var(--brown-900));
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    border: 1px solid rgba(189, 147, 52, 0.25);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.submenu.show {
    pointer-events: auto;
}

.submenu li {
    position: relative;
}

.has-submenu:hover > .submenu {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

.submenu .submenu {
    top: 0;
    right: 100%;
    background: linear-gradient(135deg, #1f110c, #2a1711);
    border-radius: 8px;
    margin-right: 8px;
    display: none;
    opacity: 0;
    transform: translateX(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.submenu .submenu.show {
    pointer-events: auto;
}

.submenu .has-submenu:hover > .submenu {
    display: block !important;
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
    pointer-events: auto !important;
}

/* استایل‌های زیرمنوها */
.submenu a {
    background: transparent;
    color: #e8e8e8;
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.submenu a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1));
    transition: width 0.3s ease;
}

.submenu a:hover::before {
    width: 100%;
}

.submenu a:hover {
    background: rgba(189, 147, 52, 0.12);
    color: var(--gold-500);
    padding-right: 2rem;
    font-weight: 600;
}

.submenu .submenu a {
    background: transparent;
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
    color: #ccc;
}

.submenu .submenu a:hover {
    background: rgba(189, 147, 52, 0.16);
    color: var(--gold-500);
    padding-right: 1.8rem;
}

/* استایل‌های خاص برای آیتم‌هایی که زیرمنو دارند */
.has-submenu a:after {
    content: "";
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-500);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.has-submenu a:hover:after {
    transform: translateY(-50%) rotate(90deg);
    color: var(--gold-700);
}

/* استایل‌های مخصوص منوی اصلی */
.main-menu .menu-link {
    background: transparent;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.main-menu .menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    transition: width 0.4s ease;
    z-index: -1;
}

.main-menu .menu-link:hover::before {
    width: 100%;
}

.main-menu .menu-link:hover {
    background: transparent;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* انیمیشن‌های اضافی */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.submenu li {
    animation: slideInFromRight 0.3s ease forwards;
}

.submenu li:nth-child(1) { animation-delay: 0.1s; }
.submenu li:nth-child(2) { animation-delay: 0.2s; }
.submenu li:nth-child(3) { animation-delay: 0.3s; }
.submenu li:nth-child(4) { animation-delay: 0.4s; }
.submenu li:nth-child(5) { animation-delay: 0.5s; }
.submenu li:nth-child(6) { animation-delay: 0.6s; }
.submenu li:nth-child(7) { animation-delay: 0.7s; }

/* استایل‌های اضافی برای زیبایی */
.main-menu .menu-item {
    margin: 0 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-background::after {
    /* Warm gold-brown overlay, non-matte: using soft-light to keep highlights */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% 30%, rgba(227, 206, 118, 0.25), rgba(113, 65, 44, 0.35) 70%, rgba(0,0,0,0.45));
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(102,126,234,.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,126,234,.5);
}

.btn-secondary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(102,126,234,.2);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Featured Collection */
.featured-collection {
    padding: 4rem 0;
    background: #fbf7ee;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.collection-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brown-900);
}

.view-all {
    color: var(--gold-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.view-all:hover {
    text-decoration: underline;
}

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

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-color);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: .3rem .8rem;
    border-radius: 15px;
    font-size: .85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: .8rem;
}

.product-name {
    font-weight: 600;
    color: var(--text-color);
}

.product-code {
    font-size: .8rem;
    color: var(--text-muted);
    font-family: "Courier New", monospace;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.reviews-count {
    color: #999;
    font-size: 0.8rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding: 2rem 0;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brown-900);
    margin-bottom: 1rem;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold-700);
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: #fbf7ee;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--gold-700);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--gold-700);
    width: 30px;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    font-size: 1rem;
}

.contact-form {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 10px;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-700);
}

/* Products Section Spacing */
.products-section {
    padding: 4rem 0 6rem 0; /* Increased bottom padding */
    background: #fff;
}

.page-header {
    padding: 3rem 0 2rem 0;
    background: linear-gradient(135deg, #fffdf8, var(--surface-100));
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brown-900);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #3c241a, var(--brown-900));
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 3rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-700), var(--gold-400), var(--gold-700));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gold-700);
    text-shadow: 0 2px 4px rgba(189, 147, 52, 0.35);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--gold-500);
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gold-700);
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #a88327;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold-500);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .menu-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-section {
        padding: 3rem 0 4rem 0; /* Reduced padding for mobile */
    }
    
    .page-header {
        padding: 2rem 0 1.5rem 0; /* Reduced padding for mobile */
    }
    
    .page-header h1 {
        font-size: 2rem; /* Smaller title for mobile */
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .menu-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .product-info {
        padding: 1.5rem 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional improvements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Compact header buttons */
.header .btn {
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
}

/* Selection styles */
::selection {
    background-color: #d4af37;
    color: #2c3e50;
}

::-moz-selection {
    background-color: #d4af37;
    color: #2c3e50;
}

/* User Authentication Styles */
.auth-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-form {
    padding: 60px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
}

.auth-form p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6c757d;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d4af37;
}

.terms-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 600;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.auth-links p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.auth-links a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #6c757d !important;
    font-weight: 400 !important;
}

/* Inline form error for auth pages */
.form-error {
    margin-top: 12px;
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.input-error {
    border-color: #dc3545 !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(220,53,69,0.08) !important;
}

/* Cart Styles */
.cart-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-cart p {
    color: #6c757d;
    margin-bottom: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.item-price {
    color: #d4af37;
    font-weight: 600;
    font-size: 1rem;
}

.item-quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    text-align: center;
}

.item-total {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.item-actions button {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.summary-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.summary-row.total {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #d4af37;
}

/* Checkout Styles */
.checkout-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step.active {
    background: #d4af37;
    color: white;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step.active .step-number {
    background: white;
    color: #d4af37;
}

.step-title {
    font-weight: 600;
}

.checkout-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.checkout-step h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method input[type="radio"]:checked + .payment-label {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.payment-icon {
    font-size: 2rem;
}

.payment-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.payment-info p {
    color: #6c757d;
    font-size: 0.9rem;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.order-summary,
.shipping-info,
.payment-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-summary h3,
.shipping-info h3,
.payment-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.order-item:last-child {
    border-bottom: none;
}

.order-totals {
    margin-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
}

.total-row.final {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    border-top: 2px solid #d4af37;
    margin-top: 15px;
    padding-top: 15px;
}

.info-item {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Order Confirmation Styles */
.order-confirmation-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-header {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.confirmation-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.confirmation-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.confirmation-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.detail-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.order-item-detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.order-item-detail:last-child {
    border-bottom: none;
}

.detail-row {
    margin-bottom: 10px;
    color: #2c3e50;
}

.status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status.paid {
    background: #d4edda;
    color: #155724;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.next-steps {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.next-steps h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.step-icon {
    font-size: 2rem;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Profile Styles */
.profile-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.profile-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-sidebar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-menu .menu-item {
    padding: 15px 20px;
    border: none;
    background: transparent;
    text-align: right;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #6c757d;
    font-weight: 500;
}

.profile-menu .menu-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.profile-menu .menu-item.active {
    background: #d4af37;
    color: white;
}

.profile-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

.profile-tab h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.info-item span {
    color: #2c3e50;
    font-size: 1rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.order-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.order-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.order-status .status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.order-item:last-child {
    border-bottom: none;
}

.item-name {
    color: #2c3e50;
    font-weight: 500;
}

.item-quantity {
    color: #6c757d;
    font-size: 0.9rem;
}

.item-price {
    color: #d4af37;
    font-weight: 600;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.order-total {
    color: #2c3e50;
    font-size: 1.1rem;
}

.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.address-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.address-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.address-details p {
    margin-bottom: 8px;
    color: #2c3e50;
}

.address-actions {
    display: flex;
    gap: 10px;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.setting-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.setting-item h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-state p {
    margin-bottom: 30px;
}

/* User pages responsive */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-summary {
        position: static;
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 10px;
    }
    
    .step {
        justify-content: center;
    }
    
    .confirmation-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .profile-menu {
        flex-direction: row;
        overflow-x: auto;
        gap: 5px;
    }
    
    .profile-menu .menu-item {
        white-space: nowrap;
        min-width: 120px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .address-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .address-actions {
        align-self: flex-end;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .item-image {
        justify-self: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* Orders Page Styles */
.orders-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
}

.orders-list {
    margin-top: 30px;
}

.order-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.order-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.order-date {
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.order-item:last-child {
    border-bottom: none;
}

.item-name {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

.item-price {
    font-size: 1rem;
    color: #e74c3c;
    font-weight: 600;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #f8f9fa;
    font-size: 1rem;
}

.order-total {
    font-weight: 700;
    color: #2c3e50;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 25px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Enhanced Cart Item Styling */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #f8f9fa;
}

.item-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.item-price {
    font-size: 1rem;
    color: #e74c3c;
    font-weight: 600;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-quantity label {
    font-size: 0.9rem;
    color: #6c757d;
}

.item-quantity input {
    width: 60px;
    padding: 8px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.item-quantity input:focus {
    border-color: #007bff;
    outline: none;
}

.item-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    min-width: 120px;
    text-align: left;
}

.item-actions button {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Form Error and Success Styles */
.form-error {
    background: #fee;
    color: #c33;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid #fcc;
    font-size: 0.9rem;
    display: none;
}

.form-success {
    background: #efe;
    color: #3c3;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    border: 1px solid #cfc;
    font-size: 0.9rem;
    display: none;
}

/* Enhanced Summary Card */
.summary-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.summary-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.95rem;
}

.summary-row:not(.total) {
    border-bottom: 1px solid #f8f9fa;
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    background: #f8f9fa;
    margin: 15px -25px -25px -25px;
    padding: 20px 25px;
    border-radius: 0 0 15px 15px;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #e74c3c;
}

.summary-row.total span:last-child {
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Welcome Name Styling */
.welcome-name {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 15px;
    font-size: 0.95rem;
}

.nav-action {
    color: #495057;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-action:hover {
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.nav-action button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
}
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .order-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .item-quantity,
    .item-total,
    .item-actions {
        grid-column: 2;
        margin-top: 10px;
    }
    
    .item-total {
        text-align: right;
    }
}

/* === Enforce unified buttons on product grids (override page-specific styles) === */
.products-grid .product-actions .btn { 
  padding: 1rem 2rem !important; border-radius: 10px !important; font-weight: 600 !important; font-size: 1rem !important;
}
.products-grid .product-actions .btn-primary { 
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important; 
  color: #fff !important; border: none !important; box-shadow: 0 6px 20px rgba(102,126,234,.4) !important;
}
.products-grid .product-actions .btn-primary:hover { transform: translateY(-3px) !important; box-shadow: 0 8px 25px rgba(102,126,234,.5) !important; }
.products-grid .product-actions .btn-secondary { 
  background: #fff !important; color: var(--primary-color) !important; border: 2px solid var(--primary-color) !important; 
  box-shadow: 0 4px 15px rgba(102,126,234,.2) !important;
}
.products-grid .product-actions .btn-secondary:hover { background: var(--primary-color) !important; color: #fff !important; transform: translateY(-2px) !important; }
