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

:root {
    --primary: #1a0e2e;
    --primary-light: #2d1b4e;
    --accent: #C9A84C;
    --accent-dark: #b8973a;
    --purple: #8B5CF6;
    --purple-light: #ede9fe;
    --text: #333;
    --text-light: #666;
    --bg: #fefcfb;
    --bg-alt: #f8f5ff;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Loading */
#loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}
#loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}
.spinner {
    width: 50px; height: 50px;
    border: 4px solid var(--purple-light);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
header {
    background: var(--primary);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo h1 {
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo span {
    font-size: 0.7rem;
    color: #999;
    display: block;
    margin-top: -2px;
}

/* Search */
.search-bar {
    flex: 1;
    max-width: 350px;
    position: relative;
    display: none;
}
.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}
.search-bar input::placeholder { color: #888; }
.search-bar input:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
}
.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.85rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 3px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon, .wishlist-btn {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--white);
    background: none;
    border: none;
    padding: 0;
    transition: var(--transition);
}

.cart-icon:hover, .wishlist-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.cart-icon span, .wishlist-btn span {
    position: absolute;
    top: -10px;
    left: -12px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sidebar (Cart & Wishlist) */
.sidebar {
    position: fixed;
    top: 0;
    left: -380px;
    width: 380px;
    height: 100%;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    color: var(--primary);
}

.sidebar-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-header button:hover {
    background: #f0f0f0;
}

.sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.sidebar-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

.sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.sidebar-total span:last-child {
    color: var(--accent-dark);
    font-size: 1.3rem;
}

.sidebar-footer .btn-primary {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1500;
}

.overlay.show {
    display: block;
}

/* Hero */
.hero {
    min-height: 85vh;
    background: linear-gradient(135deg, rgba(26,14,46,0.7) 0%, rgba(139,92,246,0.4) 100%),
                url('https://images.unsplash.com/photo-1469334031218-e382a71b716b?w=1600&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 900;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201,168,76,0.3);
}

/* Benefits */
.benefits {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit-item {
    text-align: center;
    padding: 20px 10px;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-3px);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 10px;
}

.benefit-item h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.benefit-item p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--white);
    border: 2px solid var(--purple-light);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--purple);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--purple-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--purple);
}

.category-icon i {
    font-size: 1.8rem;
    color: var(--purple);
    transition: var(--transition);
}

.category-card:hover .category-icon i {
    color: var(--white);
}

.category-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Filter */
.filter-btns {
    text-align: center;
    margin-bottom: 35px;
}

.filter-btn {
    padding: 10px 24px;
    margin: 0 5px 10px;
    background: var(--purple-light);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    font-weight: 700;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card .wishlist-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #ccc;
    transition: var(--transition);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card .wishlist-heart:hover,
.product-card .wishlist-heart.active {
    color: #e74c3c;
    transform: scale(1.15);
}

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 18px;
    position: relative;
    background: var(--white);
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--primary);
    font-weight: 700;
}

.product-info .category-tag {
    font-size: 0.75rem;
    color: var(--purple);
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-info .price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 12px;
}

.product-info .price .old-price {
    font-size: 0.85rem;
    color: #aaa;
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
}

.product-info .add-to-cart {
    width: 100%;
    padding: 11px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.product-info .add-to-cart:hover {
    background: var(--purple);
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item img {
    width: 55px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    font-size: 0.85rem;
    margin-bottom: 3px;
    color: var(--primary);
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--accent-dark);
    font-weight: 700;
}

.cart-item .qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cart-item .qty-controls button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.cart-item .qty-controls button:hover {
    background: var(--purple-light);
}

.cart-item .remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    transition: var(--transition);
}

.cart-item .remove-btn:hover {
    color: #e74c3c;
}

/* Product Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 2500;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: row-reverse;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalIn 0.35s ease;
}

@keyframes modalIn {
    from { transform: scale(0.95) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-image {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.modal-details {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-details .modal-category {
    color: var(--purple);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-details h2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.modal-details .modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.modal-details .modal-desc {
    color: var(--text-light);
    line-height: 1.7;
}

.modal-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.size-options, .color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-options button {
    padding: 8px 20px;
    border: 2px solid #ddd;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.size-options button:hover,
.size-options button.active {
    border-color: var(--purple);
    background: var(--purple);
    color: var(--white);
    font-weight: 700;
}

.color-options button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #eee;
    cursor: pointer;
    transition: var(--transition);
}

.color-options button:hover,
.color-options button.active {
    border-color: var(--accent);
    transform: scale(1.15);
}

.modal-qty {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-qty button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: var(--white);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    font-family: inherit;
}

.modal-qty button:hover {
    border-color: var(--purple);
    background: var(--purple);
    color: var(--white);
}

.modal-qty span {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.modal-add-btn {
    padding: 15px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    margin-top: 5px;
}

.modal-add-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    color: var(--purple-light);
    line-height: 1;
    font-weight: 700;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-card .testimonial-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-card .testimonial-author .name {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.testimonial-card .testimonial-author .stars {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    top: -100px;
    right: -100px;
}

.newsletter::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(139,92,246,0.1);
    bottom: -80px;
    left: -80px;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    outline: 2px solid var(--accent);
}

.newsletter-form button {
    padding: 14px 30px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent-dark);
}

/* About */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Contact */
.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.contact-info a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--purple);
}

.contact-info i {
    color: var(--purple);
    margin-left: 10px;
    width: 20px;
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--white);
    background: var(--purple);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--primary);
    color: #bbb;
    padding: 50px 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-col p {
    line-height: 1.8;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
    color: #888;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--primary);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    z-index: 999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RTL */
.cart-icon span, .wishlist-btn span {
    left: -12px;
    right: auto;
}

.modal-close {
    right: auto;
    left: 12px;
}

.modal-image img {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

/* Product Not Found */
#no-results {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

#no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .search-bar {
        display: block;
        max-width: 250px;
    }
    nav ul {
        gap: 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-stats {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .search-bar {
        display: none;
    }
    nav ul {
        display: none;
        flex-direction: column;
        background: var(--primary);
        position: absolute;
        top: 62px;
        left: 0;
        width: 100%;
        padding: 15px 20px;
        text-align: center;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    nav ul.open {
        display: flex;
    }
    nav ul li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero {
        min-height: 60vh;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sidebar {
        width: 100%;
        left: -100%;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-content {
        flex-direction: column;
    }
    .modal-image img {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 280px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .section {
        padding: 50px 0;
    }
    .product-card img {
        height: 250px;
    }
    .modal-details {
        padding: 20px;
    }
}
