/* STREAMING_CHUNK:Defining design variables and color tokens... */
:root {
--emerald-600: #059669;
--emerald-700: #047857;
--emerald-800: #065f46;
--emerald-50:  #ecfdf5;
--emerald-100: #d1fae5;

--slate-950: #020617;
--slate-900: #0f172a;
--slate-800: #1e293b;
--slate-700: #334155;
--slate-600: #475569;
--slate-500: #64748b;
--slate-300: #cbd5e1;
--slate-200: #e2e8f0;
--slate-100: #f1f5f9;
--slate-50:  #f8fafc;

--amber-500: #f59e0b;
--red-500:   #ef4444;
--red-600:   #dc2626;
--red-700:   #b91c1c;

--shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
--shadow-md: 0 4px 12px rgba(15,23,42,0.08);
--shadow-lg: 0 12px 24px -6px rgba(15,23,42,0.12);
}

/* STREAMING_CHUNK:Applying global resets and base typography... */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html, body {
width: 100%;
max-width: 100vw;
overflow-x: hidden !important;
background: var(--slate-50);
color: var(--slate-800);
font-family: 'Hind Siliguri', sans-serif;
line-height: 1.5;
-webkit-text-size-adjust: 100%;
}

img {
max-width: 100%;
height: auto;
display: block;
}

a {
color: inherit;
text-decoration: none;
}

ul {
list-style: none;
}

.wrap {
width: 100%;
max-width: 1240px;
margin: 0 auto;
padding: 0 16px;
box-sizing: border-box;
}

/* STREAMING_CHUNK:Styling top notification bar... */
.topbar {
background: var(--emerald-800);
color: #fff;
font-size: 0.8rem;
padding: 6px 0;
}

.topbar-row {
display: flex;
justify-content: space-between;
align-items: center;
}

.topbar-left span {
display: flex;
align-items: center;
gap: 6px;
}

.topbar-right {
display: flex;
gap: 18px;
}

.topbar-right a {
color: var(--emerald-100);
transition: color .2s;
}

.topbar-right a:hover {
color: #fff;
}

/* STREAMING_CHUNK:Configuring sticky header and logo branding... */
header.site-header {
position: sticky;
top: 0;
z-index: 50;
background: #fff;
border-bottom: 1px solid var(--slate-200);
box-shadow: var(--shadow-sm);
}

.header-main-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
padding: 10px 0;
}

/* ১. লোগো */
.header-logo {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}

.site-logo-img {
max-height: 44px;
width: auto;
max-width: 140px;
object-fit: contain;
}

.logo-badge {
width: 38px;
height: 38px;
background: var(--emerald-600);
color: #fff;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
}

.logo-text {
font-size: 1.35rem;
font-weight: 800;
color: var(--slate-900);
letter-spacing: -0.5px;
}

/* STREAMING_CHUNK:Styling search form and dropdown... */
.header-search-form {
flex: 1;
display: flex;
align-items: center;
background: var(--slate-100);
border: 1.5px solid var(--slate-200);
border-radius: 99px;
overflow: hidden;
transition: all .2s;
}

.header-search-form:focus-within {
border-color: var(--emerald-600);
background: #fff;
box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.search-cat-dropdown {
border: none;
background: transparent;
padding: 8px 12px;
font-size: 0.85rem;
font-weight: 600;
color: var(--slate-700);
border-right: 1px solid var(--slate-200);
outline: none;
cursor: pointer;
font-family: inherit;
}

.search-input-wrap {
flex: 1;
display: flex;
align-items: center;
}

.search-input-wrap input {
flex: 1;
border: none;
background: transparent;
padding: 8px 12px;
font-size: 0.88rem;
color: var(--slate-900);
outline: none;
min-width: 0;
font-family: inherit;
}

.search-input-wrap button {
background: var(--emerald-600);
color: #fff;
border: none;
padding: 0 16px;
height: 36px;
border-radius: 99px;
margin: 2px;
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
transition: background .2s;
}

.search-input-wrap button:hover {
background: var(--emerald-700);
}

/* STREAMING_CHUNK:Designing animated login button and cart badge... */
@keyframes redPulse {
0% {
box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
transform: scale(1);
}
50% {
box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
transform: scale(1.03);
}
100% {
box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
transform: scale(1);
}
}

.login-btn-animated {
background: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%);
color: #ffffff !important;
padding: 8px 16px;
border-radius: 99px;
font-weight: 700;
font-size: 0.85rem;
display: inline-flex;
align-items: center;
gap: 6px;
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
animation: redPulse 2s infinite ease-in-out;
white-space: nowrap;
border: 1px solid var(--red-700);
flex-shrink: 0;
}

