/* Crevia Furnitures - Premium Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #e94560;
    --accent: #f39c12;
    --gold: #d4a574;
    --orange: #ff6b35;
    --dark: #0f0f1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --success: #27ae60;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #e0e0e0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: white;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--gold);
}

.top-bar-right {
    color: var(--gold);
    font-weight: 500;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: var(--primary);
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}

.logo span {
    color: var(--gold);
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar {
    display: flex;
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.search-bar:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: var(--gold);
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-bar button {
    padding: 0.75rem 1.25rem;
    background: var(--gold);
    border: none;
    color: var(--dark);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: var(--orange);
    color: white;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Category Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown > a::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.nav-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
    padding: 0.5rem 0;
}

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

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text) !important;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--secondary) !important;
    border-left-color: var(--gold);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
}

.cart-icon a {
    color: white !important;
}

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

.auth-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gold);
    color: var(--dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.4);
}

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

.btn-secondary:hover {
    background: #c0392b;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--dark);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============ HERO SECTION WITH PROMOTIONAL BANNERS ============ */
.hero {
    position: relative;
    color: white;
    padding: 0;
    /* Responsive height: 60% of viewport, clamped between 450px and 700px */
    height: clamp(450px, 60vh, 700px);
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Contain image fully, no cropping - letterbox if needed */
    background-size: cover;
    /* Focus on center-top for furniture images (shows products better) */
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    /* Hardware acceleration for smooth transitions */
    will-change: opacity;
    transform: translateZ(0);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Adjusted gradient: less opaque on right to show more image */
    background: linear-gradient(
        105deg,
        rgba(26, 26, 46, 0.92) 0%,
        rgba(26, 26, 46, 0.85) 35%,
        rgba(15, 15, 26, 0.6) 70%,
        rgba(15, 15, 26, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-text {
    max-width: 650px;
}

.promo-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.15;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
    color: var(--gold);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.hero-feature-icon {
    font-size: 1.5rem;
}

.hero-feature span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hero Slide Navigation Dots */
.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Hero Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav:hover {
    background: var(--gold);
    color: var(--dark);
}

.hero-nav.prev {
    left: 2rem;
}

.hero-nav.next {
    right: 2rem;
}

/* ============ CATEGORIES SECTION ============ */
.categories-section {
    padding: 5rem 2rem;
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

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

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.category-image {
    width: 100%;
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background-size: cover;
    background-position: center;
}

.category-info {
    padding: 1.5rem;
    text-align: center;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.category-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============ PRODUCTS SECTION ============ */
.products-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 300px;
    background: var(--light);
    overflow: hidden;
    position: relative;
}

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

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

.quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card:hover .quick-view {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

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

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price.discounted {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
}

.add-to-cart {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: var(--orange);
    color: white;
    transform: scale(1.05);
}

/* Enhanced Discount Badge */
.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.4);
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--dark);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 10;
}

/* ============ AUTH FORMS ============ */
.auth-section {
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: var(--light);
}

.auth-container {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn:hover {
    background: #c0392b;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

/* ============ CART ============ */
.cart-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-header {
    margin-bottom: 2rem;
}

.cart-header h2 {
    font-size: 2.5rem;
}

.cart-items {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    gap: 2rem;
}

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

.cart-item-image {
    width: 120px;
    height: 120px;
    background: var(--light);
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

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

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid var(--border);
    border-radius: 5px;
    padding: 0.5rem;
}

.quantity-control button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    color: var(--primary);
}

.quantity-control button:hover {
    color: var(--secondary);
}

.remove-btn {
    color: var(--secondary);
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
    background: none;
    border: none;
    font-size: 1rem;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 10px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.empty-cart {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 10px;
}

.empty-cart h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============ CONTACT SECTION ============ */
.contact-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
}

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 15, 26, 0.85) 100%),
                url('https://kentyfurnitures.co.ke/wp-content/uploads/2024/07/LIVING-ROOM.png') center/cover;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============ LIVE CHAT WIDGET ============ */
.live-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
}

.chat-toggle {
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.4);
    transition: all 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1);
    background: var(--gold);
    color: var(--dark);
}

.chat-box {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
}

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

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-body {
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.chat-message {
    background: var(--light);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.chat-message p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
}

.chat-input-area input:focus {
    border-color: var(--gold);
}

.chat-input-area button {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.chat-input-area button:hover {
    background: var(--orange);
    color: white;
}

/* ============ FOOTER ============ */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

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

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

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

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

/* ============ WHATSAPP FLOAT BUTTON ============ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 999;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ============ ALERTS ============ */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============ UTILITIES ============ */
.hidden {
    display: none !important;
}

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

/* ============ BUTTON VARIANTS ============ */
.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #c0392b 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c0392b 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #1e8449 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e8449 0%, var(--success) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(39, 174, 96, 0.4);
}

/* ============ ADMIN PANEL STYLES ============ */
.admin-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Admin Check / Loading State */
#admin-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
}

