* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f0f0;
    color: #111;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    background: #fff;
}

section {
    width: 100%;
    padding: 30px 0;
}

section:nth-child(even) {
    background: #fff;
}

section:nth-child(odd) {
    background: #fafafa;
}

.hero-slider {
    padding: 0;
    background: #111;
}

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --white: #fff;
    --black: #111;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #ffedd5;
    --orange-glow: rgba(249, 115, 22, 0.4);
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.1);
    --shadow-orange: 0 8px 28px rgba(249, 115, 22, 0.35);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 50%;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--black);
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

.slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* Dark gradient overlay on top of the image */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.20) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.slide-content {
    background-color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    width: 90%;
    padding: 30px 36px;
    border-left: none;
    border-radius: 0;
    text-align: center;
    z-index: 2;
}

.slide-tag {
    display: none !important;
}

.slide-content h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--white);
    line-height: 1.12;
    width: 100%;
    letter-spacing: -1px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 22px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    width: 100%;
    line-height: 1.55;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.slide-content .highlight {
    font-weight: 700;
    color: var(--orange);
}

.slide-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    pointer-events: none;
    z-index: 3;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    color: var(--white);
    font-weight: bold;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
}

.slider-arrow:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 24px var(--orange-glow);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-container .slide-counter,
.hero-slider .slide-counter,
.slide-counter,
.slider-dots {
    display: none !important;
}

/* ============================================
   BUTTONS (HERO)
   ============================================ */
.slide-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 36px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 50px;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.slide-buttons .btn-primary {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 20px var(--orange-glow);
}

.slide-buttons .btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(249, 115, 22, 0.6);
}

.slide-buttons .btn-primary:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 12px var(--orange-glow);
}

.slide-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.slide-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(255, 255, 255, 0.3);
}

.slide-buttons .btn-outline-light:active {
    transform: translateY(0) scale(0.97);
}

/* ============================================
   GLOBAL BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    letter-spacing: 0.3px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    padding: 12px 28px;
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    border-radius: 24px;
    box-shadow: 0 3px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(249, 115, 22, 0.45);
}

.btn-primary:active {
    opacity: 0.9;
    transform: translateY(0) scale(0.97);
}

.btn-outline-light {
    background: #111;
    color: var(--white);
    border-color: #111;
    border-radius: var(--radius-md);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn-lg {
    padding: 15px 34px;
    font-size: 16px;
    border-radius: 30px;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-results-section {
    padding: 30px 0 50px;
    background: var(--white);
}

.search-header {
    margin-bottom: 22px;
}

.search-header .section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}

.search-header .section-title::after {
    width: 35px;
}

#search-summary p {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 6px;
}

.loading-indicator {
    text-align: center;
    padding: 30px 0;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--orange);
    margin: 0 auto 12px;
    border-radius: var(--radius-full);
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#search-load-more-container {
    text-align: center;
    margin-top: 28px;
}

#search-load-more-btn {
    padding: 14px 42px;
    font-size: 15px;
    font-weight: 700;
    background: var(--orange);
    color: var(--white);
    border: 2px solid var(--orange);
    cursor: pointer;
    border-radius: 50px !important;
    transition: all var(--transition-base);
    letter-spacing: 0.4px;
    box-shadow: 0 3px 14px rgba(249, 115, 22, 0.3);
}

#search-load-more-btn:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.45);
}

#search-load-more-btn:active {
    transform: translateY(0) scale(0.97);
}

#search-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.end-message {
    text-align: center;
    padding: 25px 0;
    color: var(--gray-500);
}

.end-message i {
    font-size: 32px;
    color: #28a745;
    display: block;
    margin-bottom: 8px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--black);
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-dark));
    border-radius: 2px;
}

.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.view-all-link:hover {
    color: var(--orange-dark);
    background: var(--orange-light);
}

.view-all-link i {
    transition: transform var(--transition-fast);
}

.view-all-link:hover i {
    transform: translateX(3px);
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 10px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-base);
    position: relative;
}

.product-card:hover {
    border-color: var(--orange);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-card:active {
    transform: scale(0.98);
}

.product-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--gray-100);
}

.product-img a.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}

.product-badges .badge {
    padding: 4px 12px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--white);
    border-radius: 20px;
    display: inline-block;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-badges .badge-danger {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

.product-badges .badge-warning {
    background: linear-gradient(135deg, #111, #333);
}

.product-badges .badge-success {
    background: linear-gradient(135deg, var(--orange-dark), #c2410c);
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-actions .action-btn,
.product-actions .btn-wishlist,
.product-actions .btn-quickview {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    backdrop-filter: blur(6px);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-actions .action-btn:hover,
.product-actions .btn-wishlist:hover,
.product-actions .btn-quickview:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    transform: scale(1.1);
    box-shadow: 0 4px 16px var(--orange-glow);
}

.product-actions .action-btn:active,
.product-actions .btn-wishlist:active,
.product-actions .btn-quickview:active {
    transform: scale(0.9);
}

.product-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.product-title a:hover {
    color: var(--orange);
}

.product-subtitle {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.product-subtitle i {
    color: var(--orange);
    font-size: 10px;
    margin-right: 3px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--orange);
    margin: 6px 0 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-old-price {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray-400);
    text-decoration: line-through;
}

.search-highlight {
    background: var(--orange-light);
    color: var(--orange-dark);
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 700;
}

/* ============================================
   ADD TO CART BUTTON
   ============================================ */
