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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #e5e5e5;
    color: #111111;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}


/* MOBILE FIXED BOTTOM BAR */
@media screen and (max-width:768px){

    #top-bar{
        display:flex;
        flex-direction:row;
        justify-content:center;
        align-items:center;

        position:fixed;
        bottom:0;

        width:auto;

        padding:4.56px 6px;
          background-color:none;
        right:0%;

        z-index:9999999;

        box-shadow:0 -2px 10px rgba(0,0,0,0.1);
    }


  #top-two{
        display:flex;
        flex-direction:row;

        position:fixed;
        bottom:0;
        width:100%;
        height:6.35%;
        
        padding:4.56px 6px;
          background-color:whitesmoke;

        z-index:50;
    }





    .header-icons{
        display:flex;
        flex-direction:row;
        align-items:center;

        position:fixed;
        bottom:0px;
        right:35%;

        width:auto;
        padding:4.0px 24px;

        background-color:none;

        z-index:9999999;
    }

    #nav-link{
        display:flex;
        flex-direction:row;
        align-items:center;

        position:fixed;
        bottom:0;
        left:0;

        width:auto;

        background-color:none;
        z-index:9999999;
    }

    #nav-links{
        display:flex;
        flex-direction:column;
        align-items:center;

        position:fixed;
        bottom:0px;
        left:15%;

        padding:0%;

        width:auto;

         background-color:none;

        z-index:9999999;
    }
   #nav-links i{
    color:black;
}

    /* MOBILE ICONS */
    .fa-user-circle,
    .fa-sign-out-alt,
    .fa-sign-in-alt,
    .fa-user-plus{
        color:#111111;
        font-size:24px;
    }

  
i.fa-home,
i.fa-truck{
    font-size:20px !important;
    color:black;
}
    i.fa-shopping-cart,
    i.fa-heart{
        font-size:23px !important;
        color:rgb(15, 0, 0);
        padding: 0 10px;
    }

    /* HIDE LOGO ON MOBILE */
    .logo{
        display:none !important;
    }

    /* HEADER SPACING */
    .header{
        padding:0 20px;
    }

}




/* ---------- CONTAINER & SECTIONS ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
     background-color:white;
   
}

section {
    width: 100%;
    padding: 48px 0;
   
}

section:nth-child(even) {
    background: #ffffff;
}

section:nth-child(odd) {
    background: #fafafa;
}

.hero-slider {
    padding: 0;
    background: #111111;
}

/* ---------- COLOR VARIABLES - Updated for system consistency ---------- */
:root {
    --white: #ffffff;
    --black: #111111;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #ffedd5;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    /* System-matched colors */
    --system-blue: #007aff;
    --system-green: #34c759;
    --system-red: #ff3b30;
    --system-gray: #8e8e93;
    --system-background: #ffffff;
    --system-secondary-bg: #f2f2f7;
}

/* ---------- BUTTONS - All Orange CTAs, Sharp Corners ---------- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.3px;
    border-radius: 0;
}

.btn:active {
    transform: scale(0.98);
}

/* ALL primary buttons, view buttons, shop now, add to cart = ORANGE */
.btn-primary,
.btn-view,
.btn-shop-now,
.add-to-cart-btn,
.product-card .btn-block,
.category-card .btn,
.slide-buttons .btn-primary {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.btn-primary:hover,
.btn-view:hover,
.btn-shop-now:hover,
.add-to-cart-btn:hover,
.product-card .btn-block:hover,
.category-card .btn:hover,
.slide-buttons .btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.btn-outline {
    background: transparent;
    border-color: var(--black);
    color: var(--black);
}

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

.btn-outline-light {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

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

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 17px;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--black);
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--orange);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100%;
}

.view-all-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.view-all-link:hover {
    gap: 12px;
    color: var(--orange-dark);
}

/* ---------- GRIDS - Base Layouts ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 12px;
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    margin-top: 12px;
}


.category-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}


.category-scroll-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.product-card {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-img {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 1 / 1;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

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

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePopIn 0.3s ease-out;
}

@keyframes badgePopIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.badge-danger {
    background: var(--orange);
    color: var(--white);
}

.badge-warning {
    background: var(--black);
    color: var(--white);
}

.badge-success {
    background: var(--orange-dark);
    color: var(--white);
}

/* ---------- PRODUCT ACTIONS ---------- */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--white);
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    border-radius: 0;
    opacity: 0;
    transform: translateX(10px);
}

