
:root {
    --primary: #000000;
    --secondary: #6b7280;
    --background: #f4f6f9;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 8px 24px rgba(0, 0, 0, .08);
    --primary-dark: #0b1220;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--background);
    font-family: "Outfit", sans-serif;
    color: #222;
    /* padding-bottom: 90px; */
}

a {
    text-decoration: none;
}

/* Header */
.home-page .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* background: transparent; */
    transition: background-color .3s ease, box-shadow .3s ease;
}

.home-page .header.header-scrolled {
    /* background: #fff; */
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.home-hero {
    width: 100%;
}

.home-hero .banner-swiper {
    width: 100%;
}

.home-hero .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin-top: 71px;
}
.home-page .banner-swiper,
.home-page .banner-swiper .swiper-slide,
.home-page .banner-swiper .swiper-slide img {
    border-radius: 0 !important;
}
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffffaa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.swal2-container.swal2-top-end {
    top: 80px !important;
}

.header-inner {
    max-width: 1500px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;

    filter:
        drop-shadow(0 0 4px rgb(255, 255, 255))
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}
.header-cart,
.header-chat,
.header-rfq {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 22px;
}

.header-chat {
    margin-left: 2px;
}

.header-rfq {
    width: auto;
    padding: 0 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    height: 37px;
    background: #000000;
    border-radius: 50px;
    padding-right: 15px;
    padding-left: 15px;
}

.header-actions a {
    color: var(--white);
    font-size: 22px;
}

/* User icon styling */
.header-actions .user-toggle {
    background: transparent;
    border: none;
    padding: 0;
}

.header-actions .user-toggle i {
    font-size: 22px;
    line-height: 1;
}

.header-actions .bi-person-circle {
    font-size: 24px !important;
    color: #ffffff;
}

.header-actions .bi-cart3 {
    font-size: 24px !important;
    color: #ffffff;
}

.header-right .cart-badge i,
.header-actions .user-toggle i,
.header-chat .chat-badge i,
.header-rfq .rfq-badge {
    color: #ffffff;
}

.dropdown-header {
    /* background: #000000; */
    color: #ffffff;
    border-radius: 10px;
}

.cart-badge,
.header-chat .chat-badge,
.header-rfq .rfq-badge {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-rfq .rfq-badge {
    gap: 2px;
}

.cart-badge {
    position: relative;
}

.header-chat .chat-count,
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

@media (max-width: 767.98px) {
    .header-chat {
        display: none !important;
    }
}
.header-store-name {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    flex: 1 1 auto;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
/* Main */

.container-custom {
    max-width: 1500px;
    margin: 10px  auto;
    padding: 1px 24px 24px 24px;
    min-height: 500px;
}

.container-custom.store-page{
    padding: 0px;
}

/* Merchant Section */

.merchant-section {
    margin-bottom: 30px;
    margin-top: 10px;
}

.merchant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.merchant-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.merchant-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap:5px;

    padding: 4px 7px;
    border-radius: 50px;

    background: #127f11;
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.merchant-verified i {
    font-size: 12px;
    margin-right: 2px;
}

.view-all {
    color: var(--secondary);
    font-weight: 600;
    transition: .2s;
}

.view-all:hover {
    color: #000000;
}

.merchant-name-link {
    color: inherit;
    text-decoration: none;
}

.merchant-name-link:hover {
    text-decoration: underline;
}

/* Product Grid */

.merchant-swiper {
    overflow: hidden;
    padding: 4px;
}

.merchant-swiper .swiper-slide {
    width: 210px;
    height: auto;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    background: aliceblue;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: all 0.2s ease;
    height: 100%;
}

.product-card-wrap {
    position: relative;
    height: 100%;
    min-width: 0;
}

.product-card-wrap .product-card {
    width: 100%;
}

.product-card-button {
    width: 100%;
    border: 1px solid var(--border);
    padding: 0;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
    display: flex;
    flex-direction: column;
}

.products-grid > *,
.search-store-products-grid > * {
    width: auto !important;
    max-width: none !important;
}

.products-grid .product-card,
.search-store-products-grid .product-card {
    width: 100% !important;
}

.products-grid,
.search-store-products-grid {
    display: grid !important;
    gap: 12px !important;
    align-items: start;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 110, 253, 0.15);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.product-image-wrapper {
    position: relative;
    background: #f8fafc;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

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

.product-card-cart-control {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
}

.product-card-cart-toggle,
.product-card-cart-button {
    /* width: 28px;
    height: 28px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: #212121;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(17, 126, 17, 0.24); */
    display: none;
}

.product-card-cart-stepper
{
    display: none;
    align-items: center;
    gap: 8px;
    padding: 3px;
    border-radius: 983px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    border: 1px solid rgb(0, 0, 0);
}

.product-card-cart-control.is-active .product-card-cart-toggle {
    display: none;
}

.product-card-cart-control.is-active .product-card-cart-stepper {
    /* display: inline-flex; */
    display: none;
}

.product-card-cart-button[data-cart-decrease] {
    background: #ef4444;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.2);
}

.product-card-cart-quantity {
    min-width: 24px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.product-content {
    padding: 12px;
    background: aliceblue;
}

.store-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-name-flag,
.merchant-profile-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.store-name-flag svg,
.merchant-profile-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary);
    margin-bottom: 10px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    min-height: 30px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: 700;
    color: #00388b;
}

.product-price-old {
    color: #8a94a6;
    font-size: 15px;
    font-weight: 600;
    text-decoration: line-through;
}

.product-price-current {
    color: #117e11;
}

/* Store page product layout */
.store-page {
    overflow: visible;
}

.store-page .store-category {
    margin-top: 0px;
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--primary);
}

.store-header {
    padding: 22px 0 6px;
}

.store-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.store-page .store-products-grid {
    display: grid;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.store-page .product-card {
    min-width: 0;
    border-radius: 10px;
}

.store-page .product-image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.store-page .product-content {
    padding: 12px;
    background: aliceblue;
}

.store-page .product-name {
    font-size: 14px;
    min-height: 30px;
}

.store-page .product-price {
    font-size: 16px;
}

.store-alert {
    margin: 18px 0;
}

.store-search-panel {
    position: sticky;
    top: 72px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -14px 0 12px;
    padding: 5px 0 5px;
    background: var(--background);
    /* box-shadow: 0 2px 10px rgba(244, 246, 249, .92); */
}

/* .store-section.has-banner .store-search-panel {
    margin-top: -14px;
} */

.store-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.store-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 10px;
    color: var(--secondary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.store-search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
}

.store-search-field input::placeholder {
    color: #767f8b;
}

.store-search-button,
.store-search-clear {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
}

.store-search-button {
    border: 0;
    background: var(--primary);
    color: #fff;
}

.store-search-clear {
    color: var(--secondary);
    background: #fff;
    border: 1px solid var(--border);
}

.store-category-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 2px;
    margin-bottom: 18px;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #c7cdd6 transparent;
    -webkit-overflow-scrolling: touch;
}

.store-category-filter::-webkit-scrollbar {
    height: 4px;
}

.store-category-filter::-webkit-scrollbar-track {
    background: transparent;
}

.store-category-filter::-webkit-scrollbar-thumb {
    background: #c7cdd6;
    border-radius: 999px;
}

.store-category-chip {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--primary);
    background: #e9ecef;
    font-weight: 600;
    white-space: nowrap;
}

