body {
    background: #e1e9ec;
    font-family: "Poppins", sans-serif !important;
    margin: 0;
}

.wrap {
    max-width: 1340px;
    margin: 20px auto;
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
}

/* Ensure Bootstrap/Tailwind container on homepage matches desired width */
.container,
.max-width-1340 {
    max-width: 1340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100%;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 5px 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 40;
    position: sticky;
    top: 0;
}
header.homepage {
    margin-bottom: 20px;
}

nav[role="navigation"],
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px 20px;
    z-index: 40;
}
/* Header classes (moved from inline styles in partial) */
.site-header .header-container {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    gap: 20px;
    position: relative;
}

.site-header .header-logo {
    width: 250px;
    height: auto;
    object-fit: contain;
}

.site-header .header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    /* position: absolute;
    left: 50%;
    transform: translateX(-50%);*/
    white-space: nowrap;
    pointer-events: auto;
}

.site-header .header-nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 8px;
}

.site-header .header-nav a:hover {
    color: #ff9900;
}

.site-header .header-actions {
    display: flex;
    justify-content: end;
    flex: 1;
    align-items: center;
}

.site-header .header-user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* User Account Dropdown */
.user-account-dropdown {
    position: relative;
}

.user-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 2px solid #f4b400;
    border-radius: 6px;
    color: #f4b400;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

.user-account-btn:hover {
    background: #f4b400;
    color: #fff;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.user-account-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0px);
    padding-top: 20px;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.2s ease;
}

.user-dropdown-menu[aria-hidden="true"] {
    display: none;
}

.user-dropdown-menu[aria-hidden="false"] {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    font-family: "Poppins", sans-serif;
}

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

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.dropdown-logout {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    color: #dc2626;
}

.dropdown-logout:hover {
    color: #dc2626;
}

.dropdown-form {
    margin: 0;
    padding: 0 8px;
}

.site-header .header-user-actions a.logout-btn {
    background: #1e8f4d;
}

/* Ensure header elements don't overlap on small screens */
@media (max-width: 880px) {
    .site-header .header-nav {
        position: static;
        transform: none;
        gap: 12px;
        margin: 8px 0;
    }
    .site-header .header-container {
        align-items: stretch;
        gap: 6px;
    }
    .site-header .header-actions {
        justify-content: center;
    }
}

.site-header .header-user-actions a {
    text-decoration: none;
    padding: 5px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.site-header .header-user-actions a.before-register {
    background: #f4b400;
    color: #fff;
    border-radius: 25px;
}

.site-header .header-user-actions a.before-register.green {
    background: #1e8f4d;
}

.site-header .header-user-actions a:hover {
    background: #f4b400;
}

.site-header .inline-form {
    display: inline;
}

/* Mobile controls visibility */
.mobile-only {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
}
.mobile-controls {
    display: none;
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 60;
    gap: 6px;
}

@media (max-width: 880px) {
    .mobile-only {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .header-nav {
        display: none !important;
    }
    .header-actions {
        display: none !important;
    }
    .mobile-controls {
        display: flex;
    }
}

/* Sliding filter panel */
.mobile-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s;
    z-index: 58;
}
.mobile-filter-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-filter-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 4px 0 24px rgba(2, 6, 23, 0.2);
    z-index: 59;
    transition: left 0.25s ease;
    overflow-y: auto;
    padding: 18px;
}
.mobile-filter-panel.open {
    left: 0;
}
.mobile-filter-panel .close-btn {
    display: inline-flex;
    margin-bottom: 12px;
}

@media (min-width: 767px) {
    .mobile-filter-panel {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-filter-panel {
        width: 90%;
        left: -100%;
    }
    .mobile-filter-panel.open {
        left: 0;
    }
}

/* Mobile menu panel (right side) */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s;
    z-index: 62;
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(2, 6, 23, 0.2);
    z-index: 63;
    transition: right 0.25s ease;
    overflow-y: auto;
    padding: 18px;
}
.mobile-menu-panel.open {
    right: 0;
}
.mobile-menu-panel .close-btn {
    display: inline-flex;
    margin-bottom: 12px;
}
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-menu-links a {
    text-decoration: none;
    color: #111827;
    padding: 8px 6px;
    border-radius: 6px;
}
.mobile-menu-panel .btn {
    margin-top: 8px;
    padding: 8px 10px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
}

