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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #666;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #671a24 0%, #8B2635 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(103, 26, 36, 0.3);
}

.btn-outline {
    background: transparent;
    color: #671a24;
    border: 2px solid #671a24;
}

.btn-outline:hover {
    background: #671a24;
    color: white;
}

.btn-secondary {
    background: #FF8C42;
    color: white;
}

.btn-secondary:hover {
    background: #e67e3a;
    transform: translateY(-2px);
}

.btn-dark {
    background: #333;
    color: white;
}

.btn-dark:hover {
    background: #555;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    flex-wrap: nowrap;
}

.nav-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    text-align: center;
    min-height: 60px;
    background-color: transparent;
    width: auto;
    height: auto;
    position: relative;
    flex-shrink: 0;
}

.nav-logo::before,
.nav-logo::after {
    display: none !important;
    content: none !important;
}

.nav-logo * {
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.logo-img {
    max-width: 150px !important;
    height: auto !important;
    transition: all 0.3s ease;
    display: block !important;
    object-fit: contain;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

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

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #671a24;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    margin: 0 1rem;
    white-space: nowrap;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #671a24;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    margin-left: auto;
    margin-right: 0;
}

.nav-actions .btn {
    min-width: 120px;
    min-height: 44px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip;
    line-height: 1.2;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto !important;
    max-height: none !important;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(103, 26, 36, 0.1);
    color: #671a24;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    position: relative;
}

.nav-icon:hover {
    background: rgba(103, 26, 36, 0.2);
    transform: scale(1.1);
}

.nav-icon i {
    font-size: 16px;
    color: #671a24;
}

/* Language Selector */
.language-selector {
    position: fixed;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-selector::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    z-index: 1;
}

.language-selector::after {
    content: '';
    position: absolute;
    top: -9px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #e0e0e0;
    z-index: 0;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    margin: 0 8px;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option .flag {
    font-size: 20px;
}

.language-option .lang-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Ensure proper spacing for nav elements */
.nav-container > * {
    flex-shrink: 0;
}

.nav-container .nav-actions {
    margin-left: auto;
    margin-right: 0;
}

/* Make nav-icon relative for positioning */
.nav-icon {
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #F9ECEC 0%, #FFF5F5 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.highlight {
    color: #671a24;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-weight: 500;
}

.feature-item i {
    color: #671a24;
    font-size: 18px;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #671a24;
}

.hero-badge i {
    color: #FF8C42;
}

/* Search Section */
.search-section {
    padding: 40px 0;
    background: white;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.search-input-group i {
    color: #671a24;
    font-size: 20px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 20px 0;
    font-size: 18px;
}

.search-btn {
    padding: 20px 32px;
    border-radius: 0;
    font-size: 18px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: #333;
    margin-bottom: 1rem;
}

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

/* Categories Section */
.categories {
    padding: 80px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #671a24;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F9ECEC 0%, #FFF5F5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 36px;
    color: #671a24;
}

.category-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.product-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    min-width: 100%;
    min-height: 100%;
}

.product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 20px;
}

.product-image-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.product-image-placeholder span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0.9;
}

.product-image-large {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.product-image-placeholder-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 40px;
}

.product-image-placeholder-large i {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.product-image-placeholder-large span {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0.9;
}

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF8C42;
    margin-bottom: 0.5rem;
}

.product-category {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: #f8f9fa;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #671a24;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 2rem;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #F9ECEC 0%, #FFF5F5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-icon i {
    font-size: 48px;
    color: #671a24;
}

.step-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.step-card p {
    color: #666;
}

/* Markets Section */
.markets {
    padding: 80px 0;
    background: white;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.market-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.market-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.market-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.market-info {
    padding: 1.5rem;
}

.market-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.market-info p {
    color: #666;
    margin-bottom: 1rem;
}

.market-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FF8C42;
    font-weight: 600;
}

/* App Download Section */
.app-download {
    padding: 80px 0;
    background: linear-gradient(135deg, #671a24 0%, #8B2635 100%);
    color: white;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.app-text h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.app-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.app-features {
    margin-bottom: 2rem;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.app-feature i {
    color: #FF8C42;
}

.download-buttons {
    display: flex;
    gap: 1rem;
}

.download-buttons .btn {
    background: #333;
    color: white;
}

.download-buttons .btn:hover {
    background: #555;
}

.app-image {
    text-align: center;
}

.app-img {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-width: 120px;
    height: auto;
}

.footer-logo .logo-text {
    color: white;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF8C42;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: #FF8C42;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #FF8C42;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #FF8C42;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #671a24;
}

.auth-footer {
    text-align: center;
    color: #666;
}

.auth-footer a {
    color: #671a24;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        margin: 0 0.5rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
        margin-right: 0;
    }
    
    .nav-actions .btn {
        min-width: 100px;
        min-height: 40px;
        padding: 10px 16px;
        font-size: 14px;
        line-height: 1.2;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .nav-icon {
        margin-left: 0.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu, .nav-actions {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input-group {
        padding: 20px;
    }
    
    .search-btn {
        border-radius: 0 0 16px 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .markets-grid {
        grid-template-columns: 1fr;
    }
    
    .app-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
}
