/* ===================================
   DORA CHICKEN - ENHANCED STYLES
   Optimized for Performance & Mobile
   =================================== */

/* Performance: Import base styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Enhanced CSS Variables */
:root {
    --burgundy: #4f0506;
    --burgundy-dark: #3a0404;
    --yellow: #ffde59;
    --yellow-light: #ffd333;
    --off-white: #f4f4f4;
    --green: #0f261b;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--burgundy);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--burgundy);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

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

.logo img {
    height: 50px;
    transition: var(--transition);
    opacity: 1 !important; /* Always visible */
}

.navbar.scrolled .logo img {
    height: 40px;
}

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

.nav-link {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--yellow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    color: var(--yellow);
    font-size: 18px;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icon:hover {
    color: var(--yellow);
    color: var(--off-white);
    transform: translateY(-3px);
    background: rgba(255, 222, 89, 0.1);
}

/* Nav Store Badges (compact app buttons in navbar) */
.nav-store-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0 4px;
}

.nav-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid var(--yellow);
    border-radius: 8px;
    padding: 5px 10px;
    color: var(--yellow);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.nav-store-badge i {
    font-size: 16px;
}

.nav-store-badge span {
    font-family: 'Montserrat', sans-serif;
}

.nav-store-badge:hover {
    background: var(--yellow);
    color: var(--burgundy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 222, 89, 0.3);
}

.language-selector {
    background: var(--yellow);
    border-radius: 5px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--burgundy);
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--yellow);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: var(--burgundy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 60px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.chicken-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
}

.chicken-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-title {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 300;
    color: var(--yellow);
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--off-white);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-description {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--off-white);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-images {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.chicken-image {
    position: absolute;
    width: clamp(300px, 40vw, 550px);
}

.left-chicken {
    left: -15%;
    top: 20%;
    transform: translateY(-50%);
}

.right-chicken {
    right: -15%;
    top: 20%;
    transform: translateY(-50%) scaleX(-1);
}

.chicken-image img {
    width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.btn-primary {
    background: var(--yellow);
    color: var(--burgundy);
    box-shadow: 0 4px 15px rgba(255, 222, 89, 0.3);
}

.btn-primary:hover {
    background: var(--yellow-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 222, 89, 0.5);
}

.btn-secondary {
    background: var(--yellow);
    color: var(--burgundy);
    box-shadow: 0 4px 15px rgba(255, 222, 89, 0.3);
}

.btn-secondary:hover {
    background: var(--yellow-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 222, 89, 0.5);
}

/* Compact Hero */
.hero.hero-compact {
    min-height: 70vh;
    padding: 100px 20px 50px;
}

/* App Store Badges */
.app-store-badges {
    margin-top: 30px;
    text-align: center;
}

.app-badges-label {
    display: block;
    color: var(--off-white);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.badges-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--yellow);
    border-radius: 12px;
    padding: 10px 22px;
    color: var(--off-white);
    text-decoration: none;
    transition: var(--transition);
}

.store-badge:hover {
    background: var(--yellow);
    color: var(--burgundy);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 222, 89, 0.4);
}

.store-badge i {
    font-size: 28px;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

html[dir="rtl"] .store-badge-text {
    text-align: right;
}

.store-badge-small {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.85;
}

.store-badge-big {
    font-size: 18px;
    font-weight: 700;
}

/* Products Catalog Section */
.products-catalog {
    background: var(--off-white);
    padding: 80px 0 100px;
}

/* Category Filter */
.category-filter {
    text-align: center;
    margin-bottom: 50px;
}

.filter-heading {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 25px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.3px;
}

.category-btn:hover {
    background: var(--burgundy);
    color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-btn.active {
    background: var(--burgundy);
    color: var(--yellow);
    border-color: var(--burgundy);
    box-shadow: var(--shadow-md);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-grid-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.product-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-grid-card.hidden {
    display: none;
}

.product-grid-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

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

.product-grid-info {
    padding: 20px;
}

.product-category-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--burgundy);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.product-grid-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--burgundy);
    margin: 0 0 8px;
    line-height: 1.3;
}