.store-category-chip.active {
    color: #fff;
    background: var(--primary);
}

.store-empty-state {
    margin: 32px 0 56px;
    padding: 36px 18px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.store-empty-state i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--secondary);
    font-size: 20px;
}

.store-empty-state h3 {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 22px;
}

.store-empty-state p {
    margin: 0;
    color: var(--secondary);
}
.modal-header {
    /* border-bottom: 1px solid #000000; */
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.btn.btn-no{
    background: #dddddd;
    color: #000000;
    /* border: 1px solid #000000; */
    padding: 5px 20px;
    border-radius: 15px;
    font-weight: 700;
}
.btn.btn-yes{
    background: #000;
    color: #fff;
    border-radius: 15px;
    padding: 5px 20px;
    font-weight: 700;
}

.product-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .2);
}

.product-modal .modal-body {
    padding: 16px;
}

.product-modal-header {
    align-items: flex-start;
    padding: 14px 16px;
    border-bottom: 2px solid #000000;
    background: #ffffff;
    color: #000000;
    /* border: 2px solid white; */
    /* border-radius: 14px; */
}

.product-modal-header .product-modal-kicker {
    display: block;
    margin-bottom: 4px;
    color: #c5c5c5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.product-modal-header .modal-title,
.product-modal-header .modal-title * {
    color: #fff;
}

.product-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    color: #000000;
    font-size: 15px;
}

.product-modal-meta-label {
    color: #000000;
    font-weight: 700;
}

.product-modal-meta-item {
    color: #313131;
    font-weight: 500;
}

.product-modal .modal-title {
    max-width: 620px;
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.product-modal-name-label {
    color: #000000;
    font-weight: 700;
}

.product-modal-name-value {
    margin-left: 4px;
    color: #414141;
    font-weight: 500;
}

.product-modal-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-modal-gallery {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.product-modal-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 390px;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, .92), rgba(241, 245, 249, .92)),
        #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
}

.product-modal-image-frame.is-zoomed {
    cursor: grab;
}

.product-modal-image-frame.is-dragging {
    cursor: grabbing;
}

.product-modal-image-frame.is-dragging img {
    transition: none;
}

.product-modal-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform-origin: center;
    transition: transform .18s ease;
    will-change: transform;
}
.product-modal-close {
    position: absolute;
    top: 10px;
    right: 3px;
    /* z-index: 20; */
    z-index: 9999;
    background: #ef4444;
    border: 0;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    padding: 4px;
    border-radius: 50px;
}
.product-modal-close:hover {
    color: #bb2d3b;
}

.product-modal-zoom-actions {
    position: absolute;
    top: 3px;
    right: 38px;
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 5px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.product-modal-zoom-button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .16s ease, opacity .16s ease;
}

.product-modal-zoom-button:hover {
    background: #00388b;
}

.product-modal-zoom-button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.product-modal-zoom-value {
    min-width: 40px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.product-modal-nav-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    transform: translateY(-50%);
    transition: background .16s ease, color .16s ease, opacity .16s ease;
}

.product-modal-nav-button:hover {
    background: #111827;
    color: #fff;
}

.product-modal-nav-button:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.product-modal-nav-prev {
    left: 10px;
}

.product-modal-nav-next {
    right: 10px;
}

.product-modal-photo-bar {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.product-modal-photo-label {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.product-modal-thumbnails {
    display: flex;
    gap: 8px;
    padding-bottom: 2px;
    overflow-x: auto;
}

.product-modal-thumbnail {
    flex: 0 0 58px;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    background: #f8fafc;
    overflow: hidden;
    cursor: pointer;
}

.product-modal-thumbnail.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .15);
}

.product-modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-modal-action-grid {
    display: grid;
    gap: 10px;
}

.product-modal-price-quantity-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
}

