/* Shop Page Styles for Billisa v2.0 */
/* Copyright © 2025 Isaiah Nyalali. All Rights Reserved. */

/* Navigation */
.shop-nav {
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    width: 90%;
    background: var(--fluent-white);
    border: 2px solid var(--fluent-black);
    border-radius: 12px;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--fluent-black);
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--fluent-black);
}

/* Nav Left with Breadcrumb */
.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--fluent-gray-70);
}

.shop-breadcrumb a {
    color: var(--fluent-gray-70);
    text-decoration: none;
    transition: color 0.2s;
}

.shop-breadcrumb a:hover {
    color: var(--fluent-black);
}

.shop-breadcrumb .separator {
    color: var(--fluent-gray-50);
}

.shop-breadcrumb .current {
    color: var(--fluent-black);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.search-toggle-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--fluent-black);
    padding: 8px;
}

/* Advanced Search Container */
.nav-search-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--fluent-white);
    border: 2px solid var(--fluent-black);
    border-radius: var(--fluent-radius-medium);
    padding: 0;
    transition: all 0.2s;
    height: 44px;
    overflow: visible;
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.nav-search-container:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Category Dropdown */
.search-category-dropdown {
    border: none;
    background: var(--fluent-gray-10);
    padding: 0 12px;
    height: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--fluent-black);
    cursor: pointer;
    border-right: 2px solid var(--fluent-black);
    min-width: 130px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.search-category-dropdown:hover {
    background-color: var(--fluent-gray-20);
}

/* Search Input Wrapper */
.search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    position: relative;
}

.nav-search-input {
    border: none;
    background: transparent;
    font-size: 14px;
    width: 100%;
    padding: 8px 12px;
    outline: none;
    height: 100%;
}

.nav-search-input::placeholder {
    color: var(--fluent-gray-60);
}

/* Clear Button */
.search-clear-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fluent-gray-60);
    font-size: 14px;
    padding: 8px;
    transition: color 0.2s;
}

.search-clear-btn:hover {
    color: var(--fluent-black);
}

.search-clear-btn.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Button */
.nav-search-btn {
    background: var(--fluent-black);
    border: none;
    cursor: pointer;
    color: var(--fluent-white);
    font-size: 16px;
    padding: 0 16px;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-btn:hover {
    background: var(--fluent-gray-90);
}

/* Search Suggestions Panel */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--fluent-white);
    border: 2px solid var(--fluent-black);
    border-radius: var(--fluent-radius-medium);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--fluent-gray-20);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--fluent-gray-10);
}

.suggestion-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--fluent-gray-20);
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--fluent-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta {
    font-size: 12px;
    color: var(--fluent-gray-70);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.suggestion-price {
    font-weight: 700;
    color: var(--fluent-success);
}

.suggestion-category {
    background: var(--fluent-gray-20);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.suggestions-empty {
    padding: 24px;
    text-align: center;
    color: var(--fluent-gray-70);
}

.suggestions-empty i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.nav-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.nav-actions a {
    text-decoration: none;
}


/* Main Layout */
.shop-main {
    display: flex;
    max-width: 1400px;
    margin: 120px auto 0;
    padding: 0 5%;
    min-height: calc(100vh - 120px);
}

/* Sidebar */
.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--fluent-white);
    border-radius: var(--fluent-radius-large);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: var(--fluent-shadow-4);
    margin-right: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--fluent-black);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fluent-gray-30);
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--fluent-gray-70);
}

/* ============================================
   FILTER SECTIONS - Enhanced
   ============================================ */

.filter-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.filter-section:last-of-type {
    border-bottom: none;
}

/* Collapsible Section Header */
.filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
}

.filter-section-header h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-section-header .chevron {
    font-size: 12px;
    color: #888;
    transition: transform 0.2s;
}

.filter-section.collapsed .chevron {
    transform: rotate(-90deg);
}

.filter-section.collapsed .filter-options,
.filter-section.collapsed .price-inputs {
    display: none;
}

/* Filter Options Container */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}

/* Custom Styled Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.filter-checkbox:hover {
    background: #f5f5f5;
}

/* Hide default checkbox */
.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom checkbox box */
.filter-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.filter-checkbox:hover .checkmark {
    border-color: #1a1a1a;
}

