/* Shared shell tokens and grid; non-home page content keeps its legacy styling. */
.as-storefront {
    --as-ink: #18202b;
    --as-muted: #656b74;
    --as-surface: #f7f7f5;
    --as-border: #e5e7eb;
    --as-radius: 14px;
    --as-search-input-border: 0;
    --as-search-category-width: 190px;
    --as-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Potro Sans Bangla", sans-serif;
}

.as-storefront :is(#navbar_top, .as-utility) {
    font-family: var(--as-font) !important;
}

.as-storefront :is(#navbar_top, .as-utility) .container {
    width: calc(100% - 112px);
    max-width: 1420px;
    padding-inline: 0;
}

.as-storefront :is(#navbar_top, .as-utility) .row {
    --bs-gutter-x: 24px;
}

.as-storefront :is(#navbar_top, .as-utility) .row>* {
    min-width: 0;
    padding-inline: calc(var(--bs-gutter-x) / 2);
}

.as-storefront #navbar_top :is(a, button, input, select, summary):focus-visible {
    outline: 2px solid var(--as-ink) !important;
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .as-storefront #navbar_top .container {
        width: 100%;
        padding-inline: 16px;
    }
}

/* Homepage presentation only; loaded after all legacy frontend styles.
   !important overrides existing inline styles, Bootstrap utilities and legacy
   !important declarations. Other storefront pages keep their existing styles. */
.as-home {
    --as-ink: #18202b;
    --as-muted: #656b74;
    --as-surface: #f7f7f5;
    --as-border: #e5e7eb;
    --as-radius: 14px;
    --as-search-input-border: 0;
    --as-search-category-width: 190px;
    --as-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Potro Sans Bangla", sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--as-ink);
    font: 14px/1.6 var(--as-font);
    overflow-x: clip;
}

.as-home #navbar_top,
.as-home #content,
.as-storefront .mobile-menu,
.as-home footer.mobile-footer {
    font-family: var(--as-font) !important;
}

.as-home :is(h2, h3, h4, button, input, select) {
    font-family: var(--as-font);
}

.as-home :is(a, button, input, select, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--as-ink) !important;
    outline-offset: 3px;
}

.as-home .container {
    /* 1240px of usable content; the gutter also protects the contact control. */
    width: calc(100% - 112px);
    max-width: 1240px;
    padding-inline: 0;
}

.as-home .row {
    --bs-gutter-x: 24px;
}

.as-home .row>* {
    min-width: 0;
    padding-inline: calc(var(--bs-gutter-x) / 2);
}

.as-home #content {
    padding-top: 0;
}

/* Compact utility strip and a brand / search / account / cart header. */
.as-storefront #navbar_top {
    position: relative;
    z-index: 100;
    background: #fff;
    border: 0;
    box-shadow: none;
}

.as-storefront .as-utility>.py-1 {
    display: none;
}

.as-storefront .main-header .menu-area,
.as-storefront .welcome-header {
    background: #f1f1ef !important;
    color: var(--as-ink);
}

.as-storefront .welcome-header {
    padding: 0 !important;
    font-size: 13px;
    line-height: 16px;
}

.as-storefront .welcome-header .container-fluid {
    padding-inline: 0;
}

.as-storefront .welcome-header .row {
    justify-content: space-between;
    align-items: center;
}

.as-storefront .welcome-header .col-md-8 {
    display: none;
}

.as-storefront .welcome-header .col-md-2 {
    width: auto;
    white-space: nowrap;
}

.as-storefront .welcome-header .col-md-2:first-child {
    order: 2;
}

.as-storefront .welcome-header .text-uppercase {
    text-transform: none !important;
    font-size: 13px;
    font-weight: 400 !important;
}

.as-storefront .welcome-header .fw-bold {
    font-weight: 500 !important;
}

.as-storefront .logo-area {
    padding-block: 7px;
}

.as-storefront .logo-header {
    display: grid;
    grid-template-columns: 222px minmax(0, 1fr) 184px !important;
    align-items: center;
    gap: 24px;
}

.as-storefront .main-logo {
    height: 58px;
    text-align: left;
}

.as-storefront .main-logo a,
.as-storefront .menu-logo a,
.as-home .footer-about>a:first-child {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--as-ink);
}

.as-storefront .main-logo img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: contain;
}

.as-storefront .as-brand-name {
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 750;
}

.as-storefront .main-search {
    min-width: 0;
    margin: 0;
}

.as-storefront .main-search form,
.as-storefront .mobile-search form {
    display: flex;
    height: 48px;
    border: 1px solid #d5d8dc;
    border-radius: 9px;
    background: #fff;
    overflow: visible;
}

.as-storefront .main-search form:focus-within,
.as-storefront .mobile-search form:focus-within {
    border-color: var(--as-ink);
    outline: 2px solid var(--as-ink);
    outline-offset: 3px;
}

/* One accessible group ring replaces competing native/Bootstrap focus seams. */
.as-storefront :is(.main-search, .mobile-search) form :is(input, select, button):focus {
    outline: none !important;
    box-shadow: none !important;
}

.as-storefront :is(.main-search, .mobile-search) form :is(input, select):focus-visible {
    background-color: var(--as-surface);
}

.as-storefront :is(.main-search, .mobile-search) form button:focus-visible {
    box-shadow: inset 0 0 0 2px #fff !important;
}

.as-storefront .main-search form input,
.as-storefront .mobile-search form input {
    min-width: 0;
    width: 100%;
    flex: 1 1 0;
    height: 100%;
    padding: 0 14px;
    border: 0 !important;
    border-radius: 9px 0 0 9px;
    background: transparent;
    color: var(--as-ink);
    font-size: 14px !important;
}

.as-storefront .main-search select {
    flex: 0 0 var(--as-search-category-width);
    align-self: stretch;
    height: 100%;
    min-width: 0;
    margin: 0;
    padding-block: 0;
    border-left: 1px solid var(--as-border);
    border-right: 0;
    background-color: transparent;
    color: var(--as-muted);
    padding-left: 14px;
    font-size: 13px;
    line-height: normal;
    border-radius: 0;
}

.as-storefront .main-search form button,
.as-storefront .mobile-search form button {
    position: static;
    display: grid;
    place-items: center;
    flex: 0 0 50px;
    width: 50px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: var(--as-ink) !important;
    color: #fff;
}

.as-storefront .main-search form button svg,
.as-storefront .mobile-search form button svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.as-storefront .search_result {
    z-index: 110;
}

.as-storefront .search_product {
    margin-top: 8px;
    max-height: min(60vh, 440px);
    overflow-y: auto;
    border: 1px solid var(--as-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgb(17 24 39 / 10%);
}

.as-storefront .search_product li {
    padding: 8px 12px;
}

.as-storefront .search_product img {
    border-radius: 6px;
    object-fit: contain;
}

.as-storefront .header-list-items>.call {
    flex-wrap: nowrap;
    gap: 20px !important;
    margin: 0;
}

.as-storefront .header-list-items>.call>.for_order {
    order: -1;
}

.as-storefront .header-list-items>.call>.cart-dialog:empty {
    display: none;
}

.as-storefront .header-list-items>.call>li>a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--as-ink);
}

.as-storefront .header-list-items .margin-shopping {
    margin: 0;
}