/* Cart page styles */
.cart-page {
    padding: 0px 0 57px;
}

.cart-page .cart-items,
.cart-page .empty-cart {
    min-height: 15.3vh;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 64px;
    color: #adb5bd;
}

.empty-cart h4 {
    margin-top: 16px;
    margin-bottom: 8px;
}

.empty-cart p {
    color: #6c757d;
    margin: 0;
}

.btn-remove:hover{
    background:#dc3545;
    color:#fff;
}

.cart-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.cart-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #fff;
}

.cart-table th,
.cart-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    text-align: left;
}

.cart-table thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #495057;
    white-space: nowrap;
}

.cart-item:hover {
    background: #fcfdff;
}

.cart-item-picture {
    position: relative;
    width: auto;
}

.cart-item-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #ececec;
}

.cart-item-info {
    min-width: 260px;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 6px;
    word-break: break-word;
}

.cart-item-store {
    font-size: 14px;
    color: #6c757d;
}

.cart-item-price {
    width: 120px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.cart-item-quantity {
    width: 170px;
    white-space: nowrap;
}

.cart-item-quantity .btn-qty {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.cart-item-quantity .btn-qty.decrease {
    background: #757575;
}

.cart-item-quantity .btn-qty.decrease:hover {
    background: #474747;
}

.cart-item-quantity .btn-qty.increase {
    background: #000;
}

.cart-item-quantity .btn-qty.increase:hover {
    background: #474747;
}

.cart-item-quantity .qty-input {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    margin: 0 8px;
}

.cart-item-line {
    width: 280px;
    white-space: nowrap;
}

.line-math {
    display: grid;
    grid-template-columns: 72px 16px 22px 16px 88px;
    align-items: center;
    gap: 4px;
    width: max-content;
}

.line-price,
.line-times,
.line-qty,
.line-equals {
    font-size: 15px;
    color: #6c757d;
}

.line-price {
    text-align: right;
}

.line-qty {
    font-weight: 600;
    color: #111827;
}

.line-total {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}

.delivery-info-dropdown{
    border:1px solid #dee2e6;
    border-radius:10px;
    background:#fff;
    overflow:hidden;
}

.delivery-info-dropdown summary{
    cursor:pointer;
    padding:12px 15px;
    font-weight:600;
    list-style:none;
    user-select:none;
    background:#f8f9fa;
}

.delivery-info-dropdown summary::-webkit-details-marker{
    display:none;
}

.delivery-info-dropdown summary::after{
    content:"+";
    float:right;
    font-size:18px;
    transition:.2s;
}

.delivery-info-dropdown[open] summary::after{
    content:"−";
}

.delivery-info-content{
    padding:15px;
    font-size:.95rem;
    color:#555;
}

.btn-remove {
    width: 27px;
    height: 27px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.18);
}

.cart-bottom-bar {
    margin-top: 0px;
    /* margin-left: auto; */
    /* width: min(100%, 460px); */
    background: #fff;
    border-radius: 14px;
    padding: 15px 10px 15px 25px;
    border: 1px solid #ececec;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.cart-summary-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
    gap: 5px;
    padding: 5px;
    font-size: 14px;
}

.cart-summary-row.total {
    font-size: 15px;
    font-weight: 700;
    /* margin-top: 6px; */
}

.cart-summary-amount {
    font-weight: 700;
    text-align: left;
    min-width: 120px;
}

.cart-summary-lines {
    flex: 1;
}

.cart-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.cart-actions-row form{
    margin:0;
}

.clear-cart-wrap {
    display: flex;
    justify-content: center;
    margin: 32px 0 90px;
}

.btn-clear {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.btn-checkout {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    min-width: 160px;
}
.btn-checkout:hover {
    background: #2e2e2e;
    color: #fff;
}

.product-modal-price-panel,
.product-modal-cart-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.product-modal-cart-panel {
    gap: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.product-modal-price-panel {
    padding: 6px 8px;
}

.product-modal-label {
    display: block;
    /* margin-bottom: 4px; */
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.product-modal-price {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    /* color: #0d6efd; */
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.product-modal-quantity-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 6px 6px; */
    background: transparent;
    border-radius: 8px;
    gap: 6px;
}

.product-modal-quantity-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(13, 110, 253, .12);
}

.product-modal-quantity-button-increase {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, .12);
    color: #ffffff;
    background: #000000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-modal-quantity-button-increase:hover {
    background: rgb(255, 255, 255);
    border: 1px solid #000000;
}

.product-modal-quantity-button-decrease {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, .12);
    color: #ffffff;
    background: #4e4e4e;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-modal-quantity-button-decrease:hover {
    background: rgb(255, 255, 255);
    color: #000000;
    border: 1px solid #000000;
}

.product-modal-quantity-value {
    min-width: 26px;
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.product-modal-total-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
}

.product-modal-total-amount {
    color: #000000;
    font-size: 16px;
    font-weight: 800;
}

.product-modal-price-old {
    color: #8a94a6;
    font-size: 18px;
    font-weight: 600;
    text-decoration: line-through;
}

.product-modal-price-current {
    color: #117e11;
    padding-bottom: 10px;
}

.product-modal-cart-form {
    margin: 0;
}

.product-modal-cart-button {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-weight: 700;
    background-color: #000000;
    color: #fff;
}

.product-modal-cart-button:hover {
    background-color: #152435;
    color: #fff;
}

.product-modal-price-section,
.product-modal-description-section,
.product-modal-quantity-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

.product-modal-description-section {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.product-modal-description {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
    white-space: pre-wrap;
}

.product-modal-description.d-none {
    display: none;
}

.product-modal-controls-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
    align-items: flex-start;
    background: #efefef;
    padding: 10px 10px 0 10px;
    margin-bottom: 0px;
    border-radius: 9px;
}

.product-modal-controls-row .product-modal-price-section {
    flex: 1;
    margin-bottom: 0;
}

.product-modal-controls-row .product-modal-quantity-section {
    flex: 1;
    margin-bottom: 0;
}

.product-modal-total-section {
    flex: 1;
}

.product-modal-total-panel {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
    /* gap: 0.5rem; */
}

.product-modal-actions-row {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
}

.product-modal-actions-row .product-modal-cart-button {
    flex: 1;
}

.product-modal-actions-row form,
.product-modal-actions-row a {
    flex: 1;
    margin: 0;
}

.product-modal-actions-row button,
.product-modal-actions-row a {
    width: 100%;
}

.product-modal-actions-row .product-modal-cart-button,
.product-modal-actions-row .product-modal-chat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    min-height: 44px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}

