/* Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

:root {
    --font-serif: 'Playfair Display', serif;
    --font-heading: 'Playfair Display', serif;
    /* Farm Rio uses a similar serif for headings */
    --font-sans: 'Montserrat', sans-serif;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #555555;
    --color-bg-light: #f9f9f9;
    --spacing-container: 40px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    background-color: var(--color-white);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Top Bar */
.top-bar {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 8px 0;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

/* Header */
.main-header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--spacing-container);
    max-width: 1600px;
    margin: 0 auto;
    height: 80px;
}

.logo a {
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 400;
    /* Minimalist */
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    color: #000;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-black);
    transition: width 0.3s ease;
}

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

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid transparent;
    /* Hidden by default or specific style */
    margin-right: 15px;
    cursor: pointer;
}

.search-bar span {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: none;
    /* Often hidden on smaller screens, can show on large */
}

@media (min-width: 1200px) {
    .search-bar span {
        display: block;
    }
}

.icon-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-link ion-icon {
    font-size: 22px;
    color: #000;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Adjust height */
    min-height: 500px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on faces/top */
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.hero-subtitle {
    display: block;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 72px;
    /* Large Serif title */
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

.brand-tag {
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.btn-primary {
    display: inline-block;
    padding: 18px 45px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-shadow: none;
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
}

/* Product Section */
.product-section {
    padding: 80px var(--spacing-container);
    max-width: 1600px;
    margin: 0 auto;
}

.section-container {
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
    color: #000;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    cursor: pointer;
    position: relative;
}

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 4/5;
    /* Keep vertical aspect ratio */
    background-color: #f7f7f7;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.badge {
    font-size: 11px;
    text-transform: uppercase;
    padding: 6px 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.badge.new {
    background-color: #fff;
    color: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge.sale {
    background-color: #d32f2f;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    opacity: 0;
    z-index: 20;
}

.product-card:hover .add-to-cart-btn {
    transform: translateY(0);
    opacity: 1;
}

.product-info {
    text-align: left;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: #000;
}

.product-price {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.price-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}

.sale-price {
    color: #d32f2f;
    font-weight: 600;
}

.view-all-container {
    text-align: center;
    margin-top: 80px;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 50px;
    border: 1px solid #000;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
    background: transparent;
    color: #000;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
}

/* Footer */
.main-footer {
    background-color: #f9f9f9;
    padding: 80px var(--spacing-container) 30px;
    border-top: 1px solid #eaeaea;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    /* Uneven columns like standard footers */
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #ddd;
}

.footer-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-weight: 600;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    font-size: 14px;
    color: #555;
    font-weight: 400;
}

.footer-column ul li a:hover {
    color: #000;
    text-decoration: underline;
}

.newsletter p {
    font-size: 14px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
    max-width: 400px;
}

.newsletter-form input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 10px 0;
    outline: none;
    font-size: 14px;
    color: #000;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form button {
    border: none;
    background: transparent;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    color: #000;
    transition: opacity 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
}

/* Responsive Design */
/* Mobile Header Layout (Farm Rio Clone) */
@media (max-width: 1024px) {
    .header-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        height: auto;
        /* Allow auto height for wrapping search bar */
    }

    /* Order 1: Menu Toggle (Left) */
    .mobile-toggle {
        display: block;
        order: 1;
        font-size: 26px;
        margin-right: 0;
        width: 40px;
        /* Fixed width for alignment */
    }

    /* Order 2: Logo (Center) */
    .logo {
        order: 2;
        flex-grow: 1;
        text-align: center;
        margin: 0;
        /* Reset margins */
    }

    .logo a {
        font-size: 24px;
        letter-spacing: 2px;
    }

    /* Order 3: Right Icons (Bag, Flag) */
    .header-icons {
        order: 3;
        margin: 0;
        gap: 15px;
        width: 40px;
        /* Match toggle width for visual balance if needed, or auto */
        display: flex;
        justify-content: flex-end;
        width: auto;
    }

    /* Adjust Icon Group Visibility */
    .icon-group .icon-link:not(:last-child) {
        display: none;
        /* Hide Person, Heart on tablet/mobile if needed */
    }

    .icon-group .icon-link:last-child {
        display: block;
        /* Show Bag */
    }

    /* Ensure Flag is visible if desired */
    .language-dropdown {
        display: block;
    }

    /* Hide Desktop Search inside icons */
    .header-icons .search-bar {
        display: none;
    }

    /* Order 4: Mobile Search Bar (Bottom) */
    .mobile-search-bar {
        display: flex;
        order: 4;
        width: 100%;
        margin-top: 15px;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
        align-items: center;
        gap: 10px;
        color: #666;
    }

    .mobile-search-bar ion-icon {
        font-size: 20px;
    }

    .mobile-search-bar span {
        font-size: 13px;
    }

    /* Navigation Drawer (Keep existing but ensure z-index) */
    .main-nav {
        /* Initially hidden */
        display: none;
        position: absolute;
        top: 100%;
        /* Below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px 0;
        border-top: 1px solid #eee;
        z-index: 999;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .hero-title {
        font-size: 42px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form {
        margin: 0 auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }
}

/* Hide Mobile Search on Desktop */
@media (min-width: 1025px) {
    .mobile-search-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 10px;
    }

    .header-container {
        height: 60px;
        padding: 10px 20px;
    }

    .hero-image-container {
        height: 70vh;
    }

    .hero-title {
        font-size: 42px;
    }

    .brand-tag {
        font-size: 16px;
    }

    .btn-primary {
        padding: 15px 30px;
        font-size: 12px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .newsletter-form {
        margin: 0 auto;
    }
}

/* --- Product Detail Modal Styles --- */
.product-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 2000;
    overflow-y: auto;
}

.product-modal.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 2010;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.modal-details {
    position: sticky;
    top: 40px;
    align-self: start;
    padding-top: 20px;
}

.modal-breadcrumbs {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-price {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.modal-price .sale {
    color: #d32f2f;
}

.modal-price .original {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
}

.modal-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.modal-actions {
    margin-top: 30px;
}

.size-selector {
    margin-bottom: 25px;
}

.size-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.sizes {
    display: flex;
    gap: 10px;
}

.size-btn {
    border: 1px solid #ddd;
    background: transparent;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover,
.size-btn.selected {
    border-color: #000;
    background-color: #000;
    color: #fff;
}

.add-cart-btn-large {
    width: 100%;
    padding: 18px;
    background-color: #000;
    color: #fff;
    border: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-cart-btn-large:hover {
    background-color: #333;
}

@media (max-width: 900px) {
    .modal-content {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
        /* Full width images on mobile */
    }

    .modal-details {
        position: static;
    }
}

/* --- Category Collection Styles --- */
.category-section {
    padding: 0 var(--spacing-container) 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.category-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 400;
}

.category-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
}

.category-btn:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 800px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 450px;
        margin-bottom: 20px;
    }
}

/* --- Spotlight Section --- */
.spotlight-section {
    padding: 0 var(--spacing-container) 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

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

.spotlight-img-container {
    overflow: hidden;
    margin-bottom: 25px;
}

.spotlight-img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.spotlight-item:hover .spotlight-img {
    transform: scale(1.03);
}

.spotlight-title {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 10px;
}

.spotlight-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.spotlight-btn {
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    font-weight: 500;
    transition: all 0.3s;
}

.spotlight-btn:hover {
    color: #555;
    border-color: #555;
}

/* --- Values/Icons Section --- */
.values-section {
    background-color: #f9f9f9;
    padding: 60px var(--spacing-container);
    margin-bottom: 80px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.value-item ion-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #000;
}

.value-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 10px;
}

.value-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* --- Instagram/Social Feed --- */
.social-section {
    padding: 0 0 80px;
    text-align: center;
}

.social-title {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 40px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.social-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
    }

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

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Lightbox Modal (For Social Images) --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Language Dropdown */
.header-icons {
    position: relative;
    /* Ensure dropdown context */
    align-items: center;
}

.language-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.dropbtn {
    background-color: transparent;
    color: #000;
    padding: 0;
    font-size: 13px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 100px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* High z-index */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #eee;
    padding: 5px 0;
}

.dropdown-content a {
    color: black;
    padding: 8px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
}

.dropdown-content img {
    width: 16px;
    height: auto;
    border-radius: 2px;
}

.language-dropdown:hover .dropdown-content {
    display: block;
}


/* Mobile Menu Styles */
@media (max-width: 1024px) {
    .main-nav {
        /* Initially hidden by display: none above */
        position: absolute;
        top: 80px;
        /* Header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
        z-index: 999;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .main-nav.active {
        display: block !important;
        /* Force display */
        animation: slideDown 0.3s ease-out;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
/* Chat Widget Styles */
.chat-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    font-size: 28px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-widget-btn:hover {
    transform: scale(1.1);
}

.chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-modal-overlay.active {
    display: block;
    opacity: 1;
}

.chat-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: #f4f4f4; /* Light grey bg from image */
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 10001;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 85vh; /* Prevent overflow */
    font-family: var(--font-sans);
}

.chat-modal.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Chat Header */
.chat-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* text-align: center for drag handle? */
}

.chat-header-title {
    font-weight: 700;
    font-size: 16px;
    color: #000;
}

.chat-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Chat Body */
.chat-body {
    padding: 20px;
    overflow-y: auto;
}

.offline-message {
    font-size: 20px; /* Big text */
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.3;
    color: #1a1a1a;
}

/* Action List */
.chat-options-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-option-btn {
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-option-btn:last-child {
    border-bottom: none;
}

.chat-option-btn:hover {
    background: #f9f9f9;
}

.chat-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Track Order Card */
.track-order-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.track-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
}

.track-icon-box {
    width: 36px;
    height: 36px;
    background: #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Message Input Area */
.chat-input-area {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: text;
}

.input-placeholder {
    display: flex;
    flex-direction: column;
}

.input-label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.input-subtext {
    font-size: 13px;
    color: #888;
}

.send-icon {
    font-size: 20px;
    color: #000;
}

/* Mobile Responsive Chat */
@media (max-width: 480px) {
    .chat-modal {
        width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 16px 16px 0 0; /* Bottom sheet style */
        margin: 0;
        transform: translateY(100%);
    }
    
    .chat-modal.active {
        transform: translateY(0);
    }
}