@media (max-width: 480px) {
    .mobile-menu-panel {
        width: 90%;
        right: -100%;
    }
    .mobile-menu-panel.open {
        right: 0;
    }
}

/* Keep header content constrained to same max width */
nav .max-w-7xl,
nav > .max-w-7xl {
    max-width: 1340px;
    margin: 0 auto;
    width: 100%;
}

header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 767px) {
    header .brand {
        padding-left: 10px;
    }
}

header .brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

header nav a {
    margin-right: 12px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

header nav a:hover {
    color: #1e8f4d;
}

header .user-actions a {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 8px;
    font-size: 14px;
    color: #333;
    transition:
        background 0.3s,
        color 0.3s;
}

header .user-actions a:hover {
    background: #1e8f4d;
    color: #fff;
    border-color: #1e8f4d;
}

/* Hero Slider */
.hero {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    margin: 0;
    padding: 0;
}
.hero .slick-dotted.slick-slider {
    margin-bottom: 0px;
}

.hero-slider > div {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero .slick-slide {
    overflow: hidden;
    background-position: center;
    background-size: cover;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0px 20px;
}

.list-page .hero .slick-slide {
    padding: 20px 20px 0 20px;
}

.hero .slick-slide img {
    width: 100%;
    border-radius: 0.5em;
}
.hero .slick-slide picture,
.hero .slick-slide a {
    display: inline-block;
    width: 100%;
}

/* Slick Arrow Styles */

/* Custom: Only icon, black, no background, no text */
.hero .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none !important;
    border: none;
    color: #111 !important;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 0px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: none;
    transition: color 0.2s;
    padding: 0;
    overflow: hidden;
}

.hero .slick-arrow:hover {
    color: #000 !important;
}

.hero .slick-prev {
    left: 10px;
}

.hero .slick-next {
    right: 10px;
}

.hero .slick-dots li {
    height: auto;
    width: auto;
    margin: 0;
}
/* Slick Dots */
.hero .slick-dots {
    position: absolute;
    bottom: 15px;
    z-index: 11;
    display: flex !important;
    justify-content: center;
    list-style: none;
    gap: 8px;
}

.hero .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}
.hero .slick-dots li.slick-active button {
    width: 14px;
    height: 14px;
}
.hero .slick-dots li button:before {
    font-size: 0px;
}
.hero .slick-dots li.slick-active button:before {
    opacity: 1;
    color: black;
}

.hero .slick-dots li.slick-active button {
    background: #fff;
}

/* Category Slider */
.category-slider-section {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.category-slider {
    margin: 0;
    flex: 90%;
    min-width: 300px;
    position: relative;
}

.category-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    flex: 1;
}

.category-item:hover {
    transform: translateY(-2px);
}

.category-icon,
.category-icon-placeholder,
.category-icon-more {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f5f5f5;
}
.category-icon{
       width: 30px;
    height: 30px;
}

.category-icon {
    object-fit: contain;
        padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
}

.category-icon-placeholder {
    font-size: 24px;
    color: #999;
}

.category-icon-more {
 
}

.category-name {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-more-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: #fff;
    border:0;
    border-radius:0;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    height: fit-content;
   margin-top: 5px;
}
.category-more-btn .category-icon-more{
    object-fit: contain;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    width:30px;
    height:30px;
}


/* Slick Slider Customization */
.category-slider .slick-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 10px 0 0 0;
}

.category-slider .slick-dots li {
    margin: 0 4px;
}

.category-slider .slick-dots li button:before {
    font-size: 8px;
    color: #999;
}

.category-slider .slick-dots li.slick-active button:before {
    color: #667eea;
}

.category-slider .slick-prev,
.category-slider .slick-next {
    background: #667eea;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    top: 50%;
    transform: translateY(-50%);
}

.category-slider .slick-prev:hover,
.category-slider .slick-next:hover {
    background: #764ba2;
}

.category-slider .slick-prev:before,
.category-slider .slick-next:before {
    display: none;
}