.product-modal-actions-row form,
.product-modal-actions-row a {
    flex: 1 1 48%;
}

/* Mobile Navigation */

/* .mobile-nav {
    display: none;
} */

/* search */

.search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    height: 37px;
    flex: 1 1 auto;
    min-width: 0;
    /* margin: 0 12px; */
    border: #000 2px solid;
}

.search-form .search-close-button {
    display: none;
    border: none;
    background: transparent;
    color: #000000;
    width: 36px;
    cursor: pointer;
    flex: 0 0 36px;
}

.search-form input {
    width: 100%;
    padding: 0 14px;
    border: none;
    outline: none;
    background: transparent;
    color: #030303;
    font-size: 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.search-form input::placeholder {
    color: rgb(66, 66, 66);
}

.search-form button {
    border: none;
    background: transparent;
    color: #000000;
    width: 42px;
    cursor: pointer;
}

.pagination-wrapper {
    margin-top: 32px;
}

.pagination-wrapper .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-wrapper .pagination .page-item {
    margin: 0;
}

.pagination-wrapper .pagination .page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
}

.pagination-wrapper .pagination .page-link:hover,
.pagination-wrapper .pagination .page-link:focus {
    background: #f3f4f6;
}

.pagination-wrapper .pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.pagination-wrapper .pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background: #fff;
    border-color: #e5e7eb;
}

.pagination-wrapper .pagination .page-item.disabled .page-link:hover {
    background: #fff;
}

.pagination-wrapper .text-sm.text-gray-700.leading-5 {
    margin-bottom: 0px;
    padding-right: 10px;
}

/* Header dropdown deep-color styling */
.header .dropdown-menu {
    background: var(--primary-dark) !important;
    border: none !important;
    padding: 6px !important;
    border-radius: 8px !important;
    box-shadow: 0 6px 20px rgba(6, 9, 16, 0.45) !important;
}

.header .dropdown-menu .dropdown-item {
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(17,24,39,1), rgba(11,18,32,1));
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.header .dropdown-menu .dropdown-item:hover {
    background: linear-gradient(180deg, rgb(141, 0, 0), rgb(109, 1, 1));
    color: #ffffff !important;
}

.header .dropdown-menu .dropdown-item i {
    font-size: 16px;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    margin-top: 30px;
    background: #000000;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 50, 50, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 48px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

    padding: 8px;
    margin-bottom: 8px;
    border-radius: 18px;

    background:
        radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 60%),
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.footer-logo::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(
        from 180deg,
        transparent,
        rgba(255, 255, 255, 0.473),
        transparent
    );
    animation: logoRotate 8s linear infinite;
}

.footer-logo::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    background: #f3f3f3;
}

.footer-logo img {
    position: relative;
    z-index: 2;
    display: block;
    height: 45px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 10px #dadada77)
        drop-shadow(0 0 18px #e0e0e0);
    transition: filter .3s ease;
}

.footer-logo:hover {
    border-color: rgba(255,255,255,.45);
    box-shadow:
        0 18px 45px rgba(0,0,0,.45),
        0 0 25px rgba(255,255,255,.15);
}

.footer-logo:hover img {
    filter:
        drop-shadow(0 0 12px #fff)
        drop-shadow(0 0 24px rgba(255,255,255,.9));
}

@keyframes logoRotate {
    to {
        transform: rotate(360deg);
    }
}

.footer-brand h6 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.footer-brand small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    display: block;
}

.footer-column h4 {
    margin-bottom: 28px;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ol, ul {
    padding: 0;
    margin: 0;
}

.footer-column li + li {
    margin-top: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 18px;
    transition: color .2s ease, transform .2s ease;
}

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

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.72);
    transition: all .2s ease;
}

.footer-social-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.footer-social-links i {
    font-size: 18px;
}

.store-hero {
    position: relative;
    margin-bottom: 80px;
}

.banner-swiper,
.banner-placeholder,
.store-cover-photo {
    width: auto;
    /* height: 320px;
    min-height: 180px; 
    max-height: 420px;*/
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.banner-swiper .swiper-slide,
.banner-swiper picture,
.banner-swiper img,
.store-cover-photo img {
    width: 100%;
    height: 100%;
}

.banner-swiper img,
.store-cover-photo img {
    object-fit: fill;
    display: block;
}

/* Grey placeholder */

.banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;

    background: linear-gradient(
        135deg,
        #d1d5db 0%,
        #e5e7eb 50%,
        #d1d5db 100%
    );
}

.banner-placeholder i {
    font-size: 56px;
    color: rgba(107, 114, 128, 0.6);
}

