@font-face {
  font-family: "Twemoji Country Flags";
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073, U+E0074, U+E0077, U+E007F;
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.3/dist/TwemojiCountryFlags.woff2") format("woff2");
}

:root {
    /* Color Palette */
    --bg-color: #FAFAFA;
    --text-primary: #1A1A1A;
    --text-secondary: #5F5F5F;
    --accent-color: #2D2D2D;
    --btn-primary-bg: #1A1A1A;
    --btn-primary-text: #FFFFFF;
    --btn-hover-bg: #333333;
    --border-color: #E5E5E5;
    --badge-bg: #EAE3D9;
    --badge-text: #6B5E4C;
    --glass-bg: rgba(250, 250, 250, 0.85);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-pad: 5rem 2rem;
    --border-radius: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

select, option {
    font-family: "Twemoji Country Flags", var(--font-body);
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: var(--border-radius);
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    background-color: var(--btn-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 229, 229, 0.5);
    transition: var(--transition-smooth);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Professional balanced distribution */
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 80px;
}

.logo {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.85rem;
    letter-spacing: -0.1rem;
    color: var(--text-primary);
    z-index: 5;
    white-space: nowrap;
    text-align: center;
    justify-self: center;
}

.nav-links {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    white-space: nowrap;
}

.mobile-only-link {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
}

.action-btn {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.country-selector {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 30px;
    padding: 0 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 36px;
}

.country-selector:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

.country-select-dropdown {
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: "Twemoji Country Flags", var(--font-body);
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    padding: 0;
}

.country-select-dropdown option {
    font-family: "Twemoji Country Flags", var(--font-body);
}

.cart-btn .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Button */
.menu-icon {
    grid-column: 1;
    grid-row: 1;
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1010;
    width: 25px;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero-carousel-track {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%; height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05); /* Optional zoom effect */
}

/* We animate slide images if they are active */
.hero-slide.active .hero-image img {
    animation: zoomOut 10s ease-out forwards;
}

@keyframes zoomOut {
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(250,250,250,0.3), rgba(250,250,250,0.8));
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.4s;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    color: var(--text-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--text-primary);
    color: #fff;
}

.carousel-btn.prev {
    left: 2rem;
}

.carousel-btn.next {
    right: 2rem;
}

.carousel-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 40px;
    height: 4px;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dots .dot.active {
    background: var(--text-primary);
}

/* Products Section */
.products {
    padding: var(--section-pad);
    background-color: #fff;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 3.5rem 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-out forwards;
}

.product-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #F5F5F5;
    aspect-ratio: 4/5;
    margin-bottom: 1.5rem;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-image-wrapper:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.quick-add-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 30px;
    width: 80%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    opacity: 0;
}

.product-image-wrapper:hover .quick-add-btn {
    bottom: 1rem;
    opacity: 1;
}

.quick-add-btn:hover {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-title {
    font-size: 1.125rem;
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.product-card:hover .product-title {
    color: var(--text-secondary);
}

.product-price {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

/* Features Split */
.features-split {
    background-color: var(--bg-color);
}

.split-row {
    display: flex;
    min-height: 80vh;
}

.split-row.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 10%;
    background-color: var(--bg-color);
}

.split-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.split-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 4px;
    width: max-content;
}

.link-arrow span {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.link-arrow:hover span {
    transform: translateX(5px);
}

.split-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.split-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.split-row:hover .split-image img {
    transform: scale(1.03);
}

/* Newsletter Section */
.newsletter {
    padding: var(--section-pad);
    background-color: #EAE3D9;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input:focus {
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--btn-primary-bg);
    color: var(--bg-color);
    padding: 5rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-col p {
    color: #bbb;
    max-width: 300px;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #bbb;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-links { margin-top: 1.5rem; display: flex; gap: 15px; }
.social-links a { color: white; border: 1px solid #444; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s ease; }
.social-links a:hover { background: var(--accent-color); border-color: var(--accent-color); color: white; transform: translateY(-2px); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: #888;
    font-size: 0.875rem;
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 2000;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0; right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-secondary);
}

.cart-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    display: block; /* Overriding center/center for proper scroll */
}

#cart-items-container {
    width: 100%;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 15px;
    transition: opacity 0.3s ease;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
}

.cart-item-info {
    flex: 1;
    text-align: left;
}

.cart-item-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-primary);
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.remove-item-btn {
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.empty-cart-msg {
    color: var(--text-secondary);
    margin: 2rem 0;
    text-align: center;
}

/* 📱 Responsive Design / Mobile Adaptability */
@media (max-width: 991px) {
    .split-row, .split-row.reverse {
        flex-direction: column;
    }
    
    .split-image {
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 1100px) {
    .menu-icon {
        display: flex;
        flex: 0 0 40px; /* Don't grow too much */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: left 0.4s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-actions {
        display: flex;
        gap: 1.25rem;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }

    .mobile-only-link {
        display: flex !important;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid #eee;
    }
    
    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    /* Hero Responsive */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .section-container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem 1rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Catalog Grid 2 columns on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        padding: 80px 1.5rem;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: move;
    transition: background-color 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #21b858;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: whatsappPulse 2s infinite;
}
@media (max-width: 480px) {
    .nav-container {
        grid-template-columns: 40px 1fr auto; /* Adjust columns for mobile */
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.4rem;
        justify-self: center;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    /* Hide account button in header on small screens to save space */
    .nav-actions .action-btn:not(.cart-btn) {
        display: none;
    }

    .country-selector {
        padding: 0 6px;
        max-width: 85px;
        overflow: hidden;
    }

    .country-select-dropdown {
        font-size: 0.75rem;
    }

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

/* Specific fix for extremely narrow screens */
@media (max-width: 350px) {
    .logo {
        font-size: 1.25rem;
    }
    .nav-container {
        gap: 0.25rem;
    }
    .nav-actions {
        gap: 0.5rem;
    }
    .country-selector {
        max-width: 45px; /* Only flag visible */
    }
}

/* Direct Checkout Buttons */
.checkout-direct-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
    filter: brightness(1.05);
}

.checkout-direct-btn svg {
    transition: transform 0.3s ease;
}

.checkout-direct-btn:hover svg {
    transform: scale(1.1);
}