.category-slider .slick-prev i,
.category-slider .slick-next i {
    color: #fff;
    font-size: 16px;
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.filters select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #b7b7b7;
    min-width: 180px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filters select:hover,
.filters select:focus {
    border-color: #1e8f4d;
    outline: none;
}

.filters .location-btn {
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    background: #1e8f4d;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.filters .location-btn:hover {
    background: #1f6b2f;
}

.filters .location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.filters .location-btn.active {
    background: #1e8f4d;
    color: white;
}

/* Offers Listing */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.offer-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid #b7b7b7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    border-top: 4px solid #f4b400;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.offer-card img {
    width: 100px;
    height: 70px;
    object-fit: contain;
}

.offer-card h3 {
    margin: 10px 0 5px;
    font-size: 16px;
    color: #333;
}

.offer-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    min-height: 36px;
}

.offer-card a {
    background: #eeeeee;
    color: #000;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: background 0.3s;
}

.offer-card a:hover {
    background: #f4b400;
}
.offer-card .vendor-location {
    margin: 0;
    font-size: 14px;
    color: #565656;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header nav a {
        display: block;
        margin: 5px 0;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        width: 100%;
    }

    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        margin-top: 10px;
    }

    .hero .title-box {
        font-size: 24px;
        padding: 8px 20px;
    }
}

/* Loading Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* List view styles (vendor + offers) */
.list-page .wrap {
    max-width: 1340px;
    padding: 0;
}

.vendor-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
}

.vendor-head {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #eaeaea;
}

.vendor-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vendor-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.vendor-meta {
    color: #4b5563;
    font-size: 13px;
    margin: 2px 0 0;
}

.offer-table-wrapper {
    width: 100%;
}

.offer-row {
    display: grid;
    grid-template-columns: 120px 1fr 140px 160px;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #f3f4f6;
}

.offer-row:first-child {
    border-top: none;
}
.offer-row:last-child {
    border-bottom: none;
}

.offer-row div {
    display: flex;
    align-items: center;
}

.offer-thumb {
    width: 80px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.offer-thumb img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.offer-row .muted {
    color: #6b7280;
    font-size: 13px;
}

.offer-row .price {
    text-align: right;
    font-weight: 700;
}
.offer-row .discount {
    text-align: right;
    color: #1e8f4d;
    font-weight: 700;
}

.empty-state {
    padding: 22px;
    text-align: center;
    color: #6b7280;
}

.pagination-wrap {
    margin: 18px 0;
    display: flex;
    justify-content: center;
}
/* ============================================
   MOBILE MENU STYLES
   ============================================ */

/* Hide menu toggle on desktop */
.mobile-header-icons {
    display: none;
}

/* Mobile icon button styling */
.mobile-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.3s ease;
    z-index: 45;
}

.mobile-icon-btn:active {
    opacity: 0.7;
}

