/*
Theme Name: Al Qalam Block Theme
Theme URI: http://localhost/ALQALAM/
Author: Al Qalam Book Centre
Description: Full Site Editing (FSE) Block Theme for Al Qalam Book Centre.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: alqalam-block
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #F5A623;
  --primary-d: #e0941a;
  --dark:      #1a1a2e;
  --dark2:     #16213e;
  --text:      #2d2d2d;
  --text-light:#666;
  --border:    #e8e8e8;
  --bg-alt:    #f8f9fa;
  --white:     #ffffff;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius:    10px;
  --radius-lg: 16px;
  --transition:all .25s ease;
}

html { scroll-behavior: smooth; margin-top: 0 !important; }
html, body {
  overflow-x: hidden;
  width: 100%;
}
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); }
#wpadminbar { display: none !important; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: #f8f9fa;
  color: #4a4a4a;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
  flex-wrap: nowrap;
  width: 100%;
}
.top-bar-left {
  white-space: nowrap;
  flex-shrink: 0;
  color: #4a4a4a;
  font-weight: 500;
  line-height: 1.2;
}
.top-bar-right {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  line-height: 1.2;
}
.top-bar-right span {
  cursor: pointer;
  color: #4a4a4a;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.top-bar-right span:hover { color: var(--primary); }

/* ============================================================
   STICKY HEADER WRAPPER (Header + Navbar locked at top)
   ============================================================ */
.site-header-wrapper,
.sticky-wrapper,
header.wp-block-template-part {
  position: sticky;
  top: -37px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; cursor: pointer; }
.logo-icon { font-size: 36px; filter: drop-shadow(1px 1px 2px rgba(0,0,0,.15)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 18px; font-weight: 800; color: var(--dark); }
.logo-sub  { font-size: 11px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.logo-urdu { font-size: 12px; color: var(--text-light); }
.logo-img { max-height: 52px; width: auto; display: block; object-fit: contain; }

/* Search */
.search-bar {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 38px;
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.search-bar input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}
.search-bar select {
  height: 100%;
  border: none;
  border-left: 1px solid var(--border);
  outline: none;
  padding: 0 12px;
  font-size: 12px;
  background: var(--bg-alt);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}
.search-btn {
  height: 100%;
  background: var(--dark);
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.search-btn:hover { background: var(--primary); }

/* Header Icons */
.header-icons { display: flex; gap: 24px; flex-shrink: 0; }
.header-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
}
.header-icon .icon { font-size: 22px; }
.header-icon:hover { color: var(--primary); }
.cart-icon { position: relative; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.browse-categories {
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.browse-categories:hover { background: var(--primary-d); }
.categories-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.browse-categories:hover .categories-dropdown,
.browse-categories.open .categories-dropdown { display: flex; }
.categories-dropdown a {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.categories-dropdown a:last-child { border-bottom: none; }
.categories-dropdown a:hover { background: var(--bg-alt); color: var(--primary); padding-left: 28px; }

.mobile-menu-btn { display: none; cursor: pointer; background: var(--primary); color: white; padding: 14px 20px; font-weight: 600; text-align: center; font-size: 14px; gap: 8px; flex: 1; align-items: center; justify-content: center; transition: var(--transition); }
.mobile-menu-btn:hover { background: var(--primary-d); }
.nav-links { display: flex; flex: 1; margin-left: 12px; }
.nav-links a {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 18px;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after { display: none; }
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-phone {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 0;
  margin-left: auto;
}

/* ============================================================
   HERO BANNER (MATCHES USER SCREENSHOT 100%)
   ============================================================ */
.hero {
  background: #FAF6F0;
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
  min-height: 440px;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text {
  flex: 1;
  max-width: 520px;
}
.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: #1a1a2e;
  margin-bottom: 18px;
}
.hero-highlight { color: var(--primary); }
.hero-text p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 32px;
  line-height: 1.6;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,.35);
}

.hero-image {
  flex: 1.2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-img-photo {
  max-width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.08));
}

.hero-dots {
  display: none !important;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: #1a1a2e; width: 28px; border-radius: 5px; }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
  background: white;
  border: none !important;
  padding: 24px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 28px;
  border: none !important;
}
.feature-item:last-child { border-right: none; }
.feature-icon { font-size: 28px; flex-shrink: 0; }
.feature-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--dark); }
.feature-item p { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-header h2 { font-size: 24px; font-weight: 800; color: var(--dark); }
.view-all { font-size: 13px; font-weight: 600; color: var(--text-light); transition: var(--transition); }
.view-all:hover { color: var(--primary); }

/* ============================================================
   CATEGORIES
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.cat-img-box {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.cat-img-box img {
  max-height: 85px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}
.category-card:hover .cat-img-box img { transform: scale(1.06); }
.category-card span { font-size: 13px; font-weight: 700; color: var(--dark); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-img-wrap { position: relative; background: var(--bg-alt); padding: 16px 12px; height: 140px; display: flex; align-items: center; justify-content: center; }
.product-img-wrap img { max-height: 110px; width: auto; object-fit: contain; transition: var(--transition); }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.wishlist-btn:hover, .wishlist-btn.active { background: #ff4757; color: white; border-color: #ff4757; }

.product-info { padding: 14px 12px 14px; }
.product-info h3 { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 6px; line-height: 1.3; }
.stars { font-size: 11px; color: #f5a623; margin-bottom: 10px; }
.stars span { color: var(--text-light); font-size: 10px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 15px; font-weight: 800; color: var(--dark); }
.add-cart-btn {
  background: var(--dark);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.add-cart-btn:hover { background: var(--primary); transform: scale(1.1); }

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.promo-section { padding: 40px 0; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-yellow { background: linear-gradient(135deg, #FFF3C4, #FFE8A0); border: 2px solid #F5A623; }
.promo-blue   { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); border: 2px solid #2196F3; }
.promo-text .promo-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 6px; }
.promo-text h3 { font-size: 28px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.promo-text p { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.btn-dark {
  background: var(--dark);
  color: white;
  border: none;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-dark:hover { background: var(--primary); transform: translateY(-2px); }
.promo-img-box img { max-height: 140px; width: auto; object-fit: contain; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--dark);
  padding: 40px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.newsletter-icon { font-size: 48px; flex-shrink: 0; }
.newsletter-text h3 { font-size: 20px; font-weight: 700; color: white; margin-bottom: 6px; }
.newsletter-text p { font-size: 13px; color: rgba(255,255,255,.65); }
.newsletter-form {
  display: flex;
  gap: 0;
  flex: 1;
  min-width: 300px;
  border-radius: var(--radius);
  overflow: hidden;
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  background: white;
  color: var(--text);
  outline: none;
  font-family: 'Inter', sans-serif;
}
.newsletter-form input::placeholder { color: #999; }
.btn-subscribe {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-subscribe:hover { background: var(--primary-d); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: white; }

.footer-col h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); border-radius: 2px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); padding-left: 6px; }
.contact-list li { font-size: 13px; color: rgba(255,255,255,.55); padding: 2px 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding: 20px 0;
}
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.4); }
.payment-icons { display: flex; gap: 8px; }
.payment-badge {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: .5px;
}

/* ============================================================
   CART SIDEBAR
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  height: 100vh;
  background: white;
  z-index: 1999;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  transition: right .35s ease;
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 18px; font-weight: 700; color: var(--dark); }
.close-cart {
  background: var(--bg-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}
.close-cart:hover { background: #ffebee; color: #e53935; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.empty-cart { text-align: center; color: var(--text-light); font-size: 14px; margin-top: 40px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: var(--primary); font-weight: 700; }
.cart-item-remove {
  background: none;
  border: none;
  color: #e53935;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}
.cart-item-remove:hover { background: #ffebee; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; justify-content: space-between; }
.full-width { width: 100%; justify-content: center; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all .35s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }



/* ============================================================
   PRODUCT DETAIL MODAL
   ============================================================ */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  backdrop-filter: blur(4px);
}
.product-modal-overlay.show { opacity: 1; visibility: visible; }

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(.95);
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 3001;
  box-shadow: 0 32px 80px rgba(0,0,0,.25);
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  opacity: 0;
  visibility: hidden;
}
.product-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.product-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.product-modal-img-side {
  background: var(--bg-alt);
  border-radius: 20px 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.product-modal-img-side img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform .4s ease;
}
.product-modal-img-side:hover img { transform: scale(1.06); }

