/* ===================================
   הללויה E-Commerce Website Styles
   RTL Support with Black & Gold Theme
   =================================== */

/* Root Variables */
:root {
    /* Colors */
    --primary-color: #000000;
    --secondary-color: #D4AF37;
    --gold: #D4AF37;
    --gold-dark: #B8941F;
    --gold-light: #F5E6C8;
    --beige: #F5F1E8;
    --beige-dark: #E8DCC5;
    --brown: #8B6B47;
    --brown-light: #C9A673;
    --white: #FFFFFF;
    --gray-light: #F8F8F8;
    --gray: #E0E0E0;
    --gray-dark: #666666;
    --text-primary: #333333;
    --text-secondary: #666666;
    --success: #4CAF50;
    --danger: #F44336;
    --warning: #FF9800;
    
    /* Typography */
    --font-primary: 'Assistant', 'Heebo', sans-serif;
    --font-secondary: 'Heebo', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-primary);
    direction: rtl;
    text-align: right;
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

input, textarea, select {
    font-family: inherit;
    border: 1px solid var(--gray);
    padding: 0.75rem;
    border-radius: 4px;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================
   HEADER & NAVIGATION
   ======================== */

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--gold);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-left: var(--spacing-md);
}

.contact-info i {
    margin-left: 0.5rem;
    color: var(--gold);
}

.social-links a {
    color: var(--gold);
    margin-left: var(--spacing-sm);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: var(--white);
    border-bottom: 2px solid var(--gold);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 1px;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-menu a {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--gold);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-icons a,
.mobile-menu-toggle {
    font-size: 1.25rem;
    color: var(--text-primary);
    background: none;
    position: relative;
}

.nav-icons a:hover,
.mobile-menu-toggle:hover {
    color: var(--gold);
}

.cart-icon {
    position: relative;
}

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

.mobile-menu-toggle {
    display: none;
}

/* ========================
   HERO SECTION
   ======================== */

.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%),
                url('https://images.unsplash.com/photo-1568702846914-96b305d2aaeb?w=1600') center/cover;
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    color: var(--gold);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* ========================
   BUTTONS
   ======================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-icon {
    padding: 0.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray);
}

.btn-icon:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ========================
   PROMO BANNER
   ======================== */

.promo-banner {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--primary-color);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.promo-content i {
    font-size: 2rem;
}

.promo-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.promo-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* ========================
   SECTIONS
   ======================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header.centered {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ========================
   CATEGORIES
   ======================== */

.categories {
    padding: var(--spacing-xxl) 0;
    background-color: var(--gray-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-content {
    padding: var(--spacing-lg);
    text-align: center;
}

.category-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
}

.category-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.category-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.category-btn {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.category-btn:hover {
    border-bottom-color: var(--gold);
}

/* ========================
   PRODUCTS
   ======================== */

.best-sellers {
    padding: var(--spacing-xxl) 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--gold);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    z-index: 1;
}

.product-badge.sale {
    background-color: var(--danger);
    color: var(--white);
}

.product-badge.new {
    background-color: var(--success);
    color: var(--white);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-actions {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.product-info {
    padding: var(--spacing-md);
}

.product-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.product-rating i {
    color: var(--gold);
}

.product-rating span {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

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

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.price-old {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.unit {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.add-to-cart-btn {
    width: 40px;
    height: 40px;
    background-color: var(--gold);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background-color: var(--gold-dark);
    transform: scale(1.1);
}

/* ========================
   TRUST SECTION
   ======================== */

.trust-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--beige);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.trust-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.trust-icon {
    width: 80px;
    height: 80px;
    background-color: var(--gold);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
}

.trust-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.trust-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================
   PAGE HEADER
   ======================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    color: var(--gold);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--gold-light);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb i {
    font-size: 0.75rem;
    color: var(--gold-light);
}

.breadcrumb span {
    color: var(--white);
}

/* ========================
   FOOTER
   ======================== */

.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-md);
}

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

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    font-size: 0.875rem;
    color: var(--gold-light);
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--gold);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--spacing-md);
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 5px;
}

.footer-contact li {
    color: var(--gray);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--gold);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
    color: var(--gray);
}

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-xl);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--spacing-md);
    }
}