.btn-add-to-cart {
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25);
}

.btn-add-to-cart:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--orange-dark), #c2410c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.btn-add-to-cart:active:not(:disabled) {
    transform: scale(0.97);
    box-shadow: none;
}

.btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add-to-cart.adding {
    opacity: 0.7;
    cursor: wait;
}

.btn-add-to-cart .btn-loading i {
    animation: spin 0.8s linear infinite;
}

.btn-add-to-cart .btn-text i,
.btn-add-to-cart .btn-added i,
.btn-add-to-cart .btn-loading i {
    margin-right: 5px;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border: none;
    color: var(--white);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25);
}

.btn-block:hover {
    background: linear-gradient(135deg, var(--orange-dark), #c2410c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.btn-block:active {
    transform: scale(0.97);
    box-shadow: none;
}

/* ============================================
   CART NOTIFICATION
   ============================================ */
.cart-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 26px;
    border-radius: 12px;
    z-index: 99999;
    font-size: 14px;
    font-weight: 600;
    max-width: 90%;
    animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.cart-count.bounce {
    animation: bounce 0.35s ease;
}

/* ============================================
   CATEGORIES
   ============================================ */
.category-section {
    background: none;
    margin-bottom: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.category-card {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 4px 8px;
    transition: all var(--transition-base);
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-img {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    padding: 4px;
}

.category-img img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    transition: all var(--transition-base);
}

.category-card:hover .category-img img {
    transform: scale(1.08);
}

.category-badge {
    display: none !important;
}

.category-body {
    padding: 6px 0 0;
}

.category-body h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111;
    margin-bottom: 2px;
    transition: color var(--transition-fast);
}

.category-card:hover .category-body h3 {
    color: var(--orange);
}

/* ============================================
   SUPPLIERS
   ============================================ */
.suppliers-section {
    background: none;
    margin-bottom: -3%;
}

.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: 10px;
}

.suppliers-grid::-webkit-scrollbar {
    display: none;
    height: 0;
}

.suppliers-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.supplier-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: fit-content;
    transition: all var(--transition-base);
}

.supplier-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.supplier-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.supplier-banner {
    max-width: 100%;
    height: 150px;
    border-radius: var(--radius-lg);
    position: relative;
    padding: 1px;
    display: flex;
    align-items: center;
}

.supplier-banner img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

.supplier-banner .default-banner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.supplier-banner .default-banner i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.3);
}

.supplier-logo-wrapper {
    display: flex;
    justify-content: start;
    margin-top: -90px;
    position: relative;
    padding-left: 12px;
    z-index: 2;
}

.supplier-logo {
    width: fit-content;
    height: fit-content;
    background: none;
    overflow: hidden;
    display: flex;
    align-items: start;
    justify-content: start;
    border: 3px solid #fff;
    border-radius: var(--radius-full);
    background: #fff;
    padding: 3px;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.supplier-logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: var(--radius-full) !important;
}

