:root {
    --shoppi-orange: #f7931e;
    --shoppi-red: #e53e3e;
    --shoppi-navy: #202033;
    --shoppi-navy-light: #4a5568;
    --surface: #ffffff;
    --background: #f7fafc;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shoppi-success: #38a169;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
}

/* NAVBAR STYLES - Premium Clean White */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    color: var(--shoppi-navy) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--shoppi-orange) !important;
}

.navbar-collapse {
    display: flex !important;
}

.reveal-item {
    animation: reveal 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-container {
    padding: 15px 0;
    margin-bottom: 20px;
    background: var(--surface);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 114px;
    /* Navbar (64) + Tabs (50) */
    z-index: 700;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 2px;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex: 0 0 auto;
    padding: 8px 20px;
    background: #edf2f7;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-chip:hover {
    background: #e2e8f0;
    color: var(--shoppi-orange);
}

.category-chip.active {
    background: var(--shoppi-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

/* VIEW CONTROLS */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sort-select {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 35px 8px 12px;
    font-size: 14px;
    color: var(--shoppi-navy);
    cursor: pointer;
    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;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.view-btn.active {
    background: var(--shoppi-orange);
    color: white;
    box-shadow: var(--shadow-sm);
}

#filterBtn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--shoppi-navy);
    cursor: pointer;
    transition: var(--transition);
}

#filterBtn:hover {
    border-color: var(--shoppi-orange);
    color: var(--shoppi-orange);
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* PRODUCT CARD */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.thumbs {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f7fafc;
}

.thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .thumbs img {
    transform: scale(1.05);
}

/* ENHANCED IMAGE GALLERY */
.gallery-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .gallery-indicators {
    opacity: 1;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: white;
    width: 14px;
    border-radius: 4px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--shoppi-navy);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background: var(--shoppi-orange);
    color: white;
}

.product-card:hover .gallery-nav {
    opacity: 1;
}

.gallery-prev {
    left: 10px;
    transform: translateY(-50%) translateX(-5px);
}

.product-card:hover .gallery-prev {
    transform: translateY(-50%) translateX(0);
}

.gallery-next {
    right: 10px;
    transform: translateY(-50%) translateX(5px);
}

.product-card:hover .gallery-next {
    transform: translateY(-50%) translateX(0);
}

.image-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
    z-index: 10;
}

.card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
}

.price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--shoppi-navy);
}

.old-price {
    font-size: 13px;
    color: #a0aec0;
    text-decoration: line-through;
}

.add-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: var(--shoppi-navy);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.add-btn:hover {
    background: #000;
}

/* PREMIUM SEARCH HEADER */
.banner-search {
    background: linear-gradient(135deg, var(--shoppi-navy) 0%, #1a202c 100%);
    padding: 50px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.badge-primary {
    background-color: var(--shoppi-orange);
    color: white;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.search-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.search-term {
    color: var(--shoppi-orange);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 4px;
}

.search-input {
    flex: 1;
    border: none !important;
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
}

.search-submit {
    background: var(--shoppi-orange);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background: #e8841b;
    transform: scale(1.05);
}

/* SEARCH TABS */
.search-tabs-container {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 64px;
    z-index: 800;
}

.search-tabs {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 15px 0;
    scrollbar-width: none;
}

.search-tab {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-tab.active {
    color: var(--shoppi-orange);
}

/* PREMIUM FILTER DRAWER */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.filter-overlay.open {
    opacity: 1;
    visibility: visible;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    transition: transform 0.4s 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: 24px;
    background: var(--shoppi-navy);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.filter-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.filter-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--shoppi-navy);
    margin-bottom: 16px;
    display: block;
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-field {
    flex: 1;
    position: relative;
}

.price-field span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.price-field input {
    width: 100%;
    padding: 10px 10px 10px 25px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.price-footer {
    position: sticky;
    bottom: 0;
    padding: 20px 24px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
}

.btn-reset-filters {
    flex: 1;
    padding: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-apply-filters {
    flex: 2;
    padding: 12px;
    background: var(--shoppi-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .hamburger-menu {
        display: flex !important;
    }

    .navbar-collapse {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .filter-drawer {
        width: 100%;
    }
}