.product-card:hover .action-btn {
    opacity: 1;
    transform: translateX(0);
}

.action-btn:nth-child(1) {
    transition-delay: 0.05s;
}
.action-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.action-btn:hover {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.1);
}

.product-body {
    padding: 12px 8px 8px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-title a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: var(--orange);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 8px;
    gap: 8px;
    flex-wrap: wrap;
}

.product-weight,
.product-supplier {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 11px;
}

.product-rating i {
    color: var(--orange);
    transition: transform 0.2s ease;
}

.product-rating i:hover {
    transform: scale(1.1);
}

.product-rating small {
    color: var(--gray-500);
}

.product-price {
    font-size:14px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.product-card:hover .product-price {
    color: var(--orange-dark);
}

.product-old-price {
    font-size:13px;
    font-weight:0;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 6px;
}

/* ---------- CATEGORY CARDS - Smooth Animations ---------- */
.category-card {
   
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 4px 8px;
}

.category-card:hover {
    transform: translateY(-6px);
}

/* Category images */
.category-img {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.category-img img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    border-radius: 0;
}

.category-card:hover .category-img img {
    transform: scale(1.08);
}

.category-badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    display: none;
    text-transform: uppercase;
    margin-bottom: 8px;
    animation: fadeInUp 0.3s ease;
}

.category-body {
    padding: 0;
}

.category-body h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--black);
    transition: color 0.2s ease;
}

.category-card:hover .category-body h3 {
    color: var(--orange);
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--black);
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
}

.slide.active {
    display: block;
    animation: fadeInScale 0.5s ease-out;
}



.slide img {
    width: 100%;
    height:auto;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.slide-content {
    position: absolute;
    bottom: 12%;
    left: 6%;
    max-width: 500px;
    background: rgba(17, 17, 17, 0.92);
    padding: 28px 32px;
    border-left: 4px solid var(--orange);
    animation: slideInLeft 0.5s ease-out;
}



.slide-tag {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

.slide-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--white);
    line-height: 1.2;
    animation: fadeInUp 0.4s ease-out 0.2s both;
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--gray-200);
    animation: fadeInUp 0.4s ease-out 0.3s both;
}



.slide-content .highlight {
    font-weight: 700;
    color: var(--orange);
}

.slide-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.4s ease-out 0.4s both;
}

/* Shop Now button in hero - ORANGE */
.slide-buttons .btn-primary {
    background: var(--orange);
    border-color: var(--orange);
}

.slide-buttons .btn-primary:hover {
    background: var(--orange-dark);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    pointer-events: none;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s ease;
    color: var(--black);
    font-weight: bold;
}

.slider-arrow:hover {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.05);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--orange);
    width: 28px;
}

.slider-dot:hover {
    background: var(--orange);
    transform: scale(1.2);
}

.slide-counter {
    position: absolute;
    bottom: 20px;
    right: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- SEARCH RESULTS ---------- */
.search-results-section {
    padding: 40px 0 60px;
    background: var(--white);
}

.search-header {
    margin-bottom: 28px;
}

.search-header .section-title {
    font-size: 33px;
    margin-bottom: 10px;
}

#search-summary p {
    color: var(--gray-500);
    font-size: 15px;
    margin-top: 12px;
    animation: fadeInUp 0.3s ease;
}

.loading-indicator {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--orange);
    margin: 0 auto 12px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state,
.error-state,
.end-message {
    text-align: center;
    padding: 50px 0;
    color: var(--gray-500);
    animation: fadeInUp 0.3s ease;
}

.error {
    color: var(--orange);
    font-weight: 500;
}

#search-load-more-container {
    text-align: center;
    margin-top: 32px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
    border: 1px solid var(--gray-300);
    background: var(--gray-100);
    animation: fadeInUp 0.3s ease;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--orange);
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- NOTIFICATION SYSTEM - Updated with system colors ---------- */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.notification {
    background: var(--black);
    color: var(--white);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-left: 4px solid var(--orange);
    animation: slideInRight 0.25s ease-out;
    pointer-events: auto;
    position: relative;
}

.notification-success {
    border-left-color: var(--system-green);
}