/* Merchant card */
.merchant-profile-card {
    position: absolute;
    left: 50%;
    bottom: -55px;
    transform: translateX(-50%);
    width: min(90%, 1000px);
    min-height: 120px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 14px;
    background: rgba(255, 255, 255, 0.363);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    z-index: 10;
}

.merchant-profile-avatar img,
.merchant-avatar-placeholder {
    width: 80px;
    height: 80px;
    border: 2px solid #000000;
    border-radius: 50%;
}

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

.merchant-profile-name {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
    font-size: 20px;
    line-height: 1.2;
}

.merchant-profile-name > span:last-child {
    display: inline-block;
}

.merchant-profile-subtitle {
    margin-bottom: 2px;
    font-size: 11px;
}

.merchant-profile-meta {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.merchant-profile-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #000;
    padding: 5px;
    border-radius: 5px;
}

.merchant-profile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.merchant-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.merchant-action-btn i {
    font-size: 14px;
}

.merchant-avatar-icon {
    font-size: 300%;
    color: var(--avatar-fg, #3d4852);
}

.about-btn {
    background: #000;
    color: #ffffff;
}

.about-btn:hover {
    background: #292929;
}

.certification-btn {
    background: #000000;
    color: #ffffff;
}

.certification-btn:hover {
    background: #292929;
}

.merchant-profile-status {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    width: 120px;
    height: 120px;
    padding: 30px 16px 16px 16px;
    background: #000000;
    color: #ffffff;
    border-radius: 18px 0 0 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 12;
    pointer-events: none;
}

.merchant-profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: rotate(-45deg);
    transform-origin: center center;
}

.merchant-profile-status span {
    display: inline-block;
}

.merchant-profile-status.open {
    color: #ffffff;
}

.merchant-profile-status.closed {
    color: #ffffff;
}

.merchant-profile-status i {
    font-size: 8px;
    line-height: 1;
    flex-shrink: 0;
}

.merchant-profile-status.open i {
    color: #22c55e;
}

.merchant-profile-status.closed i {
    color: #ef4444;
}

.product-modal-video-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* new */
.home-filter{
    width:100%;
    margin: 0px 0px 0px auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

.business-type{
    display:flex;
    border:2px solid #222;
    border-radius:50px;
    overflow:hidden;
}

.type-btn {
    width: 200px;
    padding: 10px 20px;
    border: none;
    background: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.type-btn.active{
    background:#111;
    color:#fff;
}

.search-wrapper{
    width:100%;
}

.product-search-form{
    position:relative;
    display:flex;
    align-items:center;
    width:100%;
}

#productSearch{
    flex:1;
    height:50px;
    padding:0 20px;
    font-size:14px;
    border:2px solid #222;
    border-right:none;
    border-radius:50px 0 0 50px;
    outline:none;
}

#productSearch:focus{
    border-color:#003686;
}

#countryBtn{
    width:200px;
    height:50px;
    border:2px solid #222;
    border-left:none;
    background:#fff;
    cursor:pointer;
    font-size: 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    font-weight:500;
}

#countryBtn svg{
    width:22px;
    height:16px;
    display:block;
}

#selectedFlag{
    display:flex;
    align-items:center;
    justify-content:center;
}

#selectedFlag svg{
    width:22px;
    height:16px;
    display:block;
}

.search-btn{
    width:60px;
    height:50px;
    border:none;
    border-radius: 0;
    background:#000000;
    color:#fff;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:.2s;
}

.search-btn:hover{
    background:#2b2b2b;
}

.country-dropdown{
    position:absolute;
    top:70px;
    right:180px;

    width:340px;

    background:#fff;
    border:1px solid #ddd;
    border-radius:15px;

    box-shadow:0 8px 25px rgba(0,0,0,.15);

    display:none;
    overflow:hidden;
    z-index:999;
}

.country-search{
    padding:12px;
    border-bottom:1px solid #eee;
}

.country-search input{
    width:100%;
    height:42px;
    padding:0 15px;
    border:1px solid #ddd;
    border-radius:25px;
    outline:none;
}

.country-search input:focus{
    border-color:#0d6efd;
}

#countryList{
    max-height:300px;
    overflow-y:auto;
}

.country-item{
    display:flex;
    align-items:center;
    gap:12px;

    padding:12px 15px;

    cursor:pointer;
    transition:.2s;
}

.country-item:hover{
    background:#f5f5f5;
}

.country-item svg{
    width:22px;
    height:16px;
    flex-shrink:0;
}

.country-code{
    margin-left:auto;
    font-size:13px;
    color:#777;
    font-weight:600;
}

.country-item.active{
    background:#eef5ff;
}

.country-name{
    flex:1;
}

.flag svg{
    width:22px;
    height:16px;
    display:block;
}

.business-type{
    display:flex;
    align-items:center;
    border:2px solid #222;
    border-radius:50px 50px 0px 0px;
    overflow:hidden;
}

.type-divider{
    width:1px;
    align-self:stretch;
    background:#000000;
}

.clear-btn{
    height:50px;
    padding:0 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-left:1px solid #ffffff;
    border-top:2px solid #c92f2f;
    border-bottom:2px solid #c92f2f;
    border-right:2px solid #c92f2f;
    border-radius:0 50px 50px 0;

    color:#ffffff;
    background:#c92f2f;

    text-decoration:none;
    font-weight:600;

    transition:.2s;
}

.clear-btn:hover{
    background:#dc3545;
    color:#fff;
}

.app-download-links{
    display:flex;
    align-items:center;
    gap:5px;
    margin-right:0px;
    flex-shrink:0;
}

