/* ── Google Fonts ────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Slab:wght@600;700&display=swap');

/* ── Variables ──────────────────────────────────────────────────────── */
:root {
  --primary:      rgb(55,160,242);   /* xanh dương Smartliving */
  --primary-dark: #1f8fd4;
  --header-bg:    #33373F;   /* header / nav tối */
  --accent:       #e53935;
  --text:         #242424;
  --text-muted:   #777;
  --bg:           #fff;
  --bg-gray:      #f5f7fa;
  --border:       #e5e7eb;
  --radius:       8px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --header-h:     90px;
  --topbar-h:     36px;
  --nav-h:        48px;
  --transition:   .2s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', Arial, Helvetica, sans-serif; color: var(--text); background: #f0f0f0; line-height: 1.6; font-size: 14px; overflow-x: clip; }
#main-content { background: #f0f0f0; }
h1,h2,h3,h4,h5 { font-family: 'Roboto Slab', 'Roboto', Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ── Container ──────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius); font-weight: 600;
  font-size: .95rem; transition: var(--transition); gap: 6px; min-height: 44px;
}
.btn-primary   { background: var(--primary); color: #fff; font-family: 'Roboto Slab',sans-serif; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline   { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger    { background: var(--accent); color: #fff; }
.btn-sm        { padding: 6px 12px; font-size: .85rem; min-height: 36px; }
.btn-block     { width: 100%; }
.btn-lg        { padding: 14px 28px; font-size: 1.05rem; }

/* ── Alerts ─────────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Forms ──────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,108,176,.15);
}
.required { color: var(--accent); }

/* ── Header ─────────────────────────────────────────────────────────── */
#main-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 1px 0 var(--border), 0 4px 12px rgba(0,0,0,.06);
  overflow: visible;
}
.header-inner {
  display: flex; align-items: center; height: 64px; gap: 0;
}
.banner-header { flex-shrink: 0; margin-right: 24px; }
.banner-header img { height: 46px; width: auto; display: block; }

/* ── Nav (inside header) ─────────────────────────────────────────────── */
.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; list-style: none; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px; padding: 10px 14px;
  font-weight: 600; font-size: .88rem; color: var(--text); white-space: nowrap;
  border-radius: 4px; transition: var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active { color: var(--primary); }
.nav-arrow {
  display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55; flex-shrink: 0;
}

/* Shop mega dropdown */
.shop-dropdown {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-top: 2px solid var(--primary); border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 300;
  padding: 16px 0;
  transition: opacity .15s .1s, visibility .15s .1s;
}
.shop-dropdown.open {
  visibility: visible; opacity: 1; pointer-events: auto;
  transition-delay: 0s;
}
.shop-dropdown-inner {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 0;
}
.shop-dropdown li { list-style: none; }
.shop-dropdown li a {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--text); transition: var(--transition); text-decoration: none;
}
.shop-dropdown li a img {
  width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid var(--border);
}
.shop-dropdown-cat-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shop-dropdown-cat-name {
  font-size: .82rem; font-weight: 600; color: var(--text);
  line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-dropdown-cat-count { font-size: .75rem; color: var(--text-muted); }
.shop-dropdown li a:hover { background: #f0f8ff; }
.shop-dropdown li a:hover .shop-dropdown-cat-name { color: var(--primary); }
.shop-dropdown li a:hover img { border-color: var(--primary); }

/* ── Header Search (icon + dropdown) ──────────────────────────────────── */
.header-search-wrap { position: relative; }
.search-toggle { color: var(--text); padding: 8px; border-radius: 6px; }
.search-toggle:hover { background: var(--bg-gray); color: var(--primary); }
.header-search-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); z-index: 300; padding: 12px;
}
.header-search-dropdown form { display: flex; gap: 6px; }
.header-search-dropdown input {
  flex: 1; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .9rem;
}
.header-search-dropdown input:focus { outline: none; border-color: var(--primary); }
.header-search-dropdown button {
  padding: 8px 14px; background: var(--header-bg); color: #fff;
  border-radius: 6px; font-size: .85rem; font-weight: 600; transition: var(--transition);
}
.header-search-dropdown button:hover { background: var(--primary); }