.as-storefront .header-list-items .as-action-label {
    position: static;
    display: inline;
    width: auto;
    height: auto;
    background: none;
    color: var(--as-ink);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

/* A presentation label survives replacement by the existing cart-count partial. */
.as-storefront .header-list-items .cart-dialog>a::after {
    content: "Cart";
    font-size: 13px;
    font-weight: 500;
}

.as-storefront .header-list-items .margin-shopping span {
    width: auto;
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
    line-height: 18px;
    top: -10px;
    right: -9px;
    background: var(--as-ink);
    color: #fff;
    font-size: 11px;
}

.as-storefront .cshort-summary {
    width: 360px;
    max-width: calc(100vw - 40px);
    padding: 18px;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    background: #fff;
    box-shadow: 0 12px 30px rgb(17 24 39 / 10%);
}

/* The existing category tree is now a dropdown; sibling hooks stay intact. */
.as-storefront .as-category-nav {
    position: relative;
    z-index: 50;
    margin-bottom: 12px;
}

.as-storefront .as-nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.as-storefront .as-catalog {
    flex: 0 0 180px;
    position: relative;
}

.as-storefront .as-catalog summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    list-style: none;
    border-radius: 8px;
    background: var(--as-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.as-storefront .as-catalog summary::-webkit-details-marker {
    display: none;
}

.as-storefront .as-catalog summary .fa-angle-down {
    margin-left: auto;
    font-size: 11px;
}

.as-storefront .as-catalog[open] summary .fa-angle-down {
    transform: rotate(180deg);
}

.as-storefront .as-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.as-storefront .as-nav-links::-webkit-scrollbar {
    display: none;
}

.as-storefront .as-nav-links a {
    flex-shrink: 0;
    padding: 11px 0;
    color: var(--as-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
}

.as-storefront .as-nav-links a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.as-storefront .as-category-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 300px;
    max-height: min(65vh, 520px);
    overflow-y: auto;
    background: #fff;
    border-color: var(--as-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 35px rgb(17 24 39 / 12%);
    scrollbar-width: thin;
}

.as-storefront .as-category-nav .category-header {
    padding: 12px 16px;
    background: var(--as-surface);
    font-size: 13px;
    font-weight: 650;
}

.as-storefront .as-category-nav .category-list .filter_cat_bar {
    display: block;
    padding-top: 0 !important;
    border-bottom: 1px solid #f1f2f3;
}

.as-storefront .as-category-nav .cat-toggle {
    min-height: 46px;
    padding-block: 2px !important;
    cursor: pointer;
}

.as-storefront .as-category-nav .cat-toggle:hover {
    background: var(--as-surface);
}

.as-storefront .as-category-nav .cat_head {
    min-width: 0;
}

.as-storefront .as-category-nav .laptop-category {
    font-size: 13px !important;
    line-height: 1.5;
    text-transform: none !important;
    overflow-wrap: anywhere;
}

.as-storefront .as-category-nav .side_cat_img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
    margin-right: 9px;
}

.as-storefront .as-category-nav .filter-card-down {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    min-height: 44px;
    padding: 0 !important;
}

.as-storefront .as-category-nav .filter-card-down .cat_down {
    position: static;
    font-size: 13px;
}

.as-storefront .as-category-nav .filter_Cat_menu {
    padding-left: 24px;
}

.as-storefront .as-category-nav .filter_Cat_menu li {
    display: block;
}

.as-storefront .as-category-nav .filter_Cat_menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
}

/* Full-width real banner artwork, framed without cropping embedded text. */
.as-home .as-hero {
    margin-top: 0;
    --as-hero-zoom: 1.03;
}

.as-home .as-hero-main {
    position: relative;
    min-width: 0;
    padding-bottom: 24px;
}

.as-home .as-hero .swiper {
    width: 100%;
    height: clamp(260px, 23vw, 325px);
    border: 1px solid #eeefed;
    border-radius: 14px !important;
    background: #f3f2ee;
    isolation: isolate;
    overflow: hidden;
}

.as-home .as-hero .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* Match the existing 3000ms autoplay dwell; only the active image is animated. */
.as-home .as-hero .swiper-slide {
    overflow: hidden;
}

.as-home .as-hero .swiper-slide img {
    transform: scale(1);
}

.as-home .as-hero .swiper-slide-active img {
    animation: as-hero-slow-zoom 3000ms linear both;
}

@keyframes as-hero-slow-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(var(--as-hero-zoom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .as-home .as-hero .swiper-slide img {
        animation: none !important;
        transform: none;
    }
}

/* The first slide has left-aligned lettering; Swiper keeps this index across looping. */
.as-home .as-hero .swiper-slide[data-swiper-slide-index="0"] img {
    object-position: 18% center;
    transform-origin: 18% center;
}

.as-storefront .header-list-items .margin-shopping i {
    font-size: 24px;
}

.as-home .as-hero-prev,
.as-home .as-hero-next {
    position: absolute;
    z-index: 2;
    top: calc(50% - 22px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--as-ink);
    color: #fff;
    font-size: 15px;
}

.as-home .as-hero-prev {
    left: 12px;
}

.as-home .as-hero-next {
    right: 12px;
}

.as-home .as-hero-pagination {
    position: absolute;
    z-index: 2;
    bottom: 0 !important;
    left: 50% !important;
    width: auto !important;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 20px;
    background: rgb(255 255 255 / 90%);
}

.as-home .as-hero-pagination .swiper-pagination-bullet {
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    background: transparent;
    opacity: 1;
}

.as-home .as-hero-pagination .swiper-pagination-bullet::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 5px;
    background: #aeb1b5;
}

.as-home .as-hero-pagination .swiper-pagination-bullet-active::after {
    inset-inline: 4px;
    background: var(--as-ink);
}

/* Compact category tiles on the same white canvas as the product sections. */
.as-home .as-featured {
    margin-block: 8px 24px;
    background: #fff;
}

.as-home .as-featured .section-title {
    margin: 0 0 16px;
    padding: 0;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.6px;
}

.as-home .category-slider {
    margin-top: 0;
}

.as-home .category-slider .owl-stage {
    display: flex;
}

.as-home .category-slider .owl-item>a {
    display: block;
    height: 100%;
    padding: 3px;
}

.as-home .category-card {
    height: 100%;
    min-height: 142px;
    padding-block: 8px 6px;
    border: 1px solid #eeefef !important;
    border-radius: 12px;
    background: var(--as-surface);
    box-shadow: none;
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.as-home .category-card .category-img {
    width: calc(100% - 20px);
    height: 84px;
    object-fit: contain;
    margin: 0 10px 4px;
}

.as-home .category-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: none;
    width: 100%;
    height: 38px;
    min-height: 38px;
    padding-inline: 6px;
    font-family: var(--as-font);
    color: var(--as-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Uniform retail grid: five desktop columns, four tablet, two mobile. */
.as-home .homeproduct {
    margin: 0 0 28px;
    padding: 0;
}

.as-home .sec_title {
    margin: 0 0 12px;
    padding: 0;
}

.as-home .section-title-header {
    margin: 0;
    gap: 16px;
}

.as-home .sec_title h4 {
    min-width: 0;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.6px;
    overflow-wrap: anywhere;
}

.as-home .sec_title>h4 {
    padding-right: 12px;
}

.as-home a.view_more_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 9px;
    min-height: 44px;
    height: auto;
    padding: 6px 2px 6px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--as-ink);
    font-family: var(--as-font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1px;
    text-transform: none;
}

.as-home a.view_more_btn::after {
    content: "\2192";
    font-size: 18px;
}

.as-home .as-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.as-home .as-product-grid>* {
    width: auto;
    max-width: 100%;
    padding: 0;
}

.as-home .as-product-shell {
    height: 100%;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.as-home .as-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    border: 1px solid var(--as-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.as-home .as-product .product_item_inner {
    flex: 1;
    min-width: 0;
}

.as-home .as-product .pro_img {
    height: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: 9px 9px 0 0;
    background: #f8f8f7;
}

.as-home .as-product .pro_img a {
    width: 100%;
}

.as-home .as-product .pro_img img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    transform: none;
}

.as-home .as-product .pro_des {
    padding: 10px 10px 0;
}

.as-home .as-product .pro_name {
    height: auto;
    /* min-height: 44px; */
    margin: 0 0 5px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.as-home .as-product .pro_name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--as-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    text-transform: none;
}

.as-home .as-product .pro_price {
    margin-bottom: 7px;
}

.as-home .as-product .pro_price p {
    margin: 0;
    color: var(--as-ink);
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.as-home .as-product .pro_price .fw-medium {
    font-size: 19px !important;
    font-weight: 700 !important;
    margin-right: 6px !important;
}

.as-home .as-product .pro_price del {
    display: inline-block;
    margin: 0;
    color: var(--as-muted);
    font-size: 13px;
    font-weight: 400;
}

.as-home .as-product .pro_btn {
    padding: 0 10px 10px;
}

.as-home .as-product .addcartbutton {
    min-height: 40px;
    padding: 6px 5px;
    border: 1px solid var(--as-ink);
    border-radius: 8px;
    /* background: var(--as-ink) !important; */
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    box-shadow: none !important;
    transition: background-color 180ms ease;
}

/* Existing footer information, organized as a balanced neutral column grid. */
.as-home footer.mobile-footer {
    margin-top: 8px !important;
    border-top: 1px solid var(--as-border) !important;
}

.as-home .footer-top {
    padding-block: 26px 22px;
    background: #f3f3f1;
}

.as-home .footer-top .row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 28px;
    margin: 0;
}

.as-home .footer-top .row>* {
    width: auto;
    padding: 0;
    margin: 0 !important;
}

.as-home .footer-about {
    padding: 0;
    text-align: left;
}

.as-home .footer-about>a:first-child {
    margin-bottom: 8px;
}

.as-home .footer-about>a:first-child img {
    width: 140px;
    height: 56px;
    margin: 0;
    object-fit: contain;
}

.as-home .footer-about .as-brand-name {
    font-size: 21px;
    letter-spacing: -0.7px;
}

.as-home .footer-about p {
    margin: 0 0 8px;
    color: var(--as-muted);
    text-align: left;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.as-home .footer-hotlint {
    font-size: 14px;
}

.as-home .footer-menu .title {
    margin: 4px 0 10px;
    font-size: 15px;
    text-transform: none;
}

.as-home .footer-menu .title a {
    margin: 0 !important;
    font-weight: 700;
    color: var(--as-ink);
}

.as-home .footer-menu ul li a {
    margin: 4px 0 !important;
    color: var(--as-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
    overflow-wrap: anywhere;
}

.as-home .footer-menu ul li a:hover {
    color: var(--as-ink);
    text-decoration: underline;
}

.as-home .social_link {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.as-home .social_link li {
    margin: 0;
}

.as-home .social_link .mobile-social-link {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--as-border);
    border-radius: 8px;
    background: #fff;
    color: var(--as-ink);
    font-size: 18px;
}

.as-home .d_app {
    text-align: left;
}

.as-home .d_app h2 {
    margin: 12px 0 8px;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.as-home .d_app img {
    width: 138px;
    height: auto;
}

.as-home .footer-bottom {
    margin: 0;
    padding: 12px 0;
    background: #f3f3f1;
    border-top: 1px solid #dedfdf;
}

.as-home .copyright p {
    color: var(--as-muted);
    font-size: 12px;
    text-align: left;
}

/* Contact stays in the desktop gutter and in its own mobile navigation slot. */
.as-home #whatsapp-chat-icon {
    right: 12px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    animation: none;
}

.as-home #whatsapp-chat-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.as-home #whatsapp-chat-icon img:hover {
    transform: none;
}

.as-home #whatsapp-chat-box {
    right: 12px;
    bottom: 78px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 160px);
    padding: 16px;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    background: #fff;
    box-shadow: 0 8px 28px rgb(17 24 39 / 12%);
}

.as-home #whatsapp-chat-box .mb-3 {
    margin-bottom: 0 !important;
}

.as-home #close-icon {
    inset: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 3px;
    line-height: 38px;
    text-align: center;
    transform: none;
    background: var(--as-ink) !important;
}

