/*
Theme Name: DigiShop
Theme URI: https://example.com/digishop
Author: DigiShop
Description: প্রিমিয়াম থিম, প্লাগিন ও ডিজিটাল প্রোডাক্ট বিক্রির জন্য বাংলা ই-কমার্স থিম। WooCommerce সাপোর্ট, Hind Siliguri ফন্ট, Customizer থেকে সব লেখা ও রঙ বদলানোর সুবিধা, এক ক্লিকে ডেমো প্রোডাক্ট ইমপোর্ট।
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 11.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digishop
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments, full-width-template
*/

/* =========================================================
   রঙ ও বেসিক সেটিংস — মূল রঙ Customizer থেকে বদলানো যায়
   ========================================================= */
:root{
  --red:#E34240;
  --red-dark:#c42f2d;
  --red-soft:#fdeeee;
  --red-text:#cf2f2d;
  --ink:#151515;
  --text:#2a2a2a;
  --muted:#6b6f76;
  --line:#ececec;
  --soft:#f6f6f7;
  --green:#178036;
  --bg:#ffffff;
  --radius:12px;
  --shadow:0 8px 28px rgba(20,20,20,.07);
  --container:1280px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Hind Siliguri',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--text);background:var(--bg);font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6,p,ul,ol,figure{margin:0}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
img{max-width:100%;height:auto}
.icon{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.container{max-width:var(--container);margin:0 auto;padding-left:24px;padding-right:24px}
.accent{color:var(--red)}
:focus-visible{outline:2px solid var(--red);outline-offset:2px}

/* WordPress প্রয়োজনীয় ক্লাস */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;left:12px;top:12px;z-index:100000;background:#fff;color:var(--ink);padding:10px 16px;border-radius:8px;box-shadow:var(--shadow)}
.alignleft{float:left;margin:0 1.5em 1em 0}
.alignright{float:right;margin:0 0 1em 1.5em}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.alignwide{max-width:1100px}
.alignfull{max-width:none}
.wp-caption{max-width:100%}
.wp-caption-text,.wp-element-caption{font-size:13px;color:var(--muted);text-align:center;margin-top:6px}
.sticky,.bypostauthor,.gallery-caption{}

/* ================= HEADER ================= */
.site-header{position:sticky;top:0;z-index:50;background:#fff;transition:box-shadow .25s}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:0}}
.site-header.scrolled{box-shadow:0 4px 20px rgba(0,0,0,.06)}
.header-main{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:40px;height:76px}
.logo{display:inline-flex;flex-direction:column;line-height:1;width:max-content}
.logo-mark{font-size:32px;font-weight:700;color:var(--red);letter-spacing:-.5px;line-height:1.25}
.logo-sub{align-self:flex-end;font-size:10.5px;font-weight:600;color:var(--ink);line-height:1.3;padding-top:2px;border-top:1.5px solid var(--ink)}
.custom-logo-link{display:inline-flex;align-items:center}
.custom-logo{max-height:56px;width:auto}
.search{position:relative;max-width:520px;width:100%;margin:0}
.search input[type=search]{width:100%;height:42px;border:1px solid #e3e3e3;border-radius:999px;padding:0 48px 0 20px;font-size:13.5px;background:#fff;outline:none;transition:border-color .2s,box-shadow .2s;-webkit-appearance:none;appearance:none}
.search input::placeholder{color:#80838a}
.search input:focus{border-color:var(--red);box-shadow:0 0 0 4px rgba(227,66,64,.08)}
.search button{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:#555;border:0;background:none;cursor:pointer;padding:0}
.search button:hover{color:var(--red)}
.header-actions{display:flex;align-items:center;gap:22px}
.cart{display:flex;align-items:center;gap:8px;font-weight:700;font-size:13px;color:var(--ink)}
.cart-icon{position:relative;display:grid;place-items:center}
.cart-icon .icon{width:22px;height:22px}
.cart-count{position:absolute;top:-7px;right:-8px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--red-text);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;line-height:1}
.cart-count.bump{animation:ds-bump .4s ease}
@keyframes ds-bump{50%{transform:scale(1.35)}}
.cart-total .woocommerce-Price-currencySymbol{font-weight:700}
.login-btn{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;border:1px solid #e3e3e3;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--ink);transition:border-color .2s,color .2s}
.login-btn:hover{border-color:var(--red);color:var(--red-text)}

.cat-nav{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}
.cat-nav ul{display:flex;gap:30px;height:48px;align-items:center;overflow-x:auto;scrollbar-width:none;list-style:none;margin:0;padding:0}
.cat-nav ul::-webkit-scrollbar{display:none}
.cat-nav a{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:.35px;text-transform:uppercase;color:var(--ink);white-space:nowrap;padding:6px 0;transition:color .2s}
.cat-nav a .icon{width:16px;height:16px}
.cat-nav a:hover,.cat-nav .current-menu-item>a,.cat-nav .current-cat>a{color:var(--red-text)}

/* ================= HERO ================= */
.hero{position:relative;isolation:isolate;padding:54px 0 0;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(to right,#efefef 1px,transparent 1px),linear-gradient(to bottom,#efefef 1px,transparent 1px);background-size:46px 46px;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 55%,transparent 82%);mask-image:linear-gradient(to bottom,#000 0%,#000 55%,transparent 82%)}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center}
.pill{display:inline-flex;align-items:center;gap:7px;padding:5px 14px;border-radius:999px;font-size:12.5px;font-weight:600;line-height:1.4}
.pill .icon{width:14px;height:14px}
.pill-red{background:var(--red-soft);color:var(--red-text);border:1px solid rgba(227,66,64,.18)}
.hero h1{font-size:clamp(36px,5.2vw,64px);line-height:1.18;font-weight:700;color:var(--ink);margin:22px 0 18px;letter-spacing:-.5px}
.hero p{color:var(--muted);font-size:16px;max-width:520px}
.hero-tags{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.tag{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 16px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid transparent;transition:transform .2s,box-shadow .2s}
.tag .icon{width:15px;height:15px}
.tag:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.08)}
.tag-blue{background:#eef3ff;color:#2f5fd6;border-color:#dce6ff}
.tag-purple{background:#f4efff;color:#7a45d8;border-color:#e6dbff}
.tag-orange{background:#fff1ec;color:#c93a1f;border-color:#ffdcd0}
.hero-visual{display:flex;justify-content:center}
.hero-visual .poster,.hero-visual img{width:min(100%,430px);border-radius:6px;box-shadow:0 24px 60px rgba(160,40,90,.16)}
.hero-visual img{display:block;height:auto}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:56px;padding-bottom:8px}
.stat{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #f0f0f0;border-radius:var(--radius);padding:18px 20px;box-shadow:0 6px 22px rgba(0,0,0,.05)}
.stat-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.stat-icon .icon{width:21px;height:21px}
.stat-icon.blue{background:#ebf1ff;color:#3565e8}
.stat-icon.orange{background:#fff1e5;color:#d9680f}
.stat-icon.green{background:#e8f7ed;color:#1f9a4f}
.stat-icon.purple{background:#f2ebff;color:#8148ea}
.stat strong{display:block;font-size:18px;font-weight:700;color:var(--ink);line-height:1.3}
.stat span{font-size:13px;color:var(--muted)}

/* ================= SECTIONS ================= */
.section{padding:80px 0 0}
.section-head{text-align:center;max-width:680px;margin:0 auto 34px}
.section-head h2{font-size:clamp(26px,3.2vw,36px);font-weight:700;color:var(--ink);line-height:1.3;margin:14px 0 8px}
.section-head p{color:var(--muted);font-size:15px}
.demo-note{max-width:680px;margin:-14px auto 22px;text-align:center;font-size:13px;color:#8a5a00;background:#fff8e6;border:1px dashed #f0c96a;border-radius:10px;padding:8px 14px}
.demo-note a{text-decoration:underline}

/* ================= PRODUCT CARD (হোম ও শপ দুই জায়গায়) ================= */
ul.product-grid,.woocommerce ul.products.product-grid,.woocommerce-page ul.products.product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;list-style:none;margin:0;padding:0}
.woocommerce ul.products.product-grid::before,.woocommerce ul.products.product-grid::after,.woocommerce-page ul.products.product-grid::before,.woocommerce-page ul.products.product-grid::after{display:none!important;content:none!important}
.product-grid > li.product-card,.woocommerce ul.products.product-grid li.product,.woocommerce-page ul.products.product-grid li.product{width:auto!important;float:none!important;margin:0!important;padding:0!important;clear:none!important}
.product-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:transform .25s,box-shadow .25s,border-color .25s;display:flex;flex-direction:column;text-align:left}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#e4e4e4}
.product-media{position:relative;overflow:hidden;background:var(--soft)}
.product-media .media-link{display:block}
.product-media img,.woocommerce ul.products li.product .product-media img{display:block;width:100%!important;height:auto;aspect-ratio:1/1;object-fit:cover;margin:0!important;transition:transform .5s ease}
.product-media .poster{transition:transform .5s ease}
.product-card:hover .product-media img,.product-card:hover .poster{transform:scale(1.04)}
.badge-off{position:absolute;top:10px;left:10px;z-index:3;background:var(--green);color:#fff;font-size:11px;font-weight:700;line-height:1;padding:5px 9px;border-radius:999px;letter-spacing:.2px}
.product-card .quick-add,.woocommerce ul.products li.product .quick-add{position:absolute;left:10px;right:10px;bottom:10px;z-index:3;height:38px;margin:0!important;padding:0 12px!important;border:0;border-radius:999px!important;background:var(--ink)!important;color:#fff!important;font-size:13px!important;font-weight:600!important;line-height:1!important;display:flex!important;align-items:center;justify-content:center;gap:6px;opacity:0;transform:translateY(12px);transition:opacity .25s,transform .25s,background .2s;cursor:pointer;text-decoration:none!important;white-space:nowrap}
.product-card .quick-add .icon{width:16px;height:16px}
.product-card:hover .quick-add,.product-card .quick-add:focus-visible,.product-card .quick-add.loading{opacity:1;transform:none}
.product-card .quick-add:hover{background:var(--red-text)!important}
.product-card .quick-add.loading{opacity:.75!important}
.product-card .quick-add.loading::after,.product-card .quick-add.added::after{display:none!important}
.product-card .added_to_cart{display:none!important}
.product-info{padding:12px 14px 15px}
.product-name,.woocommerce ul.products li.product .product-name{font-size:14px;font-weight:600;color:var(--ink);line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;padding:0}
.product-name a:hover{color:var(--red-text)}
.product-card .price,.woocommerce ul.products li.product .price{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;margin:4px 0 0;color:var(--red-text);font-weight:700;font-size:14.5px}
.product-card .price del,.woocommerce ul.products li.product.product-card .price del{color:#73767d;font-size:12.5px;font-weight:400;opacity:1;order:0}
.product-card .price ins{text-decoration:none;color:var(--red-text);font-weight:700;font-size:14.5px;background:none}
.product-card .star-rating{margin:4px 0 0!important;font-size:.8em}
.empty-note{grid-column:1/-1;text-align:center;color:var(--muted);padding:30px 0}

.center-btn{display:flex;justify-content:center;margin-top:34px}
.btn-outline{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 24px;border:1.5px solid #3a3a3a;border-radius:999px;font-size:14px;font-weight:600;color:var(--ink);transition:background .2s,color .2s,border-color .2s}
.btn-outline .icon{width:16px;height:16px;transition:transform .2s}
.btn-outline:hover{background:var(--red);border-color:var(--red);color:#fff}
.btn-outline:hover .icon{transform:translateX(3px)}

/* ================= POSTER (ছবি না থাকলে প্রোডাক্ট থাম্বনেইল) ================= */
.poster{position:relative;aspect-ratio:1/1;width:100%;container-type:inline-size;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--bg)}
.poster::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(60% 45% at 18% 22%,rgba(255,255,255,.85),transparent 70%),radial-gradient(55% 40% at 85% 85%,rgba(255,255,255,.6),transparent 70%),radial-gradient(40% 35% at 75% 30%,var(--tint,transparent),transparent 70%)}
.poster-brand{position:absolute;top:5.5cqw;right:6cqw;display:flex;align-items:center;gap:1.2cqw;font-size:4.8cqw;font-weight:700;color:var(--red);line-height:1}
.poster-brand svg{width:4.8cqw;height:4.8cqw;stroke:currentColor;fill:none;stroke-width:2.4}
.poster-logo{display:inline-flex;align-items:center;gap:1.6cqw;font-size:6.2cqw;font-weight:700;color:var(--c2,var(--c));margin-bottom:3.5cqw;line-height:1}
.poster-logo i{display:inline-block;width:6cqw;height:6cqw;border-radius:50%}
.poster-logo.chip{background:#fff;padding:1.4cqw 2.6cqw;border-radius:1.6cqw;font-size:4.4cqw;box-shadow:0 .6cqw 2cqw rgba(0,0,0,.06);letter-spacing:.2px}
.poster-title{display:block;font-size:12.5cqw;line-height:1.15;font-weight:700;color:var(--c);padding:0 6cqw}
.poster-title.sm{font-size:9cqw}
.poster-title.xs{font-size:7cqw}
.poster-sub{display:block;font-size:4.4cqw;color:#2f2f2f;margin-top:3cqw;padding:0 8cqw;line-height:1.35}
.poster-url{position:absolute;bottom:5cqw;left:0;right:0;font-size:3.4cqw;color:#3d3d3d;font-weight:500}
.poster.dark{justify-content:flex-start}
.poster.dark::before{background:radial-gradient(70% 40% at 50% 100%,rgba(255,60,100,.35),transparent 70%)}
.poster.dark .poster-title{color:#fff;font-size:10.5cqw;margin-top:20cqw}
.poster.dark .poster-brand{color:#fff}
.mock{margin-top:5cqw;width:84%;background:#fff;border-radius:2cqw;padding:2.5cqw;display:grid;grid-template-columns:22% 1fr;gap:2cqw;box-shadow:0 2cqw 5cqw rgba(0,0,0,.35)}
.mock-side{display:flex;flex-direction:column;gap:1.4cqw}
.mock-side span{height:2cqw;border-radius:1cqw;background:#e9e9ef}
.mock-side span:first-child{background:#2b2b47}
.mock-main{display:flex;flex-direction:column;gap:1.6cqw}
.mock-row{display:flex;gap:1.6cqw}
.mock-row span{flex:1;height:7cqw;border-radius:1.2cqw;background:#f2f2f6;border:1px solid #ececf2}
.mock-row span:first-child{background:#ffe8ee;border-color:#ffd3de}
.mock-line{height:2cqw;border-radius:1cqw;background:#ececf2}
.mock-line.short{width:60%}
.mock-btn{align-self:flex-start;height:3.4cqw;width:30%;border-radius:1cqw;background:var(--red)}
.mock-tabs{display:flex;gap:1.4cqw;justify-content:center;margin-top:3cqw}
.mock-tabs span{font-size:2.6cqw;color:#111;background:#fff;border-radius:.8cqw;padding:.6cqw 1.6cqw;font-weight:600}
.poster.combo{justify-content:flex-start}
.combo-badge{margin-top:14cqw;display:inline-flex;flex-direction:column;align-items:center;background:linear-gradient(135deg,#e11d74,#7c3aed);color:#fff;border-radius:3cqw;padding:1.6cqw 4cqw;line-height:1.1;box-shadow:0 1.2cqw 3cqw rgba(124,58,237,.3)}
.combo-badge small{font-size:3cqw;font-weight:600;letter-spacing:.4px}
.combo-badge b{font-size:6.6cqw;font-weight:700}
.combo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2cqw;width:82%;margin-top:4cqw}
.combo-grid span{background:#fff;border-radius:1.6cqw;padding:2.2cqw 1cqw 1.6cqw;font-size:3.3cqw;font-weight:700;color:#2a2a2a;line-height:1.2;box-shadow:0 .6cqw 1.6cqw rgba(0,0,0,.06);border-bottom:1cqw solid var(--k,#e11d48)}

/* ================= CATEGORY ================= */
.cat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.cat-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:30px 16px 24px;background:#fff;border:1px solid var(--line);border-radius:10px;transition:border-color .25s,transform .25s,box-shadow .25s}
.cat-card:hover{border-color:#f3c3c2;transform:translateY(-4px);box-shadow:var(--shadow)}
.cat-ico{width:58px;height:58px;border-radius:50%;background:var(--soft);display:grid;place-items:center;color:var(--ink);margin-bottom:12px;overflow:hidden;transition:background .25s,color .25s}
.cat-ico .icon{width:26px;height:26px;stroke-width:1.6}
.cat-ico img{width:100%;height:100%;object-fit:cover}
.cat-card:hover .cat-ico{background:var(--red-soft);color:var(--red-text)}
.cat-card h3{font-size:15px;font-weight:600;color:var(--ink)}
.cat-count{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--muted)}
.cat-count::before{content:"";width:7px;height:7px;border-radius:50%;background:#22a447}

/* ================= FOOTER ================= */
.site-footer{margin-top:96px;border-top:1px solid var(--line);padding-top:56px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px}
.footer-about p{color:var(--muted);font-size:14.5px;margin:16px 0 18px;max-width:300px}
.socials{display:flex;gap:10px}
.socials a{width:36px;height:36px;border-radius:50%;background:var(--soft);display:grid;place-items:center;color:#555;transition:background .2s,color .2s}
.socials a .icon{width:16px;height:16px}
.socials a:hover{background:var(--red);color:#fff}
.footer-col h2{font-size:16px;font-weight:700;color:var(--ink);margin-bottom:14px}
.footer-col ul{list-style:none;margin:0;padding:0}
.footer-col li{margin-bottom:6px}
.footer-col a{color:var(--muted);font-size:14.5px;transition:color .2s}
.footer-col a:hover,.footer-col .current-menu-item>a,.footer-col a.active{color:var(--red-text)}
.contact-list li{display:flex;align-items:flex-start;gap:10px;color:var(--muted);font-size:14.5px;margin-bottom:12px}
.contact-list .icon{width:17px;height:17px;margin-top:3px;color:#777}
.footer-bottom{border-top:1px solid var(--line);margin-top:44px;padding:20px 0 28px;font-size:13.5px;color:var(--muted);text-align:center}

/* ================= FLOATING ================= */
.float-contact{position:fixed;left:18px;bottom:18px;z-index:60;display:flex;align-items:center;gap:10px}
.float-contact .bubble{position:relative;width:50px;height:50px;border-radius:50%;background:linear-gradient(135deg,#ff6a3d,#e8314a);color:#fff;display:grid;place-items:center;box-shadow:0 10px 24px rgba(232,49,74,.35);transition:transform .2s}
.float-contact .bubble .icon{width:24px;height:24px}
.float-contact .bubble em{position:absolute;top:-2px;right:-2px;width:18px;height:18px;border-radius:50%;background:#c8102e;border:2px solid #fff;font-style:normal;font-size:10px;font-weight:700;display:grid;place-items:center}
.float-contact .label{background:#fff;color:var(--ink);font-size:14px;font-weight:500;padding:8px 16px;border-radius:999px;box-shadow:0 6px 20px rgba(0,0,0,.12)}
.float-contact:hover .bubble{transform:scale(1.06)}
.to-top{position:fixed;right:18px;bottom:18px;z-index:60;width:46px;height:46px;border-radius:50%;background:#fff;border:1px solid #e5e5e5;display:grid;place-items:center;color:var(--ink);box-shadow:0 6px 20px rgba(0,0,0,.08);opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .25s,transform .25s,background .2s,color .2s;cursor:pointer;padding:0}
.to-top.show{opacity:1;pointer-events:auto;transform:none}
.to-top:hover{background:var(--red);color:#fff;border-color:var(--red)}
.ds-toast{position:fixed;left:50%;bottom:28px;z-index:70;transform:translate(-50%,20px);background:var(--ink);color:#fff;font-size:14px;padding:11px 20px;border-radius:999px;box-shadow:0 10px 30px rgba(0,0,0,.2);opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:calc(100% - 140px);text-align:center}
.ds-toast.show{opacity:1;transform:translate(-50%,0)}

.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
.no-js .reveal{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
  .reveal{opacity:1;transform:none}
}

/* ================= BLOG / PAGE ================= */
.site-main{padding:48px 0 0}
.site-main.home-main{padding-top:0}
.page-header{margin-bottom:32px}
.page-header .page-title,.entry-header .entry-title{font-size:clamp(26px,3.4vw,40px);font-weight:700;color:var(--ink);line-height:1.25}
.page-header .archive-description{color:var(--muted);margin-top:8px}
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.post-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:transform .25s,box-shadow .25s}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.post-card .thumb{display:block;aspect-ratio:16/10;background:var(--soft);overflow:hidden}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.post-card .body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.post-card .meta,.entry-meta{font-size:13px;color:var(--muted)}
.post-card h2{font-size:19px;line-height:1.4;font-weight:700;color:var(--ink)}
.post-card h2 a:hover{color:var(--red-text)}
.post-card .excerpt{color:var(--muted);font-size:14.5px}
.read-more{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14px;color:var(--red-text)}
.read-more .icon{width:15px;height:15px}
.entry{max-width:820px;margin:0 auto}
.entry-header{margin-bottom:24px}
.entry-meta{margin-top:10px}
.entry-thumb{margin:0 0 28px;border-radius:12px;overflow:hidden}
.entry-thumb img{display:block;width:100%}
.entry-content{font-size:16.5px;line-height:1.85;color:var(--text)}
.entry-content > *+*{margin-top:1.1em}
.entry-content h2,.entry-content h3,.entry-content h4{color:var(--ink);line-height:1.35;margin-top:1.6em}
.entry-content a{color:var(--red-text);text-decoration:underline}
.entry-content a.button,.entry-content .wc-block-components-button,.entry-content .wp-block-button__link,.entry-content .wc-block-components-product-name{text-decoration:none}
.entry-content ul,.entry-content ol{padding-left:1.4em}
.entry-content blockquote{border-left:4px solid var(--red);background:var(--soft);padding:14px 20px;margin-left:0;border-radius:0 10px 10px 0}
.entry-content table{width:100%;border-collapse:collapse}
.entry-content th,.entry-content td{border:1px solid var(--line);padding:8px 12px}
.entry-content img{border-radius:8px}
.entry-footer{margin-top:28px;font-size:14px;color:var(--muted)}
.entry-footer a{color:var(--red-text)}
.page-links{margin-top:20px}
.full-width-content{padding:0}
.nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:40px}
.nav-links .page-numbers{min-width:40px;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:999px;display:inline-grid;place-items:center;font-weight:600;font-size:14px}
.nav-links .page-numbers.current,.nav-links a.page-numbers:hover{background:var(--red);border-color:var(--red);color:#fff}
.post-navigation .nav-links{justify-content:space-between}
.post-navigation .nav-links a{color:var(--red-text);font-weight:600}
.no-results,.error-404{text-align:center;max-width:620px;margin:0 auto;padding:40px 0}
.error-404 .big{font-size:96px;font-weight:700;color:var(--red);line-height:1}
.no-results .search,.error-404 .search{margin:22px auto 0}
.comments-area{max-width:820px;margin:48px auto 0;border-top:1px solid var(--line);padding-top:32px}
.comments-title,.comment-reply-title{font-size:22px;color:var(--ink);margin-bottom:18px}
.comment-list{list-style:none;padding:0}
.comment-list .children{list-style:none;padding-left:28px}
.comment-body{border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin-bottom:14px}
.comment-meta{font-size:13px;color:var(--muted);margin-bottom:6px}
.comment-author .avatar{border-radius:50%;vertical-align:middle;margin-right:8px}
.comment-form label{display:block;font-weight:600;margin-bottom:4px}
.comment-form p{margin-bottom:14px}

/* ফর্ম ও বাটন */
input[type=text],input[type=email],input[type=url],input[type=password],input[type=tel],input[type=number],input[type=search],textarea,select{border:1px solid #dcdcdc;border-radius:10px;padding:10px 14px;background:#fff;max-width:100%}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--red);box-shadow:0 0 0 4px rgba(227,66,64,.08)}
textarea{width:100%}
.btn,button[type=submit]:not(.search button),input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 22px;border:0;border-radius:999px;background:var(--red);color:#fff;font-weight:600;cursor:pointer;transition:background .2s}
.btn:hover,input[type=submit]:hover{background:var(--red-dark)}

/* ================= WOOCOMMERCE পেজ ================= */
.shop-main{padding-top:36px}
.woocommerce .woocommerce-breadcrumb{font-size:13px;color:var(--muted);margin:0 0 18px}
.woocommerce .woocommerce-breadcrumb a{color:var(--muted)}
.woocommerce .woocommerce-breadcrumb a:hover{color:var(--red-text)}
.woocommerce-products-header{margin-bottom:22px}
.woocommerce-products-header__title.page-title{font-size:clamp(26px,3.4vw,38px);font-weight:700;color:var(--ink);line-height:1.25}
.woocommerce .woocommerce-result-count{color:var(--muted);font-size:14px;margin:0 0 22px}
.woocommerce .woocommerce-ordering{margin:0 0 22px}
.woocommerce .woocommerce-ordering select{height:40px;padding:0 36px 0 14px;border-radius:999px}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:8px;justify-content:center;margin-top:36px}
.woocommerce nav.woocommerce-pagination ul li{border:0;overflow:visible}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{min-width:40px;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:999px;display:inline-grid;place-items:center;font-weight:600}
.woocommerce nav.woocommerce-pagination ul li span.current,.woocommerce nav.woocommerce-pagination ul li a:hover{background:var(--red);border-color:var(--red);color:#fff}

.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.wc-block-components-button:not(.is-link){background:var(--red)!important;color:#fff!important;border-radius:999px!important;font-weight:600!important;padding:12px 24px!important;border:0!important;transition:background .2s}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.wc-block-components-button:not(.is-link):hover{background:var(--red-dark)!important}
.woocommerce span.onsale{background:var(--green);border-radius:999px;min-height:0;min-width:0;padding:6px 12px;line-height:1;font-size:12px;font-weight:700;top:14px;left:14px}
.woocommerce div.product{margin-bottom:24px}
.woocommerce div.product .product_title{font-size:clamp(24px,3vw,34px);font-weight:700;color:var(--ink);line-height:1.3;margin-bottom:10px}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--red-text);font-size:24px;font-weight:700}
.woocommerce div.product p.price del,.woocommerce div.product span.price del{color:#73767d;font-size:17px;font-weight:400}
.woocommerce div.product p.price ins{text-decoration:none}
.woocommerce div.product .woocommerce-product-details__short-description{color:var(--muted);margin-bottom:18px}
.woocommerce div.product form.cart .qty{height:46px;border-radius:999px;width:80px;text-align:center}
.woocommerce div.product form.cart .button{height:46px}
.woocommerce div.product div.images img,.ds-single-poster{border-radius:12px}
.ds-single-poster{overflow:hidden;border:1px solid var(--line)}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 20px;border-bottom:1px solid var(--line)}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:none;border:0;border-radius:0;margin:0 18px 0 0;padding:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:10px 0;font-weight:600;color:var(--muted)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-bottom:2px solid var(--red)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--ink)}
.woocommerce .related > h2,.woocommerce .upsells > h2{font-size:24px;color:var(--ink);margin:40px 0 20px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:var(--red)!important;border-radius:10px}
.woocommerce-message::before,.woocommerce-info::before{color:var(--red)!important}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border-radius:10px;padding:10px 14px}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:12px 16px;border-bottom:1px solid var(--line)}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:var(--red-soft);color:var(--red-text)}

/* ================= লগইন প্যানেল ও Google বাটন ================= */
.ds-auth{position:fixed;inset:0;z-index:200}
.ds-auth[hidden]{display:none}
.ds-auth-backdrop{position:absolute;inset:0;background:rgba(15,15,20,.45);opacity:0;transition:opacity .3s}
.ds-auth-panel{position:absolute;top:0;right:0;height:100%;width:min(420px,100%);background:#fff;box-shadow:-12px 0 40px rgba(0,0,0,.14);transform:translateX(100%);transition:transform .3s ease;display:flex;flex-direction:column;overflow-y:auto}
.ds-auth.open .ds-auth-backdrop{opacity:1}
.ds-auth.open .ds-auth-panel{transform:none}
.admin-bar .ds-auth-panel{top:32px;height:calc(100% - 32px)}
.ds-auth-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;border-bottom:1px solid var(--line)}
.ds-auth-head h2{font-size:21px;font-weight:700;color:var(--ink)}
.ds-auth-close{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;cursor:pointer;color:var(--ink);padding:0;transition:background .2s,color .2s,border-color .2s}
.ds-auth-close:hover{background:var(--red);border-color:var(--red);color:#fff}
.ds-auth-body{padding:24px}
.ds-google-block{margin:0 0 4px}
.ds-google-block.ds-failed{display:none}
.ds-google{display:flex;justify-content:center;min-height:44px}
.ds-google-status{font-size:13.5px;text-align:center;margin:10px 0 0;color:var(--muted)}
.ds-google-status.err{color:#a31f1d}
.ds-google-status.ok{color:#17663a}
.ds-or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;margin:20px 0}
.ds-or::before,.ds-or::after{content:"";flex:1;height:1px;background:var(--line)}
.ds-login-form p{margin:0 0 16px}
.ds-login-form label{display:block;font-weight:600;font-size:14px;margin-bottom:6px;color:var(--ink)}
.ds-login-form input[type=text],.ds-login-form input[type=password]{width:100%;height:46px}
.ds-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;margin:0 0 18px}
.ds-row label{display:inline-flex;align-items:center;gap:8px;font-weight:500;color:var(--text);cursor:pointer}
.ds-row a{color:var(--red-text)}
.ds-row a:hover{text-decoration:underline}
.ds-btn-block{width:100%}
.btn:disabled{opacity:.6;cursor:wait}
.ds-auth-msg{background:#fdecec;color:#a31f1d;border-radius:10px;padding:10px 14px;font-size:14px;margin:0 0 14px}
.ds-auth-msg.ok{background:#e8f7ed;color:#17663a}
.ds-auth-foot{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);text-align:center;font-size:14px;color:var(--muted)}
.ds-auth-foot a{color:var(--red-text);font-weight:600}
body.ds-auth-lock{overflow:hidden}
.woocommerce form.login .ds-google-block,.woocommerce form.register .ds-google-block{margin-bottom:6px}

/* ================= RESPONSIVE ================= */
@media (max-width:1100px){
  ul.product-grid,.woocommerce ul.products.product-grid,.woocommerce-page ul.products.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .header-main{gap:24px}
}
@media (max-width:860px){
  .header-main{grid-template-columns:1fr auto;height:auto;padding-top:12px;padding-bottom:12px;row-gap:12px}
  .search{grid-column:1/-1;grid-row:2;max-width:none}
  .hero{padding-top:36px}
  .hero-grid{grid-template-columns:1fr;gap:36px;text-align:center}
  .hero p{margin:0 auto}
  .hero-tags{justify-content:center}
  .hero-visual .poster,.hero-visual img{width:min(100%,380px)}
  .stats{grid-template-columns:repeat(2,1fr);gap:14px;margin-top:40px}
  ul.product-grid,.woocommerce ul.products.product-grid,.woocommerce-page ul.products.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .cat-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .footer-grid{grid-template-columns:1fr 1fr}
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .section{padding-top:64px}
}
@media (max-width:600px){
  .container{padding-left:16px;padding-right:16px}
  .logo-mark{font-size:27px}
  .custom-logo{max-height:44px}
  .login-btn span{display:none}
  .login-btn{width:42px;padding:0;justify-content:center}
  .header-actions{gap:14px}
  .cat-nav ul{gap:22px}
  .stats{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:14px;gap:10px;flex-direction:column;align-items:flex-start}
  .stat-icon{width:40px;height:40px}
  ul.product-grid,.woocommerce ul.products.product-grid,.woocommerce-page ul.products.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product-info{padding:10px 10px 12px}
  .product-name,.woocommerce ul.products li.product .product-name{font-size:13px}
  .cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .cat-grid .cat-card:last-child:nth-child(odd){grid-column:1/-1}
  .footer-grid{grid-template-columns:1fr;gap:30px}
  .post-grid{grid-template-columns:1fr}
  .float-contact .label{display:none}
  .woocommerce .woocommerce-ordering,.woocommerce .woocommerce-result-count{float:none}
}
/* টাচ ডিভাইসে কার্ট বাটন সবসময় দেখাবে */
@media (hover:none){
  .product-card .quick-add,.woocommerce ul.products li.product .quick-add{opacity:1;transform:none;left:auto;right:8px;bottom:8px;width:38px;height:38px;padding:0!important;border-radius:50%!important}
  .product-card .quick-add span{display:none}
}
