/**
 * HOUZESTYLE FURNITURE MARKETPLACE
 * Premium Custom Styles
 * Luxury Furniture Brand Appearance
 */

/* ====================================================
   GOOGLE FONTS IMPORT
   ==================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ====================================================
   CSS VARIABLES (THEME COLORS)
   ==================================================== */
:root {
    /* Primary Brand Colors - ORANGE THEME (matching index.php) */
    --primary-orange: #f26a1f;
    --orange: #f26a1f;
    --orange-light: #fff3ec;
    --orange-dark: #d9591a;
    
    /* Secondary Colors (Blue - kept for specific elements) */
    --primary-blue: #3A619C;
    --secondary-blue: #5489B4;
    
    /* Text Colors */
    --dark: #1a1a1a;
    --dark-text: #323334;
    --text: #444;
    --muted: #777;
    
    /* Background & Lines */
    --light-bg: #F5F7FA;
    --bg: #fff;
    --line: #ececec;
    --white: #FFFFFF;
    
    /* Gray Scale */
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --info: #17A2B8;
    --gold: #D4AF37;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ====================================================
   RESET & BASE STYLES
   ==================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-orange);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-body);
}

input, textarea, select {
    font-family: var(--font-body);
    outline: none;
}

/* ====================================================
   UTILITY CLASSES
   ==================================================== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* Text Colors */
.text-primary { color: var(--primary-blue); }
.text-orange { color: var(--primary-orange); }
.text-dark { color: var(--dark-text); }
.text-muted { color: var(--gray-600); }
.text-white { color: var(--white); }

/* Background Colors */
.bg-light { background-color: var(--light-bg); }
.bg-white { background-color: var(--white); }
.bg-primary { background-color: var(--primary-blue); }
.bg-orange { background-color: var(--primary-orange); }

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-orange {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-orange:hover {
    background-color: #c94a24;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-outline-orange {
    background-color: transparent;
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.btn-outline-orange:hover {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--dark-text);
}

.btn-white:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 16px 48px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ====================================================
   FORMS
   ==================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: var(--white);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(58, 97, 156, 0.1);
}

.form-control::placeholder {
    color: var(--gray-500);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
}

.input-group {
    display: flex;
    gap: 0;
}

.input-group .form-control {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ====================================================
   CARDS
   ==================================================== */
.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-medium);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--gray-100);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.card-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-300);
}

/* ====================================================
   PRODUCT CARD
   ==================================================== */
.product-card {
    position: relative;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-md);
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 320px;
    background-color: var(--gray-100);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background-color: var(--primary-orange);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.new {
    background-color: var(--success);
}

.product-badge.featured {
    background-color: var(--gold);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-medium);
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    cursor: pointer;
}

.action-btn:hover {
    background-color: var(--primary-orange);
    color: var(--white);
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-vendor {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.75rem;
}

.stars {
    color: var(--gold);
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.original-price {
    font-size: 1.125rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.discount-badge {
    padding: 4px 10px;
    background-color: var(--success);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.product-actions-bottom {
    display: flex;
    gap: 10px;
}

.product-actions-bottom .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

/* ====================================================
   HEADER / NAVBAR
   ==================================================== */
.top-bar {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    transition: var(--transition-fast);
}

.top-bar a:hover {
    color: var(--primary-orange);
}

.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.logo span {
    color: var(--dark);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-text);
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-orange);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--dark-text);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-icon:hover {
    color: var(--primary-orange);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-orange);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--dark);
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* ====================================================
   HERO SECTION
   ==================================================== */
.hero-section {
    position: relative;
    height: 700px;
    background: linear-gradient(135deg, rgba(242, 106, 31, 0.1) 0%, rgba(242, 106, 31, 0.05) 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* ====================================================
   SECTION STYLES
   ==================================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--primary-orange);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ====================================================
   CATEGORY CARDS
   ==================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-medium);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.category-name {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
    background-color: var(--dark-text);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--primary-orange);
    transform: translateY(-3px);
}

/* ====================================================
   ALERTS
   ==================================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ====================================================
   BADGES
   ==================================================== */
.badge-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background-color: var(--success); color: var(--white); }
.badge-danger { background-color: var(--danger); color: var(--white); }
.badge-warning { background-color: var(--warning); color: var(--dark-text); }
.badge-info { background-color: var(--info); color: var(--white); }
.badge-primary { background-color: var(--primary-blue); color: var(--white); }

/* ====================================================
   LOADING SPINNER
   ==================================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ==================================================== */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Mobile Menu */