@media (hover: hover) and (pointer: fine) {

    .as-home .as-product:hover,
    .as-home .category-card:hover {
        border-color: #c6cbd2 !important;
        box-shadow: 0 5px 16px rgb(17 24 39 / 5%);
    }

    .as-home :is(.main-search, .mobile-search) form button:hover {
        background: #343e4a !important;
    }

    /* .as-home .as-product .addcartbutton:hover {
        background: #343e4a !important;
        color: #fff !important;
    } */

    .as-home a.view_more_btn:hover {
        text-decoration: underline;
        text-underline-offset: 4px;
    }
}

/* Desktop storefront composition: one aligned grid, compact retail shelves. */
@media (min-width: 1100px) {
    .as-home .container {
        max-width: 1420px;
    }

    .as-storefront .welcome-header {
        font-size: 12px;
        line-height: 14px;
    }

    .as-storefront .welcome-header .text-uppercase {
        font-size: 12px;
    }

    .as-storefront .logo-area {
        padding-block: 6px;
        border-bottom: 1px solid #f3f4f6;
    }

    .as-storefront .logo-header {
        grid-template-columns: 240px minmax(0, 1fr) 180px !important;
        gap: 20px;
    }

    .as-storefront .main-logo {
        height: 58px;
    }

    .as-storefront .main-logo img {
        width: 160px;
        height: 60px;
    }

    .as-storefront .as-brand-name {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .as-storefront .main-search form {
        height: 46px;
    }

    .as-storefront .main-search {
        --as-search-category-width: 140px;
    }

    .as-storefront .main-search select {
        padding-left: 10px;
        font-size: 12px;
        border-left-color: #eef0f2;
    }

    .as-storefront .as-category-nav {
        margin-block: 6px 12px;
    }

    .as-storefront .as-nav-inner {
        gap: 22px;
    }

    .as-storefront .as-catalog {
        flex-basis: 178px;
    }

    .as-storefront .as-catalog summary {
        min-height: 42px;
        padding-block: 9px;
    }

    .as-storefront .as-nav-links {
        flex: 1 1 0;
        gap: 6px;
        white-space: nowrap;
        overscroll-behavior-x: contain;
    }

    .as-storefront .as-nav-links a {
        display: inline-flex;
        align-items: center;
        padding: 9px 8px;
        border-radius: 7px;
        font-size: 14px;
        font-weight: 500;
        line-height: 22px;
        text-decoration: none;
        transition: background-color 150ms ease;
    }

    .as-storefront .as-nav-links a:is(:hover, :focus-visible, :active, .active, [aria-current="page"]) {
        background: #f3f4f6;
        color: #1f2937;
        text-decoration: none;
    }

    /* Keep the keyboard ring inside the horizontal scroll viewport. */
    .as-storefront .as-nav-links a:focus-visible {
        outline-offset: -2px;
    }

    .as-home .as-hero .swiper {
        height: 400px;
        background: #f3f2ee;
        border-radius: 14px !important;
    }

    .as-home .as-hero .swiper-slide img {
        object-fit: cover;
    }

    .as-home .as-hero-main {
        padding-bottom: 12px;
    }

    .as-home .as-hero-prev,
    .as-home .as-hero-next {
        width: 38px;
        height: 38px;
        top: calc(50% - 19px);
        border: 2px solid #fff;
        font-size: 13px;
    }

    .as-home .as-featured {
        margin-block: 8px 28px;
    }

    .as-home .as-featured .section-title {
        margin-bottom: 12px;
        font-size: 21px;
        line-height: 28px;
        letter-spacing: -0.4px;
    }

    .as-home .category-card {
        min-height: 136px;
        padding-block: 6px;
        border-radius: 12px;
        background: #f7f7f5;
    }

    .as-home .category-card .category-img {
        height: 88px;
        margin-bottom: 2px;
    }

    .as-home .category-text {
        height: 32px;
        min-height: 32px;
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
    }

    .as-home .homeproduct {
        margin-bottom: 32px;
    }

    .as-home .sec_title {
        margin-bottom: 12px;
    }

    .as-home .sec_title h4 {
        font-size: 21px;
        line-height: 28px;
        letter-spacing: -0.4px;
    }

    .as-home .section-title-header,
    .as-home .sec_title {
        min-height: 32px;
    }

    .as-home a.view_more_btn {
        min-height: 32px;
        padding-block: 2px;
        font-size: 13px;
    }

    .as-home .as-product-grid {
        gap: 12px;
        align-items: stretch;
    }

    .as-home .as-product {
        border-radius: 12px;
        overflow: hidden;
    }

    .as-home .as-product .product_item_inner {
        display: grid;
        grid-template-rows: 190px 1fr;
    }

    .as-home .as-product .pro_img {
        aspect-ratio: auto;
        height: 190px !important;
        border-radius: 11px 11px 0 0;
        background: #f8f8f6;
    }

    .as-home .as-product .pro_img a {
        display: block;
        height: 100%;
    }

    .as-home .as-product .pro_img img {
        padding: 8px;
    }

    .as-home .as-product .pro_des {
        display: flex;
        flex-direction: column;
        padding: 10px 11px 0;
    }

    .as-home .as-product .pro_name {
        /* height: 42px; */
        /* min-height: 42px; */
        margin-bottom: 6px;
        line-height: 21px;
    }

    .as-home .as-product .pro_name a {
        font-size: 14px;
        line-height: 21px;
        font-weight: 400;
    }

    .as-home .as-product .pro_price {
        margin-top: auto;
        margin-bottom: 8px;
    }

    .as-home .as-product .pro_price p {
        font-size: 16px;
        line-height: 24px;
    }

    .as-home .as-product .pro_price .fw-medium {
        font-size: 18px !important;
    }

    .as-home .as-product .pro_price del {
        font-size: 12px;
    }

    .as-home .as-product .pro_btn {
        padding: 0 11px 10px;
    }

    .as-home .as-product .addcartbutton {
        min-height: 40px;
        font-size: 13px;
        border-radius: 8px;
    }

    .as-home .footer-top {
        padding-block: 20px 18px;
    }

    .as-home .footer-top .row {
        grid-template-columns: 1.45fr 1fr 1fr 1.05fr;
        gap: 38px;
    }

   
    .as-home .footer-about>a:first-child {
        gap: 6px;
        margin-bottom: 10px;
    }

    .as-home .footer-about>a:first-child img {
        width: 140px;
        height: 60px;
    }

    .as-home .footer-about .as-brand-name {
        font-size: 23px;
    }

    .as-home .footer-about p {
        max-width: 280px;
        line-height: 1.6;
    }

    .as-home .footer-menu .title {
        margin: 2px 0 8px;
        font-size: 14px;
    }

    .as-home .footer-menu ul li a {
        margin-block: 3px !important;
        font-size: 12px;
        line-height: 20px;
    }

    .as-home .footer-menu .title a {
        margin: 0 !important;
        font-size: 14px;
    }

    .as-home .d_app h2 {
        margin-top: 14px;
    }

    .as-home .footer-bottom {
        padding-block: 10px;
    }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
    .as-storefront .logo-area {
        padding-block: 4px;
    }

    .as-storefront .logo-header {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 4px 20px;
    }

    .as-storefront .main-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .as-storefront .header-list-items {
        grid-column: 2;
        grid-row: 1;
    }

    .as-storefront .main-logo {
        height: 44px;
    }

    .as-storefront .main-logo img {
        width: 48px;
        height: 44px;
    }

    .as-storefront .main-search form {
        height: 44px;
    }

    .as-storefront .as-brand-name {
        font-size: 23px;
    }

    .as-storefront .as-nav-inner {
        gap: 18px;
    }

    .as-storefront .as-catalog {
        flex-basis: 168px;
    }

    .as-storefront .as-nav-links {
        gap: 20px;
    }

    .as-home .as-hero {
        --as-hero-zoom: 1.025;
    }

    .as-home .as-hero .swiper {
        height: 240px;
    }

    .as-home .as-hero .swiper-slide img {
        object-fit: cover;
    }

    .as-home .as-hero-main {
        padding-bottom: 12px;
    }

    .as-home .as-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .as-home .category-card .category-img {
        height: 80px;
    }

    .as-home .category-card {
        min-height: 142px;
    }

    .as-home .footer-top .row {
        grid-template-columns: 1.25fr 1fr 1fr;
        gap: 24px;
    }

    .as-home .footer-top .row> :last-child {
        grid-column: 1 / -1;
        display: flex;
    }

    .as-home .footer-top .row> :last-child .footer-menu {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .as-home .footer-about .as-brand-name {
        font-size: 18px;
    }
}

/* Shared sticky behavior; product, hero and footer rules remain home-scoped.
   Utility content is outside this header so it scrolls away in normal flow. */
.as-storefront {
    overflow-x: clip;
}

.as-storefront #navbar_top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 4px rgb(17 24 39 / 8%);
}

.as-storefront #navbar_top .logo-area {
    position: relative;
    z-index: 2;
    background: #fff;
}

