/* =====================================================================
   New design (Admin › Homepage Design, 2026-11-02)
   Loaded only while the new design is on (body.hd2). Header, menu, footer
   and mobile bar: every page. .hd2h: the homepage only.
   Uses the site's theme colour (--theme-color / --theme-color-dark).
   ===================================================================== */

/* ---------------- thin bar above the logo ---------------- */
.hd2-topbar { background: var(--theme-color-dark, var(--theme-color)); color: rgba(255, 255, 255, .9); color: color-mix(in srgb, var(--theme-text, #fff) 90%, transparent); font-size: 13.5px; line-height: 1.45; }
.hd2-topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 7px; padding-bottom: 7px; }
.hd2-topbar a { color: var(--theme-text, #fff) !important; text-decoration: none; }
.hd2-topbar-phone { font-weight: 700; margin-left: 4px; white-space: nowrap; }
.hd2-topbar-links { display: flex; gap: 18px; flex: none; }
.hd2-topbar-links a { opacity: .9; }
.hd2-topbar-links a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 767px) {
    .hd2-topbar { font-size: 13px; line-height: 1.35; }
    .hd2-topbar-in { justify-content: center; text-align: center; padding: 5px 10px; }
    .hd2-topbar-links, .hd2-topbar-desk { display: none !important; }
    /* while scrolling the thin bar slides up out of view (the ☰-logo-cart row stays) */
    body.hd2 header#navbar_top.menu-stuck { transform: translateY(calc(-1 * var(--hd2-tb, 0px))); }
}

/* ---------------- mobile: slimmer header, search, bottom bar, WhatsApp ---------------- */
@media (max-width: 767px) {
    body.hd2 .mobile-logo { height: 62px; }
    body.hd2 .menu-logo img { width: auto; max-width: 175px; height: 40px; object-fit: contain; }
    body.hd2 .menu-bar i { font-size: 23px; }
    body.hd2 .menu-bag .margin-shopping i { font-size: 21px; }
    body.hd2 .menu-bag .margin-shopping span { height: 17px; min-width: 17px; padding: 0 5px; font-size: 10.5px; line-height: 17px; top: -8px; }
    body.hd2 .mobile-search { padding: 0 12px 9px; }
    body.hd2 .mobile-search form { height: 38px; border-radius: 9px; }
    body.hd2 .mobile-search form input { font-size: 14.5px; padding-left: 12px; }
    body.hd2 .mobile-search form button { flex-basis: 48px; width: 48px; }
    body.hd2 .mobile-search form button svg { width: 15px; height: 15px; }
    /* stuck at the top while scrolling: a thin row */
    body.hd2 header#navbar_top.menu-stuck .mobile-logo { height: 52px; }
    body.hd2 header#navbar_top.menu-stuck .menu-logo img { height: 32px; }
    body.hd2 header#navbar_top.menu-stuck .menu-bar i { font-size: 21px; }
    body.hd2 header#navbar_top.menu-stuck .menu-bag .margin-shopping i { font-size: 19px; }
    body.hd2 header#navbar_top.menu-stuck .mobile-header { box-shadow: 0 3px 12px rgba(16, 24, 40, .08); }
    /* WhatsApp: a little smaller */
    body.hd2 .whatapp { width: 36px !important; height: 36px !important; right: 10px !important; }
    body.hd2 .whatapp i { font-size: 32px !important; }
}

/* ---------------- menu bar: white ---------------- */
body.hd2-menu-white .menu-area { background: #fff; border-top: 0; border-bottom: 1px solid var(--mx-line, #e7ebf0); box-shadow: none; }
body.hd2-menu-white li.cat_bar > a { background-color: transparent; color: var(--mx-text, #1f2937) !important; text-transform: none; }
body.hd2-menu-white .catagory_menu .cat_bar > a:hover { background-color: transparent !important; color: var(--theme-color) !important; }
body.hd2-menu-white .catagory_menu > ul > li.cat_bar > a::after { background: var(--theme-color); }
body.hd2-menu-white .menu-cart { color: var(--theme-color) !important; }
body.hd2-menu-white .menu-cart .menu-cart-count { background: var(--theme-color); color: var(--theme-text, #fff); }
body.hd2-menu-white header#navbar_top.menu-stuck .menu-area { box-shadow: 0 4px 14px rgba(16, 24, 40, .07); }
/* "হট ডিলস" at the right end of the menu */
.catagory_menu > ul > li.hd2-hotlink { margin-left: auto; }
.catagory_menu > ul > li.hd2-hotlink > a { font-weight: 600 !important; }
.catagory_menu > ul > li.hd2-hotlink > a i { font-size: 14px; }
body.hd2-menu-white .catagory_menu > ul > li.hd2-hotlink > a { color: #e5383b !important; }
body.hd2-menu-white .catagory_menu > ul > li.hd2-hotlink > a::after { background: #e5383b; }
body.hd2-menu-color .catagory_menu > ul > li.hd2-hotlink > a i { color: #ffd34d; }

/* ---------------- footer: dark ---------------- */
body.hd2-foot-dark footer .footer-top { background-color: var(--theme-color-dark, var(--theme-color)); background-image: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)); border-top: 0; }
body.hd2-foot-dark footer .footer-bottom { background-color: var(--theme-color-dark, var(--theme-color)); background-image: linear-gradient(rgba(0, 0, 0, .52), rgba(0, 0, 0, .52)); border-top: 1px solid rgba(255, 255, 255, .08); }
body.hd2-foot-dark footer .copyright p, body.hd2-foot-dark footer .copyright p a { color: rgba(255, 255, 255, .62) !important; }
body.hd2-foot-dark footer .footer-about > a:first-child { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; line-height: 0; background: #fff; border-radius: 12px; padding: 12px 16px; }
body.hd2-foot-dark footer .footer-about > a:first-child img { display: block; margin: 0 !important; }
@media (max-width: 767px) {
    /* phone: the footer column is narrow, so less padding round the white box and a bigger logo */
    body.hd2-foot-dark footer .footer-about { padding-left: 2px; padding-right: 2px; }
    body.hd2-foot-dark footer .footer-about > a:first-child { display: flex; width: 100%; max-width: 160px; margin: 0 auto; padding: 7px 8px; border-radius: 10px; }
    body.hd2-foot-dark footer .footer-about > a:first-child img { width: 100%; max-width: 144px; height: auto; }
}
body.hd2-foot-dark footer .footer-about p { color: rgba(255, 255, 255, .78) !important; }
body.hd2-foot-dark footer .footer-hotlint { color: #fff !important; }
body.hd2-foot-dark footer .footer-menu ul li.title a, body.hd2-foot-dark footer .footer-aboutus .fau-title { color: #fff !important; }
body.hd2-foot-dark footer .footer-menu ul li a { color: rgba(255, 255, 255, .74) !important; }
body.hd2-foot-dark footer .footer-menu ul li:not(.title) a:hover { color: #fff !important; }
body.hd2-foot-dark footer .social_link .mobile-social-link { background: rgba(255, 255, 255, .1); color: #fff !important; }
body.hd2-foot-dark footer .footer-menu ul.social_link li a.mobile-social-link:hover { background: #fff; color: var(--theme-color) !important; }
body.hd2-foot-dark footer .footer-menu ul.social_link li a.mobile-social-link:hover i { color: var(--theme-color) !important; }
body.hd2-foot-dark footer .footer-aboutus .fau-text, body.hd2-foot-dark footer .footer-aboutus .fau-text p { color: rgba(255, 255, 255, .78) !important; }
body.hd2-foot-dark footer .footer-aboutus .fau-text a { color: #fff !important; }
@media (max-width: 767px) {
    body.hd2-foot-dark footer .footer-aboutus { border-top-color: rgba(255, 255, 255, .12); }
}

/* ---------------- mobile bottom bar: flat ---------------- */
@media (max-width: 767px) {
    body.hd2-nav-flat .footer_nav { padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mx-line, #e7ebf0); box-shadow: 0 -4px 16px rgba(16, 24, 40, .06); }
    body.hd2-nav-flat .footer_nav ul { margin: 0; }
    body.hd2-nav-flat .footer_nav ul li a { display: block; color: #4b5563; font-size: 11.5px; font-weight: 500; line-height: 1.25; text-decoration: none; padding: 2px 0; }
    body.hd2-nav-flat .footer_nav ul li i { font-size: 17px; line-height: 1.35; }
    body.hd2-nav-flat .whatapp { bottom: 62px !important; }
    body.hd2-nav-flat li.mobile_home { border: 0; margin-top: 0; background: transparent; padding-top: 0; border-radius: 0; width: auto; height: auto; }
    body.hd2-nav-flat li.mobile_home a { color: var(--theme-color); font-weight: 600; }
}

/* =====================================================================
   homepage
   ===================================================================== */
body.hd2-home.hd2-bg-white { background: #fff; }
body.hd2-home.hd2-bg-grey { background: var(--mx-bg, #f4f6f9); }
.hd2h { padding-bottom: 48px; }
.hd2-sec { padding-top: 44px; }
.hd2-bg-grey .hd2-sec { padding-top: 22px; }
.hd2-bg-grey .hd2-panel { background: #fff; border: 1px solid var(--mx-line, #e7ebf0); border-radius: 18px; padding: 20px; }
.hd2-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hd2-head-l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.hd2-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--mx-text, #1f2937); }
.hd2-more { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 600; font-size: 14.5px; color: var(--theme-color) !important; text-decoration: none; white-space: nowrap; }
.hd2-more:hover { text-decoration: underline; }
.hd2-more i { font-size: 12px; }

/* ---------------- slider ---------------- */
.hd2-hero-box { padding-top: 20px; }
.hd2-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hd2-hero-main { position: relative; min-width: 0; }
.hd2-hero-box .hd2-hero-main { border-radius: 18px; overflow: hidden; }
.hd2-hero-main .slider-item { width: 100%; height: auto !important; margin: 0 !important; aspect-ratio: var(--hd2-ratio, 1976 / 688); overflow: hidden; background: #f3f5f7; }
.hd2-hero-main .slider-item a { display: block; width: 100%; height: 100%; }
.hd2-hero-main .slider-item img { width: 100% !important; height: 100% !important; object-fit: var(--hd2-fit, cover); display: block; }
.hd2-hero-main .owl-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; align-items: center; gap: 6px; line-height: 0; }
.hd2-hero-main .owl-dots .owl-dot { margin: 0; padding: 4px 0 !important; background: none; border: 0; }
.hd2-hero-main .owl-dots .owl-dot span { display: block; width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); transition: width .3s ease, background-color .3s ease; }
.hd2-hero-main .owl-dots .owl-dot.active span { width: 24px; background: #fff; }
.hd2-hero-main .owl-nav { margin: 0; }
.hd2-hero-main .owl-nav button.owl-prev, .hd2-hero-main .owl-nav button.owl-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; margin: 0 !important; width: 42px; height: 42px; border-radius: 50% !important;
    display: flex !important; align-items: center; justify-content: center; background: rgba(255, 255, 255, .92) !important; color: #1b1f24 !important;
    font-size: 16px !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); opacity: 0; transition: opacity .2s;
}
.hd2-hero-main .owl-nav button.owl-prev { left: 14px; }
.hd2-hero-main .owl-nav button.owl-next { right: 14px; }
.hd2-hero-main:hover .owl-nav button.owl-prev, .hd2-hero-main:hover .owl-nav button.owl-next { opacity: 1; }
.hd2-hero-main .owl-nav button i:hover { color: inherit !important; }
@media (hover: none) { .hd2-hero-main .owl-nav { display: none; } }
.hd2-hero-side { display: none; }
/* the slider sets the height; the two cards share it (they never make the row taller) */
@media (min-width: 992px) {
    .hd2-hero-grid.has-side { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); }
    .hd2-hero-grid.has-side .hd2-hero-side { display: block; position: relative; min-height: 0; }
    .hd2-hero-grid.has-side .hd2-hero-side-in { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .hd2-hero-grid.has-side .hd2-hero-side-in > .hd2-card:only-child { grid-row: 1 / -1; }
}
/* no slider pictures: the two cards side by side */
.hd2-hero-grid.no-main .hd2-hero-side { display: block; }
.hd2-hero-grid.no-main .hd2-hero-side-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hd2-hero-grid.no-main .hd2-card { min-height: 180px; }

/* ---------------- offer cards (slider side / middle) ---------------- */
.hd2-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; border-radius: 18px; overflow: hidden; padding: 18px 22px; color: #1b1f24; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
a.hd2-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16, 24, 40, .12); }
.hd2-card-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.hd2-card-label { font-size: 13px; font-weight: 600; color: var(--theme-color); }
.hd2-card-title { font-size: 21px; font-weight: 700; line-height: 1.25; color: #141821; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hd2-card-sub { font-size: 14px; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hd2-card-btn { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--theme-color); display: inline-flex; align-items: center; gap: 6px; }
.hd2-card-btn i { font-size: 12px; }
.hd2-card-img { flex: none; width: auto; height: auto; max-width: 42%; max-height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.hd2-card.is-dark, .hd2-card.is-dark .hd2-card-title, .hd2-card.is-dark .hd2-card-label, .hd2-card.is-dark .hd2-card-btn { color: #fff; }
.hd2-card.is-dark .hd2-card-sub { color: rgba(255, 255, 255, .82); }
.hd2-card-side { padding: 14px 20px; }
.hd2-card-side .hd2-card-img { max-width: 150px; }
.hd2-card-side .hd2-card-title { font-size: clamp(16px, 1.45vw, 21px); }
.hd2-card-promo { min-height: 180px; padding: 24px 30px; }
.hd2-card-promo .hd2-card-title { font-size: 25px; }
.hd2-card-promo .hd2-card-img { width: 34%; max-width: 160px; }
.hd2-promo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hd2-promo.hd2-promo-1 { grid-template-columns: minmax(0, 1fr); }

/* ---------------- trust row ---------------- */
.hd2-trust-sec { padding-top: 18px; }
.hd2-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hd2-trust-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hd2-trust-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hd2-trust-1 { grid-template-columns: minmax(0, 1fr); }
.hd2-trust-item { display: flex; align-items: center; gap: 13px; min-width: 0; border: 1px solid var(--mx-line, #e7ebf0); border-radius: 14px; padding: 14px 16px; background: #fff; }
.hd2-trust-ic { position: relative; flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--theme-color); }
.hd2-trust-ic::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: .1; }
.hd2-trust-ic svg { position: relative; width: 22px; height: 22px; }
.hd2-trust-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.hd2-trust-txt b { font-size: 15px; font-weight: 600; color: var(--mx-text, #1f2937); }
.hd2-trust-txt span { font-size: 13px; color: var(--mx-muted, #6b7280); }

/* ---------------- top categories ---------------- */
.hd2-topcat .topcategory.owl-carousel { position: relative; }
.hd2-topcat .topcategory .owl-nav { margin: 0; }
.hd2-topcat .topcategory .owl-nav button.owl-prev, .hd2-topcat .topcategory .owl-nav button.owl-next {
    position: absolute; top: 40%; transform: translateY(-50%); z-index: 3; margin: 0 !important;
    width: 40px; height: 40px; border-radius: 50% !important; display: flex !important; align-items: center; justify-content: center;
    background: #fff !important; border: 1px solid #e5e7eb !important; box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
    color: var(--theme-color) !important; font-size: 16px !important; line-height: 1; transition: background .2s, color .2s;
}
.hd2-topcat .topcategory .owl-nav button.owl-prev { left: -14px; }
.hd2-topcat .topcategory .owl-nav button.owl-next { right: -14px; }
.hd2-topcat .topcategory .owl-nav button.owl-prev:hover, .hd2-topcat .topcategory .owl-nav button.owl-next:hover { background: var(--theme-color) !important; color: var(--theme-text, #fff) !important; }
.hd2-topcat .topcategory .owl-nav button.disabled { opacity: .35; }
.hd2-topcat-circle .topcategory .cat_item { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; align-items: center; }
.hd2-topcat-circle .topcategory .cat_item:hover { transform: none; box-shadow: none !important; }
.hd2-topcat-circle .topcategory .cat_img { width: 100%; max-width: 132px; margin: 0 auto; border-radius: 50%; aspect-ratio: 1 / 1; border: 1px solid var(--mx-line, #e7ebf0); background: #f3f5f7; transition: border-color .2s; }
.hd2-topcat-circle .topcategory .cat_item:hover .cat_img { border-color: var(--theme-color); }
.hd2-topcat-circle .topcategory .cat_name { min-height: 2.9em; padding-top: 8px; }
.hd2-topcat-circle .topcategory .cat_name a { font-size: 14.5px; font-weight: 600; text-align: center; }
.hd2-topcat-circle .topcategory .owl-item { padding: 4px 2px 6px !important; }

/* ---------------- hot sell (the classic block, in the new look) ---------------- */
.hd2-hotsell .hs-wrap { padding: 44px 0 0 !important; margin: 0 !important; background: transparent !important; }
.hd2-hotsell .hs-frame { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
.hd2-hotsell .hs-title { position: static; transform: none; max-width: none; margin: 0 0 18px; padding: 0; background: none; box-shadow: none !important; color: var(--mx-text, #1f2937); font-size: 24px; font-weight: 700; white-space: normal; }
.hd2-hotsell .hs-title i { color: #e5383b; }
.hd2-bg-grey .hd2-hotsell .hs-wrap { padding-top: 22px !important; }
.hd2-bg-grey .hd2-hotsell .hs-frame { background: #fff !important; border: 1px solid var(--mx-line, #e7ebf0) !important; border-radius: 18px !important; padding: 20px !important; }

/* ---------------- hot deal ---------------- */
.hd2-deal .offer_timer .syotimer__body { display: flex; gap: 5px; }
.hd2-deal .offer_timer .syotimer-cell { min-width: 36px; text-align: center; background: var(--theme-color); color: var(--theme-text, #fff); border-radius: 8px; font-size: 14px; font-weight: 700; padding: 6px 8px; line-height: 1.3; }
.hd2-deal .offer_timer .syotimer-cell__unit { display: none; }
.hd2-deal-color { background: var(--theme-color) !important; border-radius: 20px !important; padding: 22px 22px 14px !important; border: 0 !important; }
.hd2-deal-color .hd2-title, .hd2-deal-color .hd2-more { color: var(--theme-text, #fff) !important; }
.hd2-deal-color .offer_timer .syotimer-cell { background: #fff; color: var(--theme-color); }
.hd2-deal .hotdeal_slider .owl-item { padding: 2px 2px 8px; }
.hd2-deal .hotdeal_slider .product_item:hover { transform: none; }

/* ---------------- product grids ---------------- */
.hd2-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hd2-grid > .product_item { margin: 0 !important; }
@media (min-width: 992px) { .hd2-grid > .hp-extra { display: none !important; } }
@media (min-width: 768px) and (max-width: 991px) { .hd2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------- tablet / mobile ---------------- */
@media (max-width: 991px) {
    .hd2-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hd2-trust-1 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .hd2h { padding-bottom: 28px; }
    .hd2-sec, .hd2-hotsell .hs-wrap { padding-top: 26px !important; }
    .hd2-bg-grey .hd2-sec, .hd2-bg-grey .hd2-hotsell .hs-wrap { padding-top: 14px !important; }
    .hd2-bg-grey .hd2-panel, .hd2-bg-grey .hd2-hotsell .hs-frame { border-radius: 14px; padding: 14px 12px !important; }
    .hd2-head { margin-bottom: 12px; }
    .hd2-title, .hd2-hotsell .hs-title { font-size: 19px; }
    .hd2-hotsell .hs-title { margin-bottom: 12px; }
    .hd2-more { font-size: 13.5px; }
    .hd2-hero-box { padding-top: 12px; }
    .hd2-hero-box .hd2-hero-main { border-radius: 14px; }
    .hd2-hero-grid.no-main .hd2-hero-side-in { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .hd2-trust-sec { padding-top: 12px; }
    .hd2-trust { gap: 8px; }
    .hd2-trust-item { gap: 9px; padding: 10px; border-radius: 12px; }
    .hd2-trust-ic { width: 36px; height: 36px; border-radius: 10px; }
    .hd2-trust-ic svg { width: 18px; height: 18px; }
    .hd2-trust-txt b { font-size: 13px; }
    .hd2-trust-txt span { font-size: 11.5px; }
    .hd2-topcat .topcategory .owl-nav button.owl-prev, .hd2-topcat .topcategory .owl-nav button.owl-next { width: 30px; height: 30px; font-size: 13px !important; }
    .hd2-topcat .topcategory .owl-nav button.owl-prev { left: -6px; }
    .hd2-topcat .topcategory .owl-nav button.owl-next { right: -6px; }
    .hd2-topcat-circle .topcategory .cat_name a { font-size: 12.5px; }
    .hd2-deal-color { border-radius: 16px !important; padding: 14px 10px 6px !important; }
    .hd2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hd2-promo { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .hd2-card { border-radius: 14px; padding: 14px 16px; }
    .hd2-card-promo { min-height: 120px; padding: 16px 18px; }
    .hd2-card-title, .hd2-card-promo .hd2-card-title { font-size: 18px; }
    .hd2-card-promo .hd2-card-img { width: 30%; max-width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
    a.hd2-card:hover { transform: none; }
}
/* smaller computers: the side cards a little tighter, the menu's "হট ডিলস" link only where there is room */
@media (min-width: 992px) and (max-width: 1199px) {
    .hd2-card-side { padding: 10px 16px; gap: 10px; }
    .hd2-card-side .hd2-card-label { font-size: 12px; }
    .hd2-card-side .hd2-card-sub { display: none; }
    .hd2-card-side .hd2-card-btn { margin-top: 2px; font-size: 13px; }
}
@media (max-width: 1199px) { .catagory_menu > ul > li.hd2-hotlink { display: none; } }

/* product cards: "অর্ডার করুন" as an outline button that fills on hover (Admin › Homepage Design) */
.hd2-btn-outline .hd2-grid .product_item .pro_btn button,
.hd2-btn-outline .hd2-grid .product_item .pro_btn .addcartbutton {
    background: #fff !important; color: var(--theme-color) !important; border: 1.5px solid var(--theme-color) !important; box-shadow: none !important;
    transition: background-color .2s ease, color .2s ease;
}
.hd2-btn-outline .hd2-grid .product_item .pro_btn button:hover,
.hd2-btn-outline .hd2-grid .product_item .pro_btn .addcartbutton:hover,
.hd2-btn-outline .hd2-grid .product_item:hover .pro_btn button,
.hd2-btn-outline .hd2-grid .product_item:hover .pro_btn .addcartbutton,
.hd2-btn-outline .hd2-grid .product_item .pro_btn button:focus-visible,
.hd2-btn-outline .hd2-grid .product_item .pro_btn .addcartbutton:focus-visible {
    background: var(--theme-color) !important; color: var(--theme-text, #fff) !important;
}

/* hot sell: smaller variation choices, slimmer cart / order buttons */
.hd2-hotsell .hs-group-label { font-size: 12px; margin-bottom: 4px; }
.hd2-hotsell .hs-opts { gap: 5px; }
.hd2-hotsell .hs-opt span { min-height: 24px; padding: 1px 8px; font-size: 11.5px; border-radius: 6px; gap: 5px; }
.hd2-hotsell .hs-opt span img { width: 18px; height: 18px; }
.hd2-hotsell .hs-opt span i { width: 12px; height: 12px; }
.hd2-hotsell .hs-btns { gap: 8px; }
.hd2-hotsell .hs-btn { min-height: 34px; padding: 4px 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.hd2-hotsell .hs-group { margin-bottom: 8px; }
@media (max-width: 767px) {
    .hd2-hotsell .hs-opt span { min-height: 24px; padding: 1px 7px; font-size: 11px; }
    .hd2-hotsell .hs-btn { min-height: 32px; font-size: 12.5px; }
}

/* homepage "অর্ডার করুন" pop-up: choose the variation, then checkout */
html.hd2-qo-open, html.hd2-qo-open body { overflow: hidden; }
.hd2-qo-modal { position: fixed; inset: 0; z-index: 1000001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hd2-qo-modal[hidden] { display: none; }
.hd2-qo-back { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.hd2-qo-box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); outline: none; animation: hd2QoIn .18s ease-out; }
@keyframes hd2QoIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hd2-qo-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f4f8; color: #374151; display: grid; place-items: center; font-size: 16px; cursor: pointer; }
.hd2-qo-x:hover { background: #e5e9f0; }
.hd2-qo-load { padding: 40px 0; text-align: center; color: var(--mx-muted, #6b7280); }
.hd2-qo-top { display: flex; gap: 14px; align-items: center; padding-right: 34px; margin-bottom: 14px; }
.hd2-qo-img { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: #f3f5f7; border: 1px solid var(--mx-line, #e7ebf0); }
.hd2-qo-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hd2-qo-name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--mx-text, #1f2937); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hd2-qo-price b { font-size: 20px; color: var(--theme-color); }
.hd2-qo-price del { color: #9aa4b2; font-size: 13.5px; margin-left: 6px; }
.hd2-qo-link { font-size: 13px; font-weight: 600; color: var(--theme-color) !important; text-decoration: none; }
.hd2-qo-link i { font-size: 11px; }
.hd2-qo-group { margin-bottom: 12px; }
.hd2-qo-glabel { font-size: 13px; color: #555; margin-bottom: 6px; }
.hd2-qo-glabel b { color: #222; font-weight: 600; }
.hd2-qo-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.hd2-qo-opt { position: relative; margin: 0; cursor: pointer; }
.hd2-qo-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.hd2-qo-opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1px solid #d3d6db; border-radius: 8px; background: #fff; font-size: 13.5px; color: #333; line-height: 1.2; transition: border-color .15s, box-shadow .15s; }
.hd2-qo-opt span img { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; }
.hd2-qo-opt span i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); display: inline-block; }
.hd2-qo-opt:hover span { border-color: var(--theme-color); }
.hd2-qo-opt input:checked + span { border-color: var(--theme-color); box-shadow: 0 0 0 1px var(--theme-color); font-weight: 600; }
.hd2-qo-opt input:focus-visible + span { outline: 2px solid var(--theme-color); outline-offset: 2px; }
.hd2-qo-opt input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.hd2-qo-need .hd2-qo-opt span { border-color: #dc3545; }
.hd2-qo-msg { min-height: 20px; color: #dc3545; font-size: 13px; margin: 2px 0 8px; }
.hd2-qo-go { width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--theme-color); color: var(--theme-text, #fff); font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.hd2-qo-go:hover { filter: brightness(.94); }
.hd2-qo-go:disabled { opacity: .7; cursor: wait; }
@media (max-width: 575px) {
    .hd2-qo-modal { align-items: flex-end; padding: 0; }
    .hd2-qo-box { max-width: none; border-radius: 18px 18px 0 0; max-height: 88vh; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); animation-name: hd2QoUp; }
    @keyframes hd2QoUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
    .hd2-qo-img { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) { .hd2-qo-box { animation: none; } }
/* floating buttons (WhatsApp, go-top, colour dots) stay out of the way while the pop-up is open */
html.hd2-qo-open .whatapp, html.hd2-qo-open .scrolltop, html.hd2-qo-open .theme-color-switcher { display: none !important; }

/* mobile (2026-11-02): a little bigger text on product cards and sections, more room under the picture */
@media (max-width: 767px) {
    body.hd2 .product_item .pro_des { padding-top: 13px; }
    body.hd2 .product_item .pro_name { min-height: 2.8em; }
    body.hd2 .product_item .pro_name a { font-size: 14.5px !important; line-height: 1.4; }
    body.hd2 .product_item .pro_price p { font-size: 16px !important; }
    body.hd2 .product_item .pro_price del { font-size: 13px !important; }
    body.hd2 .product_item .pro_btn { margin-top: 10px; }
    body.hd2 .product_item .pro_btn button, body.hd2 .product_item .pro_btn .addcartbutton { height: 39px; font-size: 14.5px !important; }
    body.hd2 .product_item_inner .sale-badge-text p, body.hd2 .product_item_inner span.sale-badge-text { font-size: 12px !important; }
    .hd2-title, .hd2-hotsell .hs-title { font-size: 20px; }
    .hd2-more { font-size: 14.5px; }
    .hd2-trust-txt b { font-size: 14px; }
    .hd2-trust-txt span { font-size: 12.5px; }
    .hd2-topcat-circle .topcategory .cat_name a { font-size: 12.5px; word-break: normal; overflow-wrap: normal; -webkit-line-clamp: 3; }
    .hd2-card-title, .hd2-card-promo .hd2-card-title { font-size: 19px; }
    .hd2-card-sub, .hd2-card-label { font-size: 14px; }
    .hd2-hero-main .slider-item { aspect-ratio: var(--hd2-ratio-m, var(--hd2-ratio, 1976 / 688)); }
}
