.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--background-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--paper-color);
    color: var(--secondary-color);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.search-bar-container {
    background: var(--paper-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-bar-container form {
    display: flex;
    gap: 10px;
}

.search-bar-container input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--background-color);
    color: var(--text-primary);
}

.search-bar-container button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* public/style.css */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #b88e2f;
    --background-color: #ffffff;
    --paper-color: #f8f8f8;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #eeeeee;
    --hero-overlay: rgba(0, 0, 0, 0.4);
    --badge-color: #b88e2f;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

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

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.left-nav, .right-nav {
    flex: 1;
    display: flex;
    align-items: center;
}

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

.logo-container {
    flex: 0 0 auto;
}

.main-logo {
    height: 60px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 30px;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-link {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.badge-container {
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--badge-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #666);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
    color: var(--primary-color, #1a1a1a);
}

.lang-btn.active {
    color: var(--primary-color, #1a1a1a);
    background: rgba(0, 0, 0, 0.06);
}

/* Hero Section */
.hero-section {
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #a07a28;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

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

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.overline {
    display: block;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-title.serif {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-item {
    text-align: center;
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.category-item:hover {
    background-color: var(--paper-color);
    transform: translateY(-8px);
}

.category-icon-wrapper {
    width: 100px;
    height: 100px;
    background-color: var(--paper-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.category-icon-wrapper i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
}

.category-item:hover .category-icon-wrapper {
    background-color: var(--secondary-color);
    color: white;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.category-link {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Products */
.recommended-section {
    background-color: #f4f1ee;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: transparent;
    text-align: center;
}

.product-image-container {
    position: relative;
    background-color: white;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-image-container:hover .product-actions {
    opacity: 1;
}

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

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

.product-name {
    font-weight: 400;
    margin-bottom: 5px;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-cart {
    background-color: rgba(184, 142, 47, 0.1);
    border: none;
    border-radius: 0;
    width: 100%;
}

.product-card:hover .btn-cart {
    background-color: var(--secondary-color);
    color: white;
}

/* Story Section */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image-wrapper {
    position: relative;
}

.story-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.story-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--secondary-color);
    color: white;
    padding: 30px;
    border-radius: 4px;
    text-align: center;
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
}

.badge-text {
    font-size: 0.9rem;
}

.story-text {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 40px;
}

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

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Footer */
.main-footer {
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.footer-title {
    font-weight: 800;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom a:hover {
    color: var(--secondary-color, #1a1a1a);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    .left-nav, .right-nav .nav-link {
        display: none;
    }
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* RTL support */
[dir="rtl"] .header-container { flex-direction: row-reverse; }
[dir="rtl"] .left-nav { flex-direction: row-reverse; }
[dir="rtl"] .right-nav { flex-direction: row-reverse; }
[dir="rtl"] .nav-dropdown .dropdown-content { right: auto; left: 0; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .product-card { text-align: right; }
[dir="rtl"] .category-item { text-align: center; }
[dir="rtl"] .category-icon-wrapper { margin-inline: auto; margin-bottom: 20px; }
[dir="rtl"] .category-name, [dir="rtl"] .category-link { display: block; text-align: center; }
[dir="rtl"] .cart-table th, [dir="rtl"] .cart-table td { text-align: right; }
[dir="rtl"] .cart-total-section { justify-content: flex-start; }
[dir="rtl"] .summary-row { flex-direction: row-reverse; }
[dir="rtl"] .lang-switcher { flex-direction: row-reverse; }