.supplier-card:hover .supplier-logo {
    border-color: var(--orange);
    box-shadow: 0 4px 16px var(--orange-glow);
}

.supplier-info {
    padding: 10px 14px 16px;
    text-align: left;
}

.supplier-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.supplier-card:hover .supplier-name {
    color: var(--orange);
}

.supplier-address {
    display: none !important;
    font-size: 12px;
    color: #737373;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.supplier-address i {
    color: var(--orange);
    font-size: 11px;
    flex-shrink: 0;
}

.supplier-address span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supplier-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 5px;
}

.supplier-rating i {
    font-size: 12px;
}

.supplier-rating .fa-star {
    color: var(--orange);
}

.supplier-rating .far.fa-star {
    color: #ddd;
}

.supplier-rating .rating-value {
    font-size: 12px;
    color: #525252;
    margin-left: 4px;
    font-weight: 600;
}

.supplier-product-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #737373;
}

.supplier-product-count i {
    color: var(--orange);
    font-size: 12px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: #a3a3a3;
    border: 1px solid #e5e5e5;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border-radius: var(--radius-lg);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--orange);
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 20px;
    color: #111;
    margin-bottom: 6px;
    font-weight: 700;
}

.empty-state p {
    font-size: 14px;
    color: #737373;
}

/* ============================================
   RESPONSIVE - TABLET (768px)
   ============================================ */