/* Live search results (reused) */
.live-search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); z-index: 200; max-height: 360px; overflow-y: auto; margin-top: 4px;
}
.live-search-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.live-search-item:hover { background: var(--bg-gray); }
.live-search-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.live-search-item-name { font-size: .88rem; font-weight: 600; }
.live-search-item-price { font-size: .82rem; color: #c0392b; }

/* ── Header cart icon ──────────────────────────────────────────────────── */
.header-icons { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex-shrink: 0; }
.icon-btn { position: relative; padding: 8px; min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; color: var(--text); border-radius: 6px; transition: var(--transition); }
.icon-btn:hover { color: var(--primary); background: var(--bg-gray); }
.cart-icon-btn { color: var(--text); }
.cart-badge {
  position: absolute; top: 2px; right: 2px; background: var(--accent); color: #fff;
  border-radius: 50%; width: 18px; height: 18px; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

.hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px; min-height: 44px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── Mobile Drawer ──────────────────────────────────────────────────── */
.mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300;
}
.mobile-overlay.open { display: block; }
.mobile-drawer {
  position: fixed; top: 0; left: -290px; width: 270px; height: 100vh;
  background: #fff; z-index: 400; transition: left .28s ease;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,.15);
}
.mobile-drawer.open { left: 0; }
.drawer-close { font-size: 1.4rem; padding: 8px 20px; display: block; margin-bottom: 8px; color: #555; }
.drawer-close:hover { color: var(--primary); }
.drawer-menu li > a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; font-size: .9rem; font-weight: 600;
  border-bottom: 1px solid var(--border); width: 100%;
  color: var(--text); text-transform: uppercase; letter-spacing: .04em;
}
.drawer-menu li > a img { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.drawer-menu li > a:hover { color: var(--primary); }
.drawer-section-label {
  padding: 10px 20px 4px;
  font-size: .72rem; font-weight: 700; color: #999;
  text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-gray);
}
.drawer-section-label span { display: block; }
.drawer-cat-item > a {
  font-size: .85rem !important; font-weight: 500 !important;
  text-transform: none !important; letter-spacing: 0 !important;
  padding: 10px 20px 10px 28px !important; color: #444 !important;
}

/* ── Section Titles ─────────────────────────────────────────────────── */
.section-title {
  font-size: 1rem; font-weight: 700; text-align: left;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  font-family: 'Roboto', sans-serif;
}
.page-title { font-size: 1.8rem; font-weight: 700; margin: 24px 0 20px; }

/* Banner slider styles now in home.css (homepage only) */

/* ── Product Grid ────────────────────────────────────────────────────── */
.product-grid { display: grid;}
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  display: flex; flex-direction: column; min-width: 0;
  transition: var(--transition);
}
.product-card:hover { opacity: .9; }
.product-thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
.product-thumb img:not(.product-badge-img) { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.product-card:hover .product-thumb img { transform: scale(1.03); }
.badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.badge.sale { background: var(--accent); color: #fff; }
.product-badge-img { position: absolute; top: 8px; left: 8px; max-width: 55px; max-height: 55px; width: auto; height: auto; object-fit: contain; border-radius: 6px; pointer-events: none; }
.product-info { padding: 5px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: .9rem; font-weight: 600; margin-bottom: 8px; flex: 1; overflow-wrap: anywhere; }
.product-name a:hover { color: var(--primary); }
.product-price { margin-bottom: 10px; }
.price, .price-main { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.price-sale { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.price-range { font-size: .9rem; color: var(--primary); font-weight: 500; }
.price-original { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.btn-add-cart {
  background: var(--header-bg); color: #fff; border-radius: var(--radius);
  padding: 8px; font-size: .82rem; font-weight: 700; width: 100%;
  transition: var(--transition); min-height: 36px; text-transform: uppercase; letter-spacing: .03em;
}
.btn-add-cart:hover { background: var(--primary); color: #fff; }


/* ── Project Gallery ────────────────────────────────────────────────── */
.project-section { padding: 48px 0; }
.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.project-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project-card img { width: 100%; height: 220px; object-fit: cover; }
.project-card h3 { padding: 12px; font-size: .95rem; }

/* ── Shop Layout ────────────────────────────────────────────────────── */
.category-page-wrap { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 24px; overflow: hidden; }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.shop-sidebar { position: sticky; top: 80px; height: fit-content; }
.shop-main { min-width: 0; }
.shop-sidebar h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.cat-list li a { display: block; padding: 8px 0; font-size: .9rem; border-bottom: 1px solid var(--border); transition: var(--transition); }
.cat-list li a:hover, .cat-list li a.active { color: var(--primary); font-weight: 600; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.result-count { color: var(--text-muted); font-size: .9rem; }
.sort-form select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); }
.no-results { text-align: center; padding: 48px; color: var(--text-muted); }

/* ── Pagination ─────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.page-link {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: var(--radius); font-weight: 600; transition: var(--transition);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Cart ───────────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.cart-items { min-width: 0; }
/* Cart item card */
.cart-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.cart-item-row1 { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.cart-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cart-name { flex: 1; font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.cart-name:hover { color: var(--primary); }
.cart-remove { font-size: 1rem; color: var(--text-muted); min-height: 36px; min-width: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; }
.cart-remove:hover { color: var(--accent); background: #fee; }
.cart-item-row2 { display: flex; align-items: center; gap: 0; }
.cart-meta-cell { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 10px 8px; border-right: 1px solid var(--border); }
.cart-meta-cell:last-child { border-right: none; }
.cart-meta-label { font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; }
.cart-price { font-size: .9rem; color: var(--text); }
.cart-subtotal { font-size: .95rem; font-weight: 700; color: var(--primary); }
.qty-input { width: 60px; padding: 5px; border: 1.5px solid var(--border); border-radius: 6px; text-align: center; font-size: .9rem; }
.cart-remove:hover { color: var(--accent); }
.cart-summary { background: var(--bg-gray); padding: 20px; border-radius: var(--radius); height: fit-content; display: flex; flex-direction: column; gap: 10px; }
.cart-summary h3 { margin-bottom: 6px; }
.cart-summary h3 { margin-bottom: 16px; font-size: 1.1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.total-row { font-size: 1.1rem; border: none; margin-top: 8px; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }

/* ── Checkout ───────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.checkout-form h2, .order-summary h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.summary-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.summary-table td, .summary-table th { padding: 10px 8px; border-bottom: 1px solid var(--border); }

/* ── Order Success ──────────────────────────────────────────────────── */
.success-box { max-width: 500px; margin: 60px auto; padding: 40px; background: var(--bg-gray); border-radius: var(--radius); }
.success-icon { width: 64px; height: 64px; background: #16a34a; color: #fff; border-radius: 50%; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-box h1 { font-size: 1.5rem; margin-bottom: 12px; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* ── Cart Drawer ─────────────────────────────────────────────────────── */
.cart-drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 900;
}
.cart-drawer-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 360px; max-width: 100vw;
  background: #fff; z-index: 901;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-size: 1.05rem; font-weight: 700;
}
.cart-drawer-close {
  font-size: .85rem; color: var(--text-muted); padding: 4px 8px;
  border: 1px solid var(--border); border-radius: 4px;
  transition: var(--transition);
}
.cart-drawer-close:hover { background: var(--bg-gray); }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 12px 0; }
.cart-drawer-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 20px; border-bottom: 1px solid var(--bg-gray);
}
.cart-drawer-item img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 6px;
  flex-shrink: 0; border: 1px solid var(--border);
}
.cart-drawer-item-body { flex: 1; min-width: 0; }
.cart-drawer-item-name {
  font-size: .88rem; font-weight: 600; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-drawer-item-attrs { font-size: .8rem; color: #555; margin-bottom: 4px; }
.cart-drawer-item-attrs span { display: block; }
.cart-drawer-item-price { font-size: .88rem; color: var(--primary); font-weight: 600; }
.cart-drawer-item-remove {
  flex-shrink: 0; color: #aaa; font-size: 1rem; padding: 2px 6px;
  line-height: 1; transition: color .2s;
}
.cart-drawer-item-remove:hover { color: var(--accent); }
.cart-drawer-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); font-size: .9rem; }
.cart-drawer-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.cart-drawer-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .95rem; font-weight: 700; margin-bottom: 4px;
}
.cart-drawer-total-val { color: var(--primary); font-size: 1.1rem; }

/* ── Float Buttons ──────────────────────────────────────────────────── */
.float-buttons {
  position: fixed; bottom: 80px; right: 16px; z-index: 200;
  display: none; flex-direction: column; gap: 10px;
  animation: floatIn .5s ease .5s both;
}
@keyframes floatIn { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: var(--transition); position: relative;
}
.float-btn:hover { transform: scale(1.1); }
.btn-chatspace { background: #0068FF; }
.btn-phone     { background: #25D366; }
.btn-chat-ai   { background: #7C3AED; }
.chat-badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: .7rem; display: flex; align-items: center; justify-content: center; }

/* ── Chat Widget ────────────────────────────────────────────────────── */
.chat-widget {
  position: fixed; bottom: 80px; right: 76px; z-index: 300;
  width: 320px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15); overflow: hidden;
}
.chat-header {
  background: var(--primary); color: #fff; padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 600;
}
.chat-header button { color: #fff; font-size: 1.1rem; }
.chat-messages { height: 280px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: .88rem; line-height: 1.4; }
.chat-msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.bot  { background: var(--bg-gray); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-input-area { display: flex; border-top: 1px solid var(--border); }
#chat-input { flex: 1; padding: 10px 12px; border: none; font-size: .9rem; }
#chat-send { padding: 10px 16px; background: var(--primary); color: #fff; font-size: .88rem; font-weight: 600; }

/* ── Bottom Nav ─────────────────────────────────────────────────────── */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border); z-index: 200;
  height: 60px;
}
.bottom-nav { display: none; }
.bnav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; flex: 1; font-size: .68rem; padding: 6px;
  position: relative; min-height: 44px;
}
.bnav-item.active { color: var(--primary); }
.bnav-icon-wrap { position: relative; display: inline-flex; }
.bnav-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff; border-radius: 50%;
  width: 16px; height: 16px; font-size: .65rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: #f0f0f0; border-top: 1px solid var(--border); padding: 32px 0; color: #444; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: flex-start; }
.footer-col h4 { font-size: .88rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-brand { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; color: var(--text); }

.footer-contact-list { list-style: none; margin-bottom: 16px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; margin-bottom: 7px; line-height: 1.4; }
.footer-contact-list li i { width: 14px; text-align: center; flex-shrink: 0; margin-top: 2px; font-size: .78rem; }
.footer-contact-list em { font-style: normal; }
.footer-copy { font-size: .78rem; line-height: 1.6; margin-top: 12px; }

.footer-links { list-style: disc; padding-left: 18px; }
.footer-links li { font-size: .82rem; margin-bottom: 7px; }
.footer-links a { color: #444; }
.footer-links a:hover { color: var(--primary); }

.footer-social-icons { display: flex; gap: 10px; margin-top: 4px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; transition: var(--transition); }
.si-facebook { background: #1877f2; }
.si-facebook:hover { background: #1465d0; }
.si-youtube  { background: #ff0000; }
.si-youtube:hover  { background: #cc0000; }

/* ── Project Page ───────────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.project-info { padding: 16px; }
.project-info h3 { margin-bottom: 8px; }
.project-info p { font-size: .88rem; color: var(--text-muted); }


/* ── Quote form ─────────────────────────────────────────────────────── */
.quote-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.quote-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.quote-table th, .quote-table td { padding: 8px 12px; border: 1px solid var(--border); }
.quote-table th { background: var(--bg-gray); }
.qty-small { width: 60px; padding: 4px; text-align: center; border: 1px solid var(--border); border-radius: 4px; }

/* ── Lookup ─────────────────────────────────────────────────────────── */
.lookup-form { max-width: 400px; margin: 24px 0; }
.order-result { margin-top: 24px; background: var(--bg-gray); padding: 24px; border-radius: var(--radius); }
.status-badge { padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.status-new        { background: #dbeafe; color: #1e40af; }
.status-processing { background: #fef3c7; color: #92400e; }
.status-shipping   { background: #e0f2fe; color: #0369a1; }
.status-completed  { background: #d1fae5; color: #065f46; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }

/* ── Text/Image Section ─────────────────────────────────────────────── */
.text-image-section { padding: 48px 0; }
.text-image { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.text-image.pos-left { direction: rtl; }
.text-image.pos-left > * { direction: ltr; }
.ti-text h2 { font-size: 1.5rem; margin-bottom: 12px; }
.single-banner { position: relative; }
.single-banner img { width: 100%; max-height: 300px; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; display: flex; align-items: center; background: rgba(0,0,0,.3); }
.banner-overlay h2 { color: #fff; font-size: 1.8rem; margin-bottom: 16px; }

/* ── Text helpers ───────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
═════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .product-grid.cols-5 { grid-template-columns: repeat(3,1fr); }
  .product-grid.cols-4 { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 768px) {
  :root { --topbar-h: 0px; }
  .topbar { display: none; }

  /* Header mobile: [☰] [logo] [search] */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 52px;
  }
  .hamburger    { display: flex; justify-self: start; }
  .banner-header    { justify-self: center; margin-right: 0; }
  .main-nav     { display: none; }
  .header-icons { justify-self: end; }
  .cart-icon-btn { display: none; }
  .banner-header img { height: 34px; }

  .product-grid.cols-5,
  .product-grid.cols-4,
  .product-grid.cols-3 { grid-template-columns: repeat(2,1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .project-grid  { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }

  .shop-layout  { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .category-page-wrap { padding: 12px; }

  .cart-layout  { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .text-image   { grid-template-columns: 1fr; }

  .slide img    { height: 250px; }
  .slide-content { padding: 20px 24px; }
  .slide-content h2 { font-size: 1.3rem; }

  .shop-dropdown { display: none !important; }
  .bottom-nav   { display: flex; }
  .site-footer  { padding-bottom: 72px; }
  .float-buttons { bottom: 72px; }
  .chat-widget  { right: 8px; bottom: 72px; width: calc(100vw - 16px); }

  }

@media (max-width: 480px) {
  .product-grid.cols-4,
  .product-grid.cols-3,
  .product-grid.cols-2 { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .project-grid   { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr; }
  .header-search  { display: none; }
}

/* ── Admin Toolbar ───────────────────────────────────────────── */
#admin-toolbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  background: #1a1a2e;
  color: #e0e0e0;
  font-size: 12px;
  height: 34px;
  border-bottom: 1px solid #2e2e50;
}
.admin-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  max-width: 100%;
}
.admin-toolbar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .75;
}
.admin-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  color: #ccc;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .15s;
}
.admin-toolbar-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.admin-toolbar-btn--primary { color: #fff; background: #4f46e5; border-color: #4f46e5; }
.admin-toolbar-btn--primary:hover { background: #6056f0; }

body.has-admin-bar { padding-top: 34px; }
body.has-admin-bar #main-header { top: 34px; }

/* short-desc bullet list */
ul.short-desc { margin: 8px 0; padding-left: 0; list-style: none; }
ul.short-desc li { margin-bottom: 4px; line-height: 1.5; padding-left: 20px; position: relative; }
ul.short-desc li::before { content: "•"; position: absolute; left: 4px; color: #555; }