.product-modal-info-side {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.07);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.product-modal-close:hover { background: #ffebee; color: #e53935; }

.product-modal-badge {
  display: inline-block;
  background: rgba(245,166,35,.15);
  color: var(--primary-d);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: .5px;
  text-transform: uppercase;
  width: fit-content;
}
.product-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}
.product-modal-stars { color: #f5a623; font-size: 15px; }
.product-modal-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.product-modal-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.product-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.product-meta-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}
.product-meta-tag strong { color: var(--dark); }
.product-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.product-modal-actions .btn-primary {
  flex: 1;
  text-align: center;
  border-radius: 10px;
}
.product-modal-wishlist {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}
.product-modal-wishlist:hover { border-color: #e53935; background: #fff0f0; }

/* Clickable product card cursor */
.product-card { cursor: pointer; }

/* ============================================================
   PRODUCT MODAL RESPONSIVE
   ============================================================ */
@media (max-width: 650px) {
  .product-modal-inner { grid-template-columns: 1fr; }
  .product-modal-img-side { border-radius: 20px 20px 0 0; padding: 24px; max-height: 220px; }
  .product-modal { max-width: 96%; }
}

/* ============================================================
   ABOUT US SECTION
   ============================================================ */
/* Scroll Margin Offset for Sticky Header */
#aboutSection,
#productsSection,
#categorySection,
#promoSection,
#newsletterSection,
.section,
.about-section {
  scroll-margin-top: 140px;
}

.about-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.section-tag {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  color: #d97706;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.about-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.about-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-d);
  margin-bottom: 16px;
  line-height: 1.4;
}
.about-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 550px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}
.about-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.feat-icon {
  font-size: 18px;
}
.about-stats-card {
  background: var(--dark);
  color: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-stats-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(245, 166, 35, 0.15);
  border-radius: 50%;
}
.stat-box {
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 18px;
}
.stat-box:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* ============================================================
   CONTACT US SECTION
   ============================================================ */