.app-link{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.app-badge{
    height:37px;
    width:auto;
    display:block;
    border-radius: 50px;
}

.mobile-icon{
    display:none;
    width:28px;
    height:28px;
}

.seller-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 12px;
    border-radius: 50px;
    background: #dc2626;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.seller-link:hover {
    background: #b91c1c;
    color: #ffffff;
    text-decoration: none;
}

.seller-link .seller-text {
    display: inline-block;
}

.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next{
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    z-index: 20;
}

.home-page .banner-swiper .swiper-button-prev,
.home-page .banner-swiper .swiper-button-next{
    top: 45px;
}

.banner-swiper .swiper-button-prev::after,
.banner-swiper .swiper-button-next::after {
    font-size: 16px !important;
    font-weight: bold;
    color: #ffffff;
}

.banner-swiper .swiper-button-prev:hover,
.banner-swiper .swiper-button-next:hover {
    background: #313131;
}

.banner-swiper .swiper-button-prev {
    left: 15px;
}

.banner-swiper .swiper-button-next {
    right: 15px;
}

.banner-swiper .swiper-button-prev::after,
.banner-swiper .swiper-button-next::after{
    font-size:16px;
}

/* Mobile */
@media (max-width: 1400px) {
    .store-page .store-products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .store-page .store-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        padding: 2px;
    }

    .products-grid,
    .search-store-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    .cart-item-thumb {
        width: 55px;
        height: 55px;
    }
    .products-grid,
    .search-store-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .home-filter{
        padding: 0 7px 0px 0px;
    }

    .business-type{
        width:100%;
        max-width:500px;
    }

    .type-btn{
        flex:1;
        width:auto;
        font-size:13px;
        padding:14px;
    }

    .product-search-form{
        width:100%;
    }

    #countryBtn{
        width:190px;
    }

    .search-btn{
        width:60px;
        padding:0 15px;
    }

    .country-dropdown{
        width:300px;
        right:180px;
    }
}

@media (max-width: 900px) {
    .desktop-badge {
        display: none;
    }

    .mobile-icon{
        display:block;
        height:37px;
        width:37px;
        border: #000 solid 2px;
        border-radius: 50%;
    }
}

