/* Setaregan storefront refresh — markazi-inspired */
:root {
    --sg-cyan: #00bcd4;
    --sg-cyan-dark: #0097a7;
    --sg-purple: #6c5ce7;
    --sg-orange: #f39c12;
    --sg-red: #e74c3c;
    --sg-navy: #2d3436;
    --sg-muted: #636e72;
    --sg-bg: #f7f8fa;
    --sg-card: #ffffff;
    --sg-radius: 16px;
    --sg-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.page-home,
body.page-index {
    background: var(--sg-bg) !important;
}

/* ---------- Preloader ---------- */
.upicore-app-loading {
    background: linear-gradient(160deg, #f0fbff 0%, #ffffff 45%, #f7f5ff 100%) !important;
}

.upicore-app-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.upicore-app-loading-logo .site-logo__img,
.upicore-app-loading-logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 188, 212, 0.25));
}

.upicore-app-loading-text {
    font-family: "IRANSansWeb(FaNum)", "IRANSans", Tahoma, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px;
    color: var(--sg-navy) !important;
    background: linear-gradient(90deg, var(--sg-cyan), var(--sg-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upicore-app-loading .lds-ripple div {
    border-color: var(--sg-cyan) !important;
}

/* ---------- Top alert ---------- */
.social-media-top-bar {
    z-index: 30;
    background: linear-gradient(90deg, #b91c1c 0%, #ea580c 50%, #ca8a04 100%);
    color: #fffbeb;
    text-align: center;
    padding: 8px 12px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(185, 28, 28, 0.35);
    border-bottom: 2px solid #facc15;
}

.social-media-top-bar .shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: sg-shimmer 3s infinite;
}

@keyframes sg-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.social-media-top-bar span {
    position: relative;
    z-index: 1;
    display: inline-block;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0;
    white-space: normal;
    padding: 0 4px;
}

.social-media-top-bar i {
    vertical-align: middle;
    margin-left: 6px;
    font-size: 13px;
}

@media (max-width: 767px) {
    .social-media-top-bar {
        padding: 7px 10px;
    }

    .social-media-top-bar span {
        font-size: 11px !important;
        line-height: 1.65 !important;
        font-weight: 600;
    }

    .social-media-top-bar i {
        font-size: 11px;
        margin-left: 4px;
    }
}

/* ---------- Header like markazi (compact) ---------- */
#vp-header {
    background: #fff;
}

#vp-header .vp-middle-header {
    background: #fff !important;
    padding: 10px 0 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    overflow: visible !important;
    position: relative;
    z-index: 20;
}

#vp-header .vp-middle-header > .size {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box;
    float: none !important;
}

#vp-header .vp-middle-header .vp-header-right,
#vp-header .vp-middle-header .vp-header-left {
    float: none !important;
    width: auto !important;
    display: contents !important;
    position: static !important;
}

.sg-header-row {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    float: none !important;
}

.sg-header-row .vp-logo {
    flex: 0 0 auto;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    display: block !important;
}

.sg-header-row .vp-logo a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.sg-header-row .vp-logo img {
    max-height: 42px !important;
    width: auto !important;
    max-width: 140px !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.sg-header-search {
    flex: 1 1 auto;
    min-width: 0;
    float: none !important;
    width: auto !important;
    position: relative;
}

.sg-header-search .vp-form {
    width: 100%;
    position: relative;
    margin: 0 !important;
}

.sg-header-search .vp-form-place-holder {
    display: none !important;
}

.sg-header-search input[type="text"] {
    width: 100% !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    padding: 0 44px 0 14px !important;
    font-size: 13px !important;
    box-shadow: none !important;
    color: var(--sg-navy) !important;
}

.sg-header-search input[type="text"]:focus {
    border-color: rgba(0, 188, 212, 0.5) !important;
    background: #fff !important;
    outline: none;
}

.sg-header-search .vp-btn {
    position: absolute !important;
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    color: #64748b !important;
    box-shadow: none !important;
    border: 0 !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sg-header-search .vp-btn:hover {
    color: var(--sg-cyan) !important;
}

.sg-header-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    float: none !important;
}

.sg-login-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: #fff !important;
    color: var(--sg-navy) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-weight: 700;
    font-size: 12px !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
    height: 40px;
    box-sizing: border-box;
    margin: 0 !important;
}

.sg-login-btn:hover {
    border-color: var(--sg-cyan) !important;
    color: var(--sg-cyan-dark) !important;
    background: #fff !important;
}

.sg-login-btn i {
    font-size: 14px;
}

.sg-cart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: var(--sg-navy) !important;
    position: relative;
    text-decoration: none !important;
    margin: 0 !important;
    float: none !important;
}

.sg-cart-btn:hover {
    border-color: var(--sg-cyan) !important;
    color: var(--sg-cyan-dark) !important;
}

