/* ==========================================
   COMPLETE MOBILE RESPONSIVE FRAMEWORK
   TerraCotta GKP - All Screen Sizes
   Mobile-First Approach - Enhanced V2.0
   ========================================== */

/* ==========================================
   CSS RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px; /* Mobile first - smaller base size */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Increase font size for larger screens */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   RESPONSIVE CONTAINER SYSTEM
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* ==========================================
   RESPONSIVE TOP BANNER
   ========================================== */
.top-banner {
    background: linear-gradient(135deg, #CCAD8B 0%, #B8A082 50%, #A69379 100%);
    color: white;
    text-align: center;
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1000;
    line-height: 1.3;
}

/* Tablet and up */
@media (min-width: 768px) {
    .top-banner {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .top-banner {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

.top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ==========================================
   RESPONSIVE NAVIGATION SYSTEM - MOBILE FIRST
   ========================================== */
nav {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    min-height: 60px;
}

/* Tablet navigation */
@media (min-width: 768px) {
    nav {
        padding: 1rem 2rem;
        min-height: 70px;
    }
}

/* Desktop navigation */
@media (min-width: 1024px) {
    nav {
        padding: 1rem 5%;
        min-height: 80px;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001;
    flex-shrink: 0;
}

.logo-container:hover {
    transform: scale(1.05);
}

/* Mobile logo */
.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent !important;
    transition: all 0.3s ease;
}

.logo-text {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    font-family: 'Georgia', serif;
}

/* Tablet logo */
@media (min-width: 768px) {
    .logo-container {
        gap: 0.75rem;
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

/* Desktop logo */
@media (min-width: 1024px) {
    .logo-container {
        gap: 1rem;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
}

/* Large desktop logo */
@media (min-width: 1200px) {
    .logo-image {
        width: 70px;
        height: 70px;
    }
    
    .logo-text {
        font-size: 2.2rem;
    }
}

/* ==========================================
   RESPONSIVE SEARCH BAR - MOBILE FIRST
   ========================================== */
.search-bar {
    display: none; /* Hidden on mobile by default */
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 300px;
    margin: 0 1rem;
    min-width: 200px;
}

/* Show search bar on tablet and up */
@media (min-width: 768px) {
    .search-bar {
        display: flex;
        max-width: 400px;
        padding: 0.4rem;
    }
}

/* Desktop search bar */
@media (min-width: 1024px) {
    .search-bar {
        max-width: 500px;
        margin: 0 2rem;
        padding: 0.5rem;
    }
}

/* Large desktop search bar */
@media (min-width: 1200px) {
    .search-bar {
        max-width: 600px;
    }
}

.search-bar input {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    flex: 1;
    background: transparent;
    min-width: 0;
    border-radius: 20px;
}

/* Larger input on desktop */
@media (min-width: 1024px) {
    .search-bar input {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

.search-btn {
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.8rem;
}

/* Larger button on desktop */
@media (min-width: 1024px) {
    .search-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

/* ==========================================
   RESPONSIVE NAV ACTIONS - MOBILE FIRST
   ========================================== */
.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 1001;
    flex-shrink: 0;
}

/* Tablet nav actions */
@media (min-width: 768px) {
    .nav-actions {
        gap: 1rem;
    }
}

/* Desktop nav actions */
@media (min-width: 1024px) {
    .nav-actions {
        gap: 1.5rem;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    min-width: 50px;
}

/* Tablet nav items */
@media (min-width: 768px) {
    .nav-item {
        padding: 0.5rem 0.8rem;
        border-radius: 10px;
        min-width: 60px;
    }
}

/* Desktop nav items */
@media (min-width: 1024px) {
    .nav-item {
        padding: 0.5rem 1rem;
        min-width: 70px;
    }
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablet nav icons */
@media (min-width: 768px) {
    .nav-icon {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        width: 22px;
        height: 22px;
    }
}

/* Desktop nav icons */
@media (min-width: 1024px) {
    .nav-icon {
        font-size: 1.3rem;
        width: 24px;
        height: 24px;
    }
}

.nav-item div:last-child {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
}

/* Tablet nav text */
@media (min-width: 768px) {
    .nav-item div:last-child {
        font-size: 0.8rem;
    }
}

/* Desktop nav text */
@media (min-width: 1024px) {
    .nav-item div:last-child {
        font-size: 0.85rem;
    }
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: 2px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
    border: 1px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Tablet cart badge */
@media (min-width: 768px) {
    .cart-badge {
        top: -6px;
        right: 4px;
        padding: 0.2rem 0.45rem;
        font-size: 0.7rem;
        min-width: 20px;
        border: 2px solid white;
    }
}

/* Desktop cart badge */
@media (min-width: 1024px) {
    .cart-badge {
        top: -8px;
        right: 6px;
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
        min-width: 22px;
    }
}

/* ==========================================
   HAMBURGER MENU SYSTEM - MOBILE FIRST
   ========================================== */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1002;
    position: relative;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Tablet hamburger */
@media (min-width: 576px) and (max-width: 767px) {
    .hamburger-line {
        width: 25px;
        height: 3px;
        margin: 3px 0;
    }
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================
   RESPONSIVE CATEGORY BAR - MOBILE FIRST
   ========================================== */
.category-bar {
    background: linear-gradient(135deg, #CD853F 0%, #D2691E 100%);
    padding: 0;
    display: none; /* Hidden on mobile by default */
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 998;
}

/* Show category bar on tablet and up */
@media (min-width: 768px) {
    .category-bar {
        display: flex;
    }
}

.category-bar::-webkit-scrollbar {
    display: none;
}

/* Mobile menu version - always visible when active */
.category-bar.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: linear-gradient(180deg, #D2691E 0%, #8B4513 100%);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 70px;
    overflow-y: auto;
    display: flex; /* Always flex for mobile menu */
}

/* Smaller mobile menu on very small screens */
@media (max-width: 360px) {
    .category-bar.mobile-menu {
        width: 260px;
        padding-top: 65px;
    }
}

.category-bar.mobile-menu.active {
    left: 0;
}

.category-bar .fixed-category,
.category-bar .category-item {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    min-width: fit-content;
}

/* Tablet category items */
@media (min-width: 768px) {
    .category-bar .fixed-category,
    .category-bar .category-item {
        padding: 0.85rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Desktop category items */
@media (min-width: 1024px) {
    .category-bar .fixed-category,
    .category-bar .category-item {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

.category-bar .fixed-category:hover,
.category-bar .category-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.category-bar .fixed-category.active,
.category-bar .category-item.active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-bottom: 4px solid white !important;
    color: white !important;
    font-weight: 600 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-bar .fixed-category {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Mobile menu items styling */
.category-bar.mobile-menu .fixed-category,
.category-bar.mobile-menu .category-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    justify-content: flex-start;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.category-bar.mobile-menu .fixed-category:hover,
.category-bar.mobile-menu .category-item:hover {
    transform: none;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.2);
    padding-left: 2rem;
}

.category-bar.mobile-menu .fixed-category i,
.category-bar.mobile-menu .category-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Mobile menu active states */
.category-bar.mobile-menu .category-item.active,
.category-bar.mobile-menu .fixed-category.active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-left: 4px solid white !important;
    color: white !important;
    font-weight: 600 !important;
    padding-left: 2rem !important;
}

.category-bar.mobile-menu .category-item.active i,
.category-bar.mobile-menu .fixed-category.active i {
    color: white !important;
    transform: scale(1.1);
}

/* Mobile menu overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ==========================================
   RESPONSIVE UTILITIES & ANIMATIONS - MOBILE FIRST
   ========================================== */

/* Smooth scrolling for mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .nav-item:hover {
        transform: none;
    }

    .nav-item:active {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .arrow:hover {
        transform: none;
    }
    
    .arrow:active {
        transform: scale(0.95);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
    }

    .product-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-slider {
        height: 180px;
    }

    .product-detail {
        flex-direction: row;
    }

    .product-images {
        max-width: 50%;
    }
    
    nav {
        min-height: 50px;
        padding: 0.5rem 1rem;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {
    .top-banner,
    nav,
    .category-bar,
    .hamburger-menu,
    .mobile-overlay,
    footer,
    .cart-badge,
    .nav-actions,
    .slider-arrows,
    .slider-dots {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: white;
    }

    .container {
        max-width: none;
        padding: 0;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ==========================================
   RESPONSIVE VISIBILITY CLASSES
   ========================================== */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

/* Mobile visibility */
.d-mobile-only {
    display: block !important;
}

.d-desktop-only {
    display: none !important;
}

/* Tablet and up visibility */
@media (min-width: 768px) {
    .d-mobile-only {
        display: none !important;
    }

    .d-desktop-only {
        display: block !important;
    }
    
    .d-tablet-up {
        display: block !important;
    }
    
    .d-tablet-down {
        display: none !important;
    }
}

/* Desktop and up visibility */
@media (min-width: 1024px) {
    .d-desktop-up {
        display: block !important;
    }
    
    .d-desktop-down {
        display: none !important;
    }
}

/* Legacy support classes */
.d-md-none {
    display: block !important;
}

.d-md-block {
    display: block !important;
}

@media (max-width: 767px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }
}

/* ==========================================
   RESPONSIVE TEXT UTILITIES
   ========================================== */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Mobile text alignment */
.text-mobile-center {
    text-align: center !important;
}

@media (min-width: 768px) {
    .text-mobile-center {
        text-align: left !important;
    }
}

/* ==========================================
   RESPONSIVE SPACING UTILITIES
   ========================================== */
.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.m-0 {
    margin: 0 !important;
}

.p-0 {
    padding: 0 !important;
}

/* Margin utilities */
.mt-1 {
    margin-top: 0.5rem !important;
}

.mt-2 {
    margin-top: 1rem !important;
}

.mt-3 {
    margin-top: 1.5rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-1 {
    margin-bottom: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Padding utilities */
.pt-1 {
    padding-top: 0.5rem !important;
}

.pt-2 {
    padding-top: 1rem !important;
}

.pt-3 {
    padding-top: 1.5rem !important;
}

.pt-4 {
    padding-top: 2rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pb-1 {
    padding-bottom: 0.5rem !important;
}

.pb-2 {
    padding-bottom: 1rem !important;
}

.pb-3 {
    padding-bottom: 1.5rem !important;
}

.pb-4 {
    padding-bottom: 2rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.px-1 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.px-2 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-3 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.py-1 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-2 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-3 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Responsive spacing - larger on desktop */
@media (min-width: 768px) {
    .mt-md-1 {
        margin-top: 0.75rem !important;
    }

    .mt-md-2 {
        margin-top: 1.25rem !important;
    }

    .mt-md-3 {
        margin-top: 2rem !important;
    }

    .mt-md-4 {
        margin-top: 2.5rem !important;
    }

    .mt-md-5 {
        margin-top: 4rem !important;
    }

    .mb-md-1 {
        margin-bottom: 0.75rem !important;
    }

    .mb-md-2 {
        margin-bottom: 1.25rem !important;
    }

    .mb-md-3 {
        margin-bottom: 2rem !important;
    }

    .mb-md-4 {
        margin-bottom: 2.5rem !important;
    }

    .mb-md-5 {
        margin-bottom: 4rem !important;
    }
}

/* ==========================================
   RESPONSIVE FLEX UTILITIES
   ========================================== */
.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

/* Responsive flex direction */
.flex-mobile-column {
    flex-direction: column !important;
}

@media (min-width: 768px) {
    .flex-mobile-column {
        flex-direction: row !important;
    }
}

/* ==========================================
   RESPONSIVE ANIMATIONS
   ========================================== */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   RESPONSIVE CONTAINER SYSTEM
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* Tablet containers */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 1.5rem;
    }
    
    .container-fluid {
        padding: 0 1.5rem;
    }
}

/* Desktop containers */
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 2rem;
    }
    
    .container-fluid {
        padding: 0 2rem;
    }
}

/* Large desktop containers */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Extra large desktop containers */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ==========================================
   RESPONSIVE CONTENT LAYOUTS
   ========================================== */

/* ==========================================
   HERO SLIDER - FIXED ALIGNMENT & RESPONSIVE
   ========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 250px; /* Mobile height */
    overflow: hidden;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Tablet */
@media (min-width: 768px) {
    .hero-slider {
        height: 350px;
        margin-bottom: 2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero-slider {
        height: 400px;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .hero-slider {
        height: 450px;
    }
}

.slider-container {
    display: flex;
    width: 500%; /* 5 slides = 500% */
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    width: 20%; /* 100% / 5 slides = 20% */
    height: 100%;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    padding: 1rem;
}

.slide img {
    width: 100%;
    height: 100%;
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.2);
}

/* Tablet slide images */
@media (min-width: 768px) {
    .slide {
        padding: 1.5rem;
    }
    
    .slide img {
        border-radius: 12px;
        max-width: 85%;
        max-height: 80%;
    }
}

/* Desktop slide images */
@media (min-width: 1024px) {
    .slide {
        padding: 2rem;
    }
    
    .slide img {
        border-radius: 15px;
        max-width: 80%;
        max-height: 75%;
    }
}

.slide:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Tablet arrows */
@media (min-width: 768px) {
    .slider-arrows {
        padding: 0 1.5rem;
    }
}

/* Desktop arrows */
@media (min-width: 1024px) {
    .slider-arrows {
        padding: 0 2rem;
    }
}

.arrow {
    background: rgba(255, 255, 255, 0.9);
    color: #8B4513;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    pointer-events: all;
    border: 2px solid rgba(139, 69, 19, 0.2);
}

/* Tablet arrows */
@media (min-width: 768px) {
    .arrow {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
}

/* Desktop arrows */
@media (min-width: 1024px) {
    .arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

.arrow:hover {
    background: #8B4513;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* Tablet dots */
@media (min-width: 768px) {
    .slider-dots {
        bottom: 20px;
        gap: 10px;
    }
}

/* Desktop dots */
@media (min-width: 1024px) {
    .slider-dots {
        gap: 12px;
    }
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Tablet dots */
@media (min-width: 768px) {
    .dot {
        width: 12px;
        height: 12px;
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
}

.dot.active {
    background: white;
    width: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Tablet active dots */
@media (min-width: 768px) {
    .dot.active {
        width: 30px;
    }
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* ==========================================
   PRODUCTS SECTION - REDESIGNED
   ========================================== */
.products-section {
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
    background: white;
    position: relative;
    overflow: hidden;
}

/* Tablet products section */
@media (min-width: 768px) {
    .products-section {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Desktop products section */
@media (min-width: 1024px) {
    .products-section {
        padding: 3rem 2rem;
        margin-bottom: 2.5rem;
    }
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #ffd700;
    text-align: center;
}

/* Tablet section header */
@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        margin-bottom: 2rem;
    }
}

.section-title {
    color: #8B4513;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Tablet section title */
@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Desktop section title */
@media (min-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
}

/* Large desktop section title */
@media (min-width: 1200px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.view-all-btn {
    color: #D2691E;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border: 2px solid #D2691E;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

/* Tablet view all button */
@media (min-width: 768px) {
    .view-all-btn {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
}

/* Desktop view all button */
@media (min-width: 1024px) {
    .view-all-btn {
        font-size: 1.1rem;
        padding: 0.7rem 2rem;
    }
}

.view-all-btn:hover {
    background: #D2691E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Small mobile - 2 columns */
@media (min-width: 480px) {
    .products-grid {
        gap: 1.2rem;
    }
}

/* Tablet - 3 columns */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

/* Desktop - 4 columns */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        padding: 0 1rem;
    }
}

/* Large desktop - 5 columns */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2.5rem;
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: auto;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.25);
    border-color: var(--accent-brown);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 6px 20px rgba(139, 69, 19, 0.15);
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
}

.product-image {
    width: 100%;
    height: 140px; /* Compact height for mobile */
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

/* Tablet product image */
@media (min-width: 768px) {
    .product-image {
        height: 160px;
    }
}

/* Desktop product image */
@media (min-width: 1024px) {
    .product-image {
        height: 180px;
    }
}

/* Large desktop product image */
@media (min-width: 1200px) {
    .product-image {
        height: 200px;
    }
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 0.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Tablet product info */
@media (min-width: 768px) {
    .product-info {
        padding: 1rem;
    }
}

/* Desktop product info */
@media (min-width: 1024px) {
    .product-info {
        padding: 1.2rem;
    }
}

.product-name {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem; /* Ensure consistent height */
}

/* Tablet product name */
@media (min-width: 768px) {
    .product-name {
        font-size: 1rem;
        min-height: 2.6rem;
    }
}

/* Desktop product name */
@media (min-width: 1024px) {
    .product-name {
        font-size: 1.1rem;
        min-height: 2.8rem;
    }
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.3rem 0;
}

.stars {
    color: var(--warning);
    font-size: 0.7rem;
}

/* Tablet stars */
@media (min-width: 768px) {
    .stars {
        font-size: 0.8rem;
    }
}

/* Desktop stars */
@media (min-width: 1024px) {
    .stars {
        font-size: 0.9rem;
    }
}

.rating-count {
    color: var(--text-light);
    font-size: 0.65rem;
}

/* Tablet rating count */
@media (min-width: 768px) {
    .rating-count {
        font-size: 0.7rem;
    }
}

/* Desktop rating count */
@media (min-width: 1024px) {
    .rating-count {
        font-size: 0.75rem;
    }
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    margin-top: auto;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-brown);
}

/* Tablet current price */
@media (min-width: 768px) {
    .current-price {
        font-size: 1.1rem;
    }
}

/* Desktop current price */
@media (min-width: 1024px) {
    .current-price {
        font-size: 1.2rem;
    }
}

.old-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Tablet old price */
@media (min-width: 768px) {
    .old-price {
        font-size: 0.9rem;
    }
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

/* Tablet product actions */
@media (min-width: 768px) {
    .product-actions {
        gap: 0.6rem;
        margin-top: 1rem;
    }
}

.add-to-cart-btn,
.buy-now-btn {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    border: 2px solid transparent;
    min-height: 36px; /* Touch-friendly minimum */
}

/* Tablet buttons */
@media (min-width: 768px) {
    .add-to-cart-btn,
    .buy-now-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
}

/* Desktop buttons */
@media (min-width: 1024px) {
    .add-to-cart-btn,
    .buy-now-btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
}

.add-to-cart-btn {
    background: transparent;
    color: var(--primary-brown);
    border-color: var(--primary-brown);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.add-to-cart-btn:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.2);
}

.buy-now-btn {
    background: linear-gradient(135deg, var(--accent-brown) 0%, var(--secondary-brown) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.2);
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--dark-brown) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
    border-color: var(--primary-brown);
}

.buy-now-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

/* Touch device optimizations for buttons */
@media (hover: none) and (pointer: coarse) {
    .add-to-cart-btn:hover,
    .buy-now-btn:hover {
        transform: none;
    }
    
    .add-to-cart-btn:active {
        background: var(--primary-brown);
        color: var(--white);
        transform: scale(0.98);
    }
    
    .buy-now-btn:active {
        transform: scale(0.98);
    }
}

/* ==========================================
   RESPONSIVE BREAKPOINTS FOR CONTENT
   ========================================== */

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-slider {
        height: 500px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .hero-slider {
        height: 450px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .hero-slider {
        height: 400px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .product-image {
        height: 220px;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .hero-slider {
        height: 300px;
        margin-bottom: 1.5rem;
    }

    .products-section {
        padding: 2rem 0;
        margin-bottom: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .current-price {
        font-size: 1.2rem;
    }

    .arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-arrows {
        padding: 0 0.5rem;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    .hero-slider {
        height: 250px;
        margin-bottom: 1rem;
    }

    .products-section {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.25rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-header {
        margin-bottom: 1rem;
        padding: 0 0.25rem;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .current-price {
        font-size: 1.1rem;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 479px) {
    .hero-slider {
        height: 200px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 0.5rem;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .current-price {
        font-size: 1rem;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
}

/* ==========================================
   RESPONSIVE FOOTER
   ========================================== */
/* ==========================================
   RESPONSIVE FOOTER - MOBILE FIRST
   ========================================== */
footer {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    color: white;
    padding: 2rem 1rem 1rem;
    margin-top: 2rem;
}

/* Tablet footer */
@media (min-width: 768px) {
    footer {
        padding: 2.5rem 2rem 1.5rem;
        margin-top: 2.5rem;
    }
}

/* Desktop footer */
@media (min-width: 1024px) {
    footer {
        padding: 3rem 5% 2rem;
        margin-top: 3rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Tablet footer content */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        text-align: left;
    }
}

/* Desktop footer content */
@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem;
    }
}

.footer-section h3 {
    color: #D2691E;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Tablet footer section title */
@media (min-width: 768px) {
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
}

/* Desktop footer section title */
@media (min-width: 1024px) {
    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Desktop footer links */
@media (min-width: 1024px) {
    .footer-section p,
    .footer-section a {
        font-size: 1rem;
    }
}

.footer-section a:hover {
    color: #D2691E;
}

/* Footer logo container responsive */
.footer-section .logo-container {
    gap: 0.5rem;
    padding: 0.3rem;
    justify-content: center;
}

/* Tablet footer logo */
@media (min-width: 768px) {
    .footer-section .logo-container {
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0.4rem;
    }
}

/* Desktop footer logo */
@media (min-width: 1024px) {
    .footer-section .logo-container {
        gap: 1rem;
        padding: 0.5rem;
    }
}

.footer-section .logo-container .logo-image {
    width: 50px;
    height: 50px;
}

/* Tablet footer logo image */
@media (min-width: 768px) {
    .footer-section .logo-container .logo-image {
        width: 55px;
        height: 55px;
    }
}

/* Desktop footer logo image */
@media (min-width: 1024px) {
    .footer-section .logo-container .logo-image {
        width: 60px;
        height: 60px;
    }
}

.footer-section .logo-container .logo-text {
    font-size: 1.4rem;
}

/* Tablet footer logo text */
@media (min-width: 768px) {
    .footer-section .logo-container .logo-text {
        font-size: 1.6rem;
    }
}

/* Desktop footer logo text */
@media (min-width: 1024px) {
    .footer-section .logo-container .logo-text {
        font-size: 1.8rem;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Tablet footer bottom */
@media (min-width: 768px) {
    .footer-bottom {
        padding-top: 2rem;
        margin-top: 2rem;
        font-size: 0.9rem;
    }
}

/* Desktop footer bottom */
@media (min-width: 1024px) {
    .footer-bottom {
        font-size: 1rem;
    }
}

/* ==========================================
   RESPONSIVE PAGE-SPECIFIC STYLES - MOBILE FIRST
   ========================================== */

/* Custom Page Container */
.custom-page-container,
.product-detail-container,
.auth-container,
.checkout-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

/* Tablet page containers */
@media (min-width: 768px) {
    .custom-page-container,
    .product-detail-container,
    .auth-container,
    .checkout-container {
        margin: 1.5rem auto;
        padding: 0 2rem;
    }
}

/* Desktop page containers */
@media (min-width: 1024px) {
    .custom-page-container,
    .product-detail-container,
    .auth-container,
    .checkout-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 5px solid #D2691E;
}

/* Tablet page header */
@media (min-width: 768px) {
    .page-header {
        margin-bottom: 2.5rem;
        padding: 2rem;
    }
}

/* Desktop page header */
@media (min-width: 1024px) {
    .page-header {
        margin-bottom: 3rem;
        padding: 2.5rem;
    }
}

.page-header h1 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

/* Tablet page header title */
@media (min-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* Desktop page header title */
@media (min-width: 1024px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
}

.page-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Tablet page content */
@media (min-width: 768px) {
    .page-content {
        padding: 2rem;
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* Desktop page content */
@media (min-width: 1024px) {
    .page-content {
        padding: 2.5rem;
        font-size: 1.1rem;
    }
}

/* ==========================================
   RESPONSIVE AUTH PAGES - MOBILE FIRST
   ========================================== */
.auth-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Tablet auth card */
@media (min-width: 768px) {
    .auth-card {
        padding: 2rem;
    }
}

/* Desktop auth card */
@media (min-width: 1024px) {
    .auth-card {
        padding: 2.5rem;
    }
}

.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

/* Tablet auth tabs */
@media (min-width: 768px) {
    .auth-tabs {
        margin-bottom: 2rem;
    }
}

.auth-tab {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tablet auth tab */
@media (min-width: 768px) {
    .auth-tab {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Desktop auth tab */
@media (min-width: 1024px) {
    .auth-tab {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
}

.auth-tab.active {
    background: #D2691E;
    color: white;
}

.form-group {
    margin-bottom: 1.2rem;
}

/* Tablet form group */
@media (min-width: 768px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Desktop form label */
@media (min-width: 1024px) {
    .form-group label {
        font-size: 1rem;
    }
}

.form-group input {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

/* Tablet form input */
@media (min-width: 768px) {
    .form-group input {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

/* Desktop form input */
@media (min-width: 1024px) {
    .form-group input {
        padding: 0.9rem;
    }
}

.form-group input:focus {
    outline: none;
    border-color: #D2691E;
}

/* ==========================================
   RESPONSIVE PRODUCT PAGE - MOBILE FIRST
   ========================================== */
.back-button-container {
    margin-bottom: 1.5rem;
}

/* Tablet back button container */
@media (min-width: 768px) {
    .back-button-container {
        margin-bottom: 2rem;
    }
}

.back-to-products-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}

/* Tablet back button */
@media (min-width: 768px) {
    .back-to-products-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        gap: 0.6rem;
    }
}

/* Desktop back button */
@media (min-width: 1024px) {
    .back-to-products-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

.back-to-products-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #A0522D 0%, #8B4513 100%);
}

.back-to-products-btn:active {
    transform: translateX(-3px);
}

.back-to-products-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* Tablet back button icon */
@media (min-width: 768px) {
    .back-to-products-btn i {
        font-size: 1.1rem;
    }
}

.back-to-products-btn:hover i {
    transform: translateX(-3px);
}

.product-detail {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

/* Tablet product detail */
@media (min-width: 768px) {
    .product-detail {
        padding: 2rem;
        gap: 2.5rem;
    }
}

/* Desktop product detail */
@media (min-width: 1024px) {
    .product-detail {
        flex-direction: row;
        gap: 3rem;
        padding: 2.5rem;
    }
}

.product-images {
    flex: 1;
    max-width: 100%;
}

/* Desktop product images */
@media (min-width: 1024px) {
    .product-images {
        max-width: 500px;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

.product-details {
    flex: 1;
    max-width: 100%;
}

/* Desktop product details */
@media (min-width: 1024px) {
    .product-details {
        max-width: 600px;
    }
}

.main-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Tablet main image */
@media (min-width: 768px) {
    .main-image {
        height: 400px;
        border-radius: 15px;
    }
}

/* Desktop main image */
@media (min-width: 1024px) {
    .main-image {
        height: 500px;
    }
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-details h1 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Tablet product title */
@media (min-width: 768px) {
    .product-details h1 {
        font-size: 1.8rem;
    }
}

/* Desktop product title */
@media (min-width: 1024px) {
    .product-details h1 {
        font-size: 2rem;
    }
}

.product-price-section {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Tablet product price section */
@media (min-width: 768px) {
    .product-price-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

.price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #8B4513;
}

/* Tablet current price */
@media (min-width: 768px) {
    .current-price {
        font-size: 1.8rem;
    }
}

/* Desktop current price */
@media (min-width: 1024px) {
    .current-price {
        font-size: 2rem;
    }
}

.old-price {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

/* Desktop old price */
@media (min-width: 1024px) {
    .old-price {
        font-size: 1.2rem;
    }
}

.tax-info {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* Desktop tax info */
@media (min-width: 1024px) {
    .tax-info {
        font-size: 0.9rem;
    }
}

.specifications,
.product-description {
    margin-bottom: 1.5rem;
}

/* Desktop specifications */
@media (min-width: 1024px) {
    .specifications,
    .product-description {
        margin-bottom: 2rem;
    }
}

.specifications h3,
.product-description h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #8B0000;
}

/* Desktop section titles */
@media (min-width: 1024px) {
    .specifications h3,
    .product-description h3 {
        font-size: 1.3rem;
    }
}

.specs-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    white-space: pre-line;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Desktop specs content */
@media (min-width: 1024px) {
    .specs-content {
        font-size: 1rem;
    }
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Tablet product actions */
@media (min-width: 768px) {
    .product-actions {
        flex-direction: row;
        margin-bottom: 2rem;
    }
}

.product-actions .add-to-cart-btn,
.product-actions .buy-now-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: 50px;
}

/* Desktop product action buttons */
@media (min-width: 1024px) {
    .product-actions .add-to-cart-btn,
    .product-actions .buy-now-btn {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
}

.product-description p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Desktop product description */
@media (min-width: 1024px) {
    .product-description p {
        font-size: 1rem;
    }
}

/* ==========================================
   RESPONSIVE CART PAGE
   ========================================== */
.cart-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cart-items {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-summary {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

/* ==========================================
   RESPONSIVE AUTH PAGES
   ========================================== */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    font-weight: 600;
}

.auth-tab.active {
    background: #D2691E;
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #D2691E;
}

/* ==========================================
   RESPONSIVE PRODUCT PAGE
   ========================================== */
.product-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.product-detail {
    display: flex;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.product-images {
    flex: 1;
    max-width: 500px;
}

.product-details {
    flex: 1;
    max-width: 600px;
}

.back-button-container {
    margin-bottom: 2rem;
}

.back-to-products-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS FOR PAGES
   ========================================== */

/* Tablet Responsive */
@media (max-width: 991px) {

    .custom-page-container,
    .cart-container,
    .product-detail-container {
        padding: 0 0.75rem;
        margin: 1.5rem auto;
    }

    .page-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-content {
        padding: 1.5rem;
    }

    .cart-content {
        gap: 1.5rem;
    }

    .product-detail {
        gap: 2rem;
        padding: 1.5rem;
    }
}

/* Mobile Large Responsive */
@media (max-width: 767px) {

    .custom-page-container,
    .cart-container,
    .product-detail-container,
    .auth-container {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }

    .page-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-content {
        padding: 1rem;
    }

    .cart-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .cart-summary {
        position: static;
        margin-top: 1rem;
    }

    .product-detail {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .product-images {
        max-width: 100%;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-tabs {
        margin-bottom: 1.5rem;
    }

    .auth-tab {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Mobile Small Responsive */
@media (max-width: 575px) {

    .custom-page-container,
    .cart-container,
    .product-detail-container,
    .auth-container {
        padding: 0 0.25rem;
        margin: 0.75rem auto;
    }

    .page-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .page-content {
        padding: 0.75rem;
    }

    .cart-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .product-detail {
        padding: 0.75rem;
        gap: 1.5rem;
    }

    .auth-card {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
}

/* Mobile Extra Small Responsive */
@media (max-width: 479px) {
    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-content {
        padding: 0.5rem;
    }

    .cart-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .product-detail {
        padding: 0.5rem;
        gap: 1rem;
    }

    .auth-card {
        padding: 0.75rem;
    }

    .auth-tab {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .form-group input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   RESPONSIVE UTILITIES & ANIMATIONS
   ========================================== */

/* Smooth scrolling for mobile */
@media (max-width: 767px) {
    html {
        scroll-behavior: smooth;
    }

    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .nav-item:hover {
        transform: none;
    }

    .nav-item:active {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo-img {
        background-size: contain;
    }

    .product-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-slider {
        height: 200px;
    }

    .product-detail {
        flex-direction: row;
    }

    .product-images {
        max-width: 50%;
    }
}

/* Print styles */
@media print {

    .top-banner,
    nav,
    .category-bar,
    .hamburger-menu,
    .mobile-overlay,
    footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* ==========================================
   LIVE SEARCH SUGGESTIONS STYLES
   ========================================== */

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.suggestion-item:hover,
.suggestion-item.highlighted {
    background: #f8f9fa;
    border-left: 4px solid #D2691E;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 0.75rem;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-image i {
    color: #D2691E;
    font-size: 1.2rem;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.suggestion-price {
    color: #D2691E;
    font-weight: 600;
}

.suggestion-category {
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.suggestion-type {
    background: #D2691E;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.no-suggestions {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.search-loading {
    padding: 1rem;
    text-align: center;
    color: #D2691E;
}

.search-loading i {
    animation: spin 1s linear infinite;
}

/* Mobile Search Suggestions */
.mobile-suggestions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(210, 105, 30, 0.2);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-suggestions .suggestion-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-suggestions .suggestion-item:hover,
.mobile-suggestions .suggestion-item.highlighted {
    background: rgba(210, 105, 30, 0.1);
    border-left: 4px solid #D2691E;
}

/* Search Input Focus States */
.search-bar input:focus {
    outline: none;
    border-radius: 25px 25px 0 0;
}

.search-bar input:focus+.search-btn {
    border-radius: 0 25px 0 0;
}

/* Responsive Search Suggestions */
@media (max-width: 767px) {
    .search-suggestions {
        max-height: 300px;
        border-radius: 0 0 10px 10px;
    }

    .suggestion-item {
        padding: 0.6rem 0.8rem;
    }

    .suggestion-image {
        width: 35px;
        height: 35px;
        margin-right: 0.6rem;
    }

    .suggestion-name {
        font-size: 0.9rem;
    }

    .suggestion-meta {
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .search-suggestions {
        max-height: 250px;
    }

    .suggestion-item {
        padding: 0.5rem 0.6rem;
    }

    .suggestion-image {
        width: 30px;
        height: 30px;
        margin-right: 0.5rem;
    }

    .suggestion-name {
        font-size: 0.85rem;
    }

    .suggestion-meta {
        font-size: 0.7rem;
        flex-wrap: wrap;
    }
}

/* Search Highlight */
.search-highlight {
    background: rgba(210, 105, 30, 0.2);
    font-weight: 600;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

/* Animation for suggestions */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestions.show {
    animation: slideDown 0.2s ease-out;
}

/* Scrollbar for suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #D2691E;
    border-radius: 3px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #8B4513;
}

/* Focus trap for accessibility */
.search-suggestions:focus-within {
    outline: 2px solid #D2691E;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .search-suggestions {
        border: 2px solid #000;
    }

    .suggestion-item:hover,
    .suggestion-item.highlighted {
        background: #000;
        color: #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .search-suggestions.show {
        animation: none;
    }

    .suggestion-item {
        transition: none;
    }
}

/* ==========================================
   SEARCH PAGE RESPONSIVE
   ========================================== */

/* Tablet */
@media (max-width: 991px) {
    .search-results-header {
        padding: 1.5rem 3%;
    }

    .search-results-header h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 3%;
    }

    .search-results-content {
        padding: 0 3%;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .search-results-header {
        padding: 1rem 2%;
    }

    .search-results-header h1 {
        font-size: 1.8rem;
    }

    .search-query {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0 2%;
    }

    .search-results-content {
        padding: 0 2%;
    }

    .suggestion-tags {
        justify-content: center;
    }

    .suggestion-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .no-results {
        margin: 1rem 2%;
        padding: 2rem 1rem;
    }

    .no-results-icon {
        font-size: 3rem;
    }

    .no-results h2 {
        font-size: 1.5rem;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    .search-results-header {
        padding: 1rem 1%;
    }

    .search-results-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .search-query {
        font-size: 0.9rem;
    }

    .results-count {
        font-size: 0.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
        padding: 0 1%;
    }

    .search-results-content {
        padding: 0 1%;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .product-price {
        font-size: 0.85rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .back-home-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .no-results {
        padding: 2rem 1rem;
        margin: 1rem 1%;
    }

    .no-results h2 {
        font-size: 1.3rem;
    }

    .no-results p {
        font-size: 0.9rem;
    }

    .suggestion-tags {
        gap: 0.25rem;
    }

    .suggestion-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ==========================================
   RESPONSIVE CART PAGE - MOBILE FIRST
   ========================================== */
.cart-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

/* Tablet cart container */
@media (min-width: 768px) {
    .cart-container {
        margin: 1.5rem auto;
        padding: 0 2rem;
    }
}

/* Desktop cart container */
@media (min-width: 1024px) {
    .cart-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }
}

.cart-container h1 {
    color: #8B4513;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.2;
}

/* Tablet cart title */
@media (min-width: 768px) {
    .cart-container h1 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
}

/* Desktop cart title */
@media (min-width: 1024px) {
    .cart-container h1 {
        font-size: 2.5rem;
    }
}

.cart-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #D2691E;
    text-align: center;
}

/* Tablet cart header */
@media (min-width: 768px) {
    .cart-header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        margin-bottom: 2rem;
    }
}

.cart-header h2 {
    color: #8B4513;
    margin: 0;
    font-size: 1.2rem;
}

/* Tablet cart header title */
@media (min-width: 768px) {
    .cart-header h2 {
        font-size: 1.4rem;
    }
}

/* Desktop cart header title */
@media (min-width: 1024px) {
    .cart-header h2 {
        font-size: 1.5rem;
    }
}

.clear-cart-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Tablet clear cart button */
@media (min-width: 768px) {
    .clear-cart-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

.clear-cart-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Tablet cart content */
@media (min-width: 768px) {
    .cart-content {
        gap: 2rem;
    }
}

/* Desktop cart content - side by side layout */
@media (min-width: 1024px) {
    .cart-content {
        grid-template-columns: 2fr 1fr;
    }
}

/* Large desktop cart content */
@media (min-width: 1200px) {
    .cart-content {
        grid-template-columns: 2.5fr 1fr;
    }
}

.cart-items {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    position: relative;
    background: white;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: #f8f9fa;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Mobile cart item layout */
.item-image {
    float: left;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    overflow: hidden;
    margin-bottom: 1rem;
    padding-right: 1rem;
}

.item-details h3 {
    color: #8B4513;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.item-details .item-price {
    color: #D2691E;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.item-details .added-time {
    color: #666;
    font-size: 0.75rem;
    font-style: italic;
    margin: 0;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    clear: both;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 0.25rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #D2691E;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

.qty-btn:hover {
    background: #8B4513;
    transform: scale(1.05);
}

.qty-btn.minus {
    background: #6c757d;
}

.qty-btn.minus:hover {
    background: #5a6268;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.item-total {
    font-size: 1rem;
    font-weight: 700;
    color: #8B4513;
    text-align: right;
    min-width: 80px;
}

.remove-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    min-width: 30px;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Tablet cart item layout */
@media (min-width: 768px) {
    .cart-item {
        display: grid;
        grid-template-columns: 100px 1fr auto auto auto;
        gap: 1.5rem;
        align-items: center;
        padding: 1.5rem;
    }
    
    .item-image {
        float: none;
        width: 100px;
        height: 100px;
        margin: 0;
    }
    
    .item-details {
        margin: 0;
        padding: 0;
        overflow: visible;
    }
    
    .item-details h3 {
        font-size: 1.1rem;
    }
    
    .item-details .item-price {
        font-size: 1rem;
    }
    
    .item-details .added-time {
        font-size: 0.8rem;
    }
    
    .cart-item-actions {
        display: contents; /* Use grid layout instead */
        margin: 0;
        padding: 0;
        border: none;
    }
    
    .item-quantity {
        background: #f8f9fa;
        border-radius: 25px;
        padding: 0.25rem;
    }
    
    .qty-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .qty-input {
        width: 50px;
        font-size: 1rem;
    }
    
    .item-total {
        font-size: 1.2rem;
        text-align: right;
        min-width: 100px;
    }
    
    .remove-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Desktop cart item enhancements */
@media (min-width: 1024px) {
    .cart-item {
        grid-template-columns: 120px 1fr auto auto auto;
        gap: 2rem;
    }
    
    .item-image {
        width: 120px;
        height: 120px;
    }
    
    .item-details h3 {
        font-size: 1.2rem;
    }
    
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .qty-input {
        width: 55px;
        font-size: 1.1rem;
    }
    
    .item-total {
        font-size: 1.3rem;
    }
    
    .remove-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.cart-summary {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: fit-content;
}

/* Desktop cart summary - sticky */
@media (min-width: 1024px) {
    .cart-summary {
        position: sticky;
        top: 2rem;
        padding: 2rem;
    }
}

.cart-summary h2 {
    color: #8B4513;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    text-align: center;
}

/* Desktop cart summary title */
@media (min-width: 1024px) {
    .cart-summary h2 {
        font-size: 1.5rem;
    }
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

/* Tablet summary row */
@media (min-width: 768px) {
    .summary-row {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    border-top: 2px solid #D2691E;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Tablet summary total */
@media (min-width: 768px) {
    .summary-row.total {
        font-size: 1.2rem;
    }
}

.free-shipping {
    color: #28a745 !important;
    font-weight: 600;
}

.free-shipping-note {
    background: #d4edda;
    color: #155724;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    text-align: center;
    border: 1px solid #c3e6cb;
    margin: 0.5rem 0;
}

/* Tablet free shipping note */
@media (min-width: 768px) {
    .free-shipping-note {
        font-size: 0.9rem;
    }
}

.free-shipping-note span {
    font-weight: 600;
}

.checkout-actions {
    margin-bottom: 1.5rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Desktop checkout button */
@media (min-width: 1024px) {
    .checkout-btn {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.4);
}

.continue-shopping {
    display: block;
    width: 100%;
    background: transparent;
    color: #D2691E;
    text-decoration: none;
    padding: 0.75rem;
    border: 2px solid #D2691E;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Desktop continue shopping */
@media (min-width: 1024px) {
    .continue-shopping {
        font-size: 1rem;
        padding: 1rem;
    }
}

.continue-shopping:hover {
    background: #D2691E;
    color: white;
}

.cart-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.cart-info p {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* Tablet cart info */
@media (min-width: 768px) {
    .cart-info p {
        font-size: 0.9rem;
    }
}

.cart-info i {
    color: #28a745;
    margin-right: 0.5rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tablet empty cart */
@media (min-width: 768px) {
    .empty-cart {
        padding: 4rem 2rem;
    }
}

.empty-cart i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Tablet empty cart icon */
@media (min-width: 768px) {
    .empty-cart i {
        font-size: 4rem;
    }
}

.empty-cart h2 {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Tablet empty cart title */
@media (min-width: 768px) {
    .empty-cart h2 {
        font-size: 2rem;
    }
}

.empty-cart p {
    color: #999;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.shop-now-btn {
    display: inline-block;
    background: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.shop-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.4);
}

/* ==========================================
   ENHANCED MOBILE CART FUNCTIONALITY
   ========================================== */
@media (max-width: 767px) {

    /* Improved mobile cart item layout */
    .cart-item {
        display: block;
        position: relative;
        padding: 1rem;
        border-radius: 10px;
        margin-bottom: 1rem;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .cart-item:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .item-image {
        float: left;
        margin-right: 1rem;
        margin-bottom: 0.5rem;
    }

    .item-image img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }

    .item-details {
        overflow: hidden;
        margin-bottom: 1rem;
        padding-right: 1rem;
    }

    .item-details h3 {
        margin-bottom: 0.5rem;
        line-height: 1.3;
        font-size: 1rem;
        color: #8B4513;
    }

    .item-price {
        color: #D2691E;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .added-time {
        color: #666;
        font-size: 0.8rem;
        font-style: italic;
    }

    .mobile-cart-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f0f0f0;
        clear: both;
    }

    .item-quantity {
        position: static;
        background: #f8f9fa;
        border-radius: 25px;
        padding: 0.25rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
        border: none;
        background: #D2691E;
        color: white;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1rem;
        font-weight: bold;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qty-btn:hover {
        background: #8B4513;
        transform: scale(1.05);
    }

    .qty-input {
        width: 45px;
        text-align: center;
        border: none;
        background: transparent;
        font-weight: 600;
        font-size: 1rem;
        color: #333;
    }

    .item-total {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        font-size: 1.1rem;
        font-weight: 700;
        color: #8B4513;
    }

    .remove-btn {
        position: static;
        margin-left: 1rem;
        background: #dc3545;
        color: white;
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .remove-btn:hover {
        background: #c82333;
        transform: scale(1.05);
    }

    /* Cart header mobile adjustments */
    .cart-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .cart-header h2 {
        font-size: 1.2rem;
        justify-content: center;
    }

    .clear-cart-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Cart summary mobile adjustments */
    .cart-summary {
        position: static;
        margin-top: 2rem;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    }

    .cart-summary::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #D2691E;
        border-radius: 2px;
    }

    .checkout-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 50px;
    }

    .continue-shopping {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 50px;
    }
}

/* ==========================================
   ENHANCED LOGO STYLING - RESPONSIVE
   ========================================== */

/* Desktop Logo */
@media (min-width: 768px) {
    .logo-image {
        height: 70px;
        max-width: 70px;
        background: transparent !important;
    }

    .logo-text {
        font-size: 2.2rem;
    }
}

/* Tablet Logo */
@media (max-width: 767px) and (min-width: 576px) {
    .logo-image {
        height: 60px;
        max-width: 60px;
        background: transparent !important;
    }

    .logo-text {
        font-size: 1.8rem;
    }
}

/* Mobile Logo */
@media (max-width: 575px) {
    .logo-image {
        height: 50px;
        max-width: 50px;
        background: transparent !important;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-container {
        gap: 0.5rem;
        padding: 0.3rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 479px) {
    .logo-image {
        height: 45px;
        max-width: 45px;
        background: transparent !important;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-container {
        gap: 0.4rem;
        padding: 0.2rem;
    }
}

/* ==========================================
   NO PRELOADER - CLEAN ANIMATIONS
   ========================================== */

/* Remove all spinner animations */
*::before,
*::after {
    animation: none !important;
}

/* Override any remaining loading states */
.loading::before,
.loading::after,
.spinner::before,
.spinner::after {
    display: none !important;
}

/* Clean image transitions */
img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ensure no loading overlays */
.image-loading-overlay,
.loading-overlay,
.spinner-overlay {
    display: none !important;
}

/* ==========================================
   RESPONSIVE BACKGROUND PATTERNS
   ========================================== */

/* Mobile Pattern Adjustments */
@media (max-width: 768px) {

    /* Reduce pattern opacity on mobile for better readability */
    body::before {
        opacity: 0.15 !important;
    }

    /* Scale down pattern sizes on mobile */
    body.pattern-floral::before,
    body.pattern-geometric::before,
    body.pattern-waves::before,
    body.pattern-traditional::before,
    body.pattern-mandala::before,
    body.pattern-hexagon::before,
    body.pattern-pottery::before,
    body.pattern-tribal::before,
    body.pattern-clay-texture::before,
    body.pattern-spiral::before,
    body.pattern-diamond::before {
        background-size: 50% 50% !important;
    }

    /* Ensure content areas have better contrast on mobile */
    .page-content,
    .auth-container,
    .cart-container,
    .checkout-container,
    .profile-container,
    .main-content {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(2px);
    }
}

/* Tablet Pattern Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    body::before {
        opacity: 0.25 !important;
    }

    body.pattern-floral::before,
    body.pattern-geometric::before,
    body.pattern-waves::before,
    body.pattern-traditional::before,
    body.pattern-mandala::before,
    body.pattern-hexagon::before,
    body.pattern-pottery::before,
    body.pattern-tribal::before,
    body.pattern-clay-texture::before,
    body.pattern-spiral::before,
    body.pattern-diamond::before {
        background-size: 75% 75% !important;
    }
}

/* Large Screen Pattern Enhancements */
@media (min-width: 1400px) {
    body::before {
        opacity: 0.35 !important;
    }
}

/* High DPI Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    body::before {
        background-size: 150% 150% !important;
    }
}

/* Pattern Animation for Modern Browsers */
@media (prefers-reduced-motion: no-preference) {

    body.pattern-spiral::before,
    body.pattern-mandala::before {
        animation: subtleRotate 60s linear infinite;
    }

    body.pattern-waves::before {
        animation: subtleFloat 30s ease-in-out infinite;
    }
}

@keyframes subtleRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Accessibility - Respect user preferences */
@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none !important;
    }
}

/* Dark Mode Pattern Adjustments */
@media (prefers-color-scheme: dark) {
    body::before {
        opacity: 0.1 !important;
        filter: invert(1) hue-rotate(180deg);
    }
}

/* Print Styles - Remove patterns for printing */
@media print {
    body::before {
        display: none !important;
    }

    .page-content,
    .auth-container,
    .cart-container,
    .checkout-container,
    .profile-container,
    .main-content {
        background: white !important;
        box-shadow: none !important;
    }
}

/* Enhanced Mobile Menu Active States */
.category-bar.mobile-menu .category-item.active,
.category-bar.mobile-menu .fixed-category.active {
    background: rgba(255, 255, 255, 0.2) !important;
    border-left: 4px solid white !important;
    color: white !important;
    font-weight: 600 !important;
    padding-left: 2rem !important;
}

.category-bar.mobile-menu .category-item.active i,
.category-bar.mobile-menu .fixed-category.active i {
    color: white !important;
    transform: scale(1.1);
}
/* ==========================================
   PAGE SPECIFIC RESPONSIVE ADJUSTMENTS
   ========================================== */

/* Cart Page Responsive */
@media (max-width: 991px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-summary {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .cart-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cart-header h2 {
        justify-content: center;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1.5rem;
        position: relative;
    }
    
    .cart-item-actions {
        position: absolute;
        top: 1rem;
        right: 1rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .item-image img {
        width: 80px;
        height: 80px;
    }
    
    .item-total {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 0 1rem;
    }
    
    .cart-item {
        padding: 1rem;
    }
    
    .cart-item-actions {
        position: static;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }
    
    .item-total {
        position: static;
        margin-top: 0.5rem;
        text-align: right;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .item-image {
        margin: 0 auto;
    }
    
    .item-details h3 {
        font-size: 1.1rem;
    }
}

/* Product Detail Responsive */
@media (max-width: 991px) {
    .product-detail {
        flex-direction: column;
        gap: 2rem;
        display: flex;
    }
    
    .product-images {
        width: 100%;
        margin-right: 0;
    }
    
    .main-image-container {
        height: 400px;
    }
    
    .product-details {
        width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .main-image-container {
        height: 300px;
    }
    
    .product-details h1 {
        font-size: 1.5rem;
    }
    
    .product-price-section .current-price {
        font-size: 1.3rem;
    }
}

/* Auth Page Responsive */
@media (max-width: 576px) {
    .auth-container {
        width: 95%;
        margin: 2rem auto;
        padding: 1.5rem;
    }
    
    .auth-tabs button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Checkout Page Responsive */
@media (max-width: 768px) {
    .checkout-container {
        padding: 0 1rem;
    }
    
    .address-card {
        padding: 1rem;
    }
    
    .summary-item {
        font-size: 0.9rem;
    }
}


/* Error Page Responsive */
@media (max-width: 576px) {
    .error-container {
        padding: 1.5rem !important;
        margin: 2rem auto !important;
    }
    
    .error-container h1 {
        font-size: 2.5rem !important;
    }
    
    .error-icon {
        font-size: 5rem !important;
    }
}


/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
}

/* Profile Page Responsive */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-container {
        padding: 0 1rem;
    }
    
    .profile-container h1 {
        font-size: 2rem;
        justify-content: center;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-content {
        order: 1;
        padding: 1.5rem;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
    }
}


/* My Orders Page Responsive */
@media (max-width: 767px) {
    .orders-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .orders-container h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .order-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .order-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .order-number {
        font-size: 1.1rem;
    }
    
    .order-status {
        align-self: flex-end;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .order-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .order-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .order-total {
        font-size: 1.2rem;
    }
    
    .view-details-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        align-self: stretch;
        text-align: center;
    }
    
    .empty-orders {
        padding: 3rem 1rem;
    }
    
    .empty-orders i {
        font-size: 4rem;
    }
}

@media (max-width: 575px) {
    .orders-container h1 {
        font-size: 1.8rem;
    }
    
    .order-card {
        padding: 0.75rem;
    }
    
    .order-number {
        font-size: 1rem;
    }
    
    .order-date {
        font-size: 0.8rem;
    }
    
    .order-total {
        font-size: 1.1rem;
    }
    
    .empty-orders {
        padding: 2rem 0.5rem;
    }
    
    .empty-orders i {
        font-size: 3rem;
    }
}


/* ==========================================
   FINAL RESPONSIVE ENHANCEMENTS
   ========================================== */

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

/* Mobile-first form styling */
input, textarea, select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive video embeds */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid #000;
    }
    
    .nav-item:hover {
        background: #000;
        color: #fff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .page-content {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .product-card {
        background: #2a2a2a;
        color: #e0e0e0;
    }
}

/* Focus indicators for keyboard navigation */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #D2691E;
    outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #D2691E;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Responsive notification positioning */
@media (max-width: 480px) {
    .notification {
        left: 10px;
        right: 10px;
        transform: none;
        max-width: none;
    }
}

/* Enhanced mobile cart badge */
@media (max-width: 480px) {
    .cart-badge {
        top: -6px;
        right: 0px;
        font-size: 0.6rem;
        min-width: 16px;
        height: 16px;
        padding: 0.1rem 0.3rem;
    }
}

/* Mobile landscape optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 150px;
    }
    
    nav {
        min-height: 45px;
        padding: 0.4rem 1rem;
    }
    
    .logo-image {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .top-banner {
        padding: 0.3rem;
        font-size: 0.7rem;
    }
}

/* Very small screens (Galaxy Fold, etc.) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .nav-actions {
        gap: 0.25rem;
    }
    
    .nav-item {
        padding: 0.3rem 0.4rem;
        min-width: 40px;
    }
    
    .nav-item div:last-child {
        font-size: 0.65rem;
    }
    
    .hamburger-menu {
        padding: 0.3rem;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
}

/* Large screens (4K, ultrawide) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-slider {
        height: 600px;
    }
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 3rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .logo-image {
        width: 80px;
        height: 80px;
    }
}

/* Ensure proper stacking context */
.hero-slider {
    z-index: 1;
}

nav {
    z-index: 999;
}

.category-bar {
    z-index: 998;
}

.mobile-overlay {
    z-index: 999;
}

.category-bar.mobile-menu {
    z-index: 1000;
}

.notification {
    z-index: 10000;
}

/* Final mobile menu enhancements */
@media (max-width: 767px) {
    .category-bar.mobile-menu {
        width: min(280px, 85vw);
    }
    
    .category-bar.mobile-menu .search-bar {
        margin: 0;
        max-width: none;
        width: calc(100% - 3rem);
    }
}

/* Ensure touch targets are at least 44px */
@media (max-width: 767px) {
    button,
    .btn,
    .nav-item,
    .category-item,
    .qty-btn,
    .remove-btn,
    .arrow,
    .dot {
        min-height: 44px;
        min-width: 44px;
    }
    
    .add-to-cart-btn,
    .buy-now-btn,
    .checkout-btn,
    .continue-shopping {
        min-height: 48px;
    }
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll on all elements */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Final responsive grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
    min-width: 0;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

@media (min-width: 768px) {
    .row {
        margin: 0 -1rem;
    }
    
    .col {
        padding: 0 1rem;
    }
    
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}

@media (min-width: 1024px) {
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
}

/* ==========================================
   END OF RESPONSIVE CSS FRAMEWORK
   ========================================== */