@media (max-width: 768px) {
    body {
        background: #fff;
        font-size: 14px;
    }

    .slide::after {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.35) 100%
        )
    }

    .slide-buttons .btn-primary {
        background: none !important;
        color: orange !important;
        border: none !important;
    }

    .btn-outline-light {
        color: white !important;
        border: none !important;
    }

    .container {
        padding: 0 14px;
    }

    section {
        padding: 22px 0;
    }

    .section-title {
        font-size: 18px;
    }

    .section-title::after {
        bottom: -10px;
        width: 36px;
        height: 3px;
    }

    .section-header {
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .view-all-link {
        font-size: 13px;
        flex-shrink: 0;
    }

    .slider-controls,
    .slider-dots {
        display: none !important;
    }

    /* Slider — shorter, cleaner */
    .slide img {
        height: 260px;
        max-height: 260px;
    }

    .slide-content {
        position: absolute;
        top: 50% !important;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 16px 20px;
        max-width: 92%;
        width: 92%;
        background: none !important;
        backdrop-filter: none !important;
        border-radius: var(--radius-lg) !important;
        text-align: center;
    }

    .slide-content h2 {
        font-size: 22px;
        color: var(--white);
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 14px;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
        line-height: 1.4;
    }

    .slide-buttons .btn {
        padding: 10px 22px;
        font-size: 12px;
    }

    /* Products — 3 per row */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .product-card {
        border-radius: var(--radius-md);
    }

    .product-card:hover {
        transform: translateY(-3px);
    }

    .product-title {
        font-size: 13px;
        min-height: 34px;
    }

    .product-subtitle {
        font-size: 11px;
    }

    .product-price {
        font-size: 16px;
    }

    .btn-add-to-cart {
        font-size: 12px;
        padding: 10px 12px;
    }

    .product-actions .action-btn,
    .product-actions .btn-wishlist,
    .product-actions .btn-quickview {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .product-badges .badge {
        font-size: 8px;
        padding: 3px 9px;
    }

    /* Suppliers — horizontal scroll */
    .suppliers-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 2px 14px;
        width: 100%;
        min-width: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .supplier-card {
        flex: 0 0 auto;
        width: 200px;
        min-width: 200px;
        max-width: 200px;
        border-radius: var(--radius-lg);
        scroll-snap-align: start;
    }

    .supplier-card:hover {
        transform: translateY(-3px);
    }

    .supplier-banner {
        height: 90px;
        border-radius: var(--radius-lg);
    }

    .supplier-banner img {
        height: 90px;
        border-radius: var(--radius-lg);
    }

    .supplier-logo-wrapper {
        margin-top: -55px;
        padding-left: 10px;
    }

    .supplier-logo {
        width: 52px;
        height: 52px;
        padding: 2px;
    }

    .supplier-logo img {
        width: 52px;
        height: 52px;
        border-radius: var(--radius-full) !important;
    }

    .supplier-name {
        font-size: 13px !important;
    }

    .supplier-info {
        padding: 8px 12px 12px;
    }

    /* Categories — 4 per row on tablet */
    .category-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px;
        padding-bottom: 0;
        width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .category-grid .category-card {
        width: 100%;
        flex: none;
    }

    .category-img {
        padding: 3px;
    }

    .category-img img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .category-body h3 {
        font-size: 11px !important;
        font-weight: 700;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (500px)
   ============================================ */
@media (max-width: 500px) {
    body {
        font-size: 13px;
    }

    section {
        padding: 16px 0;
    }

    .container {
        padding: 0 8px;
    }

    /* Slider — compact and elegant */
    .slide img {
        height: 170px;
        max-height: 170px;
    }

    .slide::after {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.10) 100%
        ) !important;
    }

    .slide-content {
        padding: 12px 16px;
        max-width: 94%;
        width: 94%;
        top: 55% !important;
    }

    .slide-content h2 {
        font-size: 17px;
        margin-bottom: 5px;
        line-height: 1.2;
        letter-spacing: -0.2px;
    }

    .slide-content p {
        display:none;
        font-size: 11px;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .slide-buttons {
        gap: 8px;
    }

    .slide-buttons .btn {
        box-shadow:none;
        padding: 7px 16px;
        font-size: 11px;
        border-radius: 20px;
    }

    /* Section headers — compact */
    .section-title {
        font-size: 15px;
    }

    .section-title::after {
        bottom: -8px;
        width: 28px;
        height: 2px;
    }

    .section-header {
        margin-bottom: 14px;
        padding-bottom: 8px;
        gap: 6px;
    }

    .view-all-link {
        font-size: 11px;
        padding: 2px 6px;
    }

    .view-all-link i {
        font-size: 10px;
    }

    /* Products — 2 per row, compact */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card {
        border-radius: var(--radius-sm);
    }

    .product-card:hover {
        transform: none;
    }

    .product-body {
        padding: 8px 10px 10px;
        gap: 3px;
    }

    .product-title {
        font-size: 11.5px;
        min-height: 28px;
        line-height: 1.3;
    }

    .product-subtitle {
        font-size: 10px;
    }

    .product-price {
        font-size: 14px;
        margin: 3px 0 1px;
    }

    .product-old-price {
        font-size: 10px;
    }

    .btn-add-to-cart {
        font-size: 11px;
        padding: 8px 10px;
        border-radius: var(--radius-sm);
        margin-top: 4px;
    }

    .product-actions {
        opacity: 1;
        transform: none;
        top: 6px;
        right: 6px;
        gap: 4px;
    }

    .product-actions .action-btn,
    .product-actions .btn-wishlist,
    .product-actions .btn-quickview {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .product-badges .badge {
        font-size: 7px;
        padding: 2px 7px;
    }

    .product-badges {
        top: 5px;
        left: 5px;
        gap: 3px;
    }

    /* Categories — 4 per row, refined compact */
    .category-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px;
        padding-bottom: 0;
        margin-top: 6px;
    }

    .category-grid .category-card {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .category-img {
        position: relative;
        width: 100%;
        padding: 0;
        margin: 0;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--gray-100);
        border-radius: var(--radius-md);
        border: 1px solid var(--gray-200);
        transition: all var(--transition-base);
    }

    .category-img img {
        width: 70%;
        height: 70%;
        max-width: 70%;
        max-height: 70%;
        object-fit: contain;
        aspect-ratio: 1 / 1;
        border-radius:10px;
        transition: transform var(--transition-base);
    }

    .category-card:hover .category-img,
    .category-card:active .category-img {
        border-color: var(--orange);
        background: var(--orange-light);
    }

    .category-card:hover .category-img img,
    .category-card:active .category-img img {
        transform: scale(1.08);
    }

    .category-body {
        padding: 0;
        width: 100%;
    }

    .category-body h3 {
        font-size: 9.5px !important;
        font-weight: 700 !important;
        line-height: 1.15;
        color: #111;
        letter-spacing: -0.1px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin: 0;
    }

    /* Suppliers — horizontal scroll, compact */
    .suppliers-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 2px 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .supplier-card {
        flex: 0 0 auto;
        width: 148px;
        min-width: 148px;
        max-width: 148px;
        border-radius: var(--radius-md);
        scroll-snap-align: start;
    }

    .supplier-banner {
        height: 72px;
        border-radius: var(--radius-md);
    }

    .supplier-banner img {
        height: 72px;
        border-radius: var(--radius-md);
    }

    .supplier-logo-wrapper {
        margin-top: -42px;
        padding-left: 8px;
    }

    .supplier-logo {
        width: 42px;
        height: 42px;
        padding: 2px;
        border-width: 2px;
    }

    .supplier-logo img {
        width: 42px;
        height: 42px;
        border-radius: var(--radius-full) !important;
    }

    .supplier-name {
        font-size: 11.5px !important;
        font-weight: 700;
        line-height: 1.25;
    }

    .supplier-info {
        padding: 6px 8px 10px;
    }

    .supplier-banner .default-banner i {
        font-size: 22px;
    }
}

/* ============================================
   TOUCH DEVICES
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .category-card:hover,
    .supplier-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .product-card:active {
        transform: scale(0.97) !important;
        border-color: var(--orange) !important;
    }

    .category-card:active {
        transform: scale(0.95) !important;
    }

    .supplier-card:active {
        transform: scale(0.97) !important;
        border-color: var(--orange) !important;
    }

    .supplier-card:hover .supplier-name {
        color: #111 !important;
    }

    .supplier-card:active .supplier-name {
        color: var(--orange) !important;
    }

    .product-actions {
        opacity: 1 !important;
        transform: none !important;
    }

    .suppliers-grid {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 10px;
    }

    .supplier-card {
        scroll-snap-align: start;
    }

    .supplier-card:hover {
        border-color: var(--gray-200) !important;
    }

    .btn-add-to-cart:active:not(:disabled),
    .btn-block:active,
    #search-load-more-btn:active {
        transform: scale(0.97) !important;
    }

    .product-actions .action-btn:active,
    .product-actions .btn-wishlist:active,
    .product-actions .btn-quickview:active {
        transform: scale(0.9) !important;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.text-center {
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 750px) {
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .hero-slider {
        margin: 0 4px;
        border-radius: var(--radius-sm);
        max-width: 98%;
    }

    .products-grid,
    .search-results-section,
    .suppliers-grid,
    [class*="grid"],
    [class*="container"] {
        max-width: 100%;
        overflow-x: visible;
    }

    .product-card,
    .category-card,
    .supplier-card {
        min-width: 0;
        width: 100%;
    }
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::selection {
    background: var(--orange);
    color: var(--white);
}

/* ============================================
   SUPPLIER HEADER ENHANCED
   ============================================ */
.suppliers-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

.suppliers-section .section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--black);
    margin: 0;
    position: relative;
    display: inline-block;
}