.as-storefront #navbar_top .as-category-nav {
    z-index: 1;
}

.as-storefront #navbar_top .search_result {
    z-index: 3;
}

.as-storefront #navbar_top .mobile-header {
    position: static;
    background: #fff;
}

.as-storefront #navbar_top .mobile-search {
    background: #fff;
}

@media (max-width: 767.98px) {
    .as-home {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .as-home .container {
        width: 100%;
        padding-inline: 16px;
    }

    .as-home .row {
        --bs-gutter-x: 16px;
    }

    .as-storefront .mobile-logo {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 4px;
        height: 54px;
        padding-inline: 16px;
    }

    .as-storefront .menu-bar .toggle {
        display: grid;
        place-items: center;
        width: 38px;
        height: 44px;
        padding: 0;
    }

    .as-storefront .menu-bar i {
        font-size: 20px;
    }

    .as-storefront .menu-logo a {
        justify-content: center;
        gap: 0;
    }

    .as-storefront .menu-logo img {
        width: 44px;
        height: 48px;
        object-fit: contain;
    }

    .as-storefront .menu-logo .as-brand-name {
        font-size: 20px;
        letter-spacing: -0.7px;
    }

    .as-storefront .menu-bag {
        margin: 0;
    }

    .as-storefront .menu-bag>a {
        display: grid;
        place-items: center;
        width: 38px;
        height: 44px;
    }

    .as-storefront .menu-bag .margin-shopping {
        margin: 0;
        width: auto;
    }

    .as-storefront .menu-bag .mobilecart-qty {
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        line-height: 18px;
        background: var(--as-ink);
        right: -8px;
        font-size: 11px;
    }

    .as-storefront .mobile-search {
        position: relative;
        padding: 0 16px 8px;
    }

    .as-storefront .mobile-search form {
        height: 44px;
    }

    .as-storefront .mobile-menu {
        width: min(320px, 88vw);
        left: -100%;
        font-size: 14px;
    }

    .as-storefront .mobile-menu.active {
        left: 0;
    }

    .as-storefront .mobile-menu-logo {
        padding: 16px;
    }

    .as-storefront .mobile-menu-close {
        width: 44px;
        height: 44px;
        justify-content: center;
    }

    .as-storefront .mobile-menu .menu-category-name {
        padding-right: 50px;
    }

    .as-storefront .as-category-nav {
        display: none;
    }

    .as-home .as-hero {
        --as-hero-zoom: 1.015;
    }

    .as-home .as-hero .swiper {
        height: 140px;
        min-height: 0;
        aspect-ratio: auto;
        border-radius: 12px !important;
    }

    .as-home .as-hero .swiper-wrapper,
    .as-home .as-hero .swiper-slide {
        height: 100%;
    }

    .as-home .as-hero .swiper-slide img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .as-home .as-hero .swiper-slide[data-swiper-slide-index="0"] img {
        object-position: 12% center;
        transform-origin: 12% center;
    }

    .as-home .as-hero-main {
        padding-bottom: 12px;
    }

    .as-home .as-hero-prev,
    .as-home .as-hero-next {
        width: 32px;
        height: 44px;
        top: calc(50% - 22px);
        border: 0;
        border-radius: 7px;
        font-size: 12px;
        background: rgb(24 32 43 / 85%);
    }

    .as-home .as-hero-prev {
        left: 5px;
    }

    .as-home .as-hero-next {
        right: 5px;
    }

    .as-home .as-featured {
        margin-block: 0 24px;
    }

    .as-home .as-featured .section-title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .as-home .category-card {
        min-height: 110px;
        padding-block: 6px;
        border-radius: 10px;
    }

    .as-home .category-card .category-img {
        width: calc(100% - 8px);
        height: 56px;
        margin: 0 4px 4px;
    }

    .as-home .category-text {
        height: 34px;
        min-height: 34px;
        font-size: 11px;
        padding-inline: 3px;
        line-height: 1.45;
    }

    .as-home .homeproduct {
        margin-bottom: 26px;
    }

    .as-home .sec_title {
        margin-bottom: 10px;
    }

    .as-home .sec_title h4 {
        font-size: 20px;
    }

    .as-home a.view_more_btn {
        padding-left: 8px;
        font-size: 12px;
        gap: 5px;
    }

    .as-home .as-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .as-home .as-product .pro_des {
        padding: 9px 10px 0;
    }

    .as-home .as-product .pro_name {
        min-height: 42px;
        margin-bottom: 6px;
    }

    .as-home .as-product .pro_name a {
        font-size: 13px;
        line-height: 1.6;
    }

    .as-home .as-product .pro_img img {
        padding: 6px;
    }

    .as-home .as-product .pro_price .fw-medium {
        font-size: 18px !important;
    }

    .as-home .as-product .pro_price del {
        font-size: 12px;
    }

    .as-home .as-product .pro_btn {
        padding: 0 10px 10px;
    }

    .as-home .as-product .addcartbutton {
        min-height: 44px;
        font-size: 13px;
    }

    .as-home .as-product .addcartbutton i {
        font-size: 12px !important;
        padding-right: 3px !important;
    }

    .as-home .footer-top {
        padding-block: 20px;
    }

    .as-home .footer-top .row {
        grid-template-columns: 1fr 1fr;
        gap: 22px 16px;
    }

    .as-home .footer-top .row> :first-child,
    .as-home .footer-top .row> :last-child {
        grid-column: 1 / -1;
    }

    .as-home .footer-about>div img {
        max-width: 230px;
        height: auto;
        margin-top: 10px;
    }

    .as-home .footer-menu {
        text-align: left !important;
    }

    .as-home .footer-menu ul li a {
        display: flex;
        align-items: center;
        min-height: 44px;
        margin-block: 0 !important;
    }

    .as-home .footer-menu .title {
        margin: 0 0 2px;
    }

    .as-home .footer-menu .social_link a {
        justify-content: center;
    }

    .as-home .footer-bottom {
        padding: 12px 0 !important;
    }

    .as-home .copyright p {
        font-size: 11px;
    }

    .as-home .footer_nav {
        padding: 0;
        border: 0;
    }

    .as-home .bottom-nav {
        height: calc(60px + env(safe-area-inset-bottom));
        padding-right: 56px;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff;
        box-shadow: 0 -2px 12px rgb(17 24 39 / 4%);
    }

    .as-home .bottom-nav .nav-item {
        flex: 1;
    }

    .as-home .bottom-nav .nav-item a {
        display: grid;
        place-items: center;
        min-height: 48px;
    }

    .as-home .bottom-nav .nav-item i {
        font-size: 20px;
        margin: 0;
    }

    .as-home #whatsapp-chat-icon {
        bottom: calc(8px + env(safe-area-inset-bottom));
        right: 6px;
    }

    .as-home #whatsapp-chat-box {
        bottom: calc(72px + env(safe-area-inset-bottom));
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .as-home *,
    .as-home *::before,
    .as-home *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Opt-in storefront cards. Reuse these classes without changing page grids. */
.as-storefront :is(.as-category-card, .as-product-card) {
    --as-card-ease: cubic-bezier(.2, .65, .3, 1);
    --as-card-border: #e4e6e8;
    transition: transform 220ms var(--as-card-ease), box-shadow 220ms var(--as-card-ease), border-color 220ms var(--as-card-ease);
}

.as-storefront .as-category-card.category-card {
    border: 1px solid var(--as-card-border) !important;
    border-radius: 14px;
    background: #fcfcfb;
    padding-block: 8px;
    box-shadow: 0 2px 5px rgb(24 32 43 / 3%);
}

.as-storefront .as-category-card .category-img {
    width: calc(100% - 16px);
    margin: 0 8px 6px;
    padding: 3px;
    background: #f3f3f0;
    border-radius: 9px;
    object-fit: contain;
    transition: transform 220ms var(--as-card-ease);
}

.as-storefront .as-category-card .category-text {
    font-weight: 500;
    padding-inline: 3px;
    color: #252e38;
}

.as-storefront .as-category-link {
    border-radius: 14px;
}

/* Reserve room for lift/focus within Owl's clipping viewport. */
.as-home .category-slider .owl-stage-outer {
    padding-block: 6px;
    margin-block: -6px;
}

.as-storefront .as-product-card.as-product {
    border: 1px solid var(--as-card-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 5px rgb(24 32 43 / 3%);
    overflow: hidden;
}

.as-storefront .as-product-card.as-product .pro_img {
    background: #f7f7f5;
    margin: 8px 8px 0;
    border: 1px solid #eff0ec;
    border-radius: 11px;
    overflow: hidden;
}

.as-storefront .as-product-card.as-product .pro_img img {
    object-fit: contain;
    padding: 8px;
    transition: transform 220ms var(--as-card-ease);
}

.as-storefront .as-product-card.as-product .pro_des {
    padding: 12px 14px 0;
}

.as-storefront .as-product-card.as-product .pro_name {
    /* height: 42px;
    min-height: 42px; */
    margin-bottom: 6px;
    height: 24px;
}

.as-storefront .as-product-card.as-product .pro_name a {
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
}

.as-storefront .as-product-card.as-product .pro_price {
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.as-storefront .as-product-card.as-product .pro_price .fw-medium {
    font-size: 19px !important;
    font-weight: 700 !important;
}

.as-storefront .as-product-card.as-product .pro_price del {
    color: #737a83;
    font-size: 12px;
}

.as-storefront .as-product-card.as-product .pro_btn {
    padding: 0 5px 12px;
    margin-top: auto;
}

.as-storefront .as-product-card.as-product .addcartbutton {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 7px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    /* transition: background-color 220ms var(--as-card-ease); */
}

.as-storefront .as-product-card .addcartbutton i {
    transition: transform 220ms var(--as-card-ease);
}

.as-storefront .as-category-link:focus-visible,
.as-storefront .as-product-card :is(a, button):focus-visible {
    outline: 2px solid #343e4a !important;
    outline-offset: -2px;
}

.as-storefront .as-category-link:focus-visible .as-category-card,
.as-storefront .as-product-card:has(:focus-visible) {
    border-color: #aab1b9 !important;
    box-shadow: 0 5px 14px rgb(24 32 43 / 9%);
}

@media (hover: hover) and (pointer: fine) {
    .as-storefront .as-category-link:hover .as-category-card {
        transform: translateY(-2px);
        border-color: #c0c6cd !important;
        box-shadow: 0 5px 12px rgb(24 32 43 / 9%);
    }

    .as-storefront .as-category-link:hover .category-text {
        color: #111827;
    }

    .as-storefront .as-category-link:hover .category-img {
        transform: scale(1.025);
    }

    .as-storefront .as-product-card.as-product:hover {
        transform: translateY(-3px);
        border-color: #bfc6ce;
        box-shadow: 0 8px 20px rgb(24 32 43 / 9%);
    }

    .as-storefront .as-product-card.as-product:hover .pro_img img {
        transform: scale(1.03);
    }

    /* .as-storefront .as-product-card.as-product:hover .addcartbutton {
        background: #252e3a !important;
    } */

    .as-storefront .as-product-card .addcartbutton:hover i {
        transform: translateX(1px);
    }
}

@media (min-width: 1100px) {
    .as-storefront .as-product-card.as-product .pro_img {
        height: 182px !important;
    }
}

@media (max-width: 767.98px) {
    .as-storefront .as-product-card.as-product .pro_des {
        padding: 10px 10px 0;
    }

    .as-storefront .as-product-card.as-product .pro_name a {
        font-size: 13px;
    }

    .as-storefront .as-product-card.as-product .pro_btn {
        padding: 0 10px 10px;
    }

    .as-storefront .as-product-card.as-product .addcartbutton {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .as-storefront :is(.as-category-card, .as-category-card img, .as-product-card, .as-product-card img, .as-product-card .addcartbutton i) {
        transform: none !important;
        transition: none !important;
    }
}

/* Mobile category names need two readable lines, without truncation. */
@media (max-width: 767.98px) {
    .as-storefront .as-category-card .category-img {
        width: 62px;
        height: 56px;
    }

    .as-storefront .as-category-card .category-text {
        display: block;
        height: auto;
        min-height: 34px;
        padding-inline: 8px;
        font-size: 11px;
        line-height: 17px;
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
        text-overflow: clip;
        -webkit-line-clamp: unset;
    }
}

/* Category listing adoption; shared shell and homepage remain unchanged. */
.as-listing .as-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

.as-listing .as-product-card .product_item_inner {
    flex: 1;
    min-width: 0;
}

.as-listing .as-product-card .pro_img {
    height: 182px;
}

.as-listing .as-product-card .pro_img a {
    display: block;
    width: 100%;
    height: 100%;
}

.as-listing .as-product-card .pro_img img {
    display: block;
    width: 100%;
    height: 100%;
}

.as-listing .as-product-card .pro_name {
    white-space: normal;
    overflow-wrap: anywhere;
}

.as-listing .as-product-card .pro_name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--as-ink);
}

.as-listing .as-product-card .pro_price p {
    margin: 0;
    color: var(--as-ink);
    line-height: 24px;
}

.as-listing .as-product-card .pro_price del {
    display: inline-block;
    margin: 0;
    font-weight: 400;
}

.as-listing .as-product-card .addcartbutton {
    width: 100%;
    border: 1px solid var(--as-ink);
    /* background: var(--as-ink) !important; */
    color: #fff;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .as-listing #content {
        padding-top: 0;
        font-family: var(--as-font) !important;
    }

    .as-listing .as-listing-page {
        padding: 20px 0 36px;
    }

    .as-listing .as-listing-page>.container {
        width: calc(100% - 112px);
        max-width: 1420px;
        padding: 0;
    }

    .as-listing .as-listing-page>.container>.sorting-section {
        margin: 0 0 18px;
        padding: 0;
    }

    .as-listing .sorting-section>.row {
        margin: 0;
    }

    .as-listing .sorting-section>.row>.col-sm-6 {
        width: 100%;
        padding: 0;
    }

    .as-listing .sorting-section .sorting-section {
        display: none;
    }

    .as-listing .category-breadcrumb {
        gap: 9px;
        margin: 0;
        font-size: 13px;
        color: #656b74;
    }

    .as-listing .category-breadcrumb span:last-child {
        color: #343c47;
    }

    .as-listing .as-listing-layout {
        display: grid;
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 22px;
        margin: 0;
        align-items: start;
    }

    .as-listing .as-listing-layout>* {
        width: auto;
        min-width: 0;
        padding: 0;
    }

    .as-listing .filter_sidebar {
        position: static;
        display: block;
        background: transparent;
    }

    .as-listing .filter_sidebar .card,
    .as-listing .filter_sidebar .filter-card {
        border: 1px solid #e5e7eb !important;
        border-radius: 14px;
        background: #fcfcfb;
        box-shadow: none !important;
        overflow: hidden;
    }

    .as-listing .filter_sidebar .card-body {
        padding: 16px 12px;
    }

    .as-listing .filter_sidebar .filter-card {
        margin-top: 16px;
        padding: 16px;
    }

    .as-listing .filter_sidebar .filter-title {
        margin: 0;
        color: var(--as-ink);
        font-size: 15px;
        font-weight: 650;
    }

    .as-listing .filter_sidebar hr {
        margin: 12px 0;
        border-color: #e5e7eb;
        opacity: 1;
    }

    .as-listing .filter_sidebar .bg-white {
        background: transparent !important;
    }

    .as-listing .filter_sidebar .bg-white>ul {
        gap: 3px !important;
        padding: 0 !important;
    }

    .as-listing .filter_sidebar .cat-toggle {
        min-height: 40px;
        gap: 4px;
        padding: 4px 6px;
        border-radius: 8px;
        background: transparent !important;
        font-size: 13px;
        line-height: 19px;
    }

    .as-listing .filter_sidebar .cat_head {
        min-width: 0;
    }

    .as-listing .filter_sidebar .cat_head img {
        flex-shrink: 0;
        opacity: .6;
    }

    .as-listing .filter_sidebar .cat-toggle:hover {
        background: #f0f1ef !important;
    }

    .as-listing .filter_sidebar .filter-card-down {
        padding: 4px;
        flex-shrink: 0;
    }

    .as-listing .filter_sidebar .filter_Cat_menu {
        margin-top: 2px !important;
        padding-left: 20px;
    }

    .as-listing .filter_sidebar .filter_Cat_menu li {
        margin-bottom: 2px !important;
    }

    .as-listing .filter_sidebar .filter_Cat_menu a {
        padding: 6px;
        border-radius: 6px;
        font-size: 12px;
        line-height: 18px;
    }

    .as-listing .filter_sidebar .filter_Cat_menu a:hover {
        background: #f0f1ef;
    }

    .as-listing .filter-price-inputs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 18px;
    }

    .as-listing .filter-price-inputs p {
        min-width: 0;
        margin: 0;
        padding: 8px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        color: #656b74;
        font-size: 12px;
    }

    .as-listing .filter-price-inputs input {
        display: block;
        width: 100%;
        min-width: 0;
        background: transparent;
        color: var(--as-ink);
        font-size: 14px;
    }

    .as-listing #price-range {
        margin: 20px 7px 0;
        height: 5px;
        border: 0;
        border-radius: 6px;
        background: #e5e7eb;
    }

    .as-listing #price-range .ui-slider-range {
        background: #343e4a;
    }

    .as-listing #price-range .ui-slider-handle {
        width: 16px;
        height: 16px;
        top: -6px;
        border: 2px solid #343e4a;
        border-radius: 50%;
        background: #fff;
        cursor: ew-resize;
    }

    .as-listing .as-listing-toolbar {
        width: 100%;
        margin-bottom: 16px;
        padding: 10px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fcfcfb;
    }

    .as-listing .as-listing-toolbar>.row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
        margin: 0;
    }

    .as-listing .as-listing-toolbar .col-md-8 {
        flex: 1;
        width: auto;
        padding: 0;
    }

    .as-listing .as-listing-toolbar .col-md-4 {
        width: 205px;
        padding: 0;
    }

    .as-listing .showing-data {
        justify-content: flex-start;
        margin: 0;
        text-align: left;
        font-size: 13px;
        color: #656b74;
    }

    .as-listing .showing-data span {
        font-size: 13px;
        text-align: left;
    }

    .as-listing .page-sort {
        width: 100%;
    }

    .as-listing .sort-form select {
        height: 40px;
        width: 100%;
        border: 1px solid #dce0e4;
        border-radius: 8px;
        font-size: 13px;
        color: var(--as-ink);
        background-color: #fff;
    }

    .as-listing .as-listing-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        margin: 0;
    }

    .as-listing .as-listing-grid>* {
        width: auto;
        padding: 0;
        margin: 0;
        min-width: 0;
    }

    .as-listing .custom_paginate {
        margin: 26px 0 0 272px;
    }

    .as-listing .custom_paginate .pagination {
        gap: 8px;
    }

    .as-listing .custom_paginate .page-link {
        border-radius: 9px;
        border-color: #e5e7eb;
    }

    .as-listing .custom_paginate .active .page-link {
        background: var(--as-ink);
        border-color: var(--as-ink);
        color: #fff;
    }

    .as-listing #content :is(a, button, select, input):focus-visible {
        outline: 2px solid #343e4a;
        outline-offset: 2px;
    }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
    .as-listing .as-listing-layout {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 16px;
    }

    .as-listing .as-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .as-listing .as-listing-toolbar>.row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .as-listing .as-listing-toolbar .col-md-4 {
        width: 100%;
    }

    .as-listing .custom_paginate {
        margin-left: 226px;
    }
}

