﻿/* ===== MooN Events - Main Stylesheet ===== */
:root {
    --primary-color: #2D4A3E;
    --secondary-color: #8B6F5C;
    --button-color: #2D4A3E;
    --button-hover: #1E352B;
    --header-bg: #FFFFFF;
    --footer-bg: #1A1A2E;
    --cards-bg: #FFFFFF;
    --links-color: #2D4A3E;
    --text-color: #333333;
    --accent-color: #C9A96E;
    --bg-color: #F8F0E3;
    --font-family: 'Cairo', sans-serif;
}

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    font-variant-numeric: lining-nums;
    line-height: 1.8;
    overflow-x: hidden;
}
input, textarea { font-variant-numeric: lining-nums; }

a { color: var(--links-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--button-hover); }

::selection { background: var(--primary-color); color: #fff; }

/* ===== Header ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    direction: rtl;
}

.main-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
}

/* Logo */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}
.logo a { display: inline-block; }
.logo img { max-height: 50px; width: auto; }
.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}
.logo-text span {
    color: var(--accent-color);
    font-weight: 300;
}

/* Navigation */
.main-nav { flex: 1; margin: 0 30px; }
.header-actions { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    justify-content: flex-start;
    padding-right: 0;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.active {
    background: var(--primary-color);
    color: #fff;
}

/* Dropdown */
.dropdown-nav { position: relative; }
.dropdown-nav .dropdown-menu-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 100;
}
.dropdown-nav:hover .dropdown-menu-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu-nav li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    color: var(--text-color);
}
.dropdown-menu-nav li a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.action-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
}
.search-bar.active { display: block; }
.search-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}
.search-input {
    flex: 1;
    height: 50px;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 16px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}
.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.1);
}
.search-btn { height: 50px; border-radius: 12px !important; padding: 0 25px; }
.btn-close-search {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}
.search-results.active { display: block; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}
.search-result-item:hover { background: var(--bg-color); }
.search-result-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.search-result-item .result-name { font-size: 14px; font-weight: 600; }
.search-result-item .result-price { font-size: 13px; color: var(--primary-color); font-weight: 700; }

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-top: 0;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, rgba(45,74,62,0.5) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 0 60px;
}
.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn {
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.4s ease;
    font-family: var(--font-family);
}
.hero-buttons .btn-primary {
    background: var(--button-color);
    border: 2px solid var(--button-color);
}
.hero-buttons .btn-primary:hover {
    background: var(--button-hover);
    border-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
    background: transparent;
}
.hero-buttons .btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== Sections General ===== */
.section-padding { padding: 80px 0; }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}
.section-subtitle {
    font-size: 16px;
    color: #888;
    margin-top: 10px;
}

.bg-light { background: var(--bg-color); }

/* ===== Category Cards ===== */
.category-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.category-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}
.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.category-card:hover .category-image img {
    transform: scale(1.08);
}
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 30px 20px;
    text-align: center;
}
.category-overlay h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

/* ===== Product Cards ===== */
.product-card {
    background: var(--cards-bg);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.product-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    padding-bottom: 125%;
    height: 0;
    border-radius: 16px 16px 0 0;
}
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.product-details .product-actions-bottom {
    margin-top: auto;
}
.product-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 767px) {
    .product-details { padding: 10px; gap: 6px; }
    .product-name { font-size: 13px; -webkit-line-clamp: 2; }
    .current-price { font-size: 14px; }
    .old-price { font-size: 11px; }
    .product-details .product-actions-bottom .btn { font-size: 11px; padding: 3px 6px; }
    .product-details .like-btn { width: 24px; height: 24px; font-size: 12px; }
    .product-details .like-btn .like-count { font-size: 9px; }
    .product-price { margin-bottom: 0; }
}
.product-name a { color: var(--text-color); }
.product-name a:hover { color: var(--primary-color); }
.product-price { margin-bottom: 12px; }
.subcat-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}
.subcat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.subcat-card .subcat-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    width: 100%;
}
.subcat-card .subcat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.subcat-card:hover .subcat-img img {
    transform: scale(1.08);
}
.subcat-card .subcat-img .subcat-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--bg-color, #f8f6f2);
    color: var(--primary-color);
}
.subcat-card .subcat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    font-size: 14px;
    font-weight: 700;
}
.subcat-card.active {
    box-shadow: 0 0 0 2px var(--primary-color);
}
@media (max-width: 767px) {
    .subcat-card .subcat-img { aspect-ratio: 4/3; }
    .subcat-card .subcat-img .subcat-icon { font-size: 24px; }
    .subcat-card .subcat-overlay { font-size: 12px; padding: 8px 10px; }
}
.current-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}
.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

/* ===== Footer ===== */
.main-footer {
    background: var(--footer-bg);
    color: #fff;
    padding-top: 60px;
}
.footer-top { padding-bottom: 40px; }
.footer-widget { margin-bottom: 30px; }
.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}
.footer-logo span { color: var(--accent-color); font-weight: 300; }
.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-widget h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.3s ease;
}
.footer-links li a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}
.footer-contact li i { color: var(--accent-color); width: 20px; }
.footer-contact li a { color: rgba(255,255,255,0.8); }
.footer-contact li a:hover { color: var(--accent-color); }

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}
.newsletter-form .form-control {
    flex: 1;
    height: 45px;
    border-radius: 10px;
    border: none;
    padding: 0 15px;
    font-family: var(--font-family);
}
.newsletter-form .btn {
    height: 45px;
    border-radius: 10px !important;
    padding: 0 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}