.sg-cart-btn i {
    font-size: 15px;
}

.sg-cart-btn .vp-number {
    position: absolute !important;
    top: -5px !important;
    left: -5px !important;
    right: auto !important;
    background: var(--sg-red) !important;
    color: #fff !important;
    border-radius: 999px !important;
    min-width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 4px !important;
    line-height: 1 !important;
}

.sg-support-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.25;
    margin: 0 2px 0 0;
    padding-right: 8px;
    border-right: 1px solid #eef0f3;
}

.sg-support-block a {
    color: var(--sg-navy) !important;
    font-weight: 800;
    font-size: 13px !important;
    text-decoration: none !important;
    direction: ltr;
}

.sg-support-block span {
    color: var(--sg-muted);
    font-size: 10px !important;
}

.sg-nav-extras {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-right: auto;
}

.sg-nav-extras a {
    color: var(--sg-navy) !important;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none !important;
}

.sg-nav-extras a:hover {
    background: rgba(0, 188, 212, 0.08);
    color: var(--sg-cyan-dark) !important;
}

nav.c-navi {
    border-top: 1px solid #eef0f3;
    background: #fff !important;
}

/* Login / cart dropdowns under new header */
.sg-header-actions .vp-login,
.sg-header-actions .vp-mini-cart {
    position: relative !important;
    float: none !important;
    margin: 0 !important;
    width: auto !important;
}

.sg-header-actions .vp-login .vp-outer {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    z-index: 120 !important;
    min-width: 240px;
    max-width: 280px;
    display: none;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16) !important;
    overflow: hidden;
}

.sg-header-actions .vp-login:hover .vp-outer,
.sg-header-actions .vp-login .vp-outer:hover {
    display: block !important;
}

.sg-header-actions .vp-mini-cart .vp-outer {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    z-index: 120 !important;
    width: 280px !important;
    max-width: min(280px, calc(100vw - 24px));
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16) !important;
    padding: 8px !important;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    border-top: 2px solid var(--sg-cyan);
}

.sg-header-actions .vp-mini-cart:hover .vp-outer,
.sg-header-actions .vp-mini-cart .vp-outer:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

/* Empty cart compact inside header dropdown */
.sg-header-actions .vp-mini-cart .vp-outer .km-cart-empty-theme,
#vp-header .vp-mini-cart .vp-outer .km-cart-empty-theme {
    min-height: auto !important;
    height: auto !important;
    padding: 18px 12px !important;
    margin: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

.sg-header-actions .vp-mini-cart .vp-outer .km-cart-empty-theme > .km-icon,
#vp-header .vp-mini-cart .vp-outer .km-cart-empty-theme > .km-icon {
    width: 56px !important;
    height: 56px !important;
    font-size: 22px !important;
    margin: 0 auto 10px !important;
    border-radius: 50% !important;
}

.sg-header-actions .vp-mini-cart .vp-outer .km-cart-empty-theme > .km-icon i,
#vp-header .vp-mini-cart .vp-outer .km-cart-empty-theme > .km-icon i {
    line-height: 56px !important;
    font-size: 22px !important;
}

.sg-header-actions .vp-mini-cart .vp-outer .km-cart-empty-theme > .km-title,
#vp-header .vp-mini-cart .vp-outer .km-cart-empty-theme > .km-title {
    font-size: 13px !important;
    line-height: 1.6 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    font-weight: 700;
}

.sg-header-actions .vp-mini-cart .vp-outer .km-cart-empty-theme > .km-description,
#vp-header .vp-mini-cart .vp-outer .km-cart-empty-theme > .km-description {
    font-size: 11px !important;
    margin: 6px 0 0 !important;
    line-height: 1.5 !important;
}

/* ---------- Hero slider ---------- */
.body-content > .size:first-child,
.sg-home-wrap > .size:first-child {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 12px 16px 0 !important;
}

.vp-slider-full {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--sg-shadow);
}

.vp-slider-full .vp-slide img,
.vp-slider-full .vp-responsive {
    width: 100%;
    height: clamp(180px, 32vw, 420px);
    object-fit: cover;
    border-radius: 18px;
}

.vp-slider-full .owl-dots {
    margin-top: 8px !important;
}

.vp-slider-full .owl-dot span {
    width: 18px !important;
    height: 4px !important;
    border-radius: 4px !important;
    background: #cfd8dc !important;
}

.vp-slider-full .owl-dot.active span {
    background: var(--sg-cyan) !important;
    width: 28px !important;
}

/* ---------- Service banners (markazi-style cards) ---------- */
.sg-service-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin: 20px auto 8px;
    padding: 0 16px;
}

.sg-service-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    min-height: 118px;
    padding: 22px 24px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff !important;
    text-decoration: none !important;
    position: relative;
}

.sg-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    color: #fff !important;
}