.suppliers-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-dark));
    border-radius: 2px;
}

.suppliers-section .view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.suppliers-section .view-all-link:hover {
    background: var(--orange-light);
    color: var(--orange-dark);
}

.suppliers-section .view-all-link i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.suppliers-section .view-all-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .suppliers-section .section-header {
        padding-bottom: 8px;
        margin-bottom: 14px;
        gap: 6px;
    }

    .suppliers-section .section-title {
        font-size: 17px;
        flex: 1;
    }

    .suppliers-section .section-title::after {
        bottom: -8px;
        width: 32px;
        height: 2px;
    }

    .suppliers-section .view-all-link {
        font-size: 12px;
        padding: 3px 8px;
        flex-shrink: 0;
    }

    .suppliers-section .view-all-link i {
        font-size: 11px;
    }
}

@media (max-width: 500px) {
    .suppliers-section .section-header {
        padding-bottom: 6px;
        margin-bottom: 10px;
        gap: 4px;
    }

    .suppliers-section .section-title {
        font-size: 15px;
    }


    .suppliers-section .section-title::after {
        bottom: -6px;
        width: 26px;
        height: 2px;
    }

    .suppliers-section .view-all-link {
        font-size: 11px;
        padding: 2px 6px;
    }

    .suppliers-section .view-all-link i {
        font-size: 10px;
    }
}