/* ================= COMPLETE STYLE.CSS ================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

:root {
    /* Modern Color Palette */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #eef2ff;
    --secondary: #7209b7;
    --secondary-light: #f3e8ff;
    --accent: #f72585;
    --accent-light: #ffe4ec;
    --light: #ffffff;
    --dark: #1a1d2b;
    --dark-light: #2d3347;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --light-gray: #e9ecef;
    --success: #00b894;
    --success-light: #d1f7f0;
    --danger: #ff4757;
    --danger-light: #ffeaea;
    --warning: #ff9f43;
    --warning-light: #fff4e6;
    --info: #2e86de;
    
    /* Design System */
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
    
    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-xxxl: 64px;
}

body {
    background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

/* Selection Style */
::selection {
    background-color: var(--primary);
    color: white;
}

/* ================= BASE LAYOUT ================= */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= NAVIGATION ================= */
.navbar {
    background-color: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.8rem;
    transition: all var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
    color: var(--primary-dark);
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
    color: var(--primary);
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 20px;
    width: 40%;
    min-width: 300px;
    border: 2px solid var(--light-gray);
    transition: all var(--transition);
    position: relative;
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-container i {
    color: var(--gray);
    margin-right: 10px;
    font-size: 1.1rem;
}

.search-container input {
    border: none;
    background: transparent;
    padding: 8px 0;
    width: 100%;
    font-size: 1rem;
    outline: none;
    color: var(--dark);
}

.search-container button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}

.search-container button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    transition: all var(--transition);
    padding: 8px;
    border-radius: var(--border-radius-sm);
}

.nav-link i {
    font-size: 1.3rem;
    margin-bottom: 5px;
    transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.nav-link:hover i, .nav-link.active i {
    transform: scale(1.1);
}

.admin-link {
    color: var(--accent);
}

.admin-link:hover {
    color: var(--accent);
    background: var(--accent-light);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    background: none;
    border: none;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* ================= HERO SECTION ================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--border-radius-xl);
    transform: rotate(3deg);
    opacity: 0.1;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.hero-image:hover img {
    transform: translateY(-10px) rotate(1deg);
}

/* ================= CATEGORIES SECTION ================= */
.categories {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-xl);
    margin-top: 40px;
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    width: 40px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

/* Category Navigation */
.category-navigation {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn.hidden {
    display: none;
}

.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--light-gray);
}

.nav-btn.disabled:hover {
    background: var(--light-gray);
    color: var(--primary);
    border-color: var(--light-gray);
    transform: none;
}

/* Categories Wrapper */
.categories-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 5px;
}

.category-list {
    display: flex;
    gap: 20px;
    padding: 10px;
    transition: transform 0.3s ease;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

/* Category Cards */
.category-card {
    flex: 0 0 auto;
    width: 150px;
    height: 160px;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    border: 3px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px 4px 0 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px);
}

.category-card.active::before {
    opacity: 1;
    background: white;
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: all var(--transition);
}

.category-card:hover i {
    transform: scale(1.2);
}

.category-card.active i {
    color: white;
    transform: scale(1.2);
}

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    transition: all var(--transition);
}

.category-card.active h3 {
    color: white;
    font-weight: 700;
}

