/**
 * 4Hand Industries - Frontend Styles
 * Developer: Majedul Islam
 */
:root {
  --primary: #0ea5e9;
  --secondary: #10b981;
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}
[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.logo { height: 40px; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--primary); }
.nav-tools { display: flex; gap: 10px; }
.btn-lang, .btn-theme {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 8px 14px; border-radius: 8px;
  cursor: pointer; font-size: 14px; text-decoration: none;
}
.hero {
  padding: 100px 20px; text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.hero h1 { font-size: clamp(28px, 5vw, 48px); margin-bottom: 15px; }
.hero p { font-size: 18px; margin-bottom: 30px; opacity: .9; }
.btn-primary {
  display: inline-block; background: #fff; color: var(--primary);
  padding: 14px 32px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.products-section { padding: 60px 20px; }
.products-section h2 { text-align: center; font-size: 32px; margin-bottom: 40px; }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; transition: transform .2s;
}
.product-card:hover { transform: translateY(-4px); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card h3 { padding: 15px 15px 5px; font-size: 18px; }
.product-card p { padding: 0 15px; color: var(--muted); font-size: 14px; }
.btn-link { display: inline-block; padding: 10px 15px 15px; color: var(--primary); text-decoration: none; font-weight: 600; }
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 30px 20px; text-align: center; color: var(--muted);
}
.dev-credit { margin-top: 8px; font-size: 13px; }
@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-wrap { flex-wrap: wrap; }
}

/* ==========================================================
   Additional styles — Developer: Majedul Islam
   ========================================================== */

/* Page viewer */
.page-main { padding: 50px 20px; }
.page-content h1 { font-size: clamp(26px,4vw,40px); margin-bottom: 20px; }
.page-hero-img { width:100%; max-height:450px; object-fit:cover; border-radius:12px; margin-bottom:24px; }
.rich-content { font-size:17px; line-height:1.8; }
.rich-content h2, .rich-content h3 { margin: 24px 0 12px; }
.rich-content img { max-width:100%; height:auto; border-radius:8px; }
.rich-content ul, .rich-content ol { margin: 12px 0 12px 24px; }