#admin-check .spinner {
    margin-bottom: 1.5rem;
}

#admin-check p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Admin Content Area */
#admin-content {
    animation: fadeInUp 0.4s ease;
}

/* ============ ADMIN TABS ============ */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #2c2c54 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.admin-tab span,
.admin-tab {
    position: relative;
    z-index: 1;
}

.admin-tab:hover {
    color: var(--primary);
    background: rgba(26, 26, 46, 0.05);
}

.admin-tab.active {
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, #2c2c54 100%);
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
}

.admin-tab.active::before {
    opacity: 1;
}

/* ============ ADMIN PANELS ============ */
.admin-panel {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    animation: fadeInUp 0.4s ease;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light);
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-header h3::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--gold) 100%);
    border-radius: 2px;
}

/* ============ ADMIN TABLES ============ */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.admin-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, #2c2c54 100%);
}

.admin-table thead th {
    padding: 1.25rem 1rem;
    text-align: left;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.admin-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.admin-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(212, 165, 116, 0.08);
    transform: scale(1.002);
}

.admin-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.admin-table tbody tr:nth-child(even):hover {
    background: rgba(212, 165, 116, 0.12);
}

.admin-table tbody td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 10px;
}

.admin-table tbody tr:last-child td:last-child {
    border-radius: 0 0 10px 0;
}

/* Table Image Cells */
.admin-table td img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Table Action Buttons */
.admin-table td .btn {
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Status Badges in Tables */
.admin-table .status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.admin-table .status-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    color: #856404;
}

.admin-table .status-completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.admin-table .status-cancelled {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.1) 0%, rgba(26, 26, 46, 0.05) 100%);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Stock Badges */
.stock-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(39, 174, 96, 0.08) 100%);
    color: var(--success);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-badge.low {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15) 0%, rgba(231, 76, 60, 0.08) 100%);
    color: #e74c3c;
}

/* ============ MODAL STYLES ============ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(-30px) scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #2c2c54 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
}

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

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

/* Modal Form Styles */
.modal form {
    padding: 2rem;
}

.modal .form-group {
    margin-bottom: 1.5rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.modal .form-group input:focus,
.modal .form-group select:focus,
.modal .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
}

.modal .form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.modal .form-group input[type="file"] {
    padding: 0.7rem;
    cursor: pointer;
}

.modal .form-group input[type="file"]::-webkit-file-upload-button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background 0.3s ease;
}

.modal .form-group input[type="file"]::-webkit-file-upload-button:hover {
    background: #2c2c54;
}

.modal .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Image Preview in Modal */
#image-preview {
    margin-top: 1rem;
}

#image-preview img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ============ ADMIN STATS CARDS (Future Enhancement) ============ */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.admin-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.admin-stat-icon.products {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.1) 100%);
    color: var(--gold);
}

.admin-stat-icon.orders {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2) 0%, rgba(39, 174, 96, 0.1) 100%);
    color: var(--success);
}

.admin-stat-icon.messages {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(233, 69, 96, 0.1) 100%);
    color: var(--secondary);
}

.admin-stat-icon.revenue {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.2) 0%, rgba(26, 26, 46, 0.1) 100%);
    color: var(--primary);
}

.admin-stat-info h4 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.admin-stat-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ============ EMPTY STATE ============ */
.admin-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.admin-empty-state svg,
.admin-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.admin-empty-state h4 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.admin-empty-state p {
    margin-bottom: 1.5rem;
}

/* ============ CUSTOMER REVIEWS SECTION ============ */
.reviews-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.reviews-container {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem 0;
}

/* Carousel wrapper for auto-scroll */
.reviews-carousel {
    display: flex;
    gap: 2rem;
    animation: scrollReviews 30s linear infinite;
    width: max-content;
}

.reviews-carousel:hover {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 380px;
    max-width: 400px;
    flex-shrink: 0;
}

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

.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #2c2c54 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.review-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text);
    font-size: 1.1rem;
}