/* Category-specific colors */
.category-card[data-category="all"] i { color: #6c757d; }
.category-card[data-category="gift"] i { color: #f72585; }
.category-card[data-category="vehicle"] i { color: #4361ee; }
.category-card[data-category="mobile"] i { color: #7209b7; }
.category-card[data-category="fashion"] i { color: #f8961e; }
.category-card[data-category="school"] i { color: #4cc9f0; }
.category-card[data-category="stores"] i { color: #00b894; }
.category-card[data-category="kids"] i { color: #ff7979; }
.category-card[data-category="toy"] i { color: #e056fd; }
.category-card[data-category="electronics"] i { color: #3742fa; }
.category-card[data-category="home"] i { color: #2ecc71; }
.category-card[data-category="sports"] i { color: #ff6b6b; }
.category-card[data-catagery="kitchen"] i { color: #ff6b6b; }
.category-card[data-category="other"] i { color: #95afc0; }

/* ================= ITEMS SECTION ================= */
.items-section {
    padding: 60px 5% 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.items-count {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

/* Filter Container */
.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    gap: 20px;
    flex-wrap: wrap;
}

#sortSelect {
    padding: 14px 25px;
    border-radius: var(--border-radius);
    border: 2px solid var(--light-gray);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    background: white;
    color: var(--dark);
    font-weight: 500;
    min-width: 200px;
    transition: all var(--transition);
}

#sortSelect:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.clear-btn {
    background: var(--light-gray);
    color: var(--dark);
    border: none;
    padding: 14px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-btn:hover {
    background: #d8d8d8;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Items Container */
.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Item Cards */
.item-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.item-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.item-card:hover::before {
    opacity: 1;
}

.item-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.item-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.overlay-category {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px);
}

.item-name {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
}

.item-description {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.item-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-price i {
    font-size: 1.3rem;
}

.item-date {
    font-size: 0.85rem;
    color: var(--gray-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-date i {
    font-size: 1rem;
}

/* Order Now Button */
.order-now-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    width: 100%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.order-now-btn:hover {
    background: linear-gradient(135deg, #1da851 0%, #0d7c6e 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.order-now-btn:active {
    transform: translateY(-1px);
}

.order-now-btn i {
    font-size: 1.3rem;
}

/* Loading Spinner */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--gray);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--primary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 25px;
    opacity: 0.8;
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.empty-state p {
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ================= SEARCH SUGGESTIONS ================= */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border-top: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    transition: all var(--transition-fast);
    font-size: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    padding-left: 25px;
}

.suggestion-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.suggestion-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ================= WHATSAPP POPUP ================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(5px);
}

.whatsapp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    display: none;
    animation: popupFadeIn 0.3s ease forwards;
    border: 2px solid var(--primary);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-content {
    padding: 30px;
}

.popup-item-info {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #25D366;
}

.popup-item-info h4 {
    margin: 0 0 15px 0;
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 600;
}

.popup-item-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.popup-category, .popup-price {
    background: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.popup-category {
    color: #25D366;
    border: 2px solid #25D366;
}

.popup-price {
    color: #e44d26;
    border: 2px solid #e44d26;
}

.popup-description {
    margin: 15px 0 0 0;
    color: var(--dark-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* WhatsApp Options */
.whatsapp-options {
    margin-bottom: 30px;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.option-header i {
    color: #25D366;
    font-size: 1.5rem;
}

.option-header h4 {
    margin: 0;
    color: var(--dark);
    font-size: 1.1rem;
}

.number-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.number-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    background: white;
}

.number-option:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
    transform: translateY(-2px);
}

.number-option.selected {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.option-radio {
    width: 28px;
    height: 28px;
    border: 3px solid var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.number-option.selected .option-radio {
    border-color: #25D366;
}

.radio-circle {
    width: 14px;
    height: 14px;
    background: #25D366;
    border-radius: 50%;
    display: none;
}

.number-option.selected .radio-circle {
    display: block;
}

.option-info {
    flex: 1;
}

.option-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    font-size: 1rem;
}

.option-number {
    color: #25D366;
    font-weight: 500;
    font-size: 1.1rem;
    font-family: monospace;
}

/* Customer Details */
.customer-details {
    margin-bottom: 30px;
}

.customer-details .form-group {
    margin-bottom: 25px;
}

.customer-details label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.customer-details label i {
    color: #25D366;
    font-size: 1.1rem;
}

.customer-details input,
.customer-details textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition);
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background: white;
}

.customer-details input:focus,
.customer-details textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.customer-details textarea {
    min-height: 100px;
    resize: vertical;
}

/* Popup Actions */
.popup-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-cancel, .btn-send-whatsapp {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-cancel {
    background: var(--light-gray);
    color: var(--gray);
    border: 2px solid var(--light-gray);
}

.btn-cancel:hover {
    background: #d8d8d8;
    border-color: #d8d8d8;
    transform: translateY(-2px);
}

.btn-send-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.btn-send-whatsapp:hover {
    background: linear-gradient(135deg, #1da851 0%, #0d7c6e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-send-whatsapp:active {
    transform: translateY(0);
}

/* Order Success Message */
.order-success-message {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid #25D366;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 450px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.order-success-message.show {
    transform: translateX(0);
}

.order-success-message i {
    color: #25D366;
    font-size: 2rem;
    margin-top: 2px;
}

.order-success-message h4 {
    margin: 0 0 8px 0;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.order-success-message p {
    margin: 0;
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.5;
}




/* ================= WHATSAPP POPUP STYLES ================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
}

.whatsapp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.whatsapp-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Popup Header */
.popup-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content i {
    font-size: 1.8rem;
}

.header-content h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Popup Content */
.popup-content {
    padding: 0;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

/* Image Section */
.popup-image-section {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-item-image {
    width: 170%;
    height: 170%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    }

.popup-item-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.image-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #25D366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #6c757d;
    height: 100%;
}

.image-placeholder i {
    font-size: 4rem;
    opacity: 0.3;
}

.image-placeholder span {
    font-size: 1rem;
    font-weight: 500;
}

/* Item Details */
.popup-item-details {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.popup-item-details h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.detail-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.detail-item i {
    color: #25D366;
    width: 16px;
}

.detail-item .label {
    color: #666;
    font-weight: 500;
}

.detail-item .value {
    color: #333;
    font-weight: 600;
}

.detail-item.price .value {
    color: #e74c3c;
    font-size: 1.1rem;
}

.description-section {
    margin-top: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.section-title i {
    color: #25D366;
}

.section-title span {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.item-description {
    color: #555;
    line-height: 1.6;
    margin: 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Customer Form */
.customer-form {
    padding: 25px;
    background: #f8f9fa;
}

.form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-title i {
    color: #25D366;
    font-size: 1.2rem;
}

.form-title h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 20px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #666;
    font-size: 1rem;
    z-index: 1;
}

.input-with-icon input,
.input-with-icon textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.input-with-icon input.valid {
    border-color: #2ecc71;
}

.input-with-icon input.invalid {
    border-color: #e74c3c;
}

.input-with-icon textarea {
    min-height: 80px;
    resize: vertical;
}

.input-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
    margin-left: 45px;
}

/* Validation Error */
.validation-error {
    background: #ffeaea;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

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

.validation-error i {
    color: #e74c3c;
}

.validation-error span {
    color: #c0392b;
    font-weight: 500;
}

/* Action Buttons */
.popup-actions {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

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

.btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* WhatsApp Direct Link */
.whatsapp-direct {
    padding: 15px 20px;
    background: #f0f7ff;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.direct-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.direct-link:hover {
    background: rgba(37, 211, 102, 0.1);
    transform: translateY(-2px);
}

/* Success Message */
.order-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 5px solid #25D366;
    text-align: center;
}

.order-success-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.success-content h4 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 1.3rem;
}

.success-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.success-icon i {
    font-size: 3rem;
    color: #25D366;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-tips {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.tip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.9rem;
    justify-content: center;
}

.tip:last-child {
    margin-bottom: 0;
}

.tip i {
    color: #25D366;
}

.btn-close-success {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-close-success:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-popup {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-image-section {
        height: 200px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .btn-secondary, .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .whatsapp-popup {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .popup-header {
        padding: 15px;
    }
    
    .popup-content {
        max-height: calc(100vh - 200px);
    }
    
    .popup-item-details,
    .customer-form {
        padding: 20px;
    }
}







/* ================= FOOTER ================= */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: white;
    padding: 80px 5% 40px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto 50px;
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.footer-section h3 i {
    color: var(--primary);
    font-size: 1.8rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1rem;
}

.footer-section a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all var(--transition);
    padding: 8px 0;
    border-radius: var(--border-radius-sm);
}

.footer-section a:hover {
    color: white;
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    padding-left: 15px;
}

.footer-section a i {
    width: 20px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    position: relative;
}

.footer-bottom::before {
    content: '✨';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ================= RESPONSIVE STYLES ================= */

/* Tablet (768px to 1024px) */
@media (max-width: 1024px) {
    .nav-container, .hero, .categories, .items-section, .footer-content {
        padding-left: 4%;
        padding-right: 4%;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 4%;
        gap: 40px;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-image {
        justify-content: center;
    }
    
    .hero-image img {
        max-width: 500px;
    }
    
    .category-card {
        width: 140px;
        height: 150px;
    }
    
    .items-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    /* Navigation for Mobile */
    .nav-container {
        flex-wrap: wrap;
        padding: 15px 4%;
        gap: 15px;
    }
    
    .logo {
        font-size: 1.5rem;
        order: 1;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        min-width: auto;
        margin-top: 0;
        border-radius: var(--border-radius);
    }
    
    .search-container button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--light-gray);
        z-index: 999;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        padding: 15px;
        font-size: 1rem;
        border-radius: var(--border-radius-sm);
    }
    
    .nav-link i {
        margin-right: 15px;
        margin-bottom: 0;
        font-size: 1.3rem;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 2;
        margin-left: auto;
    }
    
    /* Hero Section for Mobile */
    .hero {
        padding: 40px 4%;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-image img {
        max-width: 100%;
    }
    
    /* Categories for Mobile */
    .categories {
        padding: 40px 4%;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-navigation {
        align-self: flex-end;
    }
    
    .category-card {
        width: 120px;
        height: 130px;
        padding: 20px 15px;
    }
    
    .category-card i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .category-card h3 {
        font-size: 0.85rem;
    }
    
    /* Items Section for Mobile */
    .items-section {
        padding: 40px 4% 60px;
    }
    
    .items-count {
        padding: 8px 20px;
        font-size: 1rem;
    }
    
    .filter-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 20px;
    }
    
    #sortSelect, .clear-btn {
        width: 100%;
        text-align: center;
    }
    
    .items-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .item-card {
        max-width: 100%;
    }
    
    /* Footer for Mobile */
    .footer {
        padding: 50px 4% 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-section a {
        justify-content: center;
    }
    
    .footer-section a:hover {
        transform: none;
        padding-left: 0;
    }
    
    .footer-bottom {
        padding-top: 30px;
        margin-top: 30px;
        font-size: 0.9rem;
    }
    
    /* WhatsApp Popup for Mobile */
    .whatsapp-popup {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-header {
        padding: 20px;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .popup-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .order-success-message {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .category-card {
        width: 110px;
        height: 120px;
        padding: 15px 10px;
    }
    
    .category-card i {
        font-size: 1.8rem;
    }
    
    .category-card h3 {
        font-size: 0.8rem;
    }
    
    .item-name {
        font-size: 1.2rem;
    }
    
    .item-price {
        font-size: 1.4rem;
    }
    
    .items-count {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 4%;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .category-card {
        padding: 10px;
        height: 110px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu-btn,
    .search-container,
    .category-navigation,
    .filter-container,
    .order-now-btn,
    .footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20px !important;
    }
    
    .hero-image {
        display: none;
    }
    
    .items-container {
        display: block !important;
    }
    
    .item-card {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .item-image {
        display: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .category-card:hover,
    .item-card:hover,
    .nav-link:hover {
        transform: none;
    }
    
    .category-card:active,
    .item-card:active,
    .nav-link:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    input, select, textarea {
        font-size: 16px !important;
    }
    
    button {
        min-height: 44px !important;
    }
}