.notification-error {
    border-left-color: var(--system-red);
}

.notification-warning {
    border-left-color: #f59e0b;
}

.notification-content {
    flex: 1;
    font-size: 14px;
}

.notification-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    padding: 0 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.notification-close:hover {
    color: var(--orange);
    transform: scale(1.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN - EXACT SPECIFICATIONS
   ============================================ */

/* Desktop & Large Tablets (992px and below) */
@media (max-width: 992px) {
    section { padding: 40px 0; }
    .products-grid { gap: 16px; }
    .category-grid { gap: 16px; }
    .slide img { height: 450px; }
    .slide-content h2 { font-size: 30px; }
}

/* Tablet & Small Desktop (768px and below) */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    section { padding: 32px 0; }
    .section-title { font-size: 25px; }
    .section-header { flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
    
    /* Products grid - 4 columns on tablet */
    .products-grid { 
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    /* Category grid - Enable horizontal scroll on tablet */
    .category-grid { 
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        margin-top: 12px;
        padding-bottom: 8px;
        width: max-content;
        min-width: 100%;
    }
    
    .category-grid .category-card {
        flex: 0 0 auto;
        width: 100px;
    }
    
    .category-scroll-wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    /* Category card styling for tablet */
    .category-card {
        padding: 12px 4px;
    }
    
    .category-img img {
        width: 60px;
        height: 60px;
    }
    
    .category-body h3 { 
        font-size: 11px; 
        margin-bottom: 4px;
    }
    
    .category-body .btn { 
        padding: 3px 8px; 
        font-size: 10px; 
        margin-top: 6px;
    }
    
    /* Product card styling for tablet */
    .product-card {
        font-size: 12px;
    }
    
    .product-body {
        padding: 8px 6px;
    }
    
    .product-title {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .product-meta {
        font-size: 9px;
        margin-bottom: 5px;
    }
    
    .product-price {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .btn-block {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .product-actions .action-btn {
        width: 28px;
        height: 28px;
        opacity: 1;
        transform: translateX(0);
    }
    
    .product-actions i {
        font-size: 12px;
    }
    
    .badge {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    /* Search Results - 6 columns on tablet */
    .search-results-section .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .btn { padding: 8px 16px; font-size: 14px; }
    
    .slide img { height: 360px; }
    .slide-content {
        position: relative;
        bottom: auto;
        left: auto;
        margin: -40px 16px 16px;
        padding: 20px;
        max-width: none;
        background: var(--white);
        border-left: 4px solid var(--orange);
    }
    .slide-content h2 { font-size: 22px; color: var(--black); }
    .slide-content p { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; }
    .slider-arrow { width: 38px; height: 38px; font-size: 20px; }
    .slider-controls { padding: 0 12px; }
    .slide-counter { display: none; }
    
    .notification-container {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        width: auto;
    }
    .notification { padding: 12px 14px; animation: slideInDown 0.25s ease-out; }
    @keyframes slideInDown {
        from { transform: translateY(-100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

/* Small Mobile (576px and below) - Horizontal scroll for categories */
@media (max-width: 576px) {
    section { padding: 24px 0; }
    .container { padding: 0 12px; }
    
    /* Products grid - 3 columns on mobile */
    .products-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* Category grid - Horizontal scroll layout */
    .category-grid { 
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        margin-top: 12px;
        padding-bottom: 4px;
        width: max-content;
        min-width: 100%;
       background-color: transparent;
    }
    
    .category-grid .category-card {
        flex: 0 0 auto;
        width:120px;
    }
    
    /* Scroll wrapper for categories - NO VISIBLE SCROLLBAR */
    .category-scroll-wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        cursor: grab;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-scroll-wrapper:active {
        cursor: grabbing;
    }
    
    .category-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    /* Category cards scale down for mobile */
    .category-card {
        padding: 8px 4px;
    }
    
    .category-img img {
        width: 80px;
        height: 80px;
    }
    
    .category-body h3 { 
        font-size:13px; 
        font-weight: 700;
        margin-bottom: 2px;
       
    }
    
    .category-body .btn { 
        padding: 2px 6px; 
        font-size: 8px; 
        margin-top: 4px;
    }
    
    /* Product Cards for mobile */
    .product-body {
        padding: 6px 3px;
    }
    
    .product-title {
        font-size: 13px;
        margin-bottom: 2px;
        line-height: 1.2;
        font-weight: 600;
    }
    
    .product-meta {
        font-size: 10px;
        font-weight: 300;
        margin-bottom: 3px;
        gap: 3px;
    }
    
    .product-price {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .btn-block {
        padding: 3px 4px;
        font-size: 8px;
    }
    
    .product-actions {
        top: 4px;
        right: 4px;
        gap: 3px;
    }
    
    .product-actions .action-btn {
        width: 22px;
        height: 22px;
        opacity: 1;
        transform: translateX(0);
    }
    
    .product-actions i {
        font-size: 10px;
    }
    
    .badge {
        font-size: 7px;
        padding: 1px 4px;
        top: 4px;
        left: 4px;
    }
    
    /* Search Results - 3 columns on mobile */
    .search-results-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-rating {
        font-size: 8px;
        margin-bottom: 4px;
    }
    
    .slide img { height: 280px; }
    .slide-content { margin: -30px 12px 12px; padding: 16px; }
    .slide-content h2 { font-size: 18px; margin-bottom: 8px; }
    .slide-content p { font-size: 12px; margin-bottom: 12px; }
    .slide-tag { font-size: 10px; padding: 3px 8px; margin-bottom: 10px; }
    .slide-buttons .btn { padding: 6px 12px; font-size: 11px; }
    .slider-arrow { width: 32px; height: 32px; font-size: 18px; }
    .section-title { font-size: 22px; }
}

/* Extra Small Devices (below 400px) */
@media (max-width: 400px) {
    /* Category grid - Horizontal scroll with smaller cards */
    .category-grid .category-card {
        flex: 0 0 auto;
        width: 75px;
    }
    
    .category-img img {
        width: 45px;
        height: 45px;
    }
    
    .category-body h3 { 
        font-size: 9px; 
    }
    
    .category-body .btn { 
        padding: 1px 4px; 
        font-size: 7px;
    }
    
    /* Products grid - 2 columns on extra small */
    .products-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .product-body {
        padding: 4px 2px;
    }
    
    .product-title {
        font-size: 9px;
    }
    
    .product-price {
        font-size: 9px;
    }
    
    .btn-block {
        padding: 2px 3px;
        font-size: 7px;
    }
    
    .search-results-section .products-grid {
        gap: 5px;
    }
}

/* Fix for overflow issues */
@media (max-width: 750px) {
    html, body { overflow-x: hidden; width: 100%; }
    .products-grid, .hero-slider,
    .search-results-section, [class*="grid"], [class*="container"] {
        max-width: 100%;
        overflow-x: visible;
    }
    
    /* Category section positioning */
    .category-section {
        position: relative;
    }
    
    img { max-width: 100%; height: auto; }
    .product-card, .category-card { min-width: 0; width: 100%; }
    .action-btn, .slider-arrow, .notification-close, .view-all-link, .btn {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape orientation - maintain horizontal scroll for categories */
@media (max-width: 750px) and (orientation: landscape) {
    .slide img { height: 240px; }
    
    /* Products - keep 6 columns on landscape */
    .products-grid { 
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    
    /* Category grid - Horizontal scroll remains */
    .category-grid .category-card {
        flex: 0 0 auto;
        width: 90px;
    }
    
    .search-results-section .products-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Touch devices optimization */
@media (hover: none) and (pointer: coarse) {
    .product-actions { opacity: 1 !important; }
    .action-btn, .btn, .view-all-link, .slider-arrow { 
        min-height: 44px; 
        min-width: 44px;
    }
    .product-card:hover { transform: none; }
    .category-card:hover { transform: none; }
    .action-btn:active, .btn:active { background: var(--orange-dark); transform: scale(0.96); }
    .product-img img {
        transform: none !important;
    }
    
    /* Better touch scrolling for categories - no visible scrollbar */
    .category-scroll-wrapper {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .category-card {
        scroll-snap-align: start;
    }
}

/* ---------- UTILITIES & FORM ELEMENTS ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

input, select, textarea {
    border: 1px solid var(--gray-300);
    padding: 10px 12px;
    font-size: 15px;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--orange); }

/* Hide all scrollbars globally while keeping functionality */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::selection { background: var(--orange); color: var(--white); }