.review-stars {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.review-product,
.review-delivery {
    background: rgba(212, 165, 116, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    color: var(--text);
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.no-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ============ REVIEW FORM PAGE ============ */
.review-form-section {
    padding: 4rem 2rem;
    min-height: calc(100vh - 300px);
}

.review-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.review-form .form-group {
    margin-bottom: 1.75rem;
}

.review-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.star-rating .star {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.hover {
    color: var(--gold);
    transform: scale(1.1);
}

.star-rating .star.active {
    color: var(--gold);
}

.form-message {
    text-align: center;
}

.success-message {
    padding: 3rem;
}

.success-message h3 {
    color: var(--success);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Reviews responsive */
@media (max-width: 768px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }

    .review-form-container {
        padding: 2rem;
        margin: 0 1rem;
    }

    .star-rating {
        font-size: 1.75rem;
    }
}

.mt-3 {
    margin-top: 3rem;
}

.spinner {
    border: 4px solid var(--light);
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

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

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

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .search-container {
        display: none;
    }

    /* Hero tablet adjustments */
    .hero {
        height: clamp(400px, 55vh, 600px);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-slide {
        background-position: center center;
    }

    .hero-slide::before {
        background: linear-gradient(
            110deg,
            rgba(26, 26, 46, 0.92) 0%,
            rgba(26, 26, 46, 0.88) 40%,
            rgba(15, 15, 26, 0.7) 100%
        );
    }

    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero-nav.prev {
        left: 1rem;
    }

    .hero-nav.next {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        border-radius: 5px;
        margin-top: 0.5rem;
    }

    .dropdown-menu a {
        color: white !important;
        padding: 0.5rem 1rem;
    }

    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.1);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .auth-links {
        display: none;
    }

    /* Hero mobile adjustments */
    .hero {
        height: clamp(380px, 50vh, 500px);
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        align-items: flex-start;
        padding-top: 2.5rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-slide {
        background-position: center center;
    }

    .hero-slide::before {
        background: linear-gradient(
            180deg,
            rgba(26, 26, 46, 0.9) 0%,
            rgba(26, 26, 46, 0.85) 50%,
            rgba(15, 15, 26, 0.75) 100%
        );
    }

    .hero-features {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .hero-feature {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    .hero-buttons {
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-dots {
        bottom: 1.25rem;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .hero-nav {
        display: none;
    }

    .promo-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
        margin-bottom: 1rem;
    }

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

    .contact-section {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .chat-box {
        width: 300px;
        right: -15px;
    }

    .live-chat-widget {
        bottom: 90px;
        right: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Admin Panel Responsive - Tablet */
    .admin-section {
        padding: 1.5rem 0;
    }

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

    .admin-tabs {
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .admin-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        text-align: center;
    }

    .admin-panel {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-header h3 {
        font-size: 1.25rem;
    }

    .admin-header .btn {
        width: 100%;
        text-align: center;
    }

    /* Admin Table Responsive */
    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 0.9rem 0.75rem;
        font-size: 0.85rem;
    }

    .admin-table td img {
        width: 45px;
        height: 45px;
    }

    .admin-table td .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        margin: 0.15rem;
    }

    /* Modal Responsive */
    .modal {
        padding: 1rem;
    }

    .modal-content {
        border-radius: 16px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal form {
        padding: 1.5rem;
    }

    .modal .form-group {
        margin-bottom: 1.25rem;
    }

    /* Admin Stats Responsive */
    .admin-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .admin-stat-card {
        padding: 1.25rem;
    }

    .admin-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .admin-stat-info h4 {
        font-size: 1.5rem;
    }
}

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

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
    }

    /* Hero small mobile - full responsive */
    .hero {
        height: clamp(350px, 60vh, 450px);
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        /* Limit text to prevent overflow */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-slide::before {
        /* Darker overlay on small screens for readability */
        background: linear-gradient(
            180deg,
            rgba(26, 26, 46, 0.93) 0%,
            rgba(26, 26, 46, 0.88) 60%,
            rgba(15, 15, 26, 0.8) 100%
        );
    }

    .promo-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.8rem;
        margin-bottom: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .hero-feature {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        justify-content: center;
    }

    .hero-feature-icon {
        font-size: 1.1rem;
    }

    .hero-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    /* Admin Panel Responsive - Mobile */
    .admin-tabs {
        flex-direction: column;
    }

    .admin-tab {
        width: 100%;
        padding: 0.9rem;
    }

    .admin-panel {
        padding: 1rem;
    }

    .admin-header h3 {
        font-size: 1.1rem;
    }

    .admin-header h3::before {
        width: 3px;
        height: 22px;
    }

    /* Card-style table for mobile */
    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table th,
    .admin-table td,
    .admin-table tr {
        display: block;
    }

    .admin-table thead {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .admin-table tbody tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1rem;
        background: var(--white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .admin-table tbody tr:hover {
        transform: none;
    }

    .admin-table tbody td {
        padding: 0.5rem 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text);
        text-align: left;
        padding-right: 1rem;
    }

    .admin-table tbody td:last-child {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--border);
    }

    .admin-table td img {
        width: 70px;
        height: 70px;
    }

    .admin-table td .btn {
        flex: 1;
        min-width: 80px;
    }

    /* Modal Mobile */
    .modal {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
    }

    .modal-header {
        border-radius: 20px 20px 0 0;
    }

    .modal form {
        padding: 1.25rem;
    }

    .modal .form-group input,
    .modal .form-group select,
    .modal .form-group textarea {
        padding: 0.8rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Admin Stats Mobile */
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-stat-card {
        padding: 1rem;
    }

    .admin-stat-info h4 {
        font-size: 1.3rem;
    }

    .admin-stat-info p {
        font-size: 0.85rem;
    }

    /* Empty State Mobile */
    .admin-empty-state {
        padding: 2rem 1rem;
    }

    .admin-empty-state .empty-icon {
        font-size: 3rem;
    }

    .admin-empty-state h4 {
        font-size: 1.1rem;
    }
}