/* Mobile listing: reuse the approved cards and existing filter toggle. */
@media (max-width: 767.98px) {
    .as-listing {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .as-listing #content {
        padding-top: 0;
        font-family: var(--as-font) !important;
    }

    .as-listing .as-listing-page {
        padding: 12px 0 24px;
    }

    .as-listing .as-listing-page>.container {
        width: 100%;
        padding-inline: 12px;
    }

    .as-listing .as-listing-page>.container>.sorting-section {
        margin: 0 0 12px;
        padding: 0;
    }

    .as-listing .sorting-section>.row {
        margin: 0;
    }

    .as-listing .sorting-section>.row>.col-sm-6 {
        padding: 0;
    }

    .as-listing .sorting-section .sorting-section {
        display: none;
    }

    .as-listing .category-breadcrumb {
        gap: 7px;
        margin: 0;
        align-items: baseline !important;
        font-size: 12px;
        line-height: 18px;
        color: #656b74;
    }

    .as-listing .category-breadcrumb a {
        flex-shrink: 0;
    }

    .as-listing .category-breadcrumb span:last-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .as-listing .as-listing-layout {
        margin: 0;
    }

    .as-listing .as-listing-results {
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    .as-listing .as-listing-toolbar {
        width: 100%;
        margin-bottom: 12px;
        padding: 0;
    }

    .as-listing .as-listing-toolbar>.row {
        margin: 0;
    }

    .as-listing .as-listing-toolbar .col-md-8 {
        display: none;
    }

    .as-listing .as-listing-toolbar .col-md-4 {
        padding: 0;
    }

    .as-listing .filter_sort {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    .as-listing .filter_btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 44px;
        border: 1px solid var(--as-ink);
        border-radius: 10px;
        background: var(--as-ink);
        font-size: 13px;
        line-height: 20px;
    }

    .as-listing .page-sort {
        width: 100%;
        min-width: 0;
    }

    .as-listing .sort-form select {
        width: 100%;
        height: 44px;
        padding-left: 12px;
        border: 1px solid #dce0e4;
        border-radius: 10px;
        background-color: #fcfcfb;
        color: var(--as-ink);
        font-size: 13px;
    }

    .as-listing .filter_sidebar,
    .as-listing .filter_sidebar.active {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        margin: 0;
        padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
        background: #fcfcfb;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .as-listing .filter_close {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        margin: 0 0 12px;
        border-radius: 10px;
        background: var(--as-ink);
        font-size: 15px;
    }

    .as-listing .filter_sidebar .card,
    .as-listing .filter_sidebar .filter-card {
        border: 1px solid #e5e7eb !important;
        border-radius: 14px;
        background: #fff;
        box-shadow: none !important;
    }

    .as-listing .filter_sidebar .card-body {
        padding: 14px 12px;
    }

    .as-listing .filter_sidebar .filter-card {
        margin-top: 14px;
        padding: 16px;
    }

    .as-listing .filter_sidebar .filter-title {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        color: var(--as-ink);
    }

    .as-listing .filter_sidebar hr {
        margin: 10px 0;
        border-color: #e5e7eb;
        opacity: 1;
    }

    .as-listing .filter_sidebar .bg-white>ul {
        gap: 2px !important;
        padding: 0 !important;
    }

    .as-listing .filter_sidebar .cat-toggle {
        min-height: 44px;
        gap: 6px;
        padding: 5px 2px;
        font-size: 13px;
        line-height: 19px;
    }

    .as-listing .filter_sidebar .cat_head {
        min-width: 0;
    }

    .as-listing .filter_sidebar .cat_head img {
        flex-shrink: 0;
    }

    .as-listing .filter_sidebar .filter-card-down {
        padding: 10px;
        flex-shrink: 0;
    }

    .as-listing .filter_sidebar .filter_Cat_menu {
        padding-left: 20px;
    }

    .as-listing .filter_sidebar .filter_Cat_menu li {
        margin-bottom: 0 !important;
    }

    .as-listing .filter_sidebar .filter_Cat_menu a {
        min-height: 40px;
        align-items: center;
        padding: 5px;
        font-size: 13px;
    }

    .as-listing .filter-price-inputs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 20px;
    }

    .as-listing .filter-price-inputs p {
        margin: 0;
        padding: 10px;
        border: 1px solid #e5e7eb;
        border-radius: 9px;
        color: #656b74;
        font-size: 12px;
    }

    .as-listing .filter-price-inputs input {
        display: block;
        width: 100%;
        min-width: 0;
        background: transparent;
        color: var(--as-ink);
        font-size: 15px;
    }

    .as-listing #price-range {
        margin: 22px 10px 0;
        height: 5px;
        border: 0;
        border-radius: 6px;
        background: #e5e7eb;
    }

    .as-listing #price-range .ui-slider-range {
        background: #343e4a;
    }

    .as-listing #price-range .ui-slider-handle {
        width: 22px;
        height: 22px;
        top: -9px;
        border: 2px solid #343e4a;
        border-radius: 50%;
        background: #fff;
    }

    .as-listing .as-listing-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
        margin: 0;
    }

    .as-listing .as-listing-grid>* {
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .as-listing .as-product-card.as-product .pro_img {
        height: auto;
        aspect-ratio: 1;
    }

    .as-listing .as-product-card.as-product .pro_name {
        height: 40px;
        min-height: 40px;
    }

    .as-listing .as-product-card.as-product .pro_name a {
        font-size: 13px;
        line-height: 20px;
    }

    .as-listing .as-product-card.as-product .pro_price p {
        white-space: nowrap;
    }

    .as-listing .as-product-card.as-product .pro_price .fw-medium {
        font-size: 18px !important;
        margin-right: 5px !important;
    }

    .as-listing .as-product-card.as-product .pro_price del {
        font-size: 11px;
    }

    .as-listing .as-product-card.as-product .addcartbutton {
        min-height: 44px;
        font-size: 12px;
        line-height: 18px;
    }

    .as-listing .custom_paginate {
        margin: 22px 0 0;
    }

    .as-listing .custom_paginate .pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .as-listing .custom_paginate .page-link {
        width: 40px;
        height: 40px;
        margin: 0;
        border-radius: 9px;
        border-color: #e5e7eb;
    }

    .as-listing .custom_paginate .active .page-link {
        background: var(--as-ink);
        border-color: var(--as-ink);
        color: #fff;
    }

    .as-listing #content :is(a, button, select, input):focus-visible {
        outline: 2px solid #343e4a;
        outline-offset: 2px;
    }

    .as-listing .footer_nav {
        padding: 0;
        border: 0;
    }

    .as-listing .bottom-nav {
        height: calc(60px + env(safe-area-inset-bottom));
        padding-right: 56px;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff;
        box-shadow: 0 -2px 12px rgb(17 24 39 / 4%);
    }

    .as-listing .bottom-nav .nav-item {
        flex: 1;
    }

    .as-listing .bottom-nav .nav-item a {
        display: grid;
        place-items: center;
        min-height: 48px;
    }

    .as-listing .bottom-nav .nav-item i {
        font-size: 20px;
        margin: 0;
    }

    .as-listing #whatsapp-chat-icon {
        bottom: calc(8px + env(safe-area-inset-bottom));
        right: 6px;
        width: 44px;
        height: 44px;
        animation: none;
    }

    .as-listing #whatsapp-chat-icon img {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .as-listing #whatsapp-chat-icon img:hover {
        transform: none;
    }

    .as-listing #close-icon {
        inset: 0;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 3px;
        line-height: 38px;
        text-align: center;
        transform: none;
        background: var(--as-ink) !important;
    }

    .as-listing #whatsapp-chat-box {
        bottom: calc(72px + env(safe-area-inset-bottom));
        right: 12px;
        max-width: calc(100vw - 24px);
    }
}

