/* 
* Codeleka Store - Simple & Clean Stylesheet
*/

/* Global Styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --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-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --text-color: #333333;
    --border-color: #dee2e6;
    --card-shadow: 0 2px 5px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--gray-100);
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
}

.btn i {
    margin-right: 0.5rem;
}

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

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

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

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

/* Header Styles - Fully Responsive */
.main-header {
    background-color: white;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.logo-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0px;
    width: 0px;
    background-color: var(--primary-color);
    border-radius: var(--radius-md);
    margin-right: 0.75rem;
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

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

.user-menu {
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
}

.user-link i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: white;
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-md);
    width: 200px;
    padding: 0.75rem 0;
    display: none;
    z-index: 100;
    border: 1px solid var(--gray-200);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
}

.dropdown-menu a i {
    margin-right: 0.75rem;
    width: 16px;
    color: var(--primary-color);
}

.dropdown-menu a:hover {
    background-color: var(--gray-100);
}

/* Main Nav - Fully Responsive */
.main-nav {
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: 0 1rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.main-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-list {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-list li {
    display: inline-block;
}

.nav-list li a {
    color: var(--gray-700);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--primary-color);
}

.nav-list li a i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Hide main nav on small screens */
@media (max-width: 991.98px) {
    .main-nav {
        display: none;
    }
    
    /* Show mobile menu instead */
    .mobile-menu {
        display: block;
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1100;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.close-menu {
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gray-600);
    background: transparent;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    padding: 0.5rem 0;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.mobile-nav-list li a i {
    margin-right: 0.75rem;
    width: 20px;
    color: var(--primary-color);
}

.mobile-nav-list li:last-child a {
    border-bottom: none;
}

@media (max-width: 991.98px) {
    .mobile-menu {
        display: block;
    }
    
    .mobile-nav-toggle {
        position: absolute;
        left: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: var(--dark-color);
        padding: 0.5rem;
        cursor: pointer;
        z-index: 100;
        width: 35px;
        height: 35px;
    }
    
    /* Hamburger icon */
    .mobile-nav-toggle i {
        font-size: 1.5rem;
    }
    
    /* Hide the original navigation */
    .main-nav {
        display: none;
    }
    
    .mobile-nav-header .logo-text {
        font-weight: 700;
        font-size: 1.2rem;
        color: var(--primary-color);
    }
}

/* Mobile Menu - Enhanced Responsive Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1100;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.close-menu {
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gray-600);
    background: transparent;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    padding: 0.5rem 0;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.mobile-nav-list li a i {
    margin-right: 0.75rem;
    width: 20px;
    color: var(--primary-color);
}

.mobile-nav-list li:last-child a {
    border-bottom: none;
}

@media (max-width: 350px) {
    /* Extra small mobile devices */
    .header-top {
        padding: 0.65rem 0.5rem;
    }
    
    .logo-img {
        height: 28px;
        width: 28px;
        margin-right: 0.5rem;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    .mobile-nav-toggle {
        left: 0.5rem;
        font-size: 1.1rem;
    }
    
    .header-actions {
        right: 0.5rem;
    }
    
    .cart-link {
        width: 0px;
        height: 0px;
    }
    
    .mobile-nav {
        width: 250px;
    }
}

/* Navigation for desktop */
@media (min-width: 992px) {
    /* Hide mobile menu elements */
    .mobile-nav-toggle {
        display: none;
    }
    
    /* Show desktop navigation */
    .main-nav {
        display: block;
        background-color: var(--gray-100);
        border-top: 1px solid var(--gray-200);
        padding: 0 1.5rem;
    }
    
    .nav-list {
        display: flex;
        padding: 0;
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .nav-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .nav-list li a {
        color: var(--gray-700);
        padding: 0.75rem 1rem;
        display: block;
        font-weight: 500;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    /* Show header actions in desktop view */
    .header-actions {
        display: flex !important;
        align-items: center;
        gap: 1.25rem;
        position: static;
    }
    
    /* Show login button */
    .login-btn, .user-menu {
        display: block !important;
    }
    
    /* Show cart icon */
    .cart-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        color: var(--text-color);
        border-radius: 50%;
        transition: var(--transition);
    }
    
    .cart-link:hover {
        color: var(--primary-color);
    }
    
    .cart-counter {
        display: flex !important;
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: var(--secondary-color);
        color: white;
        border-radius: 50%;
        font-size: 0.7rem;
        font-weight: 700;
        width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
    }
    
    /* Restore logo image */
    .logo-img {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 35px;
        width: 35px;
        background-color: var(--primary-color);
        border-radius: var(--radius-md);
        margin-right: 0.75rem;
        color: white;
    }
    
    /* Header layout for desktop */
    .header-top {
        padding: 1rem 1.5rem;
        justify-content: space-between;
        height: auto;
        border-bottom: none;
    }
    
    .logo {
        position: static;
        transform: none;
        width: auto;
    }
    
    /* User dropdown menu */
    .user-menu {
        position: relative;
    }
    
    .user-link {
        display: flex;
        align-items: center;
        color: var(--dark-color);
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-weight: 500;
    }
    
    .user-link i {
        margin-right: 0.5rem;
        color: var(--primary-color);
    }
    
    .dropdown-menu {
        position: absolute;
        top: 120%;
        right: 0;
        background-color: white;
        box-shadow: var(--card-shadow);
        border-radius: var(--radius-md);
        width: 200px;
        padding: 0.75rem 0;
        display: none;
        z-index: 100;
        border: 1px solid var(--gray-200);
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-menu a {
        display: flex;
        align-items: center;
        padding: 0.75rem 1.25rem;
        color: var(--text-color);
    }
    
    .dropdown-menu a i {
        margin-right: 0.75rem;
        width: 16px;
        color: var(--primary-color);
    }
    
    .dropdown-menu a:hover {
        background-color: var(--gray-100);
    }
}

/* For landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .mobile-nav {
        padding-top: 0.5rem;
        overflow-y: auto;
    }
    
    .mobile-nav-list li a {
        padding: 0.65rem 1.5rem;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.search-container {
    margin: 1.5rem auto;
    position: relative;
    max-width: 600px;
}

.search-container form {
    display: flex;
    width: 100%;
}

.search-container input {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.search-container button {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.1rem;
    cursor: pointer;
}

.categories-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.categories-tags a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background-color: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.categories-tags a:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Categories Section */
.categories-section {
    margin-bottom: 2rem;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem 0;
}

.category-list a {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background-color: white;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--card-shadow);
}

.category-list a:hover {
    background-color: var(--primary-color);
    color: white;
}

.category-list a i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.category-list a:hover i {
    color: white;
}

/* Section Title */
.section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.view-all {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.view-all i {
    margin-left: 0.5rem;
}

/* Products Section */
.products-section {
    margin-bottom: 3rem;
}

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

/* Product Card */
.product-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.discount-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.tag-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

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

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    margin-bottom: 0.75rem;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.product-author {
    display: flex;
    align-items: center;
}

.product-author i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.product-price {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

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

.current-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.product-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-600);
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.product-stats span {
    display: flex;
    align-items: center;
}

.product-stats i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}

/* Stats Section */
.stats-section {
    background-color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-item p {
    color: var(--gray-600);
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Footer Styles */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
}

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

.footer-section ul li a {
    color: var(--gray-400);
}

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

.footer-section p {
    color: var(--gray-400);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-section p i {
    margin-right: 0.75rem;
    color: var(--gray-300);
}

.footer-about {
    margin-bottom: 1.25rem;
    color: var(--gray-400);
}

.footer-section .social-links {
    justify-content: flex-start;
}

.footer-section .social-links a {
    background-color: rgba(255,255,255,0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-400);
    font-size: 0.9rem;
}

.whatsapp-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

.whatsapp-floating a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 1.5rem;
}

/* Mobile Footer Navigation */
.mobile-footer-nav {
    display: none;
}

@media (max-width: 991.98px) {
    /* Mobile header styles */
    .header-top {
        padding: 0.75rem 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid var(--gray-200);
        position: relative;
    }
    
    /* Center the logo/title */
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .logo a {
        justify-content: center;
        font-size: 1.3rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: var(--primary-color);
    }
    
    /* Hide the logo image */
    .logo-img {
        display: none;
    }
    
    /* Style the hamburger menu */
    .mobile-nav-toggle {
        position: absolute;
        left: 1rem;
        display: block;
        background: transparent;
        border: none;
        font-size: 1.25rem;
        color: var(--dark-color);
        padding: 0.5rem;
        cursor: pointer;
        z-index: 100;
    }
    
    /* Hide all other header elements */
    .header-actions {
        display: none !important;
    }
    
    .login-btn, 
    .user-menu, 
    .cart-link, 
    .cart-counter {
        display: none !important;
    }
    
    /* Ensure the only visible elements are hamburger and title */
    .main-header .container {
        position: relative;
    }
    
    /* Mobile footer navigation */
    .mobile-footer-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 990;
        padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom, 15px));
        min-height: 60px;
        border-top: 1px solid var(--gray-200);
    }
    
    .footer-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--gray-600);
        font-size: 0.7rem;
        padding: 0.5rem 0.25rem;
        text-decoration: none;
        position: relative;
    }
    
    .footer-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        transition: color 0.2s ease;
    }
    
    .footer-nav-item span {
        display: block;
        text-align: center;
        width: 100%;
        font-size: 0.65rem;
        line-height: 1.2;
        transition: color 0.2s ease;
    }
    
    .footer-nav-item.active {
        color: var(--primary-color);
    }
    
    .footer-nav-item:active {
        opacity: 0.8;
    }
    
    .footer-nav-item .cart-badge {
        position: absolute;
        top: 0;
        right: 50%;
        transform: translateX(8px);
        background-color: var(--secondary-color);
        color: white;
        font-size: 0.65rem;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Adjustments for smaller screens */
@media (max-width: 350px) {
    .mobile-footer-nav {
        min-height: 55px;
    }
    
    .footer-nav-item i {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .footer-nav-item span {
        font-size: 0.6rem;
    }
}

/* Landscape adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .mobile-footer-nav {
        min-height: 50px;
        padding: 0.3rem 0 calc(0.3rem + env(safe-area-inset-bottom, 10px));
    }
    
    .footer-nav-item i {
        font-size: 1rem;
        margin-bottom: 0.15rem;
    }
    
    .footer-nav-item span {
        font-size: 0.55rem;
    }
}

/* Product Detail Page */
.product-detail {
    padding: 2rem 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-detail-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.product-detail-meta p {
    display: flex;
    align-items: center;
}

.product-detail-meta p i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail-description {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.product-detail-section {
    margin-bottom: 2rem;
    background-color: var(--gray-100);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.product-detail-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.product-detail-section h3 i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.product-detail-section ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-detail-section ul li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.product-detail-tags span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--gray-200);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 0.85rem;
}

/* Cart Styles */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition);
}

.cart-link:hover {
    color: var(--primary-color);
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: 10px 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Updated Header Styles */
    .header-top {
        padding: 0.75rem 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .logo a {
        justify-content: center;
        font-size: 1.3rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: var(--primary-color);
    }
    
    .mobile-nav-toggle {
        position: absolute;
        left: 1rem;
        display: block;
        background: transparent;
        border: none;
        font-size: 1.25rem;
        color: var(--dark-color);
        padding: 0.5rem;
        cursor: pointer;
        z-index: 100;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        color: var(--dark-color);
        z-index: 10;
        padding: 0.5rem;
        cursor: pointer;
    }
    
    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100%;
        background-color: white;
        box-shadow: 0 0 15px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1100;
        overflow-y: auto;
    }
    
    .mobile-nav.active {
        left: 0;
    }
    
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .close-menu {
        cursor: pointer;
        font-size: 1.25rem;
        color: var(--gray-600);
    }
    
    .mobile-nav-list li a {
        display: block;
        padding: 0.75rem 1.5rem;
        color: var(--text-color);
        border-bottom: 1px solid var(--gray-100);
    }
    
    .mobile-footer-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 990;
        padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom, 15px));
        min-height: 60px;
        border-top: 1px solid var(--gray-200);
    }
    
    /* Add padding to the bottom of the page to prevent content from being hidden */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 15px));
    }
    
    /* Ensure the footer has proper spacing */
    .main-footer {
        margin-bottom: calc(60px + env(safe-area-inset-bottom, 15px));
        padding-bottom: 1rem;
    }
    
    /* Make sure all footer nav items are fully visible */
    .footer-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--gray-600);
        font-size: 0.7rem;
        padding: 0.5rem 0.25rem;
        text-decoration: none;
        position: relative;
    }
    
    .footer-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        transition: color 0.2s ease;
    }
    
    .footer-nav-item span {
        display: block;
        text-align: center;
        width: 100%;
        font-size: 0.65rem;
        line-height: 1.2;
        transition: color 0.2s ease;
    }
    
    .footer-nav-item.active {
        color: var(--primary-color);
    }
    
    .footer-nav-item:active {
        opacity: 0.8;
    }
    
    .footer-nav-item .cart-badge {
        position: absolute;
        top: 0;
        right: 50%;
        transform: translateX(8px);
        background-color: var(--secondary-color);
        color: white;
        font-size: 0.65rem;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .whatsapp-floating {
        bottom: 70px;
    }
    
    .main-footer {
        margin-bottom: 60px;  /* Add space for mobile footer nav */
        padding-bottom: 1rem;
    }
    
    .header-top {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        position: relative;
    }
    
    .logo {
        margin: 0;
    }
    
    .header-actions {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
    }
    
    /* Adjust spacing for better mobile experience */
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .product-detail-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .product-detail-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-card {
        border-radius: var(--radius-sm);
        padding: 0.5rem;
    }
    
    .product-info {
        padding: 0.75rem 0.5rem;
    }
    
    .product-title {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        padding: 0 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .search-container input {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Extra small devices */
@media (max-width: 420px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .product-detail-image {
        height: auto;
    }
    
    .product-detail-title {
        font-size: 1.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-image {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .header-top {
        padding: 0.7rem 0;
    }
    
    .mobile-nav-toggle {
        left: 12px;
        font-size: 1.3rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
}

/* Add to Cart Button - Added state */
.btn-add-to-cart.added {
    background-color: var(--success-color);
    color: white;
}

.btn-add-to-cart.added:hover {
    background-color: #27ae60;
}

/* Mobile optimizations for specific devices */
@media screen and (max-width: 767px) {
    /* Hero section improvements */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    /* Search container improvements */
    .search-container {
        margin: 1rem auto;
    }
    
    .search-container input {
        padding: 0.7rem 1rem 0.7rem 2.5rem;
        border-radius: 25px;
        font-size: 0.9rem !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* Categories tags improvements */
    .categories-tags {
        margin-top: 0.75rem;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .categories-tags a {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
        border-radius: 20px;
        background-color: rgba(255,255,255,0.25);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .categories-tags a:active {
        background-color: rgba(255,255,255,0.4);
        transform: scale(0.95);
    }
    
    /* Category icons improvements */
    .category-list {
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .category-list a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Mobile footer navigation improvements */
    .mobile-footer-nav {
        padding: 0.4rem 0;
    }
    
    .footer-nav-item {
        padding: 0.4rem;
    }
    
    .footer-nav-item i {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .footer-nav-item span {
        font-size: 0.65rem;
    }
}

/* Specific adjustments for OPPO Reno 8T and similar devices */
@media screen and (max-width: 420px) {
    .header-top {
        padding: 0.7rem 0.5rem;
    }
    
    .mobile-nav-toggle {
        left: 8px;
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 32px;
        width: 32px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .login-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .cart-link {
        width: 30px;
        height: 30px;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .categories-tags {
        gap: 0.4rem;
    }
    
    .categories-tags a {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 15px;
    }
    
    .whatsapp-floating a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Fix product card grid for smaller screens */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-info {
        padding: 0.6rem 0.5rem;
    }
    
    .product-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .product-price {
        margin-bottom: 0.5rem;
    }
    
    .current-price {
        font-size: 1.1rem;
    }
    
    .original-price {
        font-size: 0.8rem;
    }
}

/* Specific fixes for Android devices */
@supports (-webkit-touch-callout: none) {
    .mobile-footer-nav {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 15px));
    }
    
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 15px));
    }
}

/* OPPO Reno 8T specific fixes */
@media screen and (min-width: 360px) and (max-width: 420px) and (min-height: 730px) and (max-height: 950px) {
    body {
        padding-bottom: 80px !important;
    }
    
    .mobile-footer-nav {
        padding-bottom: calc(0.5rem + 15px);
        min-height: 65px;
    }
    
    .main-footer {
        margin-bottom: 80px !important;
    }
    
    .whatsapp-floating {
        bottom: 85px !important;
    }
}

/* Medium-sized screens (tablets, small laptops) */
@media screen and (max-width: 995px) {
    /* General layout adjustments */
    .container {
        max-width: 100%;
        padding: 0 1.25rem;
    }
    
    /* Adjust header elements */
    .logo-text {
        font-size: 1.3rem;
    }
    
    .desktop-user-nav .nav-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    /* Product grid adjustments */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
    
    /* Section spacing */
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    /* Adjust hero section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .footer-section:first-child {
        grid-column: span 3;
    }
}

/* Fix for height-constrained viewports (less than 642px height) */
@media screen and (max-height: 642px) {
    /* Reduce vertical spacing */
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .search-container {
        margin: 0.75rem auto;
    }
    
    /* Adjust section spacing */
    .section-title-container {
        margin-bottom: 1rem;
    }
    
    .products-section, .categories-section {
        margin-bottom: 2rem;
    }
    
    /* Compact product cards */
    .product-card {
        padding-bottom: 0.5rem;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-image {
        aspect-ratio: 16/10;
    }
    
    /* Mobile footer adjustments */
    .mobile-footer-nav {
        padding: 0.25rem 0 calc(0.25rem + env(safe-area-inset-bottom, 15px));
        min-height: 55px;
    }
    
    .footer-nav-item i {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
    }
    
    .footer-nav-item span {
        font-size: 0.6rem;
    }
    
    /* Adjust body padding */
    body {
        padding-bottom: calc(55px + env(safe-area-inset-bottom, 15px));
    }
    
    .main-footer {
        margin-bottom: calc(55px + env(safe-area-inset-bottom, 15px));
    }
}

/* Combined media query for both width and height constraints */
@media screen and (max-width: 995px) and (max-height: 642px) {
    /* Header adjustments */
    .header-top {
        padding: 0.6rem 0;
    }
    
    .logo-img {
        height: 30px;
        width: 30px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    /* Compact hero section */
    .hero-section {
        padding: 1.25rem 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Adjust categories */
    .categories-tags a {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Product grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    /* Adjust footer */
    .main-footer {
        padding: 2rem 0 1rem;
    }
    
    /* Fix for mobile navigation */
    .mobile-footer-nav {
        min-height: 50px;
    }
    
    /* WhatsApp button position */
    .whatsapp-floating {
        bottom: 60px;
        right: 15px;
    }
    
    .whatsapp-floating a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* 
* Comprehensive Responsive Design System
* This ensures the website works across all screen sizes
*/

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Base layout adjustments */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Optimize text sizes */
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    /* Single column product grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Full width cards */
    .product-card {
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }
    
    /* Header adjustments */
    .header-top {
        padding: 0.6rem 0;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    /* Optimize search */
    .search-container input {
        padding: 0.6rem 1rem 0.6rem 2.5rem;
        font-size: 0.85rem;
    }
    
    /* Single column footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Smaller buttons */
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Adjust container */
    .container {
        padding: 0 1rem;
    }
    
    /* Two column product grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Slightly larger text */
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Two column footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Main container */
    .container {
        padding: 0 1.25rem;
    }
    
    /* Multi-column layouts */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    /* Balanced text sizes */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Footer grid */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container and spacing */
    .container {
        max-width: 960px;
        padding: 0;
    }
    
    /* Product grid */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    /* Desktop-sized text */
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    /* Full footer */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Large container */
    .container {
        max-width: 1140px;
        padding: 0;
    }
    
    /* Full-sized product grid */
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    /* Large text */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* XXL screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.75rem;
    }
}

/* Height-based media queries */
/* Small height */
@media (max-height: 600px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .section-title-container {
        margin-bottom: 0.75rem;
    }
    
    .footer-nav-item i {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .footer-nav-item span {
        font-size: 0.6rem;
    }
}

/* Medium height */
@media (min-height: 601px) and (max-height: 800px) {
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .mobile-footer-nav {
        min-height: 55px;
    }
}

/* Tall screens */
@media (min-height: 801px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .mobile-footer-nav {
        min-height: 65px;
    }
}

/* Device orientation */
/* Landscape mode for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .search-container {
        margin: 0.75rem auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .mobile-footer-nav {
        padding: 0.25rem 0 calc(0.25rem + env(safe-area-inset-bottom, 10px));
        min-height: 45px;
    }
}

/* High density displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimized images and icons for high-DPI screens */
    .logo-img {
        border-radius: calc(var(--radius-md) + 1px);
    }
    
    .product-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    .main-header, .main-nav, .mobile-footer-nav, .whatsapp-floating {
        display: none !important;
    }
    
    body {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile-friendly header adjustments */
@media (max-width: 991.98px) {
    .header-top {
        padding: 0.75rem 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .logo a {
        justify-content: center;
        font-size: 1.3rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: var(--primary-color);
    }
    
    .mobile-nav-toggle {
        position: absolute;
        left: 1rem;
        display: block;
        background: transparent;
        border: none;
        font-size: 1.25rem;
        color: var(--dark-color);
        padding: 0.5rem;
        cursor: pointer;
        z-index: 100;
    }
}

/* Extra small devices */
@media (max-width: 350px) {
    .mobile-nav-toggle {
        left: 0.5rem;
        font-size: 1.1rem;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
} 