.contact-section {
  padding: 60px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 140px;
}
.contact-header-wrap {
  text-align: left;
  margin-bottom: 28px;
  width: 100%;
}
.contact-header-wrap h2,
#contactTitle {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  text-align: left;
}
.section-desc {
  font-size: 14px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: 12px;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.contact-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.contact-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}
.contact-form-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.contact-form-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 550px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.form-group .req {
  color: #e53935;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  background: #fafafa;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
.contact-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  border-radius: 8px;
  margin-top: 6px;
}

/* ============================================================
   BLOG & VIDEO SECTION
   ============================================================ */
.blog-section {
  padding: 60px 0;
  background: var(--bg-alt);
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.blog-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.blog-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  margin: 12px 0 10px;
  line-height: 1.3;
}
.blog-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-d);
  margin-bottom: 14px;
  line-height: 1.5;
}
.blog-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}
.blog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
}
.blog-video-wrap {
  position: relative;
  width: 100%;
}
.blog-video-card {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  border: 2px solid rgba(245,166,35,.3);
  position: relative;
}
.blog-video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}
.video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(26,26,46,.85);
  color: #F5A623;
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(245,166,35,.4);
  letter-spacing: .3px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE DESIGN OVERRIDES
   ============================================================ */

/* TABLET & SMALL DESKTOP (Max Width: 1100px) */
@media (max-width: 1100px) {
  .container { padding: 0 20px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* TABLET (Max Width: 900px) */
@media (max-width: 900px) {
  .top-bar { display: none !important; }
  .nav-phone { display: none !important; }
  .nav-inner { flex-wrap: wrap; position: relative; }
  .browse-categories { flex: 1; justify-content: center; }
  .mobile-menu-btn { display: flex; }
  
  .nav-links { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: var(--dark); 
    z-index: 1000; 
    margin-left: 0; 
    padding: 0; 
  }
  .nav-links.active { display: flex !important; }
  .nav-links a { width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px; }
  .nav-links a:last-child { border-bottom: none; }
  
  .hero-text h1 { font-size: 36px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-grid, .blog-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* MOBILE LANDSCAPE & SMALL TABLET (Max Width: 768px) */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
  .logo { width: auto; justify-content: flex-start; }
  .logo img { max-height: 40px; max-width: 150px; }
  .header-icons { justify-content: flex-end; width: auto; gap: 15px; }
  .header-icon span:nth-child(2) { display: none; }
  .search-bar { order: 3; flex-basis: 100%; margin-top: 5px; }
  
  .hero { min-height: auto; padding: 40px 0; }
  .hero-content { flex-direction: column; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-image { justify-content: center; margin-top: 20px; }
  .hero-text h1 { font-size: 32px; }
  
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .promo-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

/* MOBILE PORTRAIT (Max Width: 550px) */
@media (max-width: 550px) {
  .section { padding: 40px 0; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-img-wrap { height: 150px; }
  .product-info h3 { font-size: 13px; }
  .product-info .price { font-size: 14px; }
  
  .features-grid { grid-template-columns: 1fr; text-align: center; }
  .feature-item { flex-direction: column; text-align: center; padding: 15px 10px; border-right: none; border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-col h4::after { left: 50%; transform: translateX(-50%); }
  .social-links { justify-content: center; }
  .footer-brand .footer-logo { justify-content: center; }
  .footer-bottom-inner { flex-direction: column; gap: 15px; text-align: center; }
  
  .product-modal-inner { grid-template-columns: 1fr; max-height: 85vh; overflow-y: auto; }
  .product-modal-img-side { border-radius: 20px 20px 0 0; max-height: 250px; }
  .product-modal { max-height: 90vh; width: 92%; }
  .product-modal-info-side { padding: 24px 20px; }
  .product-modal-title { font-size: 20px; }
  .product-modal-price { font-size: 24px; }
  
  .contact-grid, .about-grid, .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .newsletter-inner { flex-direction: column; text-align: center; gap: 16px; }
  .newsletter-form { flex-direction: column; width: 100%; min-width: 0 !important; }
  .newsletter-form input { border-radius: 8px; margin-bottom: 8px; }
  .btn-subscribe { width: 100%; border-radius: 8px; margin-top: 0; }
  
  .promo-card { padding: 24px 20px; flex-direction: column; text-align: center; gap: 16px; }
  .promo-img-box { order: -1; }
  
  .cart-sidebar { width: 100%; right: -100%; }
}

/* SMALL MOBILE (Max Width: 400px) */
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 28px; }
  .hero-badge { font-size: 10px; padding: 5px 10px; }
  .about-stats-card { padding: 24px 20px; }
  .stat-num { font-size: 26px; }
  .contact-form-box { padding: 24px 20px; }
}

/* FIX FSE OVERFLOW */
.alignfull {
  max-width: 100vw !important;
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow-x: hidden;
}
img, video { max-width: 100% !important; height: auto; }