/* Product details core only; lower-page sections retain their existing styles. */
.as-pdp #content {
    padding-top: 0;
}

.as-pdp .main-details-page {
    margin-top: 0;
}

.as-pdp .main-details-page>.container {
    width: calc(100% - 112px);
    max-width: 1420px;
    padding: 0;
}

.as-pdp .as-pdp-core {
    padding: 24px 0 30px;
    color: var(--as-ink);
    font-family: var(--as-font);
}

.as-pdp-core>.row {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 24px;
    margin: 0;
    align-items: start;
}

.as-pdp-core>.row>*,
.as-pdp-core .product-cart>.row>* {
    width: auto;
    min-width: 0;
    padding: 0;
}

.as-pdp-core .details_right {
    padding: 0;
    border: 0;
    border-radius: 0;
}

.as-pdp-core .product-cart {
    font-family: var(--as-font);
}

.as-pdp-core .product-cart>.row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 20px;
    margin: 0;
    align-items: start;
}

.as-pdp-core .details_slider {
    border: 1px solid #e4e6e8;
    border-radius: 16px;
    overflow: hidden;
    background: #f7f7f5;
}

.as-pdp-core .dimage_item {
    aspect-ratio: 1;
    padding: 12px;
}

.as-pdp-core .dimage_item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.as-pdp-core .indicator_thumb {
    margin: 12px 0 0;
    gap: 8px;
}