.filter-checkbox input:checked~.checkmark {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.filter-checkbox .checkmark::after {
    content: '';
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.filter-checkbox input:checked~.checkmark::after {
    display: block;
}

/* Checkbox Label */
.filter-checkbox .label-text {
    font-size: 14px;
    color: #333;
    flex: 1;
}

/* Item Count Badge */
.filter-checkbox .count-badge {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.filter-checkbox .count-badge.zero {
    color: #bbb;
}

/* Price Inputs */
.price-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.price-inputs input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.price-inputs input:focus {
    border-color: #1a1a1a;
    outline: none;
}

.price-inputs span {
    color: #888;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* ============================================
   QUICK FILTER BUTTONS
   ============================================ */

.quick-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.quick-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.quick-filter-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.quick-filter-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.quick-filter-btn i {
    font-size: 11px;
}

.quick-filter-btn .count {
    font-size: 10px;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
}

.quick-filter-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* Content Area */
.shop-content {
    flex: 1;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.shop-header-left h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.shop-header-left p {
    color: var(--fluent-gray-70);
    margin: 0;
    font-size: 15px;
}

.mobile-filter-toggle {
    display: none;
    padding: 10px 20px;
    background: var(--fluent-black);
    color: var(--fluent-white);
    border: none;
    border-radius: var(--fluent-radius-medium);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}

.mobile-filter-toggle i {
    margin-right: 8px;
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.skeleton-card {
    background: var(--fluent-gray-20);
    border-radius: var(--fluent-radius-large);
    height: 400px;
    animation: shimmer 1.5s infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   MODERN PRODUCTS GRID - Amazon/Zara Style
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Modern Product Card */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--fluent-black);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Sold Out State */
.product-card.sold-out {
    cursor: not-allowed;
    opacity: 0.85;
}

.product-card.sold-out:hover {
    transform: none;
    box-shadow: none;
}

.product-card.sold-out .product-image-container img {
    filter: grayscale(80%);
}

.sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.sold-out-label {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
}

/* ============================================
   PRODUCT IMAGE CONTAINER
   ============================================ */

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f8f8f8;
}

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

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

/* Hover Overlay with VIEW button - centered */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: #fff;
    color: #1a1a1a;
    border: none;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    opacity: 0;
    transform: scale(0.9);
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: scale(1);
}

.quick-view-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

/* Add to Cart Button (top-right) */
.cart-add-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cart-add-btn:hover {
    transform: scale(1.1);
    background: #1a1a1a;
}

.cart-add-btn i {
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.2s;
}

.cart-add-btn:hover i {
    color: #fff;
}

.cart-add-btn.added {
    background: #107c10;
}

.cart-add-btn.added i {
    color: #fff;
}

/* ============================================
   DIAGONAL OFFER RIBBON
   ============================================ */

.offer-ribbon {
    position: absolute;
    top: 16px;
    left: -32px;
    background: linear-gradient(135deg, #d13438, #c72a2d);
    color: #fff;
    padding: 6px 40px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(-45deg);
    z-index: 12;
    box-shadow: 0 2px 8px rgba(209, 52, 56, 0.4);
}

/* LOW STOCK Badge */
.badge-low-stock {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 6px 10px;
    background: #ff6b00;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-low-stock i {
    font-size: 10px;
}

/* Item Type Badge (subtle) */
.product-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 0.5px;
}

.product-type-badge.product {
    background: rgba(16, 124, 16, 0.9);
    color: #fff;
}

.product-type-badge.manufactured_product {
    background: rgba(0, 120, 212, 0.9);
    color: #fff;
}

.product-type-badge.service {
    background: rgba(135, 100, 184, 0.9);
    color: #fff;
}

/* ============================================
   PRODUCT CONTENT AREA
   ============================================ */

.product-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
}

.product-category {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.product-description {
    display: none;
    /* Hidden for cleaner look */
}

/* ============================================
   PRICING
   ============================================ */

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 8px;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-price.original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.product-price.offer {
    color: #d13438;
    font-size: 18px;
}

.offer-badge {
    background: #d13438;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* Stock display */
.product-stock {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-stock.in-stock {
    color: #107c10;
}

.product-stock i {
    font-size: 10px;
}

/* VAT badge */
.vat-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #ffc107;
    color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Hide buy button - card is clickable */
.product-buy-btn {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--fluent-gray-40);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--fluent-black);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--fluent-gray-70);
}

/* Pagination */
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e1dfdd;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--fluent-black);
    font-size: 14px;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background-color: #f3f2f1;
    border-color: var(--fluent-black);
}

.pagination-btn.active {
    background-color: var(--fluent-black);
    color: white;
    border-color: var(--fluent-black);
    cursor: default;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: transparent;
}

.pagination-ellipsis {
    color: #888;
    font-size: 14px;
    padding: 0 4px;
}

/* Footer */
.landing-footer {
    background: var(--fluent-black);
    color: var(--fluent-white);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.landing-footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
    border-radius: 8px;
}

.footer-brand-name {
    font-size: 24px;
    font-weight: 700;
}

.footer-description {
    color: var(--fluent-gray-60);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--fluent-gray-60);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--fluent-white);
}

.footer-contact p {
    color: var(--fluent-gray-60);
    margin-bottom: 12px;
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--fluent-gray-80);
    color: var(--fluent-gray-60);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: var(--fluent-white);
    text-decoration: none;
    font-weight: 600;
}

