/* Theme "গ্যাজেট": a gadget shop in black and orange. Loaded after theme-market.css when the design is chosen; the
   body has both .theme-market (shared header, footer, product, cart and checkout pages) and .theme-gadget.
   The main colours come from the --mk-* variables, so Admin → Homepage → রং works here too. */

body.theme-gadget{--gx-ink:#111820;--gx-soft:#f6f7f9;--gx-line:#e6e9ed;--mk-line:#e6e9ed;--mk-lime:#ffe3d6;--mk-red:#ff4d0b;--mk-green:#ff4d0b;--mk-radius:10px;font-family:Inter,Roboto,"Noto Sans Bengali","Hind Siliguri",system-ui,sans-serif}
.theme-gadget .wrap{max-width:1320px}

/* ---------- Header and menu ---------- */
.theme-gadget header{border-bottom:1px solid var(--gx-line);box-shadow:0 3px 12px #141d2706}
.theme-gadget .head .search{flex-basis:540px;max-width:540px;height:42px;background:#fff;border:1px solid #dfe3e8;border-radius:8px}
.theme-gadget .head .search input{height:40px;padding-right:56px}
.theme-gadget .head .search button{right:0;top:0;width:46px;height:40px;border-radius:0 7px 7px 0;transform:none;background:var(--mk-accent);color:#fff;display:grid;place-items:center}
.theme-gadget .head .search button svg{color:#fff}
.theme-gadget .quick em{background:var(--mk-accent)}
.theme-gadget #main-nav .wrap{min-height:44px}
.theme-gadget #main-nav a{margin-right:26px;padding:13px 0;font-size:13.5px}
.theme-gadget #main-nav a:first-child{margin-right:22px;padding:13px 16px;background:var(--mk-accent);color:#fff}
.theme-gadget #main-nav a:first-child:hover{color:#fff;background:var(--mk-accent-dark)}
.theme-gadget #main-nav a:hover,.theme-gadget #main-nav a.active:not(:first-child){color:#ff9a63}

/* ---------- Big dark banner ---------- */
.gx-hero{background:radial-gradient(circle at 72% 45%,#3a3027 0%,#1b1f26 42%,#111820 100%);color:#fff;overflow:hidden}
.gx-hero-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:20px;min-height:340px}
.gx-hero-copy{padding:36px 0}
.gx-hero h1{margin:0 0 14px;color:#fff;font-size:clamp(30px,3.6vw,48px);font-weight:800;line-height:1.12;letter-spacing:-.5px}
.gx-hero h1 span{color:var(--mk-accent)}
.gx-hero p{max-width:470px;margin:0 0 22px;color:#d6dbe1;font-size:15px;line-height:1.7}
.gx-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:30px;background:var(--mk-accent);color:#fff!important;font-weight:700;text-decoration:none;box-shadow:0 10px 22px color-mix(in srgb,var(--mk-accent) 35%,transparent)}
.gx-btn:hover{background:var(--mk-accent-dark)}
.gx-hero-art{position:relative;height:320px}
.gx-hero-art img{position:absolute;bottom:14px;width:52%;border-radius:18px;box-shadow:0 22px 40px #0008;object-fit:cover}
.gx-hero-art img.n1{left:0;width:40%;bottom:30px;transform:rotate(-4deg)}
.gx-hero-art img.n2{left:26%;width:52%;z-index:2}
.gx-hero-art img.n3{right:0;width:36%;bottom:44px;transform:rotate(5deg)}
.gx-hero-art.one img{left:0;right:0;width:100%;height:280px;bottom:20px;transform:none}
.gx-script{position:absolute;right:2%;top:6%;z-index:3;color:#fff;font:italic 600 22px/1.2 Georgia,serif;text-align:right;transform:rotate(-6deg);opacity:.9}

/* ---------- Promises ---------- */
.gx-promise-wrap{border-bottom:1px solid var(--gx-line);background:#fff}
.gx-promise{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding-top:18px;padding-bottom:18px}
.gx-promise>div{display:flex;align-items:center;gap:12px;color:var(--gx-ink)}
.gx-promise svg{flex:none;color:var(--gx-ink)}
.gx-promise b{display:block;font-size:14px}
.gx-promise small{display:block;color:var(--mk-text);font-size:12px}

/* ---------- Sections ---------- */
.gx-section{padding-top:26px;padding-bottom:4px}
.gx-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.gx-head h2{display:flex;align-items:center;gap:8px;margin:0;color:var(--gx-ink);font-size:21px;font-weight:800}
.gx-head a{display:inline-flex;align-items:center;gap:6px;padding:7px 16px;border:1px solid #dfe3e8;border-radius:20px;color:var(--gx-ink);font-size:13px;font-weight:600;text-decoration:none}
.gx-head a:hover{border-color:var(--mk-accent);color:var(--mk-accent)}

/* round categories */
.gx-cats{display:flex;justify-content:space-between;gap:12px;overflow-x:auto;scrollbar-width:none;padding:4px 2px}
.gx-cats::-webkit-scrollbar{display:none}
.gx-cat{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:8px;width:104px;color:var(--gx-ink);text-decoration:none;text-align:center}
.gx-cat span{display:grid;place-items:center;width:88px;height:88px;overflow:hidden;border-radius:50%;background:var(--gx-soft);border:1px solid var(--gx-line);transition:transform .2s,border-color .2s}
.gx-cat img{width:100%;height:100%;object-fit:cover}
.gx-cat:hover span{transform:translateY(-3px);border-color:var(--mk-accent)}
.gx-cat b{font-size:13px;font-weight:600;line-height:1.3}

/* two offer banners */
.gx-promos{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:26px}
.gx-promo{position:relative;display:flex;align-items:center;min-height:170px;overflow:hidden;padding:22px 26px;border-radius:14px;background:linear-gradient(110deg,#ffe8d8,#fff5ee);text-decoration:none}
.gx-promo.dark{background:linear-gradient(110deg,#121821,#28303b)}
.gx-promo img{position:absolute;right:0;top:0;width:46%;height:100%;object-fit:cover;-webkit-mask-image:linear-gradient(90deg,transparent,#000 30%);mask-image:linear-gradient(90deg,transparent,#000 30%)}
.gx-promo-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:58%}
.gx-promo-copy strong{color:var(--gx-ink);font-size:22px;font-weight:800;line-height:1.2}
.gx-promo.dark .gx-promo-copy strong{color:#fff}
.gx-promo-copy em{color:var(--mk-accent);font-size:26px;font-style:normal;font-weight:800;line-height:1.2}
.gx-promo-copy small{color:#5d6670;font-size:13px}
.gx-promo.dark .gx-promo-copy small{color:#c3cad2}
.gx-promo-copy i{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:8px 16px;border-radius:20px;background:var(--gx-ink);color:#fff;font-size:13px;font-style:normal;font-weight:700}
.gx-promo.dark .gx-promo-copy i{background:var(--mk-accent)}

/* product cards: same size whatever the picture */
.gx-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.gx-card{display:flex;flex-direction:column;min-width:0;padding:10px;border:1px solid var(--gx-line);border-radius:12px;background:#fff;transition:box-shadow .15s,transform .15s}
.gx-card:hover{box-shadow:0 10px 24px #1522311a;transform:translateY(-2px)}
.gx-img{position:relative;display:block;aspect-ratio:1/1;margin-bottom:10px;overflow:hidden;border-radius:9px;background:var(--gx-soft)}
.gx-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gx-off{position:absolute;left:8px;top:8px;padding:3px 8px;border-radius:5px;background:var(--mk-accent);color:#fff;font-size:12px;font-style:normal;font-weight:800}
.gx-out{position:absolute;right:8px;bottom:8px;padding:2px 8px;border-radius:5px;background:#6b7280;color:#fff;font-size:11px;font-style:normal}
.gx-name{display:block;overflow:hidden;color:var(--gx-ink);font-size:14.5px;font-weight:700;line-height:1.35;text-decoration:none;white-space:nowrap;text-overflow:ellipsis}
.gx-line{display:block;min-height:1.4em;margin:2px 0 6px;overflow:hidden;color:#727b85;font-size:12px;white-space:nowrap;text-overflow:ellipsis}
.gx-price{display:flex;align-items:baseline;gap:8px;min-height:24px;margin-bottom:10px}
.gx-price strong{color:var(--mk-accent);font-size:17px;font-weight:800}
.gx-price del{color:#9aa2ab;font-size:13px}
.gx-card form{margin-top:auto}
.gx-add{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:38px;border:0;border-radius:7px;background:var(--mk-accent);color:#fff;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
.gx-add:hover{background:var(--mk-accent-dark)}
.gx-add.off{margin-top:auto;background:#d6d9de;color:#6b7280;cursor:not-allowed}

/* reviews */
.gx-reviews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.gx-review{margin:0;padding:18px;border:1px solid var(--gx-line);border-radius:12px;background:#fff}
.gx-stars{color:#ffb020;letter-spacing:2px}
.gx-stars i{color:#dfe3e8;font-style:normal}
.gx-review blockquote{margin:8px 0 10px;color:#4b535c;font-size:14px;line-height:1.7}
.gx-review b{display:block;color:var(--gx-ink)}
.gx-review small{color:#727b85}

/* ---------- Product list and the other pages: orange, not green ---------- */
.theme-gadget .product .pimg span{background:var(--mk-accent);color:#fff}
.theme-gadget .shop-page .save{background:#ffe3d6;color:#c2410c}
.theme-gadget .stars{color:#ffb020}

/* ---------- Footer: dark ---------- */
.theme-gadget footer#footer{background:#111820}
.theme-gadget footer#footer .mk-foot p,.theme-gadget footer#footer .mk-foot li,.theme-gadget footer#footer .mk-foot a,.theme-gadget footer#footer .mk-foot span,.theme-gadget footer#footer .mk-bottom,.theme-gadget footer#footer .mk-bottom span{color:#c3cad2!important}
.theme-gadget footer#footer .mk-foot h3{color:#fff!important}
.theme-gadget footer#footer .mk-foot a:hover{color:#ff9a63!important}
.theme-gadget footer#footer .mk-foot .brandmark,.theme-gadget footer#footer .mk-foot .brandmark-text{color:#fff}
.theme-gadget .mk-social span{background:#1f2731}
.theme-gadget .mk-bottom{border-top:1px solid #222b36!important}
.theme-gadget footer#footer .mk-bottom .mk-pay{background:#1f2731;border-color:#2b3541;color:#fff!important}
.theme-gadget .mk-cart b{background:var(--mk-accent)}

/* ---------- Tablets and phones ---------- */
@media(max-width:1100px){
    .gx-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
    .gx-cats{justify-content:flex-start;gap:14px}
}
@media(max-width:820px){
    .gx-hero-in{grid-template-columns:1fr;min-height:0}
    .gx-hero-copy{padding:28px 0 6px;text-align:center}
    .gx-hero p{margin-left:auto;margin-right:auto}
    .gx-hero-art{height:220px}
    .gx-promise{grid-template-columns:1fr 1fr;row-gap:14px}
    .gx-promos{grid-template-columns:1fr}
    .gx-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
    .gx-reviews{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
    .gx-hero h1{font-size:28px}
    .gx-hero p{font-size:13.5px}
    .gx-hero-art{height:170px}
    .gx-script{display:none}
    .gx-promise>div{gap:8px}
    .gx-promise svg{width:22px;height:22px}
    .gx-promise b{font-size:12.5px}
    .gx-promise small{font-size:11px}
    .gx-cat{width:78px}
    .gx-cat span{width:66px;height:66px}
    .gx-cat b{font-size:12px}
    .gx-promo{min-height:140px;padding:16px 18px}
    .gx-promo-copy strong{font-size:18px}
    .gx-promo-copy em{font-size:20px}
    .gx-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .gx-card{padding:8px}
    .gx-name{font-size:13.5px}
    .gx-add{height:34px;font-size:12.5px}
    .gx-reviews{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
    .gx-review{flex:0 0 86%;scroll-snap-align:start}
    .gx-head h2{font-size:18px}
}

/* A banner picture uploaded in Admin → Homepage: the whole picture, rounded, under the menu */
.gx-banner{display:block;margin-top:16px;padding:0!important;overflow:hidden;border-radius:14px;background:#111820}
.theme-gadget .wrap.gx-banner{width:calc(95% - 40px);max-width:1280px}
.gx-banner img{display:block;width:100%;height:auto}
@media(max-width:1000px){.theme-gadget .wrap.gx-banner{width:calc(100% - 32px)}}
@media(max-width:620px){.gx-banner{margin-top:10px;border-radius:10px}}

/* A banner picture for phones only, and the computer one hidden on phones */
.gx-only-mobile{display:none!important}
@media(max-width:620px){.gx-only-mobile{display:block!important}.gx-only-pc{display:none!important}}

/* The banner as in the design: a dark kitchen with an orange glow, the words left, the products right on a dark
   counter, the four promises along its foot */
.gx-hero{position:relative;background:
    radial-gradient(ellipse 55% 70% at 88% 30%,rgba(255,110,20,.55),transparent 60%),
    radial-gradient(ellipse 40% 50% at 60% 75%,rgba(255,120,30,.22),transparent 70%),
    linear-gradient(180deg,#14181d 0%,#0d1014 62%,#1a1d21 62.2%,#0b0d10 100%)}
.gx-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:38%;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 30%);pointer-events:none}
.gx-hero-in{min-height:380px;position:relative;z-index:1}
.gx-hero h1{font-size:clamp(34px,4.2vw,58px);letter-spacing:-1px}
.gx-hero p{font-size:clamp(15px,1.4vw,19px);color:#f1f3f5}
.gx-btn{padding:15px 34px;font-size:clamp(16px,1.5vw,21px);border-radius:40px}
.gx-hero-art{height:360px}
.gx-hero-art img{border-radius:16px;box-shadow:0 30px 50px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.06)}
.gx-hero-art img.n2{width:50%;bottom:6px}
.gx-hero-art::after{content:"";position:absolute;left:4%;right:4%;bottom:-6px;height:30px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(255,120,30,.35),transparent 70%);filter:blur(6px)}
.gx-script{color:#ff6a1a;text-shadow:none}
.gx-hero-promise{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,max-content);gap:0;padding-bottom:26px}
.gx-hero-promise>div{display:flex;align-items:center;gap:12px;padding:0 26px;border-left:1px solid rgba(255,255,255,.18);color:#fff}
.gx-hero-promise>div:first-child{padding-left:0;border-left:0}
.gx-hero-promise svg{flex:none;color:#fff}
.gx-hero-promise b{display:block;font-size:15px;font-weight:600}
.gx-hero-promise small{display:block;color:#c9cfd6;font-size:12.5px}
@media(max-width:1100px){.gx-hero-promise{grid-template-columns:repeat(2,max-content);row-gap:12px}.gx-hero-promise>div:nth-child(3){padding-left:0;border-left:0}}
@media(max-width:820px){
    .gx-hero{background:radial-gradient(ellipse 80% 45% at 80% 20%,rgba(255,110,20,.45),transparent 65%),linear-gradient(180deg,#14181d,#0b0d10)}
    .gx-hero-copy{text-align:left}
    .gx-hero p{margin-left:0}
    .gx-hero-art{height:250px;margin-top:6px}
    .gx-hero-promise{grid-template-columns:repeat(4,1fr);margin:0 0 16px;padding:12px 6px;border-radius:14px;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.08)}
    .gx-hero-promise>div{flex-direction:column;align-items:center;gap:4px;padding:0 4px;text-align:center}
    .gx-hero-promise>div:nth-child(3){border-left:1px solid rgba(255,255,255,.18)}
    .gx-hero-promise svg{width:24px;height:24px;color:#ff6a1a}
    .gx-hero-promise b{font-size:11.5px}
    .gx-hero-promise small{display:none}
}
@media(max-width:620px){.gx-hero-art{height:200px}.gx-hero h1{font-size:34px}}

/* The banner over a picture uploaded in Admin → Homepage → হিরো ব্যানার: the picture fills it, darkened on the left
   where the words are; the product pictures give way to it. Phones get their own picture when one is given. */
.gx-hero.has-bg-pc{background:linear-gradient(90deg,rgba(9,11,14,.92) 0%,rgba(9,11,14,.7) 32%,rgba(9,11,14,.15) 58%,transparent 75%),var(--hero-bg) right center/cover no-repeat}
.gx-hero.has-bg-pc::after{display:none}
.gx-hero.has-bg-pc .gx-hero-art{visibility:hidden}
.gx-hero.has-bg-pc .gx-hero-in{min-height:440px}
@media(max-width:620px){
    .gx-hero.has-bg{background:linear-gradient(180deg,rgba(9,11,14,.9) 0%,rgba(9,11,14,.55) 40%,rgba(9,11,14,.05) 62%,rgba(9,11,14,.6) 100%),var(--hero-bg-m,var(--hero-bg)) center bottom/cover no-repeat}
    .gx-hero.has-bg::after{display:none}
    .gx-hero.has-bg .gx-hero-art{visibility:hidden;height:230px}
}

/* Card buttons: "কার্টে যোগ" (outline) and "অর্ডার করুন" (straight to checkout) side by side */
.gx-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.gx-add.ghost{background:#fff;color:var(--mk-accent);box-shadow:inset 0 0 0 1.5px var(--mk-accent)}
.gx-add.ghost:hover{background:#fff4ee;color:var(--mk-accent-dark)}
.gx-actions .gx-add{padding:0 6px;font-size:13px;white-space:nowrap}
@media(max-width:1100px){.gx-actions{grid-template-columns:1fr}}
@media(max-width:620px){.gx-actions{gap:5px}.gx-actions .gx-add{height:32px;font-size:12px}}
