﻿:root {
    /* Aligned with homepage palette */
    --shoppi-orange: #f7931e;
    --shoppi-orange-dark: #e8841b;
    --shoppi-orange-light: #ffa940;
    --shoppi-red: #ff4757;
    --shoppi-red-dark: #ee3a4a;
    --shoppi-navy: #2d324c;
    --shoppi-navy-dark: #1b1e2e;

    /* Updated Primary Colors using Shoppi Brand */
    --primary-color: var(--shoppi-orange);
    --secondary-color: #38a169;
    --accent-red: #ff4757;
    --accent-purple: #6c5ce7;
    --dark-color: var(--shoppi-navy);
    --light-color: #f8f9fa;
    --border-radius: 12px;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-color);
    color: #2d3436;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================== */
/* TOP BAR (like homepage)        */
/* ============================== */
.search-top-bar {
    background: linear-gradient(135deg, var(--shoppi-navy) 0%, #3d4466 100%);
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-top-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
}

.search-top-bar a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.search-top-bar .top-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-top-bar .top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================== */
/* PREMIUM NAVBAR (matching homepage)*/
/* ============================== */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 68px;
}

.navbar-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px 0;
}

.navbar-brand img {
    height: 38px;
    width: auto;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Integrated search bar in navbar */
.navbar-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.navbar-search .search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--light-color);
    border: 2px solid transparent;
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(45, 50, 76, 0.08);
}

.navbar-search .search-input-wrapper:focus-within {
    background: white;
    border-color: var(--shoppi-navy);
    box-shadow: 0 8px 25px rgba(45, 50, 76, 0.15);
    transform: translateY(-1px);
}

.navbar-search input {
    flex: 1;
    height: 44px;
    border: none;
    outline: none;
    padding: 0 20px;
    font-size: 15px;
    background: transparent;
    color: #2d3436;
    font-weight: 500;
    font-family: inherit;
}

.navbar-search input::placeholder {
    color: #636e72;
    font-weight: 400;
}