.login-btn-animated:hover {
background: linear-gradient(135deg, var(--red-600) 0%, var(--red-700) 100%);
color: #ffffff !important;
}

.header-menu-bar {
display: flex;
align-items: center;
gap: 14px;
flex-shrink: 0;
}

.menu-bar-item {
display: flex;
flex-direction: column;
align-items: center;
font-size: 0.75rem;
font-weight: 600;
color: var(--slate-700);
gap: 2px;
transition: color .2s;
}

.menu-bar-item:hover {
color: var(--emerald-600);
}

.menu-icon {
font-size: 1.35rem;
color: var(--slate-800);
}

.cart-icon-wrapper {
position: relative;
}

.cart-badge-count {
position: absolute;
top: -6px;
right: -10px;
background: var(--emerald-600);
color: #fff;
font-size: 0.65rem;
width: 18px;
height: 18px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
border: 2px solid #fff;
}

/* STREAMING_CHUNK:Creating responsive category navigation bar... */
.cat-navbar {
border-top: 1px solid var(--slate-200);
background: #fff;
}

.cat-nav-scroll {
display: flex;
gap: 20px;
padding: 8px 0;
font-size: 0.9rem;
font-weight: 600;
color: var(--slate-700);
overflow-x: auto;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}

.cat-nav-scroll::-webkit-scrollbar {
display: none;
}

.cat-link {
transition: color .2s;
display: flex;
align-items: center;
gap: 6px;
}

.cat-link:hover, .cat-link.active {
color: var(--emerald-600);
}

.cat-link.offer-link {
color: var(--red-600);
}

/* STREAMING_CHUNK:Styling product grid and card layouts... */
.product-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

.product-card {
background: #fff;
border: 1px solid var(--slate-200);
border-radius: 18px;
overflow: hidden;
display: flex;
flex-direction: column;
transition: all .25s ease;
position: relative;
}

.product-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
border-color: var(--emerald-100);
}

.product-thumb {
height: 190px;
background: var(--slate-100);
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
}

.product-thumb img {
max-height: 100%;
object-fit: contain;
}

.product-body {
padding: 16px;
flex: 1;
display: flex;
flex-direction: column;
}

.product-cat {
font-size: 0.7rem;
font-weight: 700;
color: var(--emerald-600);
text-transform: uppercase;
margin-bottom: 4px;
}

.product-body h3 {
font-size: 0.95rem;
font-weight: 700;
color: var(--slate-900);
line-height: 1.4;
margin-bottom: 8px;
}

/* STREAMING_CHUNK:Designing product cards, pricing, and action buttons... */
.price-row {
display: flex;
align-items: baseline;
gap: 8px;
margin-top: auto;
padding-top: 10px;
border-top: 1px solid var(--slate-100);
}

.price-now {
font-size: 1.1rem;
font-weight: 700;
color: var(--emerald-700);
}

.price-old {
font-size: 0.8rem;
color: var(--slate-500);
text-decoration: line-through;
}

.pc-actions {
display: flex;
gap: 8px;
padding: 0 16px 16px;
}

.add-cart-btn, .buy-now-btn {
flex: 1;
padding: 9px;
border-radius: 10px;
font-size: 0.82rem;
font-weight: 700;
border: none;
cursor: pointer;
text-align: center;
transition: all .2s;
}

.add-cart-btn {
background: var(--slate-100);
color: var(--slate-800);
}

.add-cart-btn:hover {
background: var(--slate-200);
}

.buy-now-btn {
background: var(--emerald-600);
color: #fff;
}

.buy-now-btn:hover {
background: var(--emerald-700);
}

/* STREAMING_CHUNK:Configuring horizontal scrollable product rows... */
.h-scroll-row {
display: flex;
gap: 16px;
overflow-x: auto;
padding-bottom: 12px;
-webkit-overflow-scrolling: touch;
}

.h-scroll-row::-webkit-scrollbar {
height: 6px;
}

.h-scroll-row::-webkit-scrollbar-thumb {
background: var(--slate-200);
border-radius: 10px;
}

.h-scroll-row > .product-card {
flex: 0 0 220px;
}

/* STREAMING_CHUNK:Styling hero slider and promotional feature boxes... */
.hero-flex {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
}

.hero-flex-side {
display: flex;
flex-direction: column;
gap: 14px;
}

