/* Bablu Online Store - Design System
   Layout modelled on large marketplace stores (Daraz-style), with its own green + amber colour scheme.
   Change the colours of the whole site from the :root block below. */
:root {
  --brand: #0b7a5e;         /* main green: header, buttons, links */
  --brand-dark: #075a45;    /* prices, hover states */
  --brand-deep: #06392d;    /* top strip, footer, admin sidebar */
  --brand-soft: #e6f4ef;    /* light tint for icon circles and hovers */
  --accent: #ffb400;        /* amber: Buy Now, badges, cart count */
  --accent-dark: #e09b00;
  --ink: #1f2a37;
  --muted: #6b7684;
  --line: #e3e7ea;
  --bg: #f0f3f2;
  --card: #ffffff;
  --success: #12805c;
  --danger: #d92d20;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-hover: 0 4px 16px rgba(16, 24, 40, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Roboto, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top strip ---------- */
.topbar { background: var(--brand-deep); color: #cfe6dd; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.topbar-links { display: flex; gap: 18px; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--brand); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.logo { display: flex; flex-direction: column; line-height: 1.05; flex-shrink: 0; }
.logo-main { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: .3px; }
.logo-sub { font-size: 12px; color: var(--accent); font-weight: 500; }

.header-search { flex: 1; display: flex; max-width: 720px; }
.header-search input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 0;
  border-radius: 2px 0 0 2px; font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.header-search input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.header-search button {
  width: 54px; height: 42px; border: 0; background: var(--accent); color: var(--ink);
  border-radius: 0 2px 2px 0; cursor: pointer; display: grid; place-items: center;
}
.header-search button:hover { background: var(--accent-dark); }

.cart-link { position: relative; color: #fff; display: flex; align-items: center; padding: 8px; margin-left: auto; }
.cart-link:hover { color: var(--accent); }
.cart-badge {
  position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700;
  border-radius: 10px; display: grid; place-items: center; line-height: 1;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; display: block; }

/* ---------- Category navigation bar ---------- */
.cat-nav { background: #fff; border-bottom: 1px solid var(--line); }
.cat-nav-inner { display: flex; align-items: center; gap: 26px; height: 44px; }
.cat-nav a, .nav-dropdown-toggle { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.cat-nav a { height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.cat-nav a:hover, .cat-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.nav-track { margin-left: auto; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  height: 44px; padding: 0 16px; background: var(--brand-soft); color: var(--brand-dark);
  border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 8px;
}
.nav-dropdown-toggle::after { content: '▾'; font-size: 11px; }
.nav-dropdown-toggle:hover { background: #d4ebe2; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 200; min-width: 230px;
  background: #fff; box-shadow: var(--shadow-hover); padding: 6px 0;
}
.nav-dropdown-menu a { display: flex; height: auto; padding: 10px 16px; gap: 10px; border: 0; }
.nav-dropdown-menu a:hover { background: var(--brand-soft); border: 0; }
.dd-icon { width: 22px; text-align: center; }
.dd-empty { display: block; padding: 10px 16px; color: var(--muted); font-size: 13px; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: var(--radius); font-weight: 500; border: 0;
  cursor: pointer; transition: background .2s; font-size: 15px; font-family: inherit; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-dark { background: var(--brand-deep); color: #fff; }
.btn-dark:hover { background: #0a4d3c; }
.btn-outline { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; display: block; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Home: top block ---------- */
.home { padding-top: 12px; padding-bottom: 20px; }
.home-top { display: grid; grid-template-columns: 220px minmax(0, 1fr) 240px; gap: 12px; }

.side-cats { background: #fff; padding: 6px 0; border-radius: var(--radius); box-shadow: var(--shadow); max-height: 320px; overflow-y: auto; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 14px; }
.side-cats a:hover { color: var(--brand); background: var(--brand-soft); }
.side-cat-icon { width: 20px; text-align: center; flex-shrink: 0; }
.side-cats-empty { display: block; padding: 12px 16px; color: var(--muted); font-size: 13px; }

.side-tiles { display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; }
.side-tiles a {
  background: #fff; padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: center; gap: 2px; border-left: 3px solid var(--accent);
}
.side-tiles strong { font-size: 15px; font-weight: 500; }
.side-tiles span { font-size: 13px; color: var(--muted); }
.side-tiles a:hover strong { color: var(--brand); }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 320px; background: var(--brand-dark); }
.slides { display: flex; height: 100%; min-height: 320px; transition: transform .5s ease; }
.slide { position: relative; flex: 0 0 100%; display: flex; align-items: center; color: #fff; overflow: hidden; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-link { position: absolute; inset: 0; }
.slide-text { position: relative; padding: 0 56px; max-width: 540px; }
.slide-text h2 { margin: 0 0 10px; font-size: 34px; font-weight: 700; }
.slide-text p { margin: 0 0 22px; font-size: 16px; opacity: .95; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 64px; border: 0;
  background: rgba(0,0,0,.35); color: #fff; font-size: 18px; cursor: pointer; opacity: 0; transition: opacity .2s;
}
.hero-slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: rgba(255,255,255,.55); cursor: pointer; }
.slider-dots button.on { background: #fff; width: 22px; }

/* ---------- Blocks / sections ---------- */
.block { margin-top: 20px; }
.block-title { margin: 0 0 12px; font-size: 20px; font-weight: 500; }
.block-head { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 10px 16px; margin-bottom: 8px; border-radius: var(--radius); box-shadow: var(--shadow); }
.block-head .block-title { margin: 0; }
.btn-shopall { border: 1px solid var(--brand); color: var(--brand); padding: 6px 22px; font-size: 13px; font-weight: 500; border-radius: var(--radius); }
.btn-shopall:hover { background: var(--brand); color: #fff; }

.section { padding-top: 18px; padding-bottom: 30px; }
.section-title { font-size: 22px; font-weight: 500; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; }
.page-h1 { font-size: 24px; font-weight: 500; margin: 0 0 6px; }
.page-intro { margin: 0 0 16px; color: var(--muted); font-size: 14px; max-width: 760px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cat-tile { background: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; text-align: center; border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .15s; }
.cat-tile:hover { box-shadow: var(--shadow-hover); }
.cat-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 26px; }
.cat-name { font-size: 13.5px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb strong { color: var(--ink); font-weight: 500; }

/* ---------- Product grid + card ---------- */
.product-grid, .related-products-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.home .product-grid { grid-template-columns: repeat(6, 1fr); }

.product-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s; }
.product-card:hover { box-shadow: var(--shadow-hover); }
.product-thumb { position: relative; aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid #f1f3f4; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card.is-out .product-thumb img { opacity: .45; }
.badge-off { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.badge-out { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; background: rgba(31,42,55,.85); color: #fff; font-size: 12px; padding: 4px; }
.product-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name {
  font-size: 13.5px; line-height: 1.35; min-height: 2.7em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.product-card:hover .product-name { color: var(--brand); }
.product-price { margin-top: auto; }
.new-price { color: var(--brand-dark); font-size: 18px; font-weight: 500; }
.price-old { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.old-price { text-decoration: line-through; }
.price-off { color: var(--ink); margin-left: 4px; }
.product-cat { font-size: 12px; color: var(--brand); font-weight: 500; }
.stock-badge { font-size: 12px; font-weight: 500; }
.stock-badge.in { color: var(--success); }
.stock-badge.low { color: #b26a00; }
.stock-badge.out { color: var(--danger); }

/* ---------- Shop page ---------- */
.shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.filter-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 0; position: sticky; top: 76px; }
.filter-card h2 { font-size: 15px; font-weight: 500; margin: 0; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); }
.filter-card a { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 14px; border-left: 3px solid transparent; }
.filter-card a:hover { background: var(--brand-soft); }
.filter-card a.active { color: var(--brand-dark); font-weight: 500; background: var(--brand-soft); border-left-color: var(--brand); }

.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; background: #fff; padding: 10px 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.result-count { font-size: 14px; color: var(--muted); margin-right: auto; }
.toolbar-field { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.toolbar select, .toolbar input[type="text"] { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-family: inherit; background: #fff; }
.only-mobile { display: none; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-family: inherit; background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,122,94,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.alert-error { background: #fdeceb; color: var(--danger); border: 1px solid #f5c6c6; }
.alert-success { background: #e6f6ef; color: var(--success); border: 1px solid #b7e4cf; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.product-detail-img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.product-detail-img img { width: 100%; height: 100%; object-fit: contain; }
.product-detail h1 { font-size: 24px; font-weight: 500; margin: 4px 0 12px; }
.price-box { background: #f8faf9; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px; }
.product-detail .price { font-size: 32px; font-weight: 500; color: var(--brand-dark); line-height: 1.2; }
.price-box .price-old { font-size: 14px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin: 18px 0; }
.qty-label { font-size: 14px; color: var(--muted); }
.qty-selector { display: flex; align-items: center; gap: 0; }
.qty-selector button { width: 36px; height: 36px; border: 1px solid var(--line); background: #f8faf9; font-size: 18px; cursor: pointer; }
.qty-selector button:hover { background: var(--brand-soft); }
.qty-selector input { width: 64px; height: 36px; text-align: center; border: 1px solid var(--line); border-left: 0; border-right: 0; font-size: 15px; -moz-appearance: textfield; }
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-actions .btn { min-width: 160px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.trust-list li::before { content: '✓'; color: var(--success); font-weight: 700; margin-right: 6px; }
.product-desc { margin-top: 20px; }
.product-desc h2 { font-size: 16px; font-weight: 500; margin: 0 0 8px; }
.product-desc p { margin: 0; font-size: 14px; color: #3b4652; }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cart-table th { background: #f8faf9; font-size: 13px; font-weight: 500; color: var(--muted); }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-info a:hover { color: var(--brand); }
.cart-item-thumb { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; flex-shrink: 0; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-summary { max-width: 380px; margin-left: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 20px; }
.cart-summary .row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 15px; }
.cart-summary .total { font-size: 20px; font-weight: 500; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; color: var(--brand-dark); }
.remove-link { color: var(--danger); font-size: 13px; font-weight: 500; }

/* ---------- Order tracking ---------- */
.timeline { display: flex; justify-content: space-between; margin: 36px 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 16px; left: 0; right: 0; height: 3px; background: var(--line); z-index: 0; }
.timeline-step { text-align: center; position: relative; z-index: 1; flex: 1; }
.timeline-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--line); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.timeline-step.done .timeline-dot { background: var(--success); }
.timeline-step.current .timeline-dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(11,122,94,.25); }
.timeline-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.timeline-step.done .timeline-label, .timeline-step.current .timeline-label { color: var(--ink); }
.order-cancelled-badge { display: inline-block; background: #fdeceb; color: var(--danger); font-weight: 700; padding: 10px 18px; border-radius: 999px; }

.order-info-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; }
.order-info-card .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.order-info-card .label { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #cfe6dd; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 40px 16px; }
.footer-inner h3 { color: #fff; margin: 0 0 8px; font-size: 20px; }
.footer-inner h3 span { color: var(--accent); }
.footer-inner h4 { color: #fff; margin: 0 0 12px; font-size: 15px; font-weight: 500; }
.footer-inner p { margin: 0 0 8px; font-size: 14px; }
.footer-inner a { display: block; margin-bottom: 8px; font-size: 14px; color: #cfe6dd; }
.footer-inner a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #9cc4b6; }
.footer-bottom a { color: var(--accent); font-weight: 500; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Admin ---------- */
.admin-wrap { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar { width: 230px; background: var(--brand-deep); color: #fff; flex-shrink: 0; padding: 20px 0; }
.admin-sidebar .logo { display: block; padding: 0 20px 20px; font-size: 20px; font-weight: 700; color: #fff; }
.admin-sidebar .logo span { color: var(--accent); }
.admin-sidebar a { display: block; padding: 12px 20px; color: #cfe6dd; font-weight: 500; border-left: 3px solid transparent; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.07); color: #fff; border-color: var(--accent); }
.admin-main { flex: 1; padding: 28px; max-width: 100%; overflow-x: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 24px; font-weight: 500; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.stat-card .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-card .value { font-size: 28px; font-weight: 500; margin-top: 8px; }
.stat-card.orange .value { color: var(--brand-dark); }
.stat-card.green .value { color: var(--success); }
.stat-card.red .value { color: var(--danger); }

.data-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.data-table th { background: #f8faf9; font-size: 13px; font-weight: 500; color: var(--muted); }
.data-table img.thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 4px; background: #eef1f0; }
.table-actions { display: flex; gap: 8px; }

.status-pill { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-block; }
.status-Pending { background: #fff4e5; color: #b5680a; }
.status-Confirmed { background: #e7f0fe; color: #1a56c4; }
.status-Shipped { background: #eee6fd; color: #6b2fd6; }
.status-Out-for-Delivery { background: #fef0dd; color: #b5680a; }
.status-Delivered { background: #e6f6ef; color: var(--success); }
.status-Cancelled { background: #fdeceb; color: var(--danger); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%); padding: 16px; }
.login-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 36px; width: 100%; max-width: 380px; }
.login-card h2 { text-align: center; margin-top: 0; font-weight: 500; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border-radius: var(--radius); }
.empty-state .icon { font-size: 48px; margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .home-top { grid-template-columns: minmax(0, 1fr) 240px; }
  .side-cats { display: none; }
  .home .product-grid { grid-template-columns: repeat(5, 1fr); }
  .cat-nav a.nav-cat { display: none; }
}

@media (max-width: 900px) {
  .home .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-card { display: none; }
  .only-mobile { display: flex; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 70px; }
  .admin-sidebar .logo, .admin-sidebar a span.label { display: none; }
  .admin-main { padding: 18px; }
}

@media (max-width: 760px) {
  .topbar-links { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px 12px; }
  .nav-toggle { display: flex; order: 1; }
  .logo { order: 2; }
  .cart-link { order: 3; }
  .header-search { order: 4; flex: 1 0 100%; max-width: none; }
  .cat-nav { display: none; }
  .cat-nav.open { display: block; }
  .cat-nav-inner { flex-direction: column; align-items: stretch; gap: 0; height: auto; padding-top: 6px; padding-bottom: 10px; }
  .cat-nav a { height: auto; padding: 11px 4px; border-bottom: 1px solid var(--line); }
  .cat-nav a.nav-cat { display: none; }
  .nav-track { margin-left: 0; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu { position: static; box-shadow: none; }
  .home-top { grid-template-columns: 1fr; }
  .side-tiles { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .hero-slider, .slides { min-height: 210px; }
  .slide-text { padding: 0 24px; }
  .slide-text h2 { font-size: 22px; }
  .slide-text p { font-size: 14px; margin-bottom: 14px; }
  .home .product-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .toolbar { gap: 10px; }
  .timeline-label { font-size: 11px; }
}

@media (max-width: 560px) {
  .side-tiles { grid-template-columns: 1fr; }
  .product-grid, .related-products-row, .home .product-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { padding: 16px; gap: 20px; }
  .buy-actions .btn { flex: 1; min-width: 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { margin-bottom: 14px; border-bottom: 8px solid var(--bg); }
  .cart-table td { border-bottom: 1px solid var(--line); }
  .order-info-card .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides { transition: none; }
}
/* Icons on the 3 info tiles */
.side-tiles a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.side-tiles a .tile-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e6f4ee;
  color: #0d8a63;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
.side-tiles a .tile-icon svg {
  width: 20px;
  height: 20px;
}
.side-tiles a .tile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.side-tiles a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  padding-left: 14px;
  text-align: left;
}
.side-tiles a .tile-icon {
  flex: 0 0 36px;
}
.side-tiles a .tile-text {
  flex: 1;
  align-items: flex-start;
  text-align: left;
}