@media (max-width:768px){

    .app-download-links{
        gap:5px;
        margin-right:0px;
    }

    .desktop-badge{
        display:none;
    }

    .mobile-icon{
        height:35px;
        width:35px;
    }

    .desktop-seller-link {
        display: none !important;
    }

    .header-right {
        gap: 5px;
    }
    .merchant-verified {
        padding: 3px 6px;
        font-size: 11px;
        gap: 5px;
    }
    .merchant-verified i {
        font-size: 11px;
        margin-right: 1px;
    }

    .seller-icon{
        height:35px;
        width:70px;
    }

    .site-footer {
        margin-top: 25px;
    }

    .footer-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 15px;
        padding: 20px 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        padding: 2px
    }

    .footer-logo img {
        height: 40px;
        max-width: 180px;
        padding: 5px;
    }

    .footer-logo {
        padding: 2px;
    }

    .footer-column {
        margin: 0;
    }

    .footer-column h4 {
        margin-bottom: 18px;
        font-size: 18px;
    }

    .footer-column li + li {
        margin-top: 5px;
    }

    .footer-column a {
        font-size: 15px;
    }

    .footer-social {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 10px;
    }

    .footer-social-links {
        justify-content: center;
        gap: 20px;
    }

    .merchant-profile-card {
        width: calc(100% - 90px);
        min-height: 80px;
        padding: 7px 12px;
        gap: 10px;
        border-radius: 14px;
        flex-wrap: wrap;
    }

    .merchant-profile-avatar img,
    .merchant-avatar-placeholder {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .merchant-profile-name {
        font-size: 14px;
    }

    .merchant-profile-subtitle {
        font-size: 10px;
    }

    .merchant-profile-rating {
        font-size: 9px;
    }

    .merchant-profile-status {
        width: 95px;
        height: 95px;
        padding-left: 10px;
        font-size: 9px;
    }

    /* Mobile: Profile Actions */
    .merchant-profile-actions {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding-top: 4px;
        gap: 6px;
    }

    .merchant-action-btn {
        padding: 6px 12px;
        font-size: 11px;
        flex: 1;
        justify-content: center;
        max-width: 140px;
    }

    .merchant-action-btn i {
        font-size: 12px;
    }

    .merchant-avatar-icon {
        font-size: 200%;
    }

    .store-hero {
        margin-bottom: 85px;
    }

    .banner-swiper,
    .banner-placeholder,
    .store-cover-photo {
        /* height: 170px;
        min-height: 160px;
        max-height: 380px; */
        border-radius: 16px;
    }

    .banner-swiper .swiper-slide,
    .banner-swiper picture,
    .banner-swiper img,
    .store-cover-photo img {
        width: 100%;
        height: 100%;
        min-height: 180px;
    }

    .header-actions .bi-person-circle {
        font-size: 20px !important;
    }

    .header-actions .bi-cart3 {
        font-size: 20px !important;
    }

    .cart-count {
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
    }

    .cart-table-wrapper {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow-x: auto;
    }

    .cart-table {
        min-width: 720px;
    }

    .cart-actions-row {
        flex-direction: column-reverse;
    }

    .btn-clear,
    .btn-checkout {
        width: 100%;
    }

    .cart-summary-row {
        font-size: 15px;
    }

    .cart-summary-row.total {
        font-size: 19px;
    }

    .store-page .store-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-search-panel {
        top: 64px;
        align-items: stretch;
        gap: 8px;
        margin: 16px 0;
        padding: 4px 0 5px;
    }

    .store-section.has-banner .store-search-panel {
        margin-top: -20px;
    }

    .store-search-form {
        gap: 8px;
    }

    .store-search-field {
        height: 46px;
        padding: 0 14px;
        border-color: #111827;
    }

    .store-search-button,
    .store-search-clear {
        min-height: 46px;
        padding: 0 12px;
        font-size: 14px;
    }

    .store-category-filter {
        flex-wrap: nowrap;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        gap: 8px;
        padding: 2px 10px 8px;
        margin-bottom: 12px;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
    }

    .store-category-chip {
        flex: 0 0 auto;
        padding: 9px 16px;
        max-width: none;
        white-space: nowrap;
        line-height: 1.2;
    }

    .product-modal-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-modal .modal-body {
        padding: 14px;
    }

    .product-modal .modal-title {
        font-size: 18px;
    }

    .product-modal-image-frame {
        aspect-ratio: 1 / 1;
    }

    .product-modal-zoom-actions {
        top: 3px;
        right: 35px;
        padding: 5px;
    }

    .product-modal-zoom-button {
        width: 30px;
        height: 30px;
    }

    .product-modal-zoom-value {
        min-width: 40px;
    }

    .product-modal-nav-button {
        width: 34px;
        height: 34px;
    }

    .product-modal-photo-bar,
    .product-modal-action-grid {
        grid-template-columns: 1fr;
    }

    .product-modal-photo-bar,
    .product-modal-price-panel,
    .product-modal-cart-panel {
        padding: 14px;
    }

    body {
        /* padding-bottom: 80px; */
        font-family: "Outfit", sans-serif;
    }

    .header-inner {
        height: 64px;
        padding: 0 16px;
        gap: 5px;
        position: relative;
    }

    .logo-image {
        height: 34px;
        max-width: 110px;

        /* filter: drop-shadow(0 0 3px rgb(255, 255, 255)); */
    }

    .header-store-name {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        font-size: 13px;
        line-height: 1.2;
        text-align: left;
    }

    .header-actions {
        gap: 8px;
        margin-left: auto;
    }

    .container-custom {
        padding: 1px 10px 10px 10px;
    }

    .custom-container.store-page {
        padding: 0px 10px;
    }

    .merchant-section {
        margin-bottom: 30px;
        /* margin-top: 10px; */
    }

    .merchant-title {
        font-size: 20px;
    }

    .view-all {
        font-size: 14px;
    }

    /* .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 65px;
        background: var(--white);
        border-top: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 1000;
    } */

    /* .mobile-nav a {
        color: var(--secondary);
        font-size: 22px;
    } */

    /* .mobile-nav a .bi {
        background: transparent;
        border: none;
        font-size: 22px;
    } */

    /* .mobile-nav a.active {
        color: var(--primary);
    } */

    .header-actions.logged-in .cart-badge {
        margin-right: 10px;
        transform: scale(1.08);
        transition: transform .12s ease;
    }

    .search-form {
        width: 35px;
        height: 35px;
        flex: 0 0 35px;
        transition: width .2s ease, background .2s ease, transform .2s ease;
        margin-right: 3px;
    }

    .search-form.is-open {
        width: auto;
        flex-basis: auto;
        background: rgba(0, 0, 0, 0.98);
    }

    .header-inner.search-open .logo-link,
    .header-inner.search-open .header-actions > *:not(.search-form) {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .header-inner.search-open .header-actions {
        width: 100%;
        justify-content: flex-end;
        background: transparent;
    }

    .header-inner.search-open .search-form {
        position: absolute;
        inset: 0;
        z-index: 1000;
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        background: rgb(255, 255, 255);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
        padding: 0 10px;
        color: #000000;
    }

    .search-form input {
        width: 0;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        transition: width .2s ease, opacity .2s ease, padding .2s ease;
    }

    .search-form.is-open input {
        width: 100%;
        padding: 0 0 0 14px;
        opacity: 1;
        pointer-events: auto;
        font-size: 13px;
    }

    .search-form button {
        flex: 0 0 33px;
        width: 36px;
    }

    .search-form.is-open .search-close-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .store-header {
        padding: 16px 0 4px;
    }

    .store-title {
        font-size: 22px;
    }

    .merchant-swiper .swiper-slide {
        width: 165px;
    }

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

    .products-grid,
    .search-store-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    .product-card {
        min-width: auto;
        border-radius: 10px;
    }

    .product-content {
        padding: 10px;
        background: aliceblue;
    }

    .product-image-wrapper {
        aspect-ratio: 1 / 1;
    }

    .product-name {
        font-size: 13px;
        min-height: 25px;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 14px;
    }
    .product-price-old {
        font-size: 14px;
    }
    .store-name {
        font-size: 12px;
        color: var(--secondary);
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-filter{
        padding: 0 7px 0px 0px;
        gap:10px;
    }

    .business-type{
        width:100%;
    }

    .type-divider{
        display:none;
    }

    .type-btn{
        flex:1;
        width:50%;
        font-size:13px;
        padding:12px;
    }

    .product-search-form{
        display:grid;
        grid-template-columns:minmax(0, 1fr) 44px 44px 44px;
        /* gap:8px; */
        align-items:center;
    }

    #productSearch{
        grid-column:1 / span 1;
        width:100%;
        height:45px;
        flex:none;
        border-radius:50px 0 0 50px;
        border:2px solid #222;
    }

    #countryBtn,
    .search-btn,
    .clear-btn{
        height:45px;
        min-height:45px;
        padding:0;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:0;
    }

    #countryBtn{
        width:45px;
        min-width:45px;
        border:2px solid #222;
        background:#fff;
        border-left-width: 0px;
    }

    .search-btn{
        width:45px;
        min-width:45px;
        background:#000;
        color:#fff;
    }

    .clear-btn{
        width:44px;
        min-width:44px;
    }

    .btn-label{
        display:none;
    }

    .country-dropdown{
        width:min(92vw, 320px);
        max-height:min(70vh, 320px);
        top:calc(100% + 8px);
        left:50%;
        right:auto;
        transform:translateX(-50%);
    }

    .country-search input{
        height:42px;
    }

    .country-item{
        padding:10px 15px;
    }

    .country-item svg{
        width:20px;
        height:14px;
    }

    .home-hero .swiper-slide img {
        margin-top: 64px;
    }

}