/* Product detail */
.product-detail-page { padding: 40px 20px; }
.breadcrumb { margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px;
}
@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; } }
.product-gallery .main-img {
  width: 100%; border-radius: 12px; aspect-ratio: 1; object-fit: cover;
  background: var(--surface);
}
.product-gallery .thumbs {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.product-gallery .thumbs img {
  width: 70px; height: 70px; object-fit: cover; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent;
}
.product-gallery .thumbs img:hover { border-color: var(--primary); }
.product-info h1 { font-size: clamp(24px,3vw,36px); margin-bottom: 12px; }
.category-badge {
  display: inline-block; background: var(--surface); color: var(--primary);
  padding: 4px 12px; border-radius: 20px; font-size: 12px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 12px;
}
.price { font-size: 26px; font-weight: 700; color: var(--secondary); margin-bottom: 20px; }
.product-info .description { margin-bottom: 20px; line-height: 1.8; }
.specs { margin: 20px 0; padding: 20px; background: var(--surface); border-radius: 12px; }
.related { padding: 40px 0; }

/* Contact form */
.contact-form { max-width: 600px; margin: 30px auto; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: block; font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px; margin-top: 6px; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 15px; background: var(--bg); color: var(--text);
}
.contact-form button { align-self: flex-start; border: none; cursor: pointer; font-size: 15px; }

/* ==========================================================
   Homepage Enhancements — Developer: Majedul Islam
   ========================================================== */

body { font-family: 'Inter', 'Hind Siliguri', system-ui, sans-serif; }
html[lang="bn"] body { font-family: 'Hind Siliguri', 'Inter', system-ui, sans-serif; }

/* Sticky header shrink */
.site-header { transition: box-shadow .3s, padding .3s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; background: none; border: none; font-size: 24px;
  color: var(--text); cursor: pointer; padding: 6px 10px;
}
@media (max-width: 900px) {
  .menu-toggle { display: block; order: 2; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 20px; gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .nav-wrap { position: relative; flex-wrap: nowrap; }
  .nav-tools { margin-left: auto; }
}

/* ============ HERO ============ */
.hero-enhanced {
  position: relative; overflow: hidden;
  padding: 110px 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  color: #fff;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-bg-shapes .shape {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .3;
  background: #fff;
}
.shape-1 { width: 400px; height: 400px; top: -100px; left: -100px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 300px; height: 300px; bottom: -100px; right: 10%; animation: float 10s ease-in-out infinite 2s; }
.shape-3 { width: 200px; height: 200px; top: 40%; right: 30%; animation: float 6s ease-in-out infinite 1s; }
@keyframes float {
  0%,100% { transform: translate(0,0) }
  50%     { transform: translate(30px,-30px) }
}

.hero-inner { position: relative; z-index: 1; }
.hero-text { max-width: 720px; }
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,.2);
  padding: 6px 14px; border-radius: 20px; font-size: 13px;
  font-weight: 600; letter-spacing: .5px; margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-enhanced h1 {
  font-size: clamp(32px, 6vw, 60px); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px;
}
.hero-enhanced p {
  font-size: clamp(16px, 2vw, 20px); opacity: .95;
  margin-bottom: 32px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-outline {
  display: inline-block; padding: 14px 32px; border-radius: 8px;
  border: 2px solid #fff; color: #fff; text-decoration: none;
  font-weight: 600; transition: background .2s, color .2s;
}
.btn-outline:hover { background: #fff; color: #0ea5e9; }
.hero-contact {
  display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; opacity: .9;
}

/* ============ SECTION HEAD ============ */
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  margin-bottom: 12px; color: var(--text);
}
.section-head p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ============ FEATURES ============ */
.features-section { padding: 80px 20px; background: var(--surface); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg); padding: 32px 26px; border-radius: 16px;
  border: 1px solid var(--border); text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.feature-icon { font-size: 42px; margin-bottom: 16px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ============ CATEGORIES ============ */
.categories-section { padding: 80px 20px; }
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.category-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface); padding: 32px 24px;
  border-radius: 16px; border: 1px solid var(--border);
  text-align: center; transition: all .25s;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(14,165,233,.15);
}
.category-icon { font-size: 48px; margin-bottom: 14px; }
.category-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.category-count { font-size: 13px; color: var(--muted); }

/* ============ PRODUCTS ============ */
.products-section { padding: 80px 20px; background: var(--surface); }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.product-img-link { display: block; }
.product-img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface);
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-placeholder {
  display: grid; place-items: center; height: 100%;
  font-size: 60px; color: var(--muted); opacity: .4;
}
.product-cat-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,.7); color: #fff;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; text-transform: uppercase; font-weight: 600;
  backdrop-filter: blur(4px);
}
.product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.product-body p {
  color: var(--muted); font-size: 14px; line-height: 1.5;
  margin-bottom: 14px; flex: 1;
}
.product-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.product-price {
  font-size: 18px; font-weight: 700; color: var(--secondary);
}

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--bg); border-radius: 16px;
  border: 2px dashed var(--border);
}
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ============ ABOUT STRIP ============ */
.about-strip { padding: 80px 20px; }
.about-inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 900px) { .about-inner { grid-template-columns: 1fr; gap: 40px; } }
.about-text .eyebrow {
  display: inline-block; background: var(--surface); color: var(--primary);
  padding: 6px 14px; border-radius: 20px; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 16px;
}
.about-text h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 16px; }
.about-excerpt { color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.about-stats .stat {
  background: var(--surface); padding: 24px; border-radius: 16px;
  border: 1px solid var(--border); text-align: center;
}
.about-stats .stat strong {
  display: block; font-size: 32px; font-weight: 800;
  color: var(--primary); margin-bottom: 4px;
}
.about-stats .stat span { font-size: 13px; color: var(--muted); }

/* ============ CTA ============ */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  color: #fff; text-align: center;
}
.cta-inner h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { font-size: 18px; opacity: .95; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { background: #fff; color: #0ea5e9; }
.cta-section .btn-primary:hover { background: #f1f5f9; }

/* ============ FOOTER ============ */
.site-footer {
  background: #0f172a; color: #cbd5e1; padding: 60px 20px 0;
  border-top: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 550px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h3 { color: #fff; font-size: 20px; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.footer-contact { color: #94a3b8; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: #cbd5e1; text-decoration: none; font-size: 14px;
  transition: color .2s;
}
.footer-col ul a:hover { color: #0ea5e9; }
.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-links a {
  color: #cbd5e1; text-decoration: none; font-size: 14px;
  transition: color .2s;
}
.social-links a:hover { color: #0ea5e9; }
.social-links .muted { color: #475569; font-size: 13px; }

.footer-bottom {
  border-top: 1px solid #1e293b; padding: 22px 0;
  text-align: center; font-size: 13px; color: #64748b;
}
.footer-bottom p { margin: 4px 0; }

/* ============ SCROLL TOP ============ */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  font-size: 20px; cursor: pointer; box-shadow: 0 8px 20px rgba(14,165,233,.4);
  opacity: 0; visibility: hidden; transition: all .3s;
  z-index: 99;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); }

/* ============ DARK MODE TUNING ============ */
[data-theme="dark"] .site-footer { background: #020617; }
[data-theme="dark"] .feature-card { background: var(--bg); }
[data-theme="dark"] .about-stats .stat { background: var(--bg); }

/* ============ Products Listing Page — Developer: Majedul Islam ============ */
.products-listing-page { padding: 50px 20px 80px; }
.listing-head { text-align: center; margin-bottom: 40px; }
.listing-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.listing-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 16px; }

.listing-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.search-form { display: flex; gap: 8px; flex: 1; max-width: 380px; }
.search-form input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px;
}
.search-form button {
  padding: 0 18px; border: none; background: var(--primary);
  color: #fff; border-radius: 8px; cursor: pointer; font-size: 16px;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs a {
  padding: 8px 16px; border-radius: 20px; text-decoration: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; transition: all .2s;
}
.filter-tabs a:hover { border-color: var(--primary); color: var(--primary); }
.filter-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 40px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); font-size: 14px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ============ Products Listing — Developer: Majedul Islam ============ */
.products-listing-page { padding: 50px 20px 80px; }
.listing-head { text-align: center; margin-bottom: 40px; }
.listing-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.listing-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 16px; }

.listing-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.search-form { display: flex; gap: 8px; flex: 1; max-width: 380px; }
.search-form input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px;
}
.search-form button {
  padding: 0 18px; border: none; background: var(--primary);
  color: #fff; border-radius: 8px; cursor: pointer; font-size: 16px;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs a {
  padding: 8px 16px; border-radius: 20px; text-decoration: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; transition: all .2s;
}
.filter-tabs a:hover { border-color: var(--primary); color: var(--primary); }
.filter-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 40px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); font-size: 14px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}