.navbar-search .clear-search,
.navbar-search .search-submit {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.navbar-search .clear-search {
    color: #636e72;
    padding: 8px;
    display: none;
}

.navbar-search .clear-search.show {
    display: flex;
}

.navbar-search .clear-search:hover {
    color: var(--shoppi-red);
}

.navbar-search .search-submit {
    background: var(--accent-red, #ff4757);
    color: white;
    height: 38px;
    border-radius: 50px;
    margin: 3px 4px 3px 0;
    font-size: 14px;
    padding: 0 20px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    white-space: nowrap;
}

.navbar-search .search-submit:hover {
    background: #ee3a4a;
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(255, 71, 87, 0.4);
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links .nav-link {
    color: #2d3436 !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px !important;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links .nav-link:hover {
    color: var(--shoppi-navy) !important;
    background: rgba(45, 50, 76, 0.06);
}

.nav-links .nav-link i {
    margin-right: 6px;
    font-size: 14px;
    color: #636e72;
}

.nav-links .nav-cart {
    position: relative;
    font-size: 1.2rem;
    color: #2d3436 !important;
    padding: 8px 12px !important;
}

.nav-links .nav-cart .cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent-red, #ff4757);
    color: white;
    border-radius: 50px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.nav-links .btn-nav {
    padding: 8px 20px !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 50px;
    border: 2px solid #2d324c;
    color: #2d324c !important;
    background: transparent;
}

.nav-links .btn-nav:hover {
    background: #2d324c;
    color: white !important;
}

.nav-links .btn-nav-primary {
    background: var(--accent-red, #ff4757) !important;
    color: white !important;
    border-color: var(--accent-red, #ff4757);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.nav-links .btn-nav-primary:hover {
    background: #ee3a4a !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 71, 87, 0.4);
}

/* HAMBURGER MENU */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    background: transparent;
    border: none;
    flex-shrink: 0;
    order: -1;
    color: var(--shoppi-navy);
    font-size: 1.5rem;
}

.hamburger-menu:hover {
    background: rgba(45, 50, 76, 0.06);
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background-color: var(--shoppi-navy);
    margin: 2.5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hamburger animation when open */
.hamburger-menu.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu sidebar */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.show {
    left: 0;
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.mobile-menu-header img {
    height: 32px;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: #636e72;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: #f1f2f6;
    color: #2d3436;
}

.mobile-menu-nav {
    padding: 12px 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 24px;
    color: #2d3436;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid #f1f2f6;
}

.mobile-menu-item:hover {
    background: #f8f9fa;
    color: var(--shoppi-navy);
    text-decoration: none;
}

.mobile-menu-item i {
    margin-right: 14px;
    width: 20px;
    text-align: center;
    color: var(--shoppi-navy);
    font-size: 15px;
}

/* Desktop navigation collapse - hidden on mobile */
.navbar-nav {
    display: none;
}

/* Hide legacy right side */
.navbar-mobile-right {
    display: none;
}

/* CART BUTTON */
.cart-action {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--shoppi-orange);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
    color: white;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.cart-action:hover {
    background-color: var(--shoppi-orange-dark);
    transform: scale(1.1);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(247, 147, 30, 0.4);
}

/* ============================== */
/* SEARCH RESULTS BANNER         */
/* ============================== */
.banner-search {
    background: var(--light-color);
    padding: 16px 0;
    color: #2d3436;
    margin-bottom: 0;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.banner-search::before {
    display: none;
}

.banner-search::after {
    display: none;
}

.banner-search .container {
    position: relative;
    z-index: 1;
}

.banner-search h2 {
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 18px;
    letter-spacing: -0.3px;
    color: var(--shoppi-navy);
}

.banner-search h2 i {
    color: var(--shoppi-navy);
    font-size: 16px;
    opacity: 0.5;
}

.search-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.badge-primary {
    background: var(--shoppi-orange);
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    border: none;
}

/* Hide the legacy main-search in banner (now in navbar) */
.banner-search .main-search {
    display: none;
}

/* ============================== */
/* RESPONSIVE NAVBAR              */
/* ============================== */

/* Mobile: up to 991px — hamburger + compact search */
@media (max-width: 991px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .navbar .container {
        gap: 12px;
        min-height: 56px;
    }

    .navbar-search {
        max-width: none;
    }

    .navbar-brand img {
        height: 28px;
    }

    .navbar-brand {
        padding: 10px 0;
    }

    .banner-search {
        padding: 16px 0;
    }

    .banner-search h2 {
        font-size: 16px;
        gap: 8px;
    }

    .banner-search h2 i {
        font-size: 14px;
    }
}

/* Extra small: up to 575px */
@media (max-width: 575px) {
    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
        gap: 8px;
        min-height: 52px;
    }

    .navbar-search input {
        height: 38px;
        font-size: 13px;
        padding: 0 12px;
    }

    .navbar-search .search-submit {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-radius: 8px;
        margin: 3px;
    }

    .navbar-brand img {
        height: 24px;
    }

    .hamburger-line {
        width: 18px;
    }

    .hamburger-menu {
        padding: 6px;
    }

    .banner-search {
        padding: 12px 0;
    }

    .banner-search h2 {
        font-size: 14px;
    }

    .badge-primary {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* Desktop: 992px+ — full layout */
@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }

    .hamburger-menu {
        display: none;
    }

    .banner-search {
        padding: 28px 0 24px;
    }

    .banner-search h2 {
        font-size: 22px;
    }
}

/* Additional styles for the rest of the page... */
.main-store {
    margin-top: 20px;
}

.sidebar-store {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.widget h3 {
    color: var(--shoppi-navy);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget h3 i {
    color: var(--shoppi-orange);
    font-size: 16px;
}

.cat {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cat li:last-child {
    border-bottom: none;
}

.cat li:before {
    content: none;
}

.cat li a {
    color: #666;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat li a:before {
    content: '→';
    color: var(--shoppi-orange);
    font-weight: bold;
    transition: var(--transition);
}

.cat li a:hover {
    color: var(--shoppi-orange);
    text-decoration: none;
    padding-left: 5px;
}

.cat li a:hover:before {
    transform: translateX(3px);
}

.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    color: #666;
    font-weight: 500;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sort-dropdown {
    position: relative;
    min-width: 180px;
}

.sort-select {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--shoppi-navy);
    cursor: pointer;
    width: 100%;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn.active {
    background: var(--shoppi-orange);
    color: white;
    box-shadow: var(--shadow-light);
}

.view-btn:hover:not(.active) {
    background: rgba(247, 147, 30, 0.1);
    color: var(--shoppi-orange);
}

/* Filter trigger button */
.filter-trigger-btn {
    background: var(--shoppi-navy) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(45, 50, 76, 0.2);
}

.filter-trigger-btn:hover {
    background: #3d4466 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 50, 76, 0.3);
}

.filter-trigger-btn i {
    font-size: 13px;
}

/* ============================== */
/* IMPROVED FILTER DRAWER         */
/* ============================== */
.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
}

.filter-drawer.open {
    transform: translateX(0);
}

.filter-header {
    padding: 20px 24px;
    background: var(--shoppi-navy);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
}

.filter-header .btn-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.filter-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.filter-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.filter-section {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--shoppi-navy);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price input group */
.price-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-field {
    flex: 1;
    position: relative;
}

.price-currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #636e72;
    font-weight: 600;
    font-size: 14px;
    z-index: 1;
}

.price-field input {
    width: 100%;
    padding: 12px 12px 12px 28px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.price-field input:focus {
    border-color: var(--shoppi-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.1);
}

.price-separator {
    color: #a0aec0;
    font-weight: 300;
    font-size: 18px;
    flex-shrink: 0;
}

/* Sort radio options in drawer */
.filter-sort-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin: 0;
    border: 2px solid transparent;
}

.filter-radio:hover {
    background: #f8f9fa;
}

.filter-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--shoppi-orange);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-radio input[type="radio"]:checked+.radio-label {
    color: var(--shoppi-orange);
    font-weight: 700;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
}

/* Filter footer */
.filter-footer {
    position: sticky;
    bottom: 0;
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-reset-filters {
    flex: 1;
    padding: 14px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    font-weight: 700;
    color: #636e72;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.btn-reset-filters:hover {
    border-color: var(--shoppi-red);
    color: var(--shoppi-red);
    background: rgba(255, 71, 87, 0.05);
}

.btn-apply-filters {
    flex: 2;
    padding: 14px;
    background: var(--shoppi-orange);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.btn-apply-filters:hover {
    background: var(--shoppi-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(247, 147, 30, 0.4);
}

/* ============================== */
/* RESPONSIVE - RESULTS AREA      */
/* ============================== */

/* Tablet and below */
@media (max-width: 991px) {
    .view-controls {
        padding: 14px 16px;
        margin-bottom: 16px;
        gap: 10px;
    }

    .sort-dropdown {
        min-width: 0;
        flex: 1;
    }

    .results-info {
        font-size: 14px;
        width: 100%;
    }

    .controls-right {
        width: 100%;
        justify-content: space-between;
    }

    .search-tabs {
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .view-controls {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .sort-dropdown {
        display: none;
        /* Sort is in filter drawer on mobile */
    }

    .controls-right {
        gap: 8px;
    }

    .view-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .filter-trigger-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    .filter-drawer {
        width: 100%;
    }

    .category-container {
        padding: 0;
    }

    .category-chip {
        font-size: 12px;
        padding: 6px 14px;
    }

    .main-store {
        padding-top: 8px;
    }

    .main-store .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Product cards responsive grid */
    #product-container.grid-view {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #product-container.grid-view .product-card {
        margin-bottom: 0;
    }

    .product-card .card-body {
        padding: 10px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 15px;
    }

    .product-card .card-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .product-card .add-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .search-tabs-container {
        padding: 0;
    }

    .search-tabs {
        gap: 12px;
        padding: 10px 12px;
    }

    .search-tab {
        font-size: 12px;
    }

    .banner-search {
        padding: 10px 0;
    }

    .banner-search h2 {
        font-size: 14px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    #product-container.grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .product-title {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }

    .navbar .container {
        gap: 6px;
    }

    .navbar-search input {
        font-size: 13px;
        padding: 0 10px 0 36px;
    }
}


/* SIDEBAR STYLES */
.sidebar-store {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.widget h3 {
    color: var(--shoppi-navy);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget h3 i {
    color: var(--shoppi-orange);
    font-size: 16px;
}

.cat {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cat li:last-child {
    border-bottom: none;
}

.cat li:before {
    content: none;
}

.cat li a {
    color: #666;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat li a:before {
    content: '→';
    color: var(--shoppi-orange);
    font-weight: bold;
    transition: var(--transition);
}

.cat li a:hover {
    color: var(--shoppi-orange);
    text-decoration: none;
    padding-left: 5px;
}

.cat li a:hover:before {
    transform: translateX(3px);
}

/* VIEW CONTROLS WITH SORTING */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    color: #666;
    font-weight: 500;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sort-dropdown {
    position: relative;
    min-width: 180px;
}

.sort-select {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--shoppi-navy);
    cursor: pointer;
    width: 100%;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.sort-select:hover {
    border-color: var(--shoppi-orange);
}

.sort-select:focus {
    outline: none;
    border-color: var(--shoppi-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.1);
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn.active {
    background: var(--shoppi-orange);
    color: white;
    box-shadow: var(--shadow-light);
}

.view-btn:hover:not(.active) {
    background: rgba(247, 147, 30, 0.1);
    color: var(--shoppi-orange);
}

/* PRODUCT CONTAINER BASE STYLES */
#product-container {
    min-height: 200px;
}

/* GRID VIEW STYLES */
#product-container.grid-view {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: start;
}

#product-container.grid-view .product-card {
    height: 100%;
    margin-bottom: 0;
}

.grid-view .product-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #eee;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.grid-view .card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.grid-view .product-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.grid-view .card-image {
    margin-bottom: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.grid-view .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.grid-view .product-card:hover .card-image img {
    transform: scale(1.05);
}

/* IMAGE GALLERY STYLES */
.image-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.item:hover .gallery-indicators {
    opacity: 1;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background: var(--shoppi-orange);
    transform: scale(1.2);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    color: var(--shoppi-navy);
    font-size: 12px;
}

.item:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--shoppi-orange);
}

.gallery-prev {
    left: 8px;
}

.gallery-next {
    right: 8px;
}

.image-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(74, 85, 104, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
}

.item:hover .image-count-badge {
    opacity: 1;
}

.grid-view .product-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--shoppi-navy);
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.grid-view .product-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.grid-view .product-title a:hover {
    color: var(--shoppi-orange);
}

.grid-view .add-btn {
    padding: 8px 12px;
    font-size: 11px;
    margin-top: 8px;
}

.grid-view .price-row {
    margin-top: 6px;
    height: 24px;
    align-items: center;
}

.grid-view .current-price {
    font-size: 15px;
}

/* LIST VIEW STYLES */
#product-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-view .product-item,
.list-view>.col-6,
.list-view>.col-md-4,
.list-view>.col-lg-3 {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin-bottom: 0;
}

.list-view .product-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0;
    height: auto;
}

.list-view .product-card:hover {
    box-shadow: var(--shadow-medium);
}

.list-view .card-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    text-align: center;
}

.list-view .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.list-view .product-card:hover .card-image img {
    transform: scale(1.03);
}

.list-view .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-view .product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--shoppi-navy);
    line-height: 1.3;
    height: auto;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
}

.list-view .product-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.list-view .product-title a:hover {
    color: var(--shoppi-orange);
}

.list-view .item p:last-of-type {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* COMMON PRODUCT STYLES - MARKETPLACE STANDARD */
.list-merchant {
    padding: 0;
    list-style: none;
    margin: 8px 0;
}

.list-merchant li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.list-merchant li:before {
    content: '🏪';
    font-size: 12px;
}

.list-merchant li a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.list-merchant li a:hover {
    color: var(--shoppi-orange);
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    gap: 10px;
}

.price {
    color: var(--shoppi-red);
    font-weight: 800;
    font-size: 20px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.price-badge {
    background: linear-gradient(135deg, var(--shoppi-red), var(--shoppi-red-dark));
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.ship_cost {
    color: #666;
    font-size: 12px;
    font-weight: 600;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.free-shipping {
    color: #28a745;
    font-weight: 700;
}

.free-shipping:before {
    content: '✅';
    font-size: 12px;
}

/* PRODUCT DESCRIPTION */
.card-description {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 4px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
    /* Fixed height for consistency */
}

/* PRODUCT META */
.product-meta {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.meta-item {
    background: #f1f3f4;
    color: #5f6368;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

/* TRUST SIGNALS FOR CONVERSION */
.trust-signals {
    display: flex;
    gap: 6px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.trust-item {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-item.urgent {
    background: linear-gradient(135deg, var(--shoppi-orange), var(--shoppi-orange-light));
    color: white;
    animation: pulse 2s infinite;
}

.trust-item.positive {
    background: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #90ee90;
}

.trust-item.trusted {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #64b5f6;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* MARKETPLACE STYLE BUTTONS - IMPROVED SPACING */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

/* ENHANCED CTA BUTTONS using Shoppi Orange */
.btn-primary-marketplace {
    background: linear-gradient(135deg, var(--shoppi-orange), var(--shoppi-orange-light));
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(247, 147, 30, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
}

.btn-primary-marketplace:hover {
    background: linear-gradient(135deg, var(--shoppi-orange-dark), var(--shoppi-orange));
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(247, 147, 30, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary-marketplace:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-success-marketplace {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: successPulse 0.6s ease-out;
    width: 100%;
}

.btn-error-marketplace {
    background: linear-gradient(135deg, var(--shoppi-red), var(--shoppi-red-dark));
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: shake 0.6s ease-in-out;
    width: 100%;
}

.btn-secondary-marketplace {
    background: var(--shoppi-navy);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    width: 100%;
}

.btn-secondary-marketplace:hover {
    background: var(--shoppi-navy-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* SCARCITY INDICATORS */
.badge-sale {
    background: linear-gradient(135deg, var(--shoppi-red), var(--shoppi-red-dark));
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.badge-new {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.badge-trending {
    background: linear-gradient(135deg, var(--shoppi-orange), var(--shoppi-orange-light));
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(247, 147, 30, 0.3);
}

/* PRICE ENHANCEMENT */
.price-badge {
    background: linear-gradient(135deg, var(--shoppi-red), var(--shoppi-red-dark));
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* RATING STARS */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.stars {
    color: var(--shoppi-orange);
    font-size: 14px;
    letter-spacing: 1px;
}

.rating-text {
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

/* BADGES */
.product-badges {
    display: flex;
    gap: 6px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.badge-sale {
    background: var(--shoppi-red);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-new {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-trending {
    background: var(--shoppi-orange);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* LOADING AND NO RESULTS */
.spinner-gif {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    color: var(--shoppi-orange);
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.text-primary {
    color: var(--shoppi-orange) !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.no-results {
    background-color: white;
    padding: 60px 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 20px 0;
    border: 1px solid #eee;
}

.no-results i {
    color: #ddd;
    margin-bottom: 20px;
}

.no-results p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.footer {
    margin-top: 50px;
    background: #202033;
    color: white;
    padding: 20px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer .list-inline {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer .list-inline a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer .list-inline a:hover {
    color: var(--shoppi-orange);
}

.footer select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer .list-inline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}


/* Footer responsive design */
@media (max-width: 768px) {

    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* RESPONSIVE DESIGN - IMPROVED GRID BREAKPOINTS */

@media (min-width: 1400px) {
    #product-container.grid-view {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    #product-container.grid-view {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #product-container.grid-view {
        grid-template-columns: repeat(4, 1fr);
    }

    .banner-search {
        padding: 25px 0;
    }

    .banner-search h2 {
        font-size: 18px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #product-container.grid-view {
        grid-template-columns: repeat(3, 1fr);
    }

    .banner-search {
        padding: 20px 0;
    }

    .banner-search h2 {
        font-size: 17px;
        margin-bottom: 15px;
    }

    .main-search input {
        height: 48px;
        padding: 0 18px;
        font-size: 15px;
    }

    .search-submit {
        width: 42px;
        height: 42px;
    }

    .cart-action {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .list-view .item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .list-view .thumbs {
        width: 100%;
        height: 200px;
    }

    .list-view .item-content {
        width: 100%;
    }

    .view-toggle {
        justify-content: center;
        margin-bottom: 15px;
        margin-left: 0;
    }

    .banner-search h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sidebar-store {
        margin-bottom: 20px;
        padding: 20px;
    }

    .price {
        font-size: 18px;
    }

    .btn-primary-marketplace {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Small screens (576px-767px) - 2 items per row */
@media (min-width: 576px) and (max-width: 767px) {

    .grid-view .product-item,
    .grid-view>.col-6,
    .grid-view>.col-md-4,
    .grid-view>.col-lg-3 {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }

    .banner-search {
        padding: 18px 0;
    }

    .banner-search h2 {
        font-size: 16px;
    }

    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .main-search input {
        height: 46px;
        padding: 0 16px;
        font-size: 14px;
    }

    .search-submit {
        width: 40px;
        height: 40px;
    }

    .cart-action {
        width: 46px;
        height: 46px;
        font-size: 15px;
    }

    .view-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .list-view .item {
        padding: 18px;
    }

    .list-view .thumbs {
        height: 160px;
    }

    .price {
        font-size: 17px;
    }

    .product-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-primary-marketplace {
        padding: 10px;
        font-size: 13px;
    }
}

/* Extra Small screens (up to 575px) - 1 item per row */
@media (max-width: 575px) {

    .grid-view .product-item,
    .grid-view>.col-6,
    .grid-view>.col-md-4,
    .grid-view>.col-lg-3 {
        flex: 1 1 100%;
        min-width: auto;
        max-width: 100%;
    }

    .banner-search {
        padding: 15px 0;
    }

    .banner-search h2 {
        font-size: 15px;
    }

    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }

    .badge-primary {
        margin-top: 5px;
        margin-left: 0;
        font-size: 12px;
        padding: 4px 10px;
    }

    .main-search input {
        height: 44px;
        padding: 0 14px;
        font-size: 14px;
    }

    .search-submit {
        width: 38px;
        height: 38px;
        margin: 3px;
    }

    .cart-action {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .view-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    .list-view .item {
        padding: 15px;
    }

    .list-view .thumbs {
        height: 150px;
    }

    .item {
        padding: 15px;
    }

    .item h2 {
        font-size: 14px;
        height: auto;
        line-height: 1.4;
    }

    .price {
        font-size: 18px;
    }

    .price-badge {
        font-size: 14px;
        padding: 6px 10px;
    }

    .product-actions {
        flex-direction: column;
        gap: 6px;
    }

    .btn-primary-marketplace {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .btn-secondary-marketplace {
        padding: 8px;
        font-size: 12px;
        border-radius: 8px;
    }

    /* Mobile responsive adjustments for controls */
    .view-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    .controls-right {
        justify-content: center;
        width: 100%;
    }

    .sort-dropdown {
        min-width: 200px;
    }

    .view-toggle {
        margin: 0;
    }
}

/* SEARCH TABS STYLES */
.search-tabs-container {
    background-color: white;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    position: sticky;
    top: 70px;
    /* Below sticky navbar */
    z-index: 998;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.search-tabs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.search-tabs::-webkit-scrollbar {
    display: none;
}

.search-tab {
    white-space: nowrap;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--shoppi-navy);
    transition: var(--transition);
    border-radius: 20px;
    font-size: 14px;
    background: #f8f9fa;
    border: 1px solid transparent;
    display: none;
    /* Hidden by default, JS enables them */
}

.search-tab:first-child {
    display: block;
    /* Always show 'All' */
}

.search-tab:hover {
    color: var(--shoppi-orange);
    background: white;
    border-color: var(--shoppi-orange);
}

.search-tab.active {
    color: white;
    background: var(--shoppi-orange);
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.25);
    border-color: var(--shoppi-orange);
    display: block;
    /* Ensure active tab is visible */
}

/* CATEGORY CHIPS STYLES */
.category-container {
    padding: 10px 0;
    background: #fafafa;
}

.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    white-space: nowrap;
    padding: 6px 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
}

.category-chip:hover {
    border-color: var(--shoppi-orange);
    color: var(--shoppi-orange);
}

.category-chip.active {
    background: var(--shoppi-navy);
    color: white;
    border-color: var(--shoppi-navy);
}

/* PREMIUM NO RESULTS STYLES */
.premium-no-results {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid #eee;
    margin: 30px 0;
}

.no-results-icon {
    font-size: 60px;
    color: #e2e8f0;
    margin-bottom: 25px;
    display: block;
}

.no-results-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--shoppi-navy);
    margin-bottom: 10px;
}

.no-results-text {
    color: #718096;
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto 25px;
}

.btn-reset-search {
    background: var(--shoppi-orange);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-reset-search:hover {
    background: var(--shoppi-orange-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

/* Compatibility for line-clamp */
.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================== */
/* FILTER TRIGGER BUTTON          */
/* ============================== */
.filter-trigger-btn {
    background: var(--shoppi-navy) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(45, 50, 76, 0.2);
}

.filter-trigger-btn:hover {
    background: #3d4466 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 50, 76, 0.3);
}

.filter-trigger-btn i {
    font-size: 13px;
}

/* ============================== */
/* FILTER OVERLAY                 */
/* ============================== */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ============================== */
/* IMPROVED FILTER DRAWER         */
/* ============================== */
.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
}

.filter-drawer.open {
    transform: translateX(0);
}

.filter-header {
    padding: 20px 24px;
    background: var(--shoppi-navy);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
}

.filter-header .btn-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.filter-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.filter-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.filter-section {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--shoppi-navy);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price input group */
.price-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-field {
    flex: 1;
    position: relative;
}

.price-currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #636e72;
    font-weight: 600;
    font-size: 14px;
    z-index: 1;
}

.price-field input {
    width: 100%;
    padding: 12px 12px 12px 28px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.price-field input:focus {
    border-color: var(--shoppi-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.1);
}

.price-separator {
    color: #a0aec0;
    font-weight: 300;
    font-size: 18px;
    flex-shrink: 0;
}

/* Sort radio options in drawer */
.filter-sort-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin: 0;
    border: 2px solid transparent;
}

.filter-radio:hover {
    background: #f8f9fa;
}

.filter-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--shoppi-orange);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-radio input[type="radio"]:checked+.radio-label {
    color: var(--shoppi-orange);
    font-weight: 700;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
}

/* Filter footer */
.filter-footer {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-reset-filters {
    flex: 1;
    padding: 14px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    font-weight: 700;
    color: #636e72;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.btn-reset-filters:hover {
    border-color: var(--shoppi-red);
    color: var(--shoppi-red);
    background: rgba(255, 71, 87, 0.05);
}

.btn-apply-filters {
    flex: 2;
    padding: 14px;
    background: var(--shoppi-orange);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.btn-apply-filters:hover {
    background: var(--shoppi-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(247, 147, 30, 0.4);
}

/* ============================== */
/* PRODUCT GRID                   */
/* ============================== */
#product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 0 15px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ============================== */
/* RESPONSIVE MEDIA QUERIES       */
/* ============================== */

/* Tablet and below */
@media (max-width: 991px) {
    .view-controls {
        padding: 14px 16px;
        margin-bottom: 16px;
        gap: 10px;
    }

    .sort-dropdown {
        min-width: 0;
        flex: 1;
    }

    .results-info {
        font-size: 14px;
        width: 100%;
    }

    .controls-right {
        width: 100%;
        justify-content: space-between;
    }

    .search-tabs {
        gap: 16px;
    }

    #product-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 0 10px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .view-controls {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .sort-dropdown {
        display: none;
    }

    .controls-right {
        gap: 8px;
    }

    .view-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .filter-trigger-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    .filter-drawer {
        width: 100%;
    }

    .category-container {
        padding: 0;
    }

    .category-chip {
        font-size: 12px;
        padding: 6px 14px;
    }

    .main-store {
        padding-top: 8px;
    }

    .main-store .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    #product-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 0 4px;
    }

    .product-card .card-content {
        padding: 10px;
    }

    .product-title {
        font-size: 13px;
    }

    .current-price {
        font-size: 15px;
    }

    .product-card .card-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .product-card .add-btn,
    .product-card .card-footer-actions a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .search-tabs-container {
        padding: 0;
    }

    .search-tabs {
        gap: 12px;
        padding: 10px 12px;
    }

    .search-tab {
        font-size: 12px;
    }

    .banner-search {
        padding: 10px 0;
    }

    .banner-search h2 {
        font-size: 14px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    #product-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }

    .product-title {
        font-size: 12px;
    }

    .current-price {
        font-size: 14px;
    }

    .navbar .container {
        gap: 6px;
    }

    .navbar-search input {
        font-size: 13px;
        padding: 0 10px 0 36px;
    }
}