@media (max-width: 640px) {
    .product-modal-price-quantity-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .product-modal .modal-dialog {
        max-width: 95%;
        margin: 0 8px;
    }

    .product-modal .modal-body {
        padding: 12px;
    }

    .product-modal-image-frame {
        aspect-ratio: 4 / 3;
        max-height: 260px;
    }

    .product-modal-thumbnails {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .product-modal-description-section {
        margin-bottom: 10px;
    }

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

    .product-modal-controls-row .product-modal-price-section {
        flex: 1 1 60%;
        min-width: 120px;
    }

    .product-modal-controls-row .product-modal-quantity-section {
        flex: 0 0 110px;
    }

    .product-modal-controls-row .product-modal-total-section {
        flex: 0 0 110px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .product-modal-actions-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .product-modal-actions-row form,
    .product-modal-actions-row a {
        flex: 1 1 48%;
        margin: 0;
    }

    /* Very small screens - stack buttons */
    @media (max-width: 420px) {
        .product-modal-actions-row form,
        .product-modal-actions-row a {
            flex: 1 1 100%;
        }
    }
}

@media (max-width: 480px) {
    .merchant-profile-card {
        width: calc(100% - 60px);
        bottom: -48px;
        min-height: 70px;
        padding: 6px 10px;
        gap: 8px;
        border-radius: 12px;
    }

    .merchant-profile-avatar img,
    .merchant-avatar-placeholder {
        width: 50px;
        height: 50px;
    }

    .merchant-profile-name {
        font-size: 12px;
    }

    .merchant-profile-subtitle {
        font-size: 9px;
    }

    .merchant-profile-rating {
        font-size: 8px;
    }

    .merchant-profile-status {
        width: 75px;
        height: 75px;
        padding-left: 8px;
        font-size: 8px;
    }

    .merchant-profile-actions {
        gap: 4px;
    }

    .merchant-action-btn {
        padding: 5px 10px;
        font-size: 10px;
        max-width: 100px;
    }

    .merchant-action-btn i {
        font-size: 10px;
    }

    .cart-table {
        min-width: 680px;
    }

    .cart-item-thumb {
        width: 50px;
        height: 50px;
    }

    .cart-item-title {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 14px;
    }

    .line-total {
        font-size: 14px;
    }

    .btn-qty {
        width: 32px;
        height: 32px;
    }

    .qty-input {
        width: 36px;
        height: 36px;
    }

    .cart-page {
        padding-bottom: 240px;
    }

    .cart-bottom-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        position: static;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .btn-checkout {
        width: 100%;
    }

    .product-modal .modal-dialog {
        max-width: 96vw;
        margin: 0 8px;
    }

    .product-modal-price-quantity-row.compact {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-modal-price-panel.compact {
        padding: 8px 10px;
    }

    .product-modal-chat-button {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .product-modal-quantity-controls {
        justify-content: center;
        gap: 6px;
    }

    .product-modal-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .product-modal-cart-button {
        width: 100%;
    }

    .seller-icon{
        height:35px;
        width:52px;
    }

    .type-btn{
        font-size:12px;
        padding:10px;
    }

    .product-search-form{
        grid-template-columns:minmax(0, 1fr) 40px 40px 40px;
        /* gap:7px; */
    }

    #productSearch{
        height:43px;
        font-size:15px;
    }

    #countryBtn,
    .search-btn,
    .clear-btn{
        height:43px;
        min-height:43px;
        width:43px;
        min-width:43px;
    }

    #countryBtn{
        border-left-width: 0px;
    }

    .country-dropdown{
        top:calc(100% + 8px);
    }

    .country-item{
        gap:8px;
        padding:10px;
    }

    .country-item svg{
        width:18px;
        height:13px;
    }

    .country-code{
        font-size:12px;
    }

    .products-grid,
    .search-store-products-grid {
       grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}

@media (max-width: 433px) {
    .search-form {
        margin: 0px;
    }
    
    .header-inner {
        height: 64px;
        padding: 0 5px;
        gap: 0px;
        position: relative;
    }
}

@media (max-width: 420px) {
    .product-modal-actions-row form,
    .product-modal-actions-row a {
        flex: 1 1 100%;
    }
    .product-modal-actions-row .product-modal-cart-button,
    .product-modal-actions-row .product-modal-chat-button {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .header-inner {
        height: 64px;
        padding: 0 5px;
        gap: 3px;
        position: relative;
    }
    .header-actions{
        gap: 3px;
        padding-right: 7px;
        padding-left: 7px;
    }

    .header-right {
        gap: 3px;
    }

    .app-download-links{
        gap: 3px;
        margin-right: 0px;
    }

    .seller-icon{
        width:36px;
        padding-right: 0px;
        padding-left: 0px;
    }

    .search-form {
        margin: 0px;
    }
    .logo-image {
        height: 25px;
        max-width: 100px;
    }
    
}
