/* ==========================================================
   Roomi Enterprises - Storefront styles
   ========================================================== */
:root {
  --primary: #12355b;
  --primary-dark: #0b2440;
  --accent: #f39c12;
  --accent-dark: #d68910;
  --red: #e53935;
  --green: #2e9e5b;
  --text: #222831;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f5f7fa;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(18, 53, 91, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; }
input, select, textarea, button { font: inherit; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); outline: none; transition: border .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
label { display: block; font-weight: 500; margin-bottom: 12px; }
label input, label select, label textarea { margin-top: 5px; font-weight: 400; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 0; }
.muted { color: var(--muted); }
.mt { margin-top: 20px; }
.hp { position: absolute; left: -9999px; }
.show-sm { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; font-weight: 600; transition: all .2s; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline.active { color: var(--red); border-color: var(--red); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 6px; }
.icon-btn:hover { color: var(--red); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin: 14px 0; }
.alert-success { background: #e7f6ed; color: #1d6b3d; border: 1px solid #bfe5cd; }
.alert-error { background: #fdecea; color: #a12622; border: 1px solid #f5c2bf; }
.alert-info { background: #e8f0fb; color: #1e4a85; border: 1px solid #c4d7f2; }
.notice { background: #fff8e6; border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 6px; }
.notice.left { text-align: left; margin: 20px 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: #cfd8e3; font-size: 12.5px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--accent); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 16px; gap: 10px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar i { color: var(--accent); margin-right: 4px; }

/* ---------- Header ---------- */
.header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 18px 16px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { max-height: 56px; width: auto; }
.logo-mark { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #2b6cb0); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 24px; box-shadow: 0 4px 10px rgba(18, 53, 91, .3); position: relative; }
.logo-mark::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; border: 3px solid #fff; }
.logo-text { font-weight: 700; font-size: 22px; letter-spacing: 1px; color: var(--primary); line-height: 1; }
.logo-text small { display: block; font-size: 10.5px; letter-spacing: 3.3px; color: var(--accent); margin-top: 4px; font-weight: 600; }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-mark::after { border-color: var(--primary-dark); }

.search { flex: 1; display: flex; border: 2px solid var(--primary); border-radius: 30px; overflow: hidden; background: #fff; max-width: 720px; }
.search select { width: auto; max-width: 170px; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: #f8fafc; padding-left: 18px; }
.search input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.search button { border: 0; background: var(--primary); color: #fff; padding: 0 22px; cursor: pointer; font-size: 16px; }
.search button:hover { background: var(--accent); }

.header-icons { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hicon { position: relative; font-size: 22px; color: var(--primary); display: flex; align-items: center; gap: 12px; }
.hicon .count { position: absolute; top: -8px; left: 14px; background: var(--accent); color: #fff; font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font-weight: 600; }
.cart-sum { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; color: var(--text); }
.cart-sum small { color: var(--muted); font-size: 11px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--primary); cursor: pointer; }

/* ---------- Navbar ---------- */
.navbar { background: var(--primary); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.nav-inner { display: flex; align-items: stretch; gap: 20px; }
.cat-menu { position: relative; width: 260px; flex-shrink: 0; }
.cat-btn { width: 100%; height: 100%; background: var(--accent); color: #fff; border: 0; padding: 14px 18px; text-align: left; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.cat-btn .fa-chevron-down { margin-left: auto; font-size: 11px; }
.cat-dropdown { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; list-style: none; margin: 0; padding: 6px 0; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); display: none; z-index: 60; }
.cat-menu:hover .cat-dropdown, .cat-menu.open .cat-dropdown { display: block; }
.cat-dropdown > li { position: relative; }
.cat-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 18px; color: var(--text); }
.cat-dropdown a i { width: 18px; color: var(--primary); }
.cat-dropdown a:hover { background: #f1f5f9; color: var(--accent); }
.cat-dropdown .sub-arrow { margin-left: auto; font-size: 10px; color: var(--muted) !important; }
.cat-dropdown .sub { position: absolute; left: 100%; top: 0; min-width: 220px; background: #fff; list-style: none; margin: 0; padding: 6px 0; box-shadow: var(--shadow); border-radius: var(--radius); display: none; }
.cat-dropdown li.has-sub:hover > .sub { display: block; }

.menu { display: flex; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 14px 15px; color: #fff; font-weight: 500; }
.menu > li > a:hover { color: var(--accent); }
.menu > li > a i { font-size: 10px; }
.menu .drop { position: absolute; top: 100%; left: 0; background: #fff; list-style: none; margin: 0; padding: 8px 0; min-width: 200px; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); display: none; z-index: 60; }
.menu .has-drop:hover .drop, .menu .has-drop.open .drop { display: block; }
.menu .drop a { display: block; padding: 7px 18px; color: var(--text); }
.menu .drop a:hover { background: #f1f5f9; color: var(--accent); }
.brands-drop { columns: 2; min-width: 320px !important; }
.nav-phone { margin-left: auto; color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.nav-phone i { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px; background: var(--primary); }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .7s; display: flex; align-items: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,0) 70%); }
.slide:not([style*="background-image"])::after { content: ''; position: absolute; right: -80px; top: -80px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.07); box-shadow: -120px 220px 0 rgba(255,255,255,.05); }
.slide-content { position: relative; z-index: 2; color: #fff; padding: 40px 60px; max-width: 620px; }
.slide-content h2 { font-size: 40px; font-weight: 700; margin-bottom: 10px; }
.slide-content p { font-size: 17px; opacity: .9; margin: 0 0 24px; }
.sl-prev, .sl-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; cursor: pointer; transition: background .2s; }
.sl-prev:hover, .sl-next:hover { background: var(--accent); }
.sl-prev { left: 14px; } .sl-next { right: 14px; }
.sl-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.sl-dots span { width: 10px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; }
.sl-dots span.active { width: 28px; background: var(--accent); }
.hero-side { display: grid; gap: 20px; }
.promo { border-radius: var(--radius); padding: 28px; color: #fff; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.promo::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.promo small { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; opacity: .85; }
.promo b { font-size: 24px; margin: 4px 0 10px; }
.promo span { font-weight: 600; font-size: 13px; }
.promo:hover { color: #fff; transform: translateY(-2px); }
.promo-1 { background: linear-gradient(135deg, #f39c12, #e74c3c); }
.promo-2 { background: linear-gradient(135deg, #12355b, #2b6cb0); }

/* ---------- Category circles ---------- */
.cat-circles { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cat-circle { flex: 0 0 112px; text-align: center; color: var(--text); font-weight: 500; font-size: 13px; }
.cc-icon { width: 86px; height: 86px; margin: 0 auto 8px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 30px; color: var(--primary); box-shadow: var(--shadow); transition: all .25s; border: 2px solid transparent; overflow: hidden; }
.cc-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle:hover .cc-icon { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border); margin-bottom: 20px; gap: 10px; }
.section-head h2 { font-size: 22px; margin: 0; padding-bottom: 10px; position: relative; }
.section-head h2::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 60px; height: 3px; background: var(--accent); }
.section-head a { font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ---------- Product grid & card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.product-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; border: 1px solid var(--border); }
.product-card:hover { box-shadow: 0 10px 28px rgba(18, 53, 91, .14); transform: translateY(-3px); }
.pc-img { position: relative; aspect-ratio: 1 / 1; background: #fff; padding: 14px; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 4px; color: #fff; }
.pc-badge.sale { background: var(--red); }
.pc-badge.out { background: #6b7280; top: auto; bottom: 10px; }
.pc-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(10px); transition: all .25s; z-index: 2; }
.product-card:hover .pc-actions { opacity: 1; transform: none; }
.pc-actions button, .pc-actions a { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); color: var(--primary); display: grid; place-items: center; cursor: pointer; }
.pc-actions button:hover, .pc-actions a:hover { background: var(--accent); color: #fff; }
.pc-actions .active { color: var(--red); }
.pc-body { padding: 12px 14px 16px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--border); }
.pc-cat { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pc-title { font-size: 14px; font-weight: 500; margin: 4px 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.pc-title a { color: var(--text); }
.pc-title a:hover { color: var(--accent); }
.pc-stock { font-size: 12px; font-weight: 500; }
.pc-stock.in { color: var(--green); }
.pc-stock.out { color: var(--red); }
.pc-price { margin: 6px 0 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pc-price ins { text-decoration: none; font-weight: 700; font-size: 17px; color: var(--primary); }
.pc-price del { color: var(--muted); font-size: 13px; }
.pc-body .btn { margin-top: auto; padding: 8px 12px; font-size: 13px; }
.btn-cart { background: var(--primary); color: #fff; }
.btn-cart:hover { background: var(--accent); color: #fff; }
.btn-cart.loading { opacity: .7; pointer-events: none; }

/* ---------- Banners ---------- */
.wide-banner { margin-top: 10px; background: linear-gradient(120deg, var(--primary) 0%, #1e5a96 60%, var(--accent) 140%); color: #fff; border-radius: var(--radius); padding: 34px 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.wide-banner small { text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: 600; }
.wide-banner h3 { font-size: 26px; margin: 4px 0 6px; }
.wide-banner p { margin: 0; opacity: .85; }

.sale-section { background: linear-gradient(180deg, #fff5e6 0%, var(--bg) 100%); margin: 20px 0; }
.sale-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.sale-head h2 { font-size: 26px; color: var(--primary); margin: 0; }
.sale-head p { margin: 4px 0 0; color: var(--muted); }
.countdown { display: flex; gap: 10px; }
.countdown div { background: var(--primary); color: #fff; border-radius: 8px; width: 68px; padding: 8px 0; text-align: center; }
.countdown b { display: block; font-size: 24px; line-height: 1.1; }
.countdown span { font-size: 11px; text-transform: uppercase; opacity: .8; }

.brand-row { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px 22px; font-weight: 600; color: var(--primary); min-width: 110px; text-align: center; transition: all .2s; display: flex; align-items: center; justify-content: center; height: 64px; }
.brand-chip img { max-height: 38px; width: auto; }
.brand-chip:hover { border-color: var(--accent); color: var(--accent); }

.about-home { background: #fff; border-radius: var(--radius); padding: 30px; }
.read-more { max-height: 90px; overflow: hidden; position: relative; transition: max-height .4s; color: #444; }
.read-more:not(.open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #fff); }
.read-more.open { max-height: 2000px; }
.about-home .btn { margin-top: 14px; }

/* ---------- Features strip & footer ---------- */
.features-strip { background: #fff; border-top: 1px solid var(--border); padding: 26px 0; margin-top: 30px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.features-grid > div { display: flex; gap: 14px; align-items: center; }
.features-grid i { font-size: 30px; color: var(--accent); }
.features-grid b { display: block; }
.features-grid span { color: var(--muted); font-size: 12.5px; }

.footer { background: var(--primary-dark); color: #b8c4d3; padding-top: 46px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #b8c4d3; }
.footer a:hover { color: var(--accent); }
.footer .logo { margin-bottom: 14px; }
.f-contact li { display: flex; gap: 10px; }
.f-contact i { color: var(--accent); margin-top: 4px; width: 14px; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--accent); color: #fff; }
.newsletter { display: flex; margin: 10px 0 18px; }
.newsletter input { border-radius: 8px 0 0 8px; border: 0; }
.newsletter button { border: 0; background: var(--accent); color: #fff; padding: 0 18px; border-radius: 0 8px 8px 0; cursor: pointer; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span { background: rgba(255,255,255,.08); padding: 6px 10px; border-radius: 6px; color: #fff; font-size: 12px; }
.pay-icons .fa-brands { font-size: 20px; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); margin-top: 34px; padding: 16px 0; text-align: center; font-size: 13px; }

.whatsapp-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90; background: #25d366; color: #fff; border-radius: 30px; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; box-shadow: 0 6px 20px rgba(37, 211, 102, .45); font-weight: 600; }
.whatsapp-float i { font-size: 30px; }
.whatsapp-float:hover { color: #fff; transform: scale(1.04); }
.to-top { position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.toast { position: fixed; left: 50%; top: 20px; transform: translate(-50%, -120px); background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 8px; box-shadow: var(--shadow); z-index: 200; transition: transform .35s; max-width: 90vw; }
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--red); }

/* ---------- Page banner / breadcrumb ---------- */
.page-banner { background: linear-gradient(120deg, var(--primary), #1e5a96); color: #fff; padding: 30px 0; }
.page-banner h1 { font-size: 28px; margin: 0 0 4px; }
.page-banner .breadcrumb, .page-banner .breadcrumb a { color: #d6e2f0; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb.pad { padding: 16px 0; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.widget { background: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 18px; border: 1px solid var(--border); }
.widget h4 { font-size: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.cat-list, .cat-list ul { list-style: none; margin: 0; padding: 0; }
.cat-list ul { padding-left: 20px; }
.cat-list label { font-weight: 400; margin: 0; padding: 4px 0; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.price-range { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.check { font-weight: 400; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; cursor: pointer; }
.clear-link { display: block; text-align: center; margin-top: 10px; font-size: 13px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 10px 16px; border-radius: var(--radius); margin-bottom: 18px; border: 1px solid var(--border); gap: 10px; }
.shop-toolbar select { width: auto; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--text); }
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius); }
.empty-state > i { font-size: 60px; color: #cbd5e1; margin-bottom: 14px; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; background: #fff; border-radius: var(--radius); padding: 30px; }
.pd-main { position: relative; border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 1 / 1; padding: 24px; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs img { width: 72px; height: 72px; object-fit: contain; border: 2px solid var(--border); border-radius: 8px; padding: 4px; cursor: pointer; }
.pd-thumbs img.active { border-color: var(--accent); }
.pd-info h1 { font-size: 24px; }
.pd-rating { color: var(--accent); margin-bottom: 10px; }
.pd-rating a { color: var(--muted); font-size: 13px; margin-left: 6px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-price ins { text-decoration: none; font-size: 30px; font-weight: 700; color: var(--primary); }
.pd-price del { color: var(--muted); font-size: 18px; }
.pd-price .save { background: #fdecea; color: var(--red); padding: 3px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.pd-short { color: #444; }
.pd-meta { list-style: none; padding: 14px 0; margin: 0 0 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pd-meta li { padding: 3px 0; }
.pd-meta .in { color: var(--green); font-weight: 600; }
.pd-meta .out { color: var(--red); font-weight: 600; }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.qty { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.qty input { width: 54px; border: 0; text-align: center; border-radius: 0; padding: 8px 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 36px; border: 0; background: #f1f5f9; cursor: pointer; font-size: 16px; }
.qty-btn:hover { background: var(--accent); color: #fff; }
.pd-extra { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-trust { background: var(--bg); border-radius: var(--radius); padding: 14px 18px; display: grid; gap: 6px; }
.pd-trust i { color: var(--accent); width: 22px; }
.tabs { background: #fff; border-radius: var(--radius); margin-top: 24px; padding: 0 30px 30px; }
.tab-nav { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-nav button { background: none; border: 0; padding: 16px 18px; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab-nav button.active { color: var(--primary); border-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.rich-text { overflow-x: auto; }
.rich-text table { border-collapse: collapse; width: 100%; }
.rich-text td, .rich-text th { border: 1px solid var(--border); padding: 8px; }
.review { border-bottom: 1px solid var(--border); padding: 12px 0; }
.review .stars, .stars { color: var(--accent); }
.review small { color: var(--muted); margin-left: 6px; }
.review-form { max-width: 560px; margin-top: 20px; display: grid; gap: 10px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 22px; color: #d1d5db; cursor: pointer; margin: 0; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-table-wrap, .cart-summary, .card { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); margin-bottom: 18px; }
.table-scroll { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cart-table th { text-align: left; padding: 10px; border-bottom: 2px solid var(--border); font-size: 13px; color: var(--muted); text-transform: uppercase; }
.cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ct-img img { width: 70px; height: 70px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; }
.cart-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-summary .row.total { font-size: 18px; border: 0; margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--accent-dark); margin: 8px 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.order-review table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.order-review td { padding: 9px 0; border-bottom: 1px solid var(--border); }
.order-review td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.order-review .total td { font-size: 18px; font-weight: 700; color: var(--primary); border: 0; }
.pay-methods { display: grid; gap: 10px; margin-bottom: 18px; }
.pay-opt { display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 12px; cursor: pointer; margin: 0; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: #fffaf0; }
.pay-opt small { display: block; color: var(--muted); font-weight: 400; }
.success-box { background: #fff; border-radius: var(--radius); padding: 40px 24px; text-align: center; max-width: 780px; margin: 0 auto; }
.success-box > i { font-size: 64px; color: var(--green); margin-bottom: 14px; }
.success-box h1 { font-size: 24px; }
.order-facts { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.order-facts li { background: var(--bg); border-radius: 8px; padding: 12px; font-size: 12.5px; color: var(--muted); }
.order-facts b { display: block; color: var(--text); font-size: 15px; }
.simple-table { width: 100%; border-collapse: collapse; margin: 16px 0; text-align: left; }
.simple-table th, .simple-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.simple-table th { background: var(--bg); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #fff4e0; color: #b26a00; }
.badge-processing { background: #e8f0fb; color: #1e4a85; }
.badge-shipped { background: #ede7f6; color: #5e35b1; }
.badge-delivered { background: #e7f6ed; color: #1d6b3d; }
.badge-cancelled { background: #fdecea; color: #a12622; }

.tracker { display: flex; justify-content: space-between; margin: 26px 0; position: relative; }
.tracker::before { content: ''; position: absolute; top: 11px; left: 10%; right: 10%; height: 3px; background: var(--border); }
.tracker .step { position: relative; text-align: center; flex: 1; font-size: 13px; color: var(--muted); }
.tracker .step span { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--border); margin: 0 auto 6px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--border); }
.tracker .step.done { color: var(--primary); font-weight: 600; }
.tracker .step.done span { background: var(--green); box-shadow: 0 0 0 2px var(--green); }

/* ---------- Auth / account / content ---------- */
.auth-box { max-width: 440px; margin: 0 auto; }
.account-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; background: #fff; border-radius: var(--radius); padding: 30px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-stats div { background: var(--bg); border-radius: var(--radius); padding: 20px; text-align: center; }
.about-stats b { display: block; font-size: 28px; color: var(--accent); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.why-grid .card { text-align: center; }
.why-grid i { font-size: 34px; color: var(--accent); margin-bottom: 10px; }
.why-grid p { color: var(--muted); margin: 0; }
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.contact-info { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 26px; }
.contact-info a { color: #fff; }
.ci { display: flex; gap: 14px; margin-bottom: 18px; }
.ci i { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; font-size: 17px; }
.ci p { margin: 2px 0 0; color: #d6e2f0; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
  .nav-phone { display: none; }
}
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .product-grid, .product-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: block; }
  .show-sm { display: inline-flex !important; }
  .product-detail, .cart-layout, .checkout-layout, .account-layout, .contact-layout, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid, .why-grid { grid-template-columns: 1fr 1fr; }

  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .navbar { display: none; position: static; }
  .navbar.open { display: block; }
  .nav-inner { flex-direction: column; gap: 0; padding: 0; }
  .cat-menu { width: 100%; }
  .cat-dropdown { position: static; display: none; box-shadow: none; border-radius: 0; }
  .cat-menu.open .cat-dropdown { display: block; }
  .cat-menu:hover .cat-dropdown { display: none; }
  .cat-menu.open:hover .cat-dropdown { display: block; }
  .cat-dropdown .sub { position: static; display: block; box-shadow: none; padding-left: 28px; }
  .menu { flex-direction: column; }
  .menu > li > a { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08); }
  .menu .drop { position: static; box-shadow: none; border-radius: 0; }
  .menu .has-drop:hover .drop { display: none; }
  .menu .has-drop.open .drop { display: block; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .slider { min-height: 260px; }
  .slide-content { padding: 24px 28px; }
  .slide-content h2 { font-size: 24px; }
  .slide-content p { font-size: 14px; }
  .hero-side { grid-template-columns: 1fr; }
  .product-grid, .product-grid.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pc-body { padding: 10px; }
  .pc-price ins { font-size: 15px; }
  .pc-actions { opacity: 1; transform: none; }
  .search select { display: none; }
  .logo-text { font-size: 18px; }
  .logo-mark { width: 40px; height: 40px; font-size: 20px; }
  .footer-grid, .features-grid, .why-grid, .form-grid { grid-template-columns: 1fr; }
  .product-detail { padding: 16px; }
  .tabs { padding: 0 16px 20px; }
  .order-facts { grid-template-columns: 1fr 1fr; }
  .countdown div { width: 58px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 12px; }
  .wide-banner { padding: 24px; }
  .wide-banner h3 { font-size: 20px; }
  .brands-drop { columns: 1; min-width: 0 !important; }
}