.footer-bottom-links a:hover { color: var(--accent-color); }

/* ===== Like Button ===== */
.like-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #e74c3c;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.like-btn:hover { transform: scale(1.15); }
.product-details .like-btn,
.product-meta .like-btn {
    position: static;
    width: 36px;
    height: 36px;
    font-size: 16px;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
}
.product-details .like-btn .like-count,
.product-meta .like-btn .like-count {
    position: static;
    transform: none;
    font-size: 12px;
}
.like-btn .like-count {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: #666;
    white-space: nowrap;
}
.like-btn.liked .like-count { color: #e74c3c; }

/* ===== Cart Float ===== */
.cart-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(45, 74, 62, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}
.cart-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 30px rgba(45, 74, 62, 0.6);
}
.cart-float-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--button-color) !important;
    border-color: var(--button-color) !important;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}
.btn-primary:hover {
    background: var(--button-hover) !important;
    border-color: var(--button-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-outline-primary {
    border: 2px solid var(--button-color) !important;
    color: var(--button-color) !important;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}
.btn-outline-primary:hover {
    background: var(--button-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ===== Breadcrumb ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1A1A2E 100%);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}
.page-banner h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
}
.breadcrumb-custom {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 14px;
}
.breadcrumb-custom li { color: rgba(255,255,255,0.7); }
.breadcrumb-custom li a { color: var(--accent-color); }
.breadcrumb-custom li::before { content: '/'; margin-left: 10px; color: rgba(255,255,255,0.5); }
.breadcrumb-custom li:first-child::before { content: none; }

/* ===== Product Page ===== */
.product-gallery { position: relative; }
.main-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: zoom-in;
}
.main-image img {
    width: 100%;
    border-radius: 16px;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.gallery-thumbs .thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active { border-color: var(--primary-color); }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding: 20px 0; }
.product-info h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}
.product-meta { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-meta .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}
.product-meta .old-price {
    font-size: 20px;
}
.product-description {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.product-attributes { margin-bottom: 20px; }
.attribute-group { margin-bottom: 15px; }
.attribute-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}
.attribute-options { display: flex; gap: 8px; flex-wrap: wrap; }
.attribute-option {
    padding: 8px 16px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
.attribute-option:hover,
.attribute-option.active { border-color: var(--primary-color); background: rgba(45,74,62,0.05); }
.attribute-option.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.quantity-control button {
    width: 40px;
    height: 40px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.quantity-control button:hover { border-color: var(--primary-color); }
.quantity-control input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: lining-nums;
}

.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-actions .btn {
    padding: 12px 30px;
    font-size: 15px;
}

/* ===== Cart Page ===== */
.cart-table { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.06); }
.cart-table th { background: var(--primary-color); color: #fff; padding: 15px; font-weight: 600; }
.cart-table td { padding: 15px; vertical-align: middle; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.cart-summary { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.06); }
.cart-summary h4 { font-weight: 700; margin-bottom: 20px; }
.cart-summary .summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.cart-summary .summary-total { font-size: 24px; font-weight: 800; color: var(--primary-color); }

/* ===== Login/Register ===== */
.auth-page { padding: 120px 0 60px; }
.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 450px;
    margin: 0 auto;
}
.auth-card h3 { font-weight: 800; text-align: center; margin-bottom: 30px; color: var(--primary-color); }

/* ===== Contact Page ===== */
.contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    height: 100%;
    transition: all 0.3s ease;
}
.contact-info-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.contact-info-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.contact-info-card h5 { font-weight: 700; margin-bottom: 8px; }
.contact-info-card p { color: #666; margin: 0; }

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--primary-color);
    border: 2px solid #eee;
    border-radius: 8px;
    margin: 0 3px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.pagination .page-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Alert Messages ===== */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
}

/* ===== Filter Accordion ===== */
.filter-toggle {
    cursor: pointer;
    user-select: none;
}
.filter-toggle .filter-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #999;
}
.filter-toggle[aria-expanded="true"] .filter-arrow {
    transform: rotate(180deg);
}
.filter-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sort-dropdown .dropdown-item.active {
    background: var(--primary-color);
    color: #fff;
}


/* ===== Filters ===== */
.filter-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}
.filter-section .form-select,
.filter-section .form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: var(--font-family);
}
.filter-section .form-select:focus,
.filter-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45,74,62,0.1);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.fade-in { animation: fadeIn 0.6s ease forwards; }

/* ===== Mobile Overlay ===== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active { display: block; opacity: 1; }

/* ===== Checkout ===== */
.checkout-section { padding: 120px 0 60px; }
.form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 12px 16px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45,74,62,0.1);
}

/* ===== Fallbacks for older browsers ===== */
@supports not (aspect-ratio: 1/1) {
    .category-image { min-height: 300px; }
    .subcat-card .subcat-img { min-height: 180px; }
}