.nav-menu.mobile-active {
    display: flex !important;
    position: fixed;
    left: 0;
    top: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    overflow-y: auto;
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.nav-menu.mobile-active li {
    width: 100%;
}

.nav-menu.mobile-active .nav-link {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.nav-menu.mobile-active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--light-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-menu.mobile-active .dropdown.active .dropdown-menu {
    max-height: 500px;
}

/* Mobile Search Bar */
.mobile-search-bar {
    display: none;
    padding: 1rem;
    background: var(--light-bg);
    border-bottom: 1px solid var(--gray-200);
}

/* Tablets and Below (≤1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
        padding: 0 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablets (≤992px) */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    /* Typography */
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
    
    /* Header Adjustments */
    .top-bar {
        display: none;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        font-size: 1.75rem;
        color: var(--dark-text);
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        min-width: 48px;
        min-height: 48px;
        align-items: center;
        justify-content: center;
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .nav-icon {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        height: 500px;
        background-position: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Product Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        font-size: 0.9rem;
    }
    
    .product-image-wrapper {
        height: 220px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    /* Category Grid */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-card {
        height: 200px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 36px;
        font-size: 1rem;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
}

/* Mobile Landscape and Small Tablets (≤768px) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    /* Typography */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.375rem; }
    
    /* Hero */
    .hero-section {
        height: 450px;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    /* Sections */
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Product Cards */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .product-card {
        display: grid;
        grid-template-columns: 140px 1fr;
        gap: 1rem;
    }
    
    .product-image-wrapper {
        height: 140px;
        border-radius: var(--radius-md);
    }
    
    .product-info {
        padding: 0.5rem 0;
    }
    
    .product-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .product-actions-bottom {
        flex-direction: column;
    }
    
    /* Category Grid */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Forms */
    .form-control {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    /* Cart & Checkout */
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
    }
    
    .item-quantity,
    .item-total,
    .item-actions {
        grid-column: 1 / -1;
    }
    
    /* WhatsApp Float Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.75rem;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 20px;
    }
}

/* Mobile Portrait (≤576px) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* Typography */
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Header */
    .navbar-content {
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        margin: 0;
        justify-content: flex-start;
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
    
    .nav-icon {
        font-size: 1.125rem;
    }
    
    /* Hero */
    .hero-section {
        height: 380px;
    }
    
    .hero-title {
        font-size: 1.625rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    /* Sections */
    .section {
        padding: 32px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    /* Product Cards - Keep List View */
    .products-grid {
        gap: 1rem;
    }
    
    .product-card {
        grid-template-columns: 120px 1fr;
        gap: 0.875rem;
    }
    
    .product-image-wrapper {
        height: 120px;
    }
    
    .product-badge {
        font-size: 0.625rem;
        padding: 4px 8px;
    }
    
    .product-title {
        font-size: 0.925rem;
    }
    
    .product-category,
    .product-vendor {
        font-size: 0.75rem;
    }
    
    .current-price {
        font-size: 1.125rem;
    }
    
    .original-price {
        font-size: 0.85rem;
    }
    
    .product-actions-bottom .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    /* Category Grid */
    .category-card {
        height: 160px;
    }
    
    .category-name {
        font-size: 1.125rem;
    }
    
    /* Forms */
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 9px 12px;
        font-size: 0.9rem;
    }
    
    /* Modals & Overlays */
    .search-overlay .search-input {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .search-overlay .btn {
        padding: 1rem 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .footer-links {
        font-size: 0.875rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Cart */
    .cart-item {
        grid-template-columns: 70px 1fr;
        padding: 1rem 0;
    }
    
    .item-image img {
        width: 70px;
        height: 70px;
    }
    
    .item-name {
        font-size: 0.95rem;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
    }
    
    .quantity-input {
        width: 50px;
        font-size: 0.9rem;
    }
    
    /* Checkout */
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        margin-top: 1.5rem;
    }
    
    /* Badges and Alerts */
    .badge {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
    
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Toast Notifications */
    .toast {
        min-width: 280px;
        right: -320px;
        top: 10px;
        font-size: 0.875rem;
    }
    
    .toast.show {
        right: 10px;
    }
    
    /* Touch Targets - Make clickable elements larger */
    button,
    .btn,
    .nav-link,
    .action-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 6px 16px;
    }
}

/* Extra Small Devices (≤375px) */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .product-card {
        grid-template-columns: 100px 1fr;
    }
    
    .product-image-wrapper {
        height: 100px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .top-bar,
    .footer,
    .whatsapp-float,
    .scroll-to-top,
    .mobile-menu-toggle,
    .nav-actions,
    .btn {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
    }
    
    body {
        font-size: 12pt;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================================
   ANIMATIONS
   ==================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ====================================================
   SMOOTH SCROLLBAR
   ==================================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}
