/* ========================================
   GLOBAL RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent);
    color: white;
}

/* ========================================
   CSS VARIABLES (COLOR PALETTE)
   ======================================== */
:root {
    --primary: #2C3E50;
    --secondary: #8B7355;
    --accent: #C19A6B;
    --light: #F8F6F3;
    --dark: #1a1a1a;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.header-logo {
    height: 70px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
    transition: all 0.3s ease;
}

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

/* Mobile logo */
@media (max-width: 768px) {
    .header-logo {
        height: 55px;
        max-width: 180px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .header-logo {
        height: 50px;
        max-width: 150px;
    }
}

.nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 100%;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #2C3E50 0%, #3d5a80 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.page-hero {
    background: linear-gradient(135deg, #2C3E50 0%, #3d5a80 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    background: var(--secondary);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 115, 85, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

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

.btn-primary-sm {
    background: var(--secondary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    transition: .3s;
}

.btn-primary-sm:hover {
    opacity: .9;
}

.btn-outline-white {
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 14px;
}

/* ========================================
   CARDS
   ======================================== */
.premium-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.08);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.category-card {
    position: relative;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    transition: all 0.4s ease;
}

.category-card:hover .category-overlay,
a.category-card:hover .category-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(44,62,80,0.9) 100%);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
    z-index: 10;
    transition: all 0.4s ease;
}

.category-card:hover .category-content,
a.category-card:hover .category-content {
    padding-bottom: 2.5rem;
}

/* Link holatida hover effekti */
a.category-card {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

a.category-card:hover {
    transform: translateY(-4px);
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

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

.product-image {
    height: 320px;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .4s ease;
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ========================================
   PRICING & CURRENCY
   ======================================== */
.price-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.currency-toggle {
    display: inline-flex;
    background: var(--light);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.currency-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #666;
}

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

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1) 0%, transparent 100%);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

/* ========================================
   FEATURES
   ======================================== */
.feature-card {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light) 0%, #fff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* ========================================
   TIMELINE (About Page)
   ======================================== */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--secondary) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--secondary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-year {
    position: absolute;
    top: -10px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.timeline-item:nth-child(odd) .timeline-year {
    right: 100%;
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-year {
    left: 100%;
    margin-left: 2rem;
}

/* ========================================
   VALUE CARDS (About Page)
   ======================================== */
.value-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}

.value-card:hover::before {
    height: 100%;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: var(--secondary);
    transform: scale(1.1);
}

.value-card:hover .value-icon i {
    color: white !important;
}

/* ========================================
   TEAM CARDS (About Page)
   ======================================== */
.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
} */

.team-image {
    height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* .team-card:hover .team-overlay {
    opacity: 1;
} */

.social-link {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-4px);
}

/* ========================================
   MISSION & VISION (About Page)
   ======================================== */
.mission-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

/* ========================================
   CERTIFICATES (About Page)
   ======================================== */
.certificate-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
}

.certificate-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   MARKET FILTER (Market Page)
   ======================================== */
.market-filter {
    display: flex;
    justify-content: center;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: #2C3E50;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all .35s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.category-pill i {
    font-size: 16px;
    color: #8B7355;
    transition: color .3s ease;
}

.category-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #C19A6B;
}

.category-pill.active {
    background: linear-gradient(135deg, #8B7355, #C19A6B);
    color: white;
    border-color: transparent;
    box-shadow: 0 16px 40px rgba(193, 154, 107, 0.45);
}

.category-pill.active i {
    color: white;
}

/* Category Dropdown Styles */
.category-dropdown-wrapper {
    position: relative;
}

.category-dropdown-wrapper.has-dropdown .category-pill {
    position: relative;
}

.category-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    max-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.category-dropdown-wrapper.active .category-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.category-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #2C3E50;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.category-dropdown .dropdown-item:last-child {
    margin-bottom: 0;
}

.category-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #8B7355;
    transform: translateX(4px);
}

.category-dropdown .dropdown-item.active {
    background: linear-gradient(135deg, #8B7355, #C19A6B);
    color: white;
}

.category-dropdown .dropdown-item.active i {
    color: white;
}

.category-dropdown .dropdown-item i {
    font-size: 12px;
    color: #8B7355;
    transition: color 0.2s ease;
}

.category-dropdown .dropdown-item:hover i {
    color: #8B7355;
}

.category-dropdown .dropdown-item.active i {
    color: white;
}

.category-pill .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 10px !important;
}

.category-dropdown-wrapper.active .category-pill .fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .category-dropdown {
        min-width: 200px;
        left: auto;
        right: 0;
    }
}

/* ========================================
   CONTACT FORM (Contact Page)
   ======================================== */
.contact-section {
    background-color: #f9fafb;
}

.contact-form input,
.contact-form textarea {
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 3px #fbbf24;
}

button {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* button:hover {
    background-color: #d97706;
} */

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #1a1a1a;
    color: #999;
}

.footer-heading {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-link {
    color: #999;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 8px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-4px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ========================================
   UTILITIES
   ======================================== */
.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 3rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }

    .category-card {
        height: 300px;
    }

    .product-image {
        height: 240px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-year {
        position: static !important;
        display: inline-block;
        margin: 0 0 1rem 0 !important;
    }
}

@media (max-width: 640px) {
    .category-pill {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination li {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: white;
    color: var(--primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination .page-link:hover {
    background: var(--light);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--secondary);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(193, 154, 107, 0.4);
}

.pagination .page-item.disabled .page-link {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

.pagination .page-link span {
    display: inline-block;
}

/* Pagination info (optional) */
.pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 14px;
}

.pagination-info strong {
    color: var(--primary);
}

@media (max-width: 640px) {
    .pagination {
        gap: 4px;
    }

    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 14px;
    }
}

/* ========================================
   PRODUCT MODAL
   ======================================== */
#productModal {
    z-index: 9999;
}

.product-modal-gallery {
    position: relative;
}

.product-modal-gallery img {
    transition: opacity 0.3s ease;
}

#modalThumbnails img {
    transition: all 0.3s ease;
}

#modalThumbnails img:hover {
    transform: scale(1.05);
}

#modalPrevBtn,
#modalNextBtn {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#modalPrevBtn:hover,
#modalNextBtn:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    #productModal .grid {
        grid-template-columns: 1fr;
    }

    #productModal .max-h-\[90vh\] {
        max-height: none;
    }
}
