/*
 * ShopnerHut storefront layer, loaded after tanha.css.
 * Colorful, lively, high-converting design with highlighted & animated Order Korun buttons.
 */
body.tb {
    --sh-ink: #15172b;
    --sh-body: #3f4254;
    --sh-muted: #6b7084;
    --sh-line: #ede8e1;
    --sh-soft: #fbf9f6;
    --sh-accent: #cf4510;
    --sh-accent-deep: #a8370c;
    --sh-accent-soft: #fdeee7;
    --sh-gradient-accent: linear-gradient(135deg, #ff4d00 0%, #e63900 50%, #c42600 100%);
    --sh-radius: 12px;
    background: #fbf9f6 !important;
}

body.tb .site__body { background: #fbf9f6 !important; }

/* Top decorative colorful bar */
body.tb .site-header__topbar, body.tb .topbar {
    position: relative;
    background: #15172b !important;
}
body.tb .site-header__topbar::before, body.tb .topbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4500 0%, #f59e0b 25%, #ec4899 50%, #8b5cf6 75%, #3b82f6 100%);
    z-index: 10;
}
body.tb .tb-strip__msg { color: #fed7aa !important; font-weight: 600 !important; }
body.tb .tb-strip__links a { color: #f3f4f6 !important; font-weight: 600; transition: color .2s; }
body.tb .tb-strip__links a:hover { color: #ff8c00 !important; }

/* Header search bar & buttons */
body.tb .header-search-btn, body.tb .site-header__search .btn {
    background: linear-gradient(135deg, #ff5722 0%, #cf4510 100%) !important;
    border: none !important;
    color: #ffffff !important;
    transition: all .2s ease;
}
body.tb .header-search-btn:hover, body.tb .site-header__search .btn:hover {
    background: linear-gradient(135deg, #ff7043 0%, #a8370c 100%) !important;
    transform: scale(1.02);
}
body.tb .header-search-input:focus, body.tb .mobile-header__search-input:focus {
    border-color: #ff5722 !important;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.22) !important;
}
body.tb .header-helpline-icon {
    background: linear-gradient(135deg, #fff2eb 0%, #ffdfcc 100%) !important;
    color: #cf4510 !important;
}

/* Cart badge with subtle lively pulse */
body.tb .indicator__value, body.tb .cart-count {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45) !important;
    border-radius: 999px !important;
}

/* Category menu / department button on homepage */
body.tb .departments__button {
    background: linear-gradient(135deg, #cf4510 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(207, 69, 16, 0.35) !important;
    border-radius: 12px 12px 0 0 !important;
}
body.tb .departments__button-icon path, body.tb .departments__button-arrow path {
    fill: #ffffff !important;
}

/* ---------- Mobile header: logo row; search opens from the header icon ---------- */
@media (max-width: 991.98px) {
    body.tb .mobile-header__body { height: 56px; }
    body.tb .mobile-header__logo img { height: 30px !important; max-height: 30px !important; }
    body.tb .mobile-header__panel { border-bottom: 0; }
    body.tb .mobile-header__search-input {
        height: 44px !important;
        border: 1px solid var(--sh-line) !important;
        border-radius: var(--sh-radius) !important;
        background: var(--sh-soft) !important;
        font-size: 16px !important;
        color: var(--sh-ink) !important;
        box-shadow: none !important;
    }
    body.tb .mobile-header__search-input:focus { background: #fff !important; border-color: var(--sh-accent) !important; outline: 0; }
}

/* ---------- Hero ---------- */
@media (max-width: 767.98px) {
    body.tb .block-slideshow { margin: 8px 0 16px; }
    body.tb .block-slideshow > .container { padding: 0 12px !important; }
    body.tb .block-slideshow__body, body.tb .block-slideshow__slide { border-radius: 14px !important; aspect-ratio: 2 / 1 !important; box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
    body.tb .block-slideshow__slide-picture img, body.tb .block-slideshow__slide img { width: 100%; height: 100%; object-fit: cover; object-position: left center !important; border-radius: 14px; }
}

/* ---------- Section headings: vibrant & colorful ---------- */
body.tb .block-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}
body.tb .block-header__title {
    display: inline-flex !important;
    align-items: center !important;
    font-size: clamp(20px, 4.8vw, 26px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    color: #15172b !important;
    margin: 0 !important;
}
body.tb .block-header__title::before {
    content: "" !important;
    display: inline-block !important;
    width: 6px !important;
    height: 24px !important;
    border-radius: 4px !important;
    background: linear-gradient(180deg, #ff4500 0%, #ff8c00 100%) !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}
body.tb .block-header__divider {
    display: block !important;
    flex: 1 !important;
    height: 2px !important;
    margin: 0 16px !important;
    background: linear-gradient(90deg, #ffb899 0%, #fed7aa 40%, rgba(254, 215, 170, 0) 100%) !important;
    border: none !important;
}
body.tb .btn-all, body.tb .block-header .btn-all {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 18px !important;
    background: linear-gradient(135deg, #fff3eb 0%, #ffe7d6 100%) !important;
    color: #cf4510 !important;
    border: 1.5px solid #ffccb0 !important;
    border-radius: 999px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(207, 69, 16, 0.08) !important;
    transition: all .25s ease !important;
}
body.tb .btn-all:hover, body.tb .block-header .btn-all:hover {
    background: linear-gradient(135deg, #cf4510 0%, #f9572a 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(207, 69, 16, 0.3) !important;
    transform: translateX(3px) !important;
}
body.tb .block { margin-bottom: 36px; }
@media (min-width: 768px) { body.tb .block { margin-bottom: 56px; } }

/* ---------- Categories: colorful, swipeable row with pastel badges & hover glow ---------- */
body.tb .tb-cats__row {
    --cat-gap: 12px;
    --cat-per-view: 4;
    display: flex !important;
    gap: var(--cat-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding: 6px 2px 14px;
    scrollbar-width: none;
    grid-template-columns: none !important;
}
body.tb .tb-cats__row::-webkit-scrollbar { display: none; }
body.tb .tb-cat {
    flex: 0 0 calc((100% - (var(--cat-per-view) - 1) * var(--cat-gap)) / var(--cat-per-view));
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 8px !important;
    border: 1px solid #faeade !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 12px rgba(207, 69, 16, 0.05) !important;
    scroll-snap-align: start;
    text-align: center;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
body.tb .tb-cat:hover {
    transform: translateY(-5px) !important;
    border-color: #ffb899 !important;
    box-shadow: 0 10px 24px rgba(207, 69, 16, 0.16) !important;
}
body.tb .tb-cat__media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    border-radius: 10px !important;
    overflow: hidden;
    border: 1px solid #fed7aa;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    transition: transform .3s ease, border-color .3s ease;
}
body.tb .tb-cat:nth-child(2n) .tb-cat__media {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-color: #fbcfe8;
}
body.tb .tb-cat:nth-child(3n) .tb-cat__media {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}
body.tb .tb-cat:nth-child(4n) .tb-cat__media {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}
body.tb .tb-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
body.tb .tb-cat:hover .tb-cat__media img { transform: scale(1.08); }
body.tb .tb-cat__name {
    font-size: 13px !important; font-weight: 700 !important; color: #15172b !important; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
    transition: color .2s ease;
}
body.tb .tb-cat:hover .tb-cat__name { color: #cf4510 !important; }
body.tb .tb-cat__count {
    display: inline-block !important;
    align-self: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #cf4510 !important;
    background: #fff3ec !important;
    border: 1px solid #ffd8c7 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    line-height: 1.2 !important;
}
@media (min-width: 768px) {
    body.tb .tb-cats__row { --cat-gap: 16px; --cat-per-view: 5; }
    body.tb .tb-cat { gap: 8px; padding: 12px 10px !important; }
    body.tb .tb-cat__name { font-size: 14.5px !important; }
}
@media (min-width: 1200px) {
    body.tb .tb-cats__row { --cat-gap: 18px; --cat-per-view: 6; }
    body.tb .tb-cat__name { font-size: 15.5px !important; }
}

/* ---------- Product grid and cards: colorful, elevated & engaging ---------- */
body.tb .products-list__body { gap: 16px 14px !important; }
@media (min-width: 1024px) { body.tb .products-list__body { gap: 28px 22px !important; } }

body.tb .product-card {
    background: #ffffff !important;
    border: 1px solid #f1ece4 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
    padding: 8px !important;
    position: relative !important;
}
body.tb .product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 32px rgba(207, 69, 16, 0.14) !important;
    border-color: #fed7aa !important;
}
body.tb .product-card__image {
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #faf7f2 !important;
}
body.tb .product-card__image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
body.tb .product-card:hover .product-card__image img {
    transform: scale(1.06) !important;
}
body.tb .product-card__info { padding: 10px 4px 0 !important; }
body.tb .product-card__name { height: auto !important; max-height: none !important; overflow: visible !important; margin: 0 0 6px !important; }
body.tb .product-card__name a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    height: auto !important;
    min-height: 2.8em;
    max-height: 2.8em;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #15172b !important;
    transition: color 0.2s ease !important;
}
body.tb .product-card__name a:hover {
    color: #cf4510 !important;
}
body.tb .product-card__actions { padding: 4px 4px 4px !important; }
body.tb .product-card__prices {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 0 0 10px !important;
}
body.tb .product-card__new-price {
    color: #d83a06 !important;
    font-size: 17.5px !important;
    font-weight: 800 !important;
}
body.tb .product-card__old-price {
    font-size: 13px !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
    font-weight: 600 !important;
}
body.tb .product-card__badges-list { top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
body.tb .product-card__badge, body.tb .product-card__badge--sale {
    padding: 4px 9px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #ff3b30 0%, #e11d48 100%) !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    box-shadow: 0 3px 8px rgba(225, 29, 72, 0.4) !important;
    border: none !important;
}
body.tb .badge--free-delivery {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35) !important;
}

/* Star ratings in rich gold */
body.tb .product-card .fa-star.text-warning,
body.tb .product-card .fa-star-half-alt.text-warning {
    color: #f59e0b !important;
    text-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

/* Buttons wrapper */
body.tb .product-card__buttons {
    display: flex !important;
    gap: 8px !important;
    margin-top: 4px !important;
}

/* Secondary "Add to cart" button when present */
body.tb .product-card .product-card__addtocart {
    min-height: 42px !important;
    padding: 8px 12px !important;
    border: 1.5px solid #15172b !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #15172b !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
body.tb .product-card .product-card__addtocart:hover {
    background: #15172b !important;
    color: #ffffff !important;
}

/* ========================================================
   HIGHLIGHTED & ANIMATED "ORDER KORUN" BUTTON
   ======================================================== */
@keyframes sh-order-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(230, 57, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.045);
        box-shadow: 0 8px 24px rgba(255, 69, 0, 0.7), 0 3px 8px rgba(0, 0, 0, 0.15);
    }
}
@keyframes sh-order-shine {
    0% { transform: translateX(-120%) skewX(-25deg); }
    35%, 100% { transform: translateX(260%) skewX(-25deg); }
}

body.tb .product-card__ordernow,
body.tb .product-card .product-card__ordernow,
body.tb .products-list .product-card__buttons .product-card__ordernow,
body.tb .product__ordernow,
body.tb .product-mobile-bar__btn--order {
    position: relative !important;
    overflow: hidden !important;
    flex: 1 1 auto !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 9px 14px !important;
    background: linear-gradient(135deg, #ff4d00 0%, #e63900 50%, #c42600 100%) !important;
    border: none !important;
    border-radius: 9px !important;
    color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(230, 57, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    animation: sh-order-pulse 2.2s ease-in-out infinite !important;
    will-change: transform, box-shadow !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* Make sure the shopping bag icon or lightning icon is proudly displayed */
body.tb .product-card__ordernow svg,
body.tb .product-card__ordernow i,
body.tb .product__ordernow svg,
body.tb .product__ordernow i,
body.tb .product-mobile-bar__btn--order svg,
body.tb .product-mobile-bar__btn--order i {
    display: inline-block !important;
    margin-right: 6px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
    vertical-align: -1px !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* Light beam sweep shimmer effect */
body.tb .product-card__ordernow:not(:disabled)::after,
body.tb .product__ordernow:not(:disabled)::after,
body.tb .product-mobile-bar__btn--order:not(:disabled)::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 45% !important;
    height: 100% !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%) !important;
    transform: translateX(-120%) skewX(-25deg) !important;
    animation: sh-order-shine 2.8s ease-out infinite !important;
    pointer-events: none !important;
}

/* Hover state: intense glow and scale */
body.tb .product-card__ordernow:hover,
body.tb .product-card .product-card__ordernow:hover,
body.tb .product__ordernow:hover,
body.tb .product-mobile-bar__btn--order:hover {
    background: linear-gradient(135deg, #ff6219 0%, #f0440b 50%, #d82b00 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.055) !important;
    box-shadow: 0 8px 24px rgba(255, 69, 0, 0.72), 0 3px 8px rgba(0, 0, 0, 0.15) !important;
    border-color: transparent !important;
}

/* Active click state */
body.tb .product-card__ordernow:active,
body.tb .product-card .product-card__ordernow:active,
body.tb .product__ordernow:active,
body.tb .product-mobile-bar__btn--order:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 8px rgba(230, 57, 0, 0.5) !important;
}


/* ---------- Product page ---------- */
@media (max-width: 991.98px) {
    body.tb .product--layout--standard .product__content { display: block; }
    body.tb .xzoom-container { margin: 0 -15px; }
    body.tb .xzoom-container .original { border: 0 !important; border-radius: 0 !important; }
    body.tb .xzoom-thumbs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 8px;
        padding: 0 15px 4px;
        scrollbar-width: none;
    }
    body.tb .xzoom-thumbs::-webkit-scrollbar { display: none; }
    body.tb .xzoom-thumbs a, body.tb .xzoom-thumbs img { flex: 0 0 64px; width: 64px !important; height: 64px !important; }
}
body.tb .xzoom-thumbs img { border-radius: 4px; object-fit: cover; border: 1px solid var(--sh-line) !important; }
body.tb .xzoom-thumbs .xactive, body.tb .xzoom-thumbs img.xactive { border-color: var(--sh-ink) !important; }
body.tb .zoom-control {
    width: 36px !important;
    height: 36px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .9) !important;
    color: var(--sh-ink) !important;
    box-shadow: 0 1px 4px rgba(21, 23, 43, .15);
}
body.tb .product__name { font-size: clamp(20px, 5vw, 30px) !important; line-height: 1.25 !important; color: var(--sh-ink) !important; }
body.tb .product__info .product-card__new-price { font-size: clamp(22px, 6vw, 28px) !important; }

body.tb .product__actions-item--ordernow .btn,
body.tb .product__ordernow {
    min-height: 50px;
    border-radius: var(--sh-radius) !important;
    background: var(--sh-accent) !important;
    border-color: var(--sh-accent) !important;
    color: #fff !important;
    font-size: 16px !important;
}
body.tb .product__actions-item--addtocart .btn,
body.tb .product__addtocart {
    min-height: 50px;
    border-radius: var(--sh-radius) !important;
    background: #fff !important;
    border: 1px solid var(--sh-ink) !important;
    color: var(--sh-ink) !important;
    font-size: 16px !important;
}

body.tb .product-chat-buttons { gap: 8px !important; }
body.tb .product-chat-btn {
    min-height: 44px;
    border: 1px solid var(--sh-line) !important;
    border-radius: var(--sh-radius) !important;
    background: #fff !important;
    color: var(--sh-ink) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
body.tb .product-chat-btn--messenger i, body.tb .product-chat-btn--messenger svg { color: #0866ff !important; fill: #0866ff; }
body.tb .product-chat-btn--whatsapp i, body.tb .product-chat-btn--whatsapp svg { color: #16a34a !important; fill: #16a34a; }

body.tb .product-delivery-cards-grid {
    display: block !important;
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
}
body.tb .product-delivery-mini-card {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sh-line) !important;
    border-radius: 0 !important;
    background: none !important;
    text-align: left !important;
    flex-direction: row !important;
}
body.tb .product-delivery-mini-card:last-child { border-bottom: 0 !important; }
body.tb .product-delivery-mini-card__area { font-size: 14px !important; color: var(--sh-body) !important; margin: 0 !important; }
body.tb .product-delivery-mini-card__cost { font-size: 14px !important; font-weight: 700 !important; color: var(--sh-ink) !important; }
body.tb .product__footer { border-color: var(--sh-line) !important; border-radius: var(--sh-radius) !important; background: none !important; }

/* Sticky order bar on phones: brand colours, comfortable targets */
body.tb .product-mobile-bar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)) !important;
    background: #fff !important;
    border-top: 1px solid var(--sh-line) !important;
    box-shadow: 0 -6px 18px rgba(21, 23, 43, .06) !important;
}
body.tb .product-mobile-bar__inner { gap: 8px; }
body.tb .product-mobile-bar__btn {
    min-height: 46px;
    border-radius: var(--sh-radius) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}
body.tb .product-mobile-bar__btn--order { background: var(--sh-accent) !important; border-color: var(--sh-accent) !important; color: #fff !important; }
body.tb .product-mobile-bar__btn--cart { background: #fff !important; border: 1px solid var(--sh-ink) !important; color: var(--sh-ink) !important; }
body.tb .product-mobile-bar__action { min-width: 44px; min-height: 44px; color: var(--sh-ink) !important; }

/* ---------- Footer and bottom nav ---------- */
body.tb .mobile-bottom-nav { border-top: 1px solid var(--sh-line); box-shadow: none !important; }
body.tb .mobile-bottom-nav__label { font-size: 11px !important; }

@media (prefers-reduced-motion: reduce) {
    body.tb * { transition: none !important; }
}

/* ---------- Home product sections: pure grid layout (no horizontal carousel/rail) ---------- */
body.tb .home-rail .products-list__body, body.tb .infinite-scroll-section .products-list__body {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 12px !important;
    margin: 0 !important;
    overflow-x: visible !important;
}
body.tb .home-rail .products-list__item, body.tb .infinite-scroll-section .products-list__item {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
}
@media (min-width: 768px) {
    body.tb .home-rail .products-list__body, body.tb .infinite-scroll-section .products-list__body {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}
@media (min-width: 1024px) {
    body.tb .home-rail .products-list__body, body.tb .infinite-scroll-section .products-list__body {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 28px 20px !important;
    }
}

body.tb .home-rail .block-header, body.tb .infinite-scroll-section .block-header { align-items: center; }
body.tb .sh-rail-nav { display: none; gap: 6px; margin-left: 12px; }
@media (min-width: 768px) { body.tb .sh-rail-nav:not([hidden]) { display: inline-flex; } }
body.tb .sh-rail-nav__btn {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--sh-line); border-radius: var(--sh-radius); background: #fff; color: var(--sh-ink);
    cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
body.tb .sh-rail-nav__btn:hover:not(:disabled), body.tb .sh-rail-nav__btn:focus-visible { border-color: var(--sh-accent); color: var(--sh-accent); outline: 0; }
body.tb .sh-rail-nav__btn:disabled { opacity: .35; cursor: default; }

/* ---------- Footer: promises strip, then brand / categories / help / contact ---------- */
body.tb .sh-footer { padding: 0; margin-top: 56px; background: #16130f; color: #b9aea4; font-size: 14px; }
body.tb .sh-footer__promises { border-bottom: 1px solid rgba(255, 255, 255, .08); }
body.tb .sh-footer__promise-list { list-style: none; margin: 0; padding: 20px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
body.tb .sh-footer__promise { display: flex; align-items: center; gap: 12px; color: #e6ddd5; }
body.tb .sh-footer__promise svg { flex: 0 0 auto; color: #ff5722 !important; filter: drop-shadow(0 2px 5px rgba(255, 87, 34, 0.4)); }
body.tb .sh-footer__promise strong { display: block; font-size: 14px; font-weight: 600; color: #fff; }
body.tb .sh-footer__promise small { display: block; font-size: 12.5px; color: #a89d93; }
body.tb .sh-footer__promise a { color: #e6ddd5 !important; }

body.tb .sh-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; padding: 32px 0 28px; }
body.tb .sh-footer__brand { grid-column: 1 / -1; }
body.tb .sh-footer__logo img { height: 38px; width: auto; display: block; padding: 6px 10px; border-radius: 6px; background: #fff; }
body.tb .sh-footer__about { max-width: 42ch; margin: 14px 0 0; line-height: 1.65; color: #b9aea4; }
body.tb .sh-footer__social { display: flex; gap: 10px; margin-top: 16px; }
body.tb .sh-footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body.tb .sh-footer__social a[href*="facebook"]:hover { background: #1877f2 !important; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(24, 119, 242, 0.45); }
body.tb .sh-footer__social a[href*="instagram"]:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(220, 39, 67, 0.45); }
body.tb .sh-footer__social a[href*="wa.me"]:hover, body.tb .sh-footer__social a[href*="whatsapp"]:hover { background: #25d366 !important; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45); }
body.tb .sh-footer__social a[href*="youtube"]:hover { background: #ff0000 !important; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(255, 0, 0, 0.45); }

body.tb .sh-footer__title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff; }
body.tb .sh-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
body.tb .sh-footer__col a { color: #d9cfc6 !important; text-decoration: none; overflow-wrap: anywhere; }
body.tb .sh-footer__col a:hover, body.tb .sh-footer__col a:focus-visible { color: #fff !important; }
body.tb .sh-footer__contact li { display: grid; gap: 1px; line-height: 1.45; overflow-wrap: anywhere; }
body.tb .sh-footer__contact span { font-size: 11.5px; color: #8f857c; }
body.tb .sh-footer__col:last-child { grid-column: 1 / -1; }

body.tb .sh-footer__bottom { padding: 16px 0 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: #8f857c; }
body.tb .sh-footer__bottom a { color: #cfc5bc !important; }

@media (min-width: 768px) {
    body.tb .sh-footer__promise-list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 24px 0; }
    body.tb .sh-footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; padding: 44px 0 36px; }
    body.tb .sh-footer__brand, body.tb .sh-footer__col:last-child { grid-column: auto; }
    body.tb .sh-footer__bottom { flex-direction: row !important; text-align: left !important; }
}
@media (max-width: 991.98px) { body.tb .sh-footer { padding-bottom: 64px; } }

/* ---------- QC: phone comfort ---------- */
@media (max-width: 767.98px) {
    /* 16px stops iOS from zooming into the field on focus */
    body.tb input:not([type=checkbox]):not([type=radio]), body.tb select, body.tb textarea { font-size: 16px !important; }
    body.tb .modern-qty-val { width: 36px !important; }

    /* Tap targets of at least 40px */
    body.tb .filter-sidebar__toggle { min-width: 40px; min-height: 40px; }
    body.tb .pagination .page-link { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    body.tb .sf-cart__remove { min-width: 40px; }
    body.tb .modern-cart-remove { min-width: 36px; min-height: 36px; display: inline-flex !important; align-items: center; justify-content: center; }
    body.tb .modern-terms-checkbox { width: 20px !important; height: 20px !important; }
    body.tb .modern-terms-link { display: inline-block; padding: 6px 0; }
    body.tb .product-mobile-bar__btn { white-space: nowrap; }
}

/* ---------- Toasts (bootstrap-notify): calm card with a brand edge instead of bright alert colours ---------- */
body.tb [data-notify="container"].alert {
    max-width: calc(100vw - 32px);
    padding: 12px 40px 12px 14px !important;
    border: 1px solid var(--sh-line) !important;
    border-left: 3px solid var(--sh-accent) !important;
    border-radius: var(--sh-radius) !important;
    background: #fff !important;
    color: var(--sh-ink) !important;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .12) !important;
    font-size: 14px;
    font-weight: 600;
}
body.tb [data-notify="container"].alert-success { border-left-color: #15803d !important; }
body.tb [data-notify="container"].alert-danger { border-left-color: #b91c1c !important; }
body.tb [data-notify="container"] [data-notify="dismiss"] { color: var(--sh-muted) !important; opacity: 1; }

/* ---------- Small text links get a taller tap area on phones ---------- */
@media (max-width: 767.98px) {
    body.tb .tb-strip__links a, body.tb .block-header .btn-all, body.tb .sf-offer-strip__link { display: inline-block; padding-top: 8px !important; padding-bottom: 8px !important; }
    body.tb .block-header__title a { display: inline-block; padding: 4px 0; }
    body.tb .product__info .badge, body.tb .product .mt-2 > .badge { padding: 7px 10px; }
    body.tb .widget-connect__button { min-height: 40px; }
}

/* ---------- 404 ---------- */
body.tb .sh-notfound__body { max-width: 560px; margin: 0 auto; padding: 48px 0 24px; text-align: center; }
body.tb .sh-notfound__code { margin: 0; font-size: clamp(64px, 18vw, 112px); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--sh-accent); }
body.tb .sh-notfound__title { margin: 12px 0 8px; font-size: clamp(22px, 5vw, 28px); font-weight: 700; color: var(--sh-ink); }
body.tb .sh-notfound__text { margin: 0 auto 24px; max-width: 42ch; color: var(--sh-muted); line-height: 1.6; }
body.tb .sh-notfound__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
body.tb .sh-notfound__actions .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
body.tb .sh-notfound__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--sh-line); }
body.tb .sh-notfound__cats a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius); color: var(--sh-ink) !important; font-size: 14px; }
body.tb .sh-notfound__cats a:hover, body.tb .sh-notfound__cats a:focus-visible { border-color: var(--sh-accent); color: var(--sh-accent) !important; }
