/* Ranchi Carpenters Shop */
:root {
  --brand: #8a4b20;
  --brand-dark: #6b3816;
  --ink: #2a1f17;
  --muted: #6f6359;
  --cream: #faf6f0;
  --line: #ece4da;
  --ok: #1f7a4a;
}
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff; }
h1, h2, .display-font { font-family: "Playfair Display", Georgia, serif; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.text-brand { color: var(--brand) !important; }
.bg-cream { background: var(--cream); }

/* Header */
.topbar { background: var(--ink); color: #f3e9dd; }
.topbar a { color: #f3e9dd; text-decoration: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); z-index: 1020; }
.brand img { height: 32px; width: auto; }
.brand-text { font-family: "Playfair Display", serif; font-weight: 700; color: var(--brand); font-size: 1.35rem; border-left: 1px solid var(--line); padding-left: .5rem; }
.search .form-control { border-radius: 999px 0 0 999px; border-color: var(--line); background: var(--cream); }
.search .btn { border-radius: 0 999px 999px 0; }
.header-icons .icon-link { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .35rem .6rem; color: var(--ink); text-decoration: none; font-size: .72rem; border-radius: 8px; }
.header-icons .icon-link i { font-size: 1.15rem; }
.header-icons .icon-link:hover { background: var(--cream); color: var(--brand); }
.cart-badge { position: absolute; top: 0; right: 4px; background: var(--brand); color: #fff; font-size: .65rem; border-radius: 999px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 4px; }
.cat-nav { border-top: 1px solid var(--line); background: #fff; }
.cat-nav a { white-space: nowrap; padding: .6rem .85rem; color: var(--ink); text-decoration: none; font-size: .9rem; border-bottom: 2px solid transparent; }
.cat-nav a:hover, .cat-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.cat-nav a.custom-link { color: var(--muted); margin-left: auto; }
.cat-nav .container::-webkit-scrollbar { display: none; }

/* Hero */
.hero { background: linear-gradient(120deg, #f6ede2 0%, #fbf8f3 60%); border-radius: 18px; overflow: hidden; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; }
.hero-img { object-fit: cover; width: 100%; height: 100%; min-height: 260px; }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }

/* Category tiles */
.cat-tile { display: block; text-decoration: none; color: var(--ink); text-align: center; }
.cat-tile .ratio { border-radius: 16px; overflow: hidden; background: var(--cream); }
.cat-tile img { object-fit: cover; transition: transform .3s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile span { display: block; margin-top: .5rem; font-weight: 600; font-size: .95rem; }

/* Product cards */
.product-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(42, 31, 23, .08); transform: translateY(-2px); }
.product-img { background: var(--cream); }
.product-img img { object-fit: cover; }
.badge-tag { position: absolute; top: 10px; left: 10px; width: auto !important; height: auto !important; background: var(--ok); color: #fff; font-size: .72rem; font-weight: 600; padding: .25rem .5rem; border-radius: 6px; }
.product-name { font-size: .95rem; font-weight: 600; margin-bottom: .3rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.mrp { color: var(--muted); text-decoration: line-through; font-size: .85rem; }

/* Product page */
.gallery-main { border-radius: 16px; overflow: hidden; background: var(--cream); }
.gallery-main img { object-fit: cover; }
.thumbs button { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: none; }
.thumbs button.active, .thumbs button:hover { border-color: var(--brand); }
.thumbs img { width: 72px; height: 72px; object-fit: cover; display: block; }
.buy-box { border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; }
.big-price { font-size: 2rem; font-weight: 700; }
.spec-table th { width: 38%; font-weight: 600; color: var(--muted); }
.stock-ok { color: var(--ok); font-weight: 600; }
.qty-select { width: 90px; }

/* Filters */
.filter-box { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }

/* Misc */
.section-title { font-size: 1.6rem; }
.trust-strip { background: var(--cream); border-top: 1px solid var(--line); }
.trust-strip i { color: var(--brand); }
.site-footer { background: var(--ink); color: #d9cfc4; }
.site-footer a { color: #f3e9dd; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 1030; text-decoration: none; }
.wa-float:hover { color: #fff; }
.mobile-buy-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: .5rem .75rem; z-index: 1035; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
@media (max-width: 991.98px) {
  body.has-buy-bar { padding-bottom: 72px; }
  body.has-buy-bar .wa-float { bottom: 84px; }
}
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(138, 75, 32, .15); }