.as-pdp-core .indicator_thumb.owl-carousel {
    display: block;
}

.as-pdp-core .indicator-item {
    aspect-ratio: 1;
    padding: 5px;
    border: 1px solid #e4e6e8;
    border-radius: 10px;
    background: #fcfcfb;
    cursor: pointer;
    transition: border-color 200ms, box-shadow 200ms;
}

.as-pdp-core .indicator-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.as-pdp-core .thumb_slider .owl-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.as-pdp-core .thumb_slider .owl-nav button {
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
    background: #f3f3f0;
}

.as-pdp-core .as-pdp-summary h4 {
    margin: 0 0 16px !important;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.as-pdp-core .as-pdp-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px !important;
    font-variant-numeric: tabular-nums;
}

.as-pdp-core .as-pdp-price .price {
    order: -1;
    color: var(--as-ink);
    font-size: 28px !important;
    line-height: 1.25;
    font-weight: 700;
}

.as-pdp-core .as-pdp-price .old-price {
    margin: 0;
    color: #737a83 !important;
    font-size: 14px !important;
}

.as-pdp-core #product-form>.row {
    margin-inline: 0;
}

.as-pdp-core #product-form>.row>* {
    padding-inline: 0;
}

.as-pdp-core .quantity {
    width: 134px;
    height: 44px;
    margin-top: 4px;
    border: 1px solid #dce0e4;
    border-radius: 10px;
    background: #fcfcfb;
}

.as-pdp-core .quantity input {
    border: 0;
    background: transparent;
    color: var(--as-ink);
}

.as-pdp-core .qty-cart .quantity :is(.minus, .plus) {
    width: 44px;
    height: 42px;
    line-height: 42px;
    font-size: 23px;
    border-color: #e4e6e8;
    background: transparent;
}

.as-pdp-core .single_product {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px !important;
    margin: 8px 0 12px !important;
}

.as-pdp-core .single_product .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 46px;
    margin: 0 !important;
    padding: 10px;
    border: 1px solid var(--as-ink);
    border-radius: 10px;
    background: var(--as-ink);
    color: #fff !important;
    font-size: 14px !important;
    line-height: 22px;
    white-space: normal;
    transition: background-color 200ms, border-color 200ms;
}

.as-pdp-core .single_product .btn-info {
    background: #f3f3f0;
    border-color: #dce0e4;
    color: var(--as-ink) !important;
}

.as-pdp-core .btn-outline-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #ccdcd3;
    border-radius: 10px;
    background: #fff;
    color: #276a49;
    font-size: 13px;
    line-height: 21px;
    white-space: normal;
}

.as-pdp-core .product-parent {
    gap: 14px !important;
}

.as-pdp-core :is(.product-details, .contact-details) {
    padding: 16px !important;
    margin: 0;
    border: 1px solid #e4e6e8 !important;
    border-radius: 14px;
    background: #fcfcfb;
    box-shadow: 0 2px 5px rgb(24 32 43 / 3%);
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.as-pdp-core :is(.product-details, .contact-details) p {
    margin: 0 0 10px;
}

.as-pdp-core :is(.product-details, .contact-details) p:last-child {
    margin-bottom: 0;
}

.as-pdp-core .contact-details {
    border-top-color: #dce0e4 !important;
}

.as-pdp-core .contact-details a {
    display: inline-block;
    /* padding-block: 3px; */
    color: var(--as-ink);
}

.as-pdp-core .contact-details .badge {
    white-space: normal;
}

.as-pdp-core :is(a, button, input):focus-visible {
    outline: 2px solid #343e4a;
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .as-pdp-core .indicator-item:hover {
        border-color: #aab1b9;
        box-shadow: 0 3px 10px rgb(24 32 43 / 8%);
    }

    .as-pdp-core .single_product .btn-success:hover {
        background: #343e4a;
    }

    .as-pdp-core .single_product .btn-info:hover {
        background: #e8e9e6;
    }

    .as-pdp-core .btn-outline-success:hover {
        background: #f0f6f2;
    }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
    .as-pdp .main-details-page>.container {
        width: calc(100% - 48px);
    }

    .as-pdp-core>.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .as-pdp-core .product-cart>.row {
        grid-template-columns: minmax(0, 1fr);
    }

    .as-pdp-core .as-pdp-summary h4 {
        font-size: 22px;
    }
}

@media (max-width: 767.98px) {
    .as-pdp {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .as-pdp .main-details-page>.container {
        width: 100%;
        padding-inline: 12px;
    }

    .as-pdp .as-pdp-core {
        padding: 12px 0 24px;
    }

    .as-pdp-core>.row,
    .as-pdp-core .product-cart>.row {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .as-pdp-core .dimage_item {
        aspect-ratio: 1.12;
    }

    .as-pdp-core .indicator_thumb {
        gap: 8px;
        margin-top: 10px;
    }

    .as-pdp-core .as-pdp-summary h4 {
        font-size: 21px;
        line-height: 1.4;
        margin-bottom: 12px !important;
    }

    .as-pdp-core .as-pdp-price .price {
        font-size: 26px !important;
    }

    .as-pdp-core .single_product {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .as-pdp .footer_nav {
        padding: 0;
        border: 0;
    }

    .as-pdp .bottom-nav {
        height: calc(60px + env(safe-area-inset-bottom));
        padding-right: 56px;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff;
        box-shadow: 0 -2px 12px rgb(17 24 39 / 4%);
    }

    .as-pdp .bottom-nav .nav-item {
        flex: 1;
    }

    .as-pdp .bottom-nav .nav-item a {
        display: grid;
        place-items: center;
        min-height: 48px;
    }

    .as-pdp .bottom-nav .nav-item i {
        font-size: 20px;
        margin: 0;
    }

    .as-pdp #whatsapp-chat-icon {
        bottom: calc(8px + env(safe-area-inset-bottom));
        right: 6px;
        width: 44px;
        height: 44px;
        animation: none;
    }

    .as-pdp #whatsapp-chat-icon img {
        width: 44px;
        height: 44px;
        object-fit: contain;
    }

    .as-pdp #whatsapp-chat-icon img:hover {
        transform: none;
    }

    .as-pdp #close-icon {
        inset: 0;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 3px;
        line-height: 38px;
        text-align: center;
        transform: none;
        background: var(--as-ink) !important;
    }

    .as-pdp #whatsapp-chat-box {
        bottom: calc(72px + env(safe-area-inset-bottom));
        right: 12px;
        max-width: calc(100vw - 24px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .as-pdp-core .indicator-item,
    .as-pdp-core .single_product .btn {
        transition: none;
    }
}

/* PDP lower content: existing tabs, embed and reusable product cards. */
.as-pdp .as-pdp-lower {
    margin: 0;
    padding: 12px 0 0;
    background: #fff;
    box-shadow: none;
    font-family: var(--as-font);
}

.as-pdp .as-pdp-lower>.container,
.as-pdp .as-pdp-related>.container {
    width: calc(100% - 112px);
    max-width: 1420px;
    padding: 0;
}

.as-pdp-lower>.container>.row {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
}

.as-pdp-lower>.container>.row>* {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.as-pdp-lower .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid #e4e6e8;
    border-radius: 12px;
    background: #f7f7f5;
}

.as-pdp-lower .nav-tabs .nav-link {
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #535d69;
    background: transparent;
    font-size: 14px;
    line-height: 22px;
    transition: background-color 200ms, color 200ms;
}

.as-pdp-lower .nav-tabs .nav-link.active {
    color: var(--as-ink);
    background: #fff;
    border-color: #dce0e4;
    font-weight: 600;
    box-shadow: 0 1px 3px rgb(24 32 43 / 5%);
}

.as-pdp-lower .nav-tabs .nav-link:hover {
    color: var(--as-ink);
    background: #fff;
}

.as-pdp-lower :is(button, a, input, textarea):focus-visible {
    outline: 2px solid #343e4a;
    outline-offset: 2px;
}

.as-pdp-lower .details-action-box {
    margin: 0;
    padding: 22px;
    border: 1px solid #e4e6e8;
    border-radius: 14px;
    background: #fcfcfb;
    color: #343c47;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.as-pdp-lower .details-action-box :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 12px;
    color: var(--as-ink);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.as-pdp-lower .details-action-box p {
    margin: 0 0 12px;
    line-height: 1.75;
}

.as-pdp-lower .details-action-box p:empty {
    display: none;
}

.as-pdp-lower .details-action-box :is(ul, ol) {
    padding-left: 22px;
    margin-bottom: 12px;
}

.as-pdp-lower .details-action-box li {
    display: list-item;
    margin-bottom: 5px;
}

.as-pdp-lower .details-action-box img {
    max-width: 100%;
    height: auto;
}

.as-pdp-lower .details-action-box table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.as-pdp-lower .details-action-box .section-head {
    flex-wrap: wrap;
    gap: 12px;
}

.as-pdp-lower .details-action-btn {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--as-ink);
    border-radius: 9px;
    background: var(--as-ink);
    color: #fff;
    white-space: normal;
}

.as-pdp-lower .review-card {
    padding: 14px;
    border: 1px solid #e4e6e8;
    border-radius: 10px;
    background: #fff;
}

.as-pdp-lower .empty-content {
    padding: 20px 0;
    color: #656b74;
}

.as-pdp-lower .pro_vide {
    margin: 0;
    padding: 8px;
    border: 1px solid #e4e6e8;
    border-radius: 14px;
    background: #f7f7f5;
    overflow: hidden;
    box-shadow: 0 2px 5px rgb(24 32 43 / 3%);
}

.as-pdp-lower .iframe_video {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 9px;
}

.as-pdp .as-pdp-related {
    margin: 0;
    padding: 32px 0;
    font-family: var(--as-font);
}

.as-pdp-related .related-title {
    margin: 0 0 16px;
}

.as-pdp-related .related-title h5 {
    margin: 0;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--as-ink);
}