.product-grid-desc {
    font-size: 14px;
    color: var(--burgundy);
    opacity: 0.7;
    line-height: 1.6;
    margin: 0;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.section-title.light {
    color: var(--off-white);
}

.section-title.dark {
    color: var(--burgundy);
}

.section-description {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.8;
    color: var(--burgundy);
    max-width: 1000px;
    margin: 0 auto 20px;
}

.products-showcase .btn {
    margin: 40px 0 60px;
}

.products-slider {
    position: relative;
    margin-top: 60px;
    padding: 0 60px;
}

.slider-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
    padding: 20px 0;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

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

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

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

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--burgundy);
    padding: 20px 20px 10px;
    margin: 0;
}

.product-description {
    font-size: 14px;
    color: var(--burgundy);
    opacity: 0.7;
    padding: 0 20px 20px;
    margin: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--yellow);
    border: none;
    color: var(--burgundy);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background: var(--yellow-light);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Product Details */
.product-details {
    background: var(--burgundy);
    padding: 100px 0;
}

.details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.details-content {
    color: var(--off-white);
}

.detail-item {
    margin-bottom: 50px;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin-bottom: 20px;
    border-radius: 2px;
}

.detail-item h2 {
    font-size: clamp(32px, 3.5vw, 42px);
    font-weight: 500;
    color: var(--yellow);
    margin-bottom: 20px;
    line-height: 1.2;
}

.detail-item p {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.6;
    margin-bottom: 15px;
}

.details-image {
    position: relative;
}

.details-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.quality-badge-large {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
}

.quality-badge-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Location Section */
.location-section {
    background: var(--off-white);
    padding: 100px 0;
}

.map-container {
    position: relative;
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map {
    width: 100%;
    height: 500px;
    position: relative;
}

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

.map-pin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--burgundy);
    border: 3px solid var(--yellow);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.map-pin i {
    transform: rotate(45deg);
    color: var(--yellow);
    font-size: 20px;
}

.map-pin:hover {
    transform: rotate(-45deg) scale(1.2);
}

.map-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
}

/* Contact Section */
.contact-section {
    background: var(--burgundy);
    padding: 80px 0;
    text-align: center;
}

.contact-info {
    margin-top: 40px;
}

.contact-info p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--off-white);
    margin-bottom: 15px;
}

.email-link {
    color: var(--yellow);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.email-link:hover {
    color: var(--yellow-light);
}

/* Footer */
.footer {
    background: var(--burgundy-dark);
    padding: 30px 0;
    color: var(--off-white);
}

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

.copyright {
    font-size: 14px;
}

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

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    color: var(--off-white);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

.separator {
    color: var(--off-white);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--yellow);
    color: var(--burgundy);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top:hover {
    background: var(--burgundy);
    color: var(--yellow);
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-store-badge span {
        display: none;
    }

    .nav-store-badge {
        padding: 6px 8px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .nav-store-badges {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--burgundy);
        width: 100%;
        padding: 40px 20px;
        transition: left 0.3s ease;
        gap: 20px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .chicken-image {
        width: 250px;
    }
    
    .left-chicken {
        left: -80px;
    }
    
    .right-chicken {
        right: -80px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 40px;
        min-height: 80vh;
    }

    .hero.hero-compact {
        min-height: 60vh;
        padding: 90px 20px 40px;
    }
    
    .chicken-image {
        display: none;
    }

    .store-badge {
        padding: 8px 16px;
    }

    .store-badge i {
        font-size: 22px;
    }

    .store-badge-big {
        font-size: 15px;
    }

    .products-catalog {
        padding: 50px 0 70px;
    }

    .category-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .product-grid-image {
        height: 200px;
        padding: 15px;
    }
    
    .map {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .badges-row {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }

    .filter-buttons {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Category Filter Animation */
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CRITICAL FIX: Make all images visible immediately */
img {
    opacity: 1 !important;
}

.chicken-icon img,
.chicken-icon-small img,
.quality-badge img,
.quality-badge-large img,
.logo img {
    opacity: 1 !important;
}