.promo-box {
background: #fff;
border: 1px solid var(--slate-200);
border-radius: 16px;
padding: 18px;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
transition: transform .2s;
}

.promo-box:hover {
transform: translateY(-2px);
border-color: var(--emerald-600);
}

.promo-box .eyebrow {
font-size: 0.7rem;
font-weight: 700;
color: var(--emerald-600);
text-transform: uppercase;
}

.promo-box h4 {
font-size: 1.05rem;
font-weight: 700;
color: var(--slate-900);
margin: 4px 0;
}

.promo-box .link {
font-size: 0.8rem;
font-weight: 700;
color: var(--emerald-600);
}

/* STREAMING_CHUNK:Designing category icon tiles and feature strip... */
section {
padding: 36px 0;
}

.section-head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 18px;
}

.section-head h2 {
font-size: 1.45rem;
font-weight: 700;
color: var(--slate-900);
}

.section-head .view-all {
font-size: 0.88rem;
font-weight: 700;
color: var(--emerald-600);
}

/* STREAMING_CHUNK:Styling dark footer grid and brand elements... */
.site-footer {
background: var(--footer-bg, #0f172a);
color: var(--footer-text, #cbd5e1);
padding-top: 50px;
margin-top: 40px;
border-top: 1px solid var(--slate-800);
}

.footer-main-grid {
display: grid;
grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
gap: 36px;
padding-bottom: 40px;
}

.footer-logo {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 14px;
}

.footer-logo-img {
max-height: 44px;
width: auto;
}

.footer-logo-badge {
width: 38px;
height: 38px;
background: var(--footer-link, #10b981);
color: #fff;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
}

.footer-logo-text {
font-size: 1.4rem;
font-weight: 800;
color: #fff;
}

.footer-about-text {
font-size: 0.86rem;
line-height: 1.6;
opacity: 0.8;
margin-bottom: 18px;
}

/* STREAMING_CHUNK:Configuring footer navigation, contacts, and social links... */
.footer-social-links {
display: flex;
gap: 10px;
}

.footer-social-links a {
width: 36px;
height: 36px;
background: rgba(255,255,255,0.08);
color: var(--footer-text, #cbd5e1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
transition: all .2s;
}

.footer-social-links a:hover {
background: var(--footer-link, #10b981);
color: #fff;
transform: translateY(-3px);
}

.footer-heading {
font-size: 1.05rem;
font-weight: 700;
color: #fff;
margin-bottom: 18px;
position: relative;
padding-bottom: 8px;
}

.footer-heading::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 30px;
height: 2px;
background: var(--footer-link, #10b981);
border-radius: 2px;
}

.footer-links-list li {
margin-bottom: 10px;
}

.footer-links-list a {
font-size: 0.88rem;
color: var(--footer-text, #cbd5e1);
display: inline-flex;
align-items: center;
gap: 6px;
transition: all .2s;
}

.arrow-icon {
font-size: 0.65rem;
color: var(--footer-link, #10b981);
transition: transform .2s;
}

.footer-links-list a:hover {
color: #fff;
transform: translateX(4px);
}

.footer-links-list a:hover .arrow-icon {
color: var(--footer-link, #10b981);
}

.footer-contact-info li {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 14px;
}

.info-icon {
width: 32px;
height: 32px;
background: rgba(255,255,255,0.08);
color: var(--footer-link, #10b981);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.85rem;
flex-shrink: 0;
}

.info-text span {
display: block;
font-size: 0.72rem;
opacity: 0.7;
text-transform: uppercase;
}

.info-text strong {
font-size: 0.86rem;
color: #fff;
}

.footer-bottom-bar {
border-top: 1px solid rgba(255,255,255,0.1);
padding: 16px 0;
background: rgba(0,0,0,0.2);
}

.footer-bottom-flex {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.82rem;
flex-wrap: wrap;
gap: 12px;
}

.payment-badges {
display: flex;
gap: 16px;
}

.pay-badge {
background: rgba(255,255,255,0.08);
padding: 4px 10px;
border-radius: 6px;
font-size: 0.75rem;
color: #fff;
display: flex;
align-items: center;
gap: 6px;
}

/* STREAMING_CHUNK:Applying mobile media queries and responsive layout fixes... */
@media (max-width: 860px) {
.hero-flex {
grid-template-columns: 1fr;
}
.product-grid {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.footer-main-grid {
grid-template-columns: 1fr 1fr;
gap: 24px;
}
}

@media (max-width: 768px) {
.topbar {
font-size: 0.7rem;
padding: 5px 0;
}
.topbar-row {
justify-content: center;
}
.topbar-left {
display: none;
}
.topbar-right {
gap: 18px;
}
.topbar-left span {
gap: 4px;
}

.header-main-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 0;
}

/* মোবাইলে লোগো সাইজ ছোট ও ক্লিন রাখা */
.site-logo-img {
max-height: 34px;
max-width: 95px;
}
.logo-text {
font-size: 1.15rem;
}
.logo-badge {
width: 32px;
height: 32px;
font-size: 1.1rem;
}

/* লোগোর সাথেই সার্চ বক্স বসানো */
.header-search-form {
flex: 1;
min-width: 0;
border-radius: 99px;
}
.search-cat-dropdown {
display: none;
}
.search-btn-label {
display: none;
}
.search-input-wrap input {
padding: 6px 10px;
font-size: 0.8rem;
}
.search-input-wrap button {
padding: 0 10px;
height: 30px;
}

/* লাল এনিমেটেড লগইন বাটন কমপ্যাক্ট সাইজ */
.login-btn-animated {
padding: 6px 12px;
font-size: 0.78rem;
}

/* কার্ট বাটন মোবাইলে সম্পূর্ণ হাইড */
.mobile-hidden {
display: none !important;
}

.footer-main-grid {
grid-template-columns: 1fr;
gap: 24px;
}
.footer-bottom-flex {
flex-direction: column;
text-align: center;
}
}
/* সব পেজে ব্যবহৃত ফ্ল্যাশ মেসেজ (সাকসেস/এরর) */
.flash-msg{
  padding:13px 18px; border-radius:12px; font-weight:600; font-size:0.88rem;
  margin-bottom:18px; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.flash-msg.success{ background:var(--emerald-50); color:var(--emerald-800); border:1px solid var(--emerald-100); }
.flash-msg.error{ background:#fef2f2; color:var(--red-600); border:1px solid #fecaca; }
.flash-link{ font-weight:700; text-decoration:underline; }

/* সব পেজে ব্যবহৃত শেয়ার্ড ইউটিলিটি ক্লাস */
.mono{ font-family:'JetBrains Mono', 'Courier New', monospace; }
.btn-primary{
  background:var(--emerald-600); color:#fff; padding:11px 22px; border-radius:12px;
  font-weight:700; font-size:0.88rem; display:inline-block; border:none; cursor:pointer;
  box-shadow:0 4px 14px rgba(5,150,105,0.3); transition:background .2s ease;
}
.btn-primary:hover{ background:var(--emerald-700); color:#fff; }
.btn-outline{
  background:#fff; color:var(--slate-800); padding:10px 20px; border-radius:12px;
  font-weight:700; font-size:0.86rem; display:inline-block; border:1.5px solid var(--slate-200); cursor:pointer;
  transition:all .2s ease;
}
.btn-outline:hover{ border-color:var(--emerald-600); color:var(--emerald-700); }

/* =====================================================
   ইউনিভার্সাল মোবাইল রেসপন্সিভ ফিক্স
   পেজের ভেতরে ইনলাইন স্টাইলে বসানো গ্রিড লেআউটগুলো ছোট স্ক্রিনে
   এক/দুই কলামে নামিয়ে আনার জন্য (attribute selector দিয়ে)
   ===================================================== */
@media (max-width: 900px){
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1.2fr"],
  div[style*="grid-template-columns:1fr 1.2fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"],
  div[style*="grid-template-columns:1.2fr 1fr"],
  div[style*="grid-template-columns: 1fr 340px"],
  div[style*="grid-template-columns:1fr 340px"],
  div[style*="grid-template-columns: 1fr 360px"],
  div[style*="grid-template-columns:1fr 360px"],
  div[style*="grid-template-columns: 240px 1fr"],
  div[style*="grid-template-columns:240px 1fr"],
  div[style*="grid-template-columns: 280px 1fr"],
  div[style*="grid-template-columns:280px 1fr"],
  .user-dashboard-grid,
  .order-details-grid,
  .product-list-layout,
  .prod-detail-grid{
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns: repeat(4,1fr)"],
  div[style*="grid-template-columns:repeat(4,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns:repeat(3,1fr)"]{
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px){
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="grid-template-columns:repeat(2,1fr)"]{
    grid-template-columns: 1fr !important;
  }
  .wrap{ padding-left:16px !important; padding-right:16px !important; }
}