.as-pdp-related .related_slider .owl-stage {
    display: flex;
}

.as-pdp-related .related_slider .owl-item {
    display: flex;
    flex-shrink: 0;
}

.as-pdp-related .related_slider .owl-stage-outer {
    padding-block: 8px;
    margin-block: -8px;
}

.as-pdp-related .as-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
}

.as-pdp-related .as-product-card .product_item_inner {
    flex: 1;
    min-width: 0;
}

.as-pdp-related .as-product-card.as-product .pro_img {
    height: 160px;
}

.as-pdp-related .as-product-card .pro_img a {
    display: block;
    width: 100%;
    height: 100%;
}

.as-pdp-related .as-product-card .pro_img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.as-pdp-related .as-product-card .pro_name {
    white-space: normal;
    overflow-wrap: anywhere;
}

.as-pdp-related .as-product-card .pro_name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--as-ink);
}

.as-pdp-related .as-product-card .pro_price p {
    margin: 0;
    color: var(--as-ink);
    line-height: 24px;
    white-space: nowrap;
}

.as-pdp-related .as-product-card.as-product .pro_price .fw-medium {
    font-size: 18px !important;
    margin-right: 5px !important;
}

.as-pdp-related .as-product-card.as-product .pro_price del {
    display: inline-block;
    margin: 0;
    font-size: 11px;
}

.as-pdp-related .as-product-card .addcartbutton {
    width: 100%;
    border: 1px solid var(--as-ink);
    /* background: var(--as-ink) !important; */
    color: #fff;
    box-shadow: none !important;
    white-space: normal;
    line-height: 20px;
}

.as-pdp-related .owl-nav button {
    min-width: 40px;
    min-height: 40px;
    border-radius: 9px;
}

@media (min-width: 768px) and (max-width: 1099.98px) {

    .as-pdp .as-pdp-lower>.container,
    .as-pdp .as-pdp-related>.container {
        width: calc(100% - 48px);
    }

    .as-pdp-lower>.container>.row {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .as-pdp-lower .pro_vide {
        max-width: 560px;
    }
}

@media (max-width: 767.98px) {

    .as-pdp .as-pdp-lower>.container,
    .as-pdp .as-pdp-related>.container {
        width: 100%;
        padding-inline: 12px;
    }

    .as-pdp-lower>.container>.row {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .as-pdp-lower .nav-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .as-pdp-lower .nav-tabs .nav-link {
        width: 100%;
        padding: 8px 6px;
        font-size: 13px;
    }

    .as-pdp-lower .details-action-box {
        padding: 16px;
        font-size: 14px;
    }

    .as-pdp-lower .details-action-box :is(h1, h2, h3, h4, h5, h6) {
        font-size: 19px;
    }

    .as-pdp .as-pdp-related {
        padding-block: 24px;
    }

    .as-pdp-related .related-title h5 {
        font-size: 20px;
    }

    .as-pdp-related .as-product-card.as-product .pro_img {
        height: 150px;
    }

    .as-pdp-related .as-product-card.as-product .addcartbutton {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .as-pdp-lower .nav-tabs .nav-link {
        transition: none;
    }
}

/* ============================================================
   CHECKOUT REDESIGN (.as-checkout)
   ============================================================ */
.as-checkout {
    font-family: var(--as-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
    background: #f8fafc !important;
    padding: 32px 0 60px !important;
    color: #1e293b !important;
}

.as-checkout .container {
    width: calc(100% - 32px) !important;
    max-width: 1420px !important;
    margin-inline: auto !important;
}

.as-checkout .checkout-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.as-checkout .checkout-card .card-body {
    padding: 24px !important;
}

.as-checkout .checkout-instruction-box {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #18202b !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}

.as-checkout .checkout-form .form-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 6px !important;
}

.as-checkout .checkout-input {
    height: 48px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.as-checkout .checkout-input:focus {
    border-color: #18202b !important;
    box-shadow: 0 0 0 3px rgba(24, 32, 43, 0.12) !important;
    outline: none !important;
}

.as-checkout .checkout-input.is-invalid {
    border-color: #ef4444 !important;
}

/* Courier / Delivery options */
.as-checkout .delivery-option {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 50px !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    margin-bottom: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.as-checkout .delivery-option:hover {
    border-color: #cbd5e1 !important;
    background: #f1f5f9 !important;
}

.as-checkout .delivery-option.active {
    background: #18202b !important;
    border-color: #18202b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(24, 32, 43, 0.15) !important;
}

.as-checkout .delivery-option input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
    accent-color: #ffffff !important;
}

.as-checkout .delivery-option.active label {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.as-checkout .delivery-option label {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

/* Submit CTA */
.as-checkout .checkout-btn {
    height: 52px !important;
    background: #18202b !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    box-shadow: 0 4px 14px rgba(24, 32, 43, 0.18) !important;
    transition: all 0.2s ease !important;
}

.as-checkout .checkout-btn:hover {
    background: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(24, 32, 43, 0.25) !important;
}

.as-checkout .checkout-btn:active {
    transform: translateY(0);
}

/* Cart Table & Order Summary */
.as-checkout .cart_table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.as-checkout .cart_table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: 0 !important;
}

.as-checkout .cart_table td {
    background: #ffffff !important;
    padding: 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 14px !important;
}

.as-checkout .cart_table .product-image img,
.as-checkout .cart_table td img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    object-fit: cover !important;
}

.as-checkout .cart_table .product-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
}

/* Quantity controls */
.as-checkout .quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    height: 36px !important;
    gap: 0 !important;
}

.as-checkout .quantity button {
    width: 32px !important;
    height: 36px !important;
    border: 0 !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.as-checkout .quantity button:hover {
    background: #e2e8f0 !important;
}

.as-checkout .quantity input {
    width: 36px !important;
    height: 36px !important;
    text-align: center !important;
    border: 0 !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background: #ffffff !important;
}

/* Trash button */
.as-checkout .trash-btn {
    width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.as-checkout .trash-btn:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* Summary Footer */
.as-checkout .cart_table tfoot tr th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 0 !important;
}

.as-checkout .cart_table tfoot tr td {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 0 !important;
}

.as-checkout .cart_table tfoot tr:last-child th {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border-top: 2px solid #e2e8f0 !important;
}

.as-checkout .cart_table tfoot tr:last-child td {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #dc2626 !important;
    border-top: 2px solid #e2e8f0 !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .as-checkout {
        padding: 20px 0 80px !important;
    }

    .as-checkout .container {
        width: 100% !important;
        padding-inline: 12px !important;
    }
}

@media (max-width: 767.98px) {
    .as-checkout {
        padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
    }

    .as-checkout .checkout-card .card-body {
        padding: 16px !important;
    }

    .as-checkout .checkout-instruction-box {
        font-size: 13px !important;
        padding: 12px 14px !important;
    }

    .as-checkout .cart_table thead th,
    .as-checkout .cart_table td {
        padding: 10px 8px !important;
        font-size: 13px !important;
    }

    .as-checkout .cart_table .product-image img,
    .as-checkout .cart_table td img {
        width: 40px !important;
        height: 40px !important;
    }

    .as-checkout .quantity button {
        width: 28px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .as-checkout .quantity input {
        width: 30px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .as-checkout .quantity {
        height: 32px !important;
    }
}