.sg-service-card--purple {
    background: linear-gradient(100deg, #9b8cff 0%, #7c5cff 45%, #6c4dff 100%);
}

.sg-service-card--cyan {
    background: linear-gradient(100deg, #5ad7f5 0%, #2bc4ef 45%, #00b4e4 100%);
}

.sg-service-card--orange {
    background: linear-gradient(100deg, #ffb347 0%, #f39c12 45%, #e67e22 100%);
}

.sg-service-card__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.sg-service-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
}

.sg-service-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sg-service-card__meta i {
    font-size: 14px;
}

/* ---------- Product cards boxed ---------- */
.vp-product-item-theme,
.sg-product-card {
    background: var(--sg-card) !important;
    border: 1px solid #eef0f3 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden;
    padding: 12px !important;
    margin: 6px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vp-product-item-theme:hover,
.sg-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1) !important;
}

.vp-product-item-theme .vp-product-img,
.vp-product-item-theme .vp-product-img img {
    border-radius: 12px !important;
}

.vp-product-item-theme .vp-title a {
    color: var(--sg-navy) !important;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
}

.vp-product-item-theme .vp-price .vp-value,
.vp-product-item-theme .vp-price {
    color: var(--sg-red) !important;
    font-weight: 800;
}

.vp-product-slider,
.vp-selected-categories,
.vp-selected-brands,
.modern-so-section,
.sg-brands-section {
    max-width: 1280px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.vp-product-slider .vp-header,
.vp-header-theme {
    margin-bottom: 12px;
}

.vp-product-slider .vp-title,
.vp-header-theme .vp-title {
    font-weight: 800 !important;
    color: var(--sg-navy) !important;
}

/* Special offers band */
.modern-so-section {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 55%, #ff7675 100%) !important;
    border-radius: 20px;
    margin: 24px auto !important;
    padding: 28px 16px !important;
}

.modern-so-section .so-header h2,
.modern-so-section .so-view-all {
    color: #fff !important;
}

.modern-so-section .so-header h2::before {
    background: #fff !important;
}

.modern-so-section .so-card {
    border-radius: 16px !important;
}

/* Brands */
.sg-brands-section,
.vp-selected-brands {
    background: #fff;
    border-radius: 18px;
    padding: 20px 16px !important;
    margin: 24px auto !important;
    box-shadow: var(--sg-shadow);
}

.sg-brands-section .vp-header-theme,
.vp-selected-brands .vp-header-theme {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sg-brand-label {
    background: var(--sg-cyan);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    writing-mode: horizontal-tb;
}

.vp-selected-brands .vp-content {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.vp-selected-brands .vp-item {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 12px;
    margin: 0;
    height: 90px;
    min-width: 120px;
    flex: 0 0 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vp-selected-brands .vp-item img {
    max-height: 56px;
    max-width: 100%;
    object-fit: contain;
}

.vp-selected-categories .item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef0f3;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.vp-selected-categories .item img {
    max-height: 72px;
    object-fit: contain;
}

/* ---------- Home categories (markazi-style) ---------- */
.sg-home-categories {
    max-width: 1280px;
    margin: 18px auto 8px;
    padding: 0 16px;
}

.sg-home-categories__head {
    margin-bottom: 14px;
}

.sg-home-categories__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--sg-navy);
}

.sg-home-cat-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.sg-home-cat-item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef0f3;
    padding: 16px 10px 14px;
    text-align: center;
    text-decoration: none !important;
    color: var(--sg-navy) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.sg-home-cat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
}

.sg-home-cat-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
    display: block;
}

.sg-home-cat-item span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

/* ---------- Footer clean ---------- */
#vp-footer {
    background: #1f2937 !important;
    color: #e5e7eb !important;
    padding: 40px 0 24px !important;
    margin-top: 40px;
    position: relative;
}

#vp-footer:before {
    display: none !important;
    content: none !important;
}

#vp-footer .vp-footer-right,
#vp-footer .vp-footer-center,
#vp-footer .vp-footer-center-2,
#vp-footer .vp-footer-left {
    float: none !important;
    width: auto !important;
}

.sg-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.sg-footer-grid .vp-namads img,
.sg-footer-grid .vp-namads a img {
    max-height: 80px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
}

.sg-footer-grid .vp-title,
.sg-footer-grid .ara-primaryClr2 {
    color: #fff !important;
    font-weight: 800;
    margin-bottom: 12px;
}

.sg-footer-grid a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    line-height: 2;
    font-size: 13px;
}

.sg-footer-grid a:hover {
    color: var(--sg-cyan) !important;
}

.sg-footer-grid .vp-description,
.sg-footer-grid .vp-value,
.sg-footer-grid p {
    color: #cbd5e1 !important;
    font-size: 13px;
    line-height: 1.8;
}

