/* St. Dalfour Cream - Main Styles */

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header Styles */
.header {
    background: #1e3a8a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 5px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #93c5fd;
}

.language-toggle {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.language-toggle:hover {
    background: white;
    color: #1e3a8a;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu.mobile-open {
    display: flex !important;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item a {
    color: #1e3a8a;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.4), rgba(30, 58, 138, 0.1)), url('../assets/hero-section.webp');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: #1e3a8a;
    color: white;
}

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

.btn:hover {
    transform: translateY(-2px);
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
}

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

.product-category {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
    height: 200px;
    cursor: pointer;
}

.product-category:hover {
    transform: translateY(-5px);
}

.product-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
}

.category-name {
    font-size: 1.3rem;
    font-weight: bold;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #1e3a8a;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e3a8a;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: white;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 10px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

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

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Page-specific styles */
.page-header {
    background: #1e3a8a;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.page-content {
    padding: 60px 0;
    min-height: 60vh;
}

/* Products Page */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

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

.product-image {
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    overflow: hidden;
}

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

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.product-price {
    font-size: 1.1rem;
    color: #1e3a8a;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Product Details Page */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-details-image {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

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

.product-details-info h1 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.product-details-price {
    font-size: 1.5rem;
    color: #1e3a8a;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-details-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #666;
}

.product-section {
    margin-bottom: 30px;
}

.product-section h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.product-features {
    list-style: none;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.product-features li:before {
    content: "✓";
    color: #1e3a8a;
    font-weight: bold;
    margin-right: 10px;
}

.product-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tag {
    background: #e3f2fd;
    color: #1e3a8a;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Verify Page */
.verify-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.verify-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.verify-form h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.verify-form p {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.verify-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-box p {
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

.sample-image {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.sample-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.result-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Contact Page */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

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

/* QR Scanner */
.qr-scanner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.qr-scanner-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.qr-scanner-video {
    width: 100%;
    max-width: 400px;
    height: 300px;
    border: 2px solid #1e3a8a;
    border-radius: 10px;
    margin: 20px 0;
}

.qr-scanner-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Verification Modal */
.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.verification-modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.verification-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-modal-close:hover {
    color: #666;
}

.verification-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.verification-icon.success {
    background: #28a745;
}

.verification-icon.error {
    background: #dc3545;
}

.verification-icon.loading {
    background: #007bff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.verification-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.verification-message {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #666;
}

.verification-message.error {
    color: #dc3545;
}

.verification-message.success {
    color: #28a745;
}

.verification-close-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.verification-close-btn:hover {
    background: #c82333;
}

.verification-close-btn.success {
    background: #28a745;
}

.verification-close-btn.success:hover {
    background: #218838;
}

.contact-link {
    color: #1e3a8a;
    text-decoration: underline;
    font-weight: bold;
}

.contact-link:hover {
    color: #0f2557;
}

/* RTL Support */
[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .breadcrumb-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .verify-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-row {
    direction: rtl;
}

[dir="rtl"] .product-features li:before {
    margin-right: 0;
    margin-left: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
        order: 3;
        margin-left: auto;
    }

    .logo {
        order: 1;
    }

    nav {
        order: 2;
        position: static;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e3a8a;
        flex-direction: column !important;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    /* Force column layout for mobile menu in both LTR and RTL */
    [dir="rtl"] .nav-menu {
        flex-direction: column !important;
        text-align: right;
    }

    [dir="rtl"] .nav-menu li {
        margin: 10px 0;
    }

    [dir="rtl"] .nav-menu a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: right;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-menu a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu .language-toggle {
        margin-top: 15px;
        align-self: flex-start;
        background: transparent;
        border: 1px solid white;
        color: white;
        padding: 8px 15px;
        border-radius: 3px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .nav-menu .language-toggle:hover {
        background: white;
        color: #1e3a8a;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .product-details {
        grid-template-columns: 1fr;
    }

    .breadcrumb-list {
        flex-wrap: wrap;
    }

    .verify-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .verify-buttons {
        flex-direction: column;
    }

    [dir="rtl"] .hero-buttons {
        flex-direction: column;
    }

    [dir="rtl"] .verify-buttons {
        flex-direction: column;
    }

    /* RTL hamburger positioning */
    [dir="rtl"] .hamburger {
        order: 3;
        margin-right: auto;
        margin-left: 0;
    }

    [dir="rtl"] .nav-container {
        justify-content: space-between;
    }

    [dir="rtl"] .logo {
        order: 1;
    }
}