.copyright-notice {
    margin-top: 16px;
    font-size: 12px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .shop-sidebar {
        width: 250px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-nav {
        top: 10px;
        left: 3%;
        right: 3%;
        width: 94%;
        padding: 12px 20px;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-search-container {
        display: none;
        position: fixed;
        top: 94px;
        left: 3%;
        right: 3%;
        width: 94%;
        background: var(--fluent-white);
        border: 2px solid var(--fluent-black);
        border-radius: 12px;
        padding: 0;
        z-index: 999;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        height: 44px;
    }

    .nav-search-container.active {
        display: flex;
    }

    .search-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .nav-search-input {
        width: 100%;
        padding: 8px 12px;
        font-size: 14px;
        border: none;
        background: transparent;
    }

    .shop-main {
        flex-direction: column;
        margin-top: 100px;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1100;
        margin: 0;
        border-radius: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .shop-sidebar.active {
        left: 0;
    }

    .sidebar-close {
        display: block;
    }

    .mobile-filter-toggle {
        display: inline-block;
    }

    .nav-page-title {
        display: none;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .nav-brand-name {
        font-size: 18px;
    }

    .shop-header-left h1 {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .nav-actions {
        gap: 8px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
        margin: 30px 10px 10px 10px;
    }

    .pagination-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .pagination-info {
        width: 100%;
        text-align: center;
    }

    .nav-actions .fluent-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.sidebar-overlay.active {
    display: block;
}

.offer-ribbon {
    position: absolute;
    top: 8px;
    left: -30px;
    width: 100px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #d13438, #c50e2c);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(-45deg);
    z-index: 9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.offer-ribbon i {
    font-size: 9px;
}

.offer-badge {
    display: inline-block;
    background: #d13438;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 6px;
}

.badge-almost-gone {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 6px 10px;
    background: rgba(255, 140, 0, 0.85);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: none;
}

.badge-almost-gone i {
    font-size: 10px;
}

/* ============================================
   NAV CART BUTTON
   ============================================ */

.nav-cart-btn {
    position: relative;
    background: var(--fluent-black);
    color: var(--fluent-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.nav-cart-btn:hover {
    transform: scale(1.05);
    background: #333;
}

.cart-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #d13438;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.cart-counter:empty,
.cart-counter[data-count="0"] {
    display: none;
}

/* ============================================
   CART DRAWER
   ============================================ */

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    transition: color 0.2s;
}

.cart-close-btn:hover {
    color: #1a1a1a;
}

.cart-drawer-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-drawer-header h3 span {
    font-weight: 400;
    color: #888;
}

/* Cart Items Area */
.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.cart-empty-state i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}

.cart-empty-state p {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #666;
}

.cart-empty-state span {
    font-size: 13px;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.cart-item-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.cart-item-badge.offer {
    background: #d13438;
    color: white;
}

.cart-item-badge.low-stock {
    background: #ff6b00;
    color: white;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.cart-item-price .original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 6px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.cart-qty-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.cart-qty-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-remove-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: #d13438;
}

/* Cart Footer */
.cart-drawer-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-discount-field {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.cart-discount-field input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.cart-discount-field button {
    padding: 10px 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-discount-field button:hover {
    background: #333;
}

.cart-discount-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8f5e9;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.cart-discount-applied span {
    font-size: 13px;
    color: #107c10;
    font-weight: 600;
}

.cart-discount-applied button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
}

.cart-totals {
    margin-bottom: 16px;
}

.cart-subtotal,
.cart-discount-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.cart-subtotal span:last-child {
    font-weight: 700;
    font-size: 16px;
}

.cart-discount-row span:last-child {
    color: #107c10;
    font-weight: 600;
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.cart-checkout-btn:hover:not(:disabled) {
    background: #333;
}

.cart-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cart-payment-methods {
    margin-top: 16px;
    text-align: center;
}

.cart-payment-methods img {
    max-width: 200px;
    opacity: 0.6;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* Search Bar Mobile Responsive */
@media (max-width: 768px) {
    .nav-search-container {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        max-width: none;
        margin: 0;
        border-radius: 8px;
        z-index: 999;
    }

    .nav-search-container.active {
        display: flex;
    }

    .search-category-dropdown {
        min-width: 100px;
        font-size: 12px;
        padding: 0 8px;
        padding-right: 24px;
    }

    .search-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .shop-nav {
        position: relative;
    }

    .nav-container {
        position: relative;
    }
}

@media (max-width: 480px) {
    .search-category-dropdown {
        display: none;
    }

    .nav-search-container {
        border-radius: 8px;
    }

    .suggestion-img {
        width: 40px;
        height: 40px;
    }

    .suggestion-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .suggestion-name {
        font-size: 13px;
    }
}