.sg-footer-grid .vp-logo img {
    max-height: 54px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

.sg-footer-bottom {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

#vp-footer-copyright {
    display: none !important;
}

.sg-back-top {
    position: fixed;
    left: 18px;
    bottom: 88px;
    z-index: 40;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sg-cyan);
    color: #fff !important;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sg-shadow);
    text-decoration: none !important;
}

.sg-back-top.is-visible {
    display: flex;
}

/* ---------- Assemble page ---------- */
.sg-assemble-page {
    direction: rtl;
    font-family: "IRANSansWeb(FaNum)", Tahoma, sans-serif;
    background: var(--sg-bg);
    color: var(--sg-navy);
    margin: 0;
}

.sg-assemble-hero {
    background: linear-gradient(135deg, #0f172a, #164e63 55%, #0891b2);
    color: #fff;
    padding: 48px 16px;
    text-align: center;
}

.sg-assemble-hero h1 {
    font-size: clamp(22px, 4vw, 36px);
    margin: 0 0 10px;
}

.sg-assemble-hero p {
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

.sg-assemble-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.sg-assemble-actions a {
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
}

.sg-assemble-actions a.ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.sg-assemble-grid {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 16px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.sg-assemble-item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef0f3;
    padding: 16px 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.sg-assemble-item img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 10px;
}

.sg-assemble-item span {
    display: block;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
    .sg-home-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile: horizontal scroll categories (one row) */
@media (max-width: 991px) {
    .sg-home-categories {
        padding-left: 0;
        padding-right: 0;
    }

    .sg-home-categories__head {
        padding: 0 16px;
    }

    .sg-home-cat-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 2px 16px 12px;
        margin: 0;
        grid-template-columns: none !important;
    }

    .sg-home-cat-grid::-webkit-scrollbar {
        height: 0;
        display: none;
    }

    .sg-home-cat-item {
        flex: 0 0 108px !important;
        width: 108px !important;
        min-height: 108px !important;
        padding: 12px 8px !important;
        border-radius: 14px !important;
        scroll-snap-align: start;
    }

    .sg-home-cat-item img {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 8px !important;
    }

    .sg-home-cat-item span {
        font-size: 12px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    #vp-header .vp-middle-header {
        padding: 8px 0 !important;
    }

    .sg-header-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .sg-header-row .vp-logo {
        display: block !important;
    }

    .sg-header-row .vp-logo img {
        max-height: 32px !important;
        max-width: 108px !important;
    }

    .sg-header-search {
        order: 3;
        flex: 1 1 100%;
    }

    .sg-header-search input[type="text"] {
        height: 40px !important;
        font-size: 12px !important;
        border-radius: 9px !important;
    }

    .sg-header-actions {
        margin-right: auto;
        gap: 6px;
    }

    .sg-login-btn,
    .sg-cart-btn {
        height: 36px !important;
    }

    .sg-cart-btn {
        width: 36px !important;
    }

    .sg-support-block {
        display: none !important;
    }

    .sg-header-actions .vp-mini-cart .vp-outer {
        width: 260px !important;
    }

    .sg-service-banners {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sg-service-card {
        min-height: 100px;
        padding: 18px 18px;
        border-radius: 16px;
    }

    .sg-service-card__title {
        font-size: 18px;
    }

    .sg-service-card__meta {
        font-size: 12px;
    }

    .sg-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    nav.c-navi {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav.c-navi .c-navi-new-list__category-link,
    nav.c-navi .c-navi-new-list__category {
        font-size: 13px !important;
        white-space: nowrap;
    }

    .vp-slider-full .vp-slide img,
    .vp-slider-full .vp-responsive {
        height: clamp(160px, 42vw, 280px);
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
    .sg-login-btn span {
        display: none;
    }

    .sg-login-btn {
        width: 36px !important;
        height: 36px !important;
        justify-content: center;
        padding: 0 !important;
        border-radius: 9px !important;
        font-size: 13px;
    }

    .sg-cart-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 9px !important;
    }

    .sg-header-row .vp-logo img {
        max-height: 30px !important;
        max-width: 96px !important;
    }

    .sg-home-categories__title {
        font-size: 15px;
    }

    .sg-home-cat-item {
        flex-basis: 96px !important;
        width: 96px !important;
        min-height: 100px !important;
    }

    .sg-home-cat-item img {
        width: 42px !important;
        height: 42px !important;
    }

    .sg-home-cat-item span {
        font-size: 11px !important;
    }

    .sg-assemble-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .sg-assemble-item img {
        width: 48px;
        height: 48px;
    }

    .sg-assemble-item span {
        font-size: 11px;
    }

    .sg-footer-grid {
        grid-template-columns: 1fr;
    }

    .sg-nav-extras {
        display: none;
    }

    .modern-so-section {
        border-radius: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body {
        overflow-x: hidden;
    }
}