/* Hamburger menu icon */
.mobile-menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-icon span {
    width: 24px;
    height: 2.5px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-icon[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.mobile-menu-icon[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-icon[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* Mobile overlay (backdrop) */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

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

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 50;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
}

.mobile-nav-menu[aria-hidden="false"] {
    display: flex;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

.mobile-menu-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.mobile-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s ease;
}

.mobile-close-btn:active {
    color: #1f2937;
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 100%;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.mobile-nav-link {
    padding: 14px 20px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    display: block;
}

.mobile-nav-link:active {
    background-color: #f3f4f6;
}

/* Mobile Auth Section */
.mobile-auth-section {
    display: flex;
    justify-content: flex-start;
    padding: 10px;
    gap: 20px;
}

.mobile-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    width: 120px;
}

.mobile-btn-primary {
    background: #f4b400;
    color: #fff;
}

.mobile-btn-primary:active {
    background: #f4b400;
    transform: scale(0.98);
}

.mobile-btn-secondary {
    background: #1e8f4d;
    color: #fff;
}

.mobile-btn-secondary:active {
    background: #1e8f4d;
    transform: scale(0.98);
}

.mobile-logout-form {
    margin: 0;
}

.mobile-logout-form button {
    width: 100%;
}

/* Mobile Filter Menu */
.mobile-filter-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 50;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
    display: none;
}

.mobile-filter-menu[aria-hidden="false"] {
    display: flex;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-filter-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.mobile-filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile Filters Styling */
.mobile-filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

.mobile-filters select,
.mobile-filters input[type="text"],
.mobile-filters input[type="checkbox"] {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.mobile-filters select {
    width: 100%;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.mobile-filters input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.mobile-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}

.mobile-filter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mobile-filter-checkbox label {
    cursor: pointer;
    font-size: 15px;
    color: #374151;
    margin: 0;
}

.mobile-filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.mobile-filter-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-clear {
    background: #6b7280;
    color: #fff;
}

.mobile-filter-clear:active {
    background: #4b5563;
    transform: scale(0.98);
}

@media (max-width: 880px) {
    /* Hide desktop filters on mobile */
    #desktopFilters {
        display: none !important;
    }

    /* Show mobile header icons */
    .mobile-header-icons {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    /* Hide desktop header nav and actions on mobile */
    .site-header .header-nav,
    .site-header .header-actions {
        display: none !important;
    }

    /* Adjust header layout for mobile */
    .site-header .header-container {
        justify-content: space-between;
        gap: 10px;
    }

    .site-header .header-logo {
        width: 150px;
    }
}

@media (min-width: 881px) {
    .mobile-filter-menu,
    .mobile-nav-menu {
        display: none !important;
    }

    .mobile-overlay {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-nav-menu,
    .mobile-filter-menu {
        width: 90%;
    }

    .mobile-menu-header h2,
    .mobile-filter-header h2 {
        font-size: 16px;
        padding-left: 15px;
    }

    .mobile-nav-link {
        padding: 12px 16px;
        font-size: 15px;
    }

    .mobile-btn {
        padding: 10px 14px;
        font-size: 14px;
    }

    .site-header .header-logo {
        width: 130px;
    }
}

@media (max-width: 767px) {
    .wrap {
        margin-top: 0px;
    }
    header.homepage {
        margin-bottom: 0px;
    }
    .hero {
        margin: 0px;
        margin-bottom: 20px;
    }
    .container,
    .max-width-1340 {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    /* Category Slider Mobile */
    .category-slider-section {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 10px;
        gap: 10px;
    }

    .category-slider {
        margin: 0;
        padding-bottom: 20px;
        flex: 1 !important;
        min-width: auto !important;
        width: 100%;
        margin-bottom: 0px !important;
    }

    .category-slide {
        padding: 0 5px;
    }

    .category-item {
        padding: 5px;
    }

    .category-icon,
    .category-icon-placeholder,
    .category-icon-more {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border: 1px solid #ccc;
        padding: 4px;
    }

    .category-icon{
         width: 30px;
        height: 30px;
    }
    .category-name {
        font-size: 11px;
    }

    .category-slider .slick-prev,
    .category-slider .slick-next {
        width: 32px;
        height: 32px;
    }

    .category-slider .slick-prev i,
    .category-slider .slick-next i {
        font-size: 14px;
    }

    .category-more-btn {
        padding: 10px 12px;
        width: 100%;
        text-align: center;
        margin-top: 0;
    }

    .category-more-btn .category-icon-more {
        width: 30px;
        height: 30px;
        font-size: 18px;
        margin: 0 auto;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    padding: 30px 0;
    background: #2e2e2e;
    color: #fff;
}

.footer-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1 1 180px;
    min-width: 160px;
}

.footer-logo-section {
    flex: 1 1 240px;
    min-width: 200px;
}

.footer-logo-wrapper {
    width: 250px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 5px;
}

.footer-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
    background: none;
    border-radius: 0;
}

.footer-heading {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 16px;
}

/* Footer About Box */
.footer-about-box {
    border-radius: 8px;
    padding: 0 10px;
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-about-text {
    margin: 0;
    font-size: 12px;
    color: #fff;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.footer-social-icons {
    display: flex;
    gap: 0;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-link {
    display: block;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    margin: 4px 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-text {
    margin: 0;
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
}

.footer-text:first-of-type {
    margin: 0;
}

.footer-text + .footer-text {
    margin: 6px 0 0;
}

.footer-bottom {
    border-top: none;
    padding-top: 12px;
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid #9ca3af;
    text-align: center;
}

/* List Page Styles (from home-list.blade.php) */

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-row select,
.filter-row input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 180px;
}

.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px;
}

.filters input[type="text"],
.filters select,
.filters label {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.filters label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    padding: 0;
}

.filters input[type="text"] {
    flex: 1;
    min-width: 200px;
}

#searchInput {
    display: none;
}

.filters .location-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    color: #fff;
}

.view-toggle {
    margin-left: auto;
    display: inline-flex;
    gap: 6px;
}

.view-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
}

.view-toggle a.active {
    background: #f4b400;
    color: #fff;
    border-color: #f4b400;
    box-shadow: 0 4px 6px rgba(255, 107, 53, 0.3);
}

.view-toggle a:hover:not(.active) {
    border-color: #9ca3af;
    background: #f9fafb;
}

/* Active Filters Banner */
.active-filters {
    padding: 12px 14px;
    background: #f4b400;
    border-left: 4px solid #f4b400;
    margin: 14px 0;
    border-radius: 6px;
}

.active-filters strong {
    color: #fff;
}

.active-filters span {
    display: inline-block;
    background: #1e8f4d;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    margin: 0 4px;
    font-size: 13px;
}

.active-filters span.top-selling {
    background: #f59e0b;
}

/* Vendor Card */
.vendor-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.vendor-head {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
}

.vendor-logo {
    width: 120px;
    height: 70px;
    overflow: hidden;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111827;
    flex-shrink: 0;
    border: 1px solid #babfc8;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 10px;
}
.offer-card .vendor-logo a.logo-link {
    background: none;
    display: inline-block;
    padding: 0px;
}
.vendor-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
        max-width: 100px;
}

.vendor-company-details {
    flex: 1;
}

.vendor-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.vendor-meta {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.vendor-company-details .vendor-meta:first-of-type {
    margin-top: 0;
}

.vendor-head-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.vendor-head-actions a {
    padding: 8px 12px;
    border: 1px solid #f4b400;
    color: #f4b400;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* Offer Rows */
.offer-table-wrapper {
    width: 100%;
}

.offer-row {
    display: grid;
    grid-template-columns: 120px 1fr 120px 120px;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.offer-row:last-child {
    border-bottom: none;
}

.offer-product {
    display: flex;
    gap: 10px;
    align-items: center;
}

.offer-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.offer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vendor-company {
    display: flex;
    gap: 20px;
    align-items: center;
}

.vendor-company .vendor-product-name {
    font-weight: 600;
    color: #111827;
    min-width: 170px;
}

.offer-row .price {
    text-align: center;
    font-weight: 600;
    color: #111827;
}

.offer-row .discount {
    text-align: center;
    font-weight: 600;
    color: #1e8f4d;
}

.top-selling-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
}

.muted {
    color: #6b7280;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 24px 0;
    color: #6b7280;
}

.pagination-wrap {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

.list-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px 24px;
}

/* Mobile Filter Panel */
.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.mobile-filter-overlay.open {
    display: block;
}

.mobile-filter-panel {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: #fff;
    z-index: 100;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-filter-panel.open {
    display: block;
    transform: translateX(0);
}

.mobile-filter-panel .close-btn {
    padding: 12px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    width: 100%;
    text-align: right;
}

@media (max-width: 880px) {

    .header-title{padding-left:20px; padding-right: 20px;}
    .offer-row {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
    }

    .offer-row > div:nth-child(3),
    .offer-row > div:nth-child(4) {
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    .footer-content {
        gap: 16px;
        justify-content: center;
    }

    .footer-section {
        flex: 1 1 100%;
        text-align: center;
    }

    .footer-logo-section {
        margin: 0 20px;
        min-width: 200px;
        gap: 12px;
        align-items: flex-start;
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }
    .footer-logo-wrapper {
        width: 100%;
        justify-content: center;
    }
    .footer-social-icons {
        justify-content: center;
    }

    nav[role="navigation"],
    nav {
        padding: 0px;
    }
}

/* Remove default black focus ring on category pages */
/* Note: Removing outlines can impact keyboard accessibility. */
.form-control:focus,
.form-control:focus-visible,
select:focus,
select:focus-visible,
button:focus,
button:focus-visible,
.location-btn:focus,
.location-btn:focus-visible,
.pagination-previous:focus,
.pagination-previous:focus-visible,
.pagination-next:focus,
.pagination-next:focus-visible,
.pagination-number:focus,
.pagination-number:focus-visible,
a:focus,
a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
}

a:-webkit-any-link:focus-visible {
    outline-offset: 0px;
}
@media (max-width: 825px) {
.footer-content{gap: 10px;}

}
button#mobileFilterToggleBtn{display:none;}
header.homepage button#mobileFilterToggleBtn{display: inline-block;}