﻿/*
Theme Name: Byte Sherlock
Theme URI: https://bytesherlock.com
Author: Byte Sherlock
Description: Byte Sherlock on WordPress, rendering the live-site design system (bundled) plus additive components.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: bytestheme
Tags: blog, e-commerce
*/

/* ============ self-hosted Inter (variable font, all weights) ============
   Files live on the live site's origin (Google-hosted woff2 mirrored there);
   absolute src avoids WP theme-upload folder stripping. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ============ additive: page chrome helpers ============ */
.bs-main { flex: 1; }
.bs-wc-cart { text-decoration: none; font-weight: 700; font-size: .92rem; padding: 8px 12px; border: 1px solid rgba(29,41,40,.2); border-radius: 3px; color: var(--ink, #1d2928); }
.bs-cart-count { display: inline-block; min-width: 20px; text-align: center; background: var(--lime, #c8f43d); color: var(--ink, #1d2928); border-radius: 999px; font-size: .78rem; padding: 0 5px; }

/* ============ additive: breadcrumbs, eyebrow, byline, meta ============ */
.bs-crumbs { font-size: .82rem; color: var(--ink-soft, #40504d); margin: 0 0 var(--space-3, 1rem); display: flex; gap: 8px; flex-wrap: wrap; max-width: var(--narrow, 44rem); margin-left: auto; margin-right: auto; padding: 0 var(--space-4, 1.5rem); }
.bs-crumbs a { color: var(--ink-soft, #40504d); }
.bs-crumbs a:hover { color: var(--ink, #1d2928); }
.bs-crumbs [aria-current="page"] { color: var(--ink, #1d2928); font-weight: 600; }
.bs-eyebrow { font-size: 12px; color: var(--ink-soft, #40504d); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin: 0 0 8px; }
.bs-byline { font-size: .85rem; color: var(--ink-soft, #40504d); padding: 8px 14px; background: rgba(200,244,61,.14); border-radius: 3px; display: inline-block; }
.bs-meta { font-size: 13px; color: var(--ink-soft, #40504d); margin: 8px 0 16px; }

/* single/article body container (matches live narrow measure) */
.bs-article { max-width: var(--narrow, 44rem); margin: 0 auto; padding: var(--space-5, 2rem) var(--space-4, 1.5rem) var(--space-7, 4.5rem); }
.bs-article h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.25; }
.bs-article h2 { font-size: 1.25rem; margin: 24px 0 10px; }
.bs-article h3 { font-size: 1rem; margin: 14px 0 4px; }
.bs-article p { margin: 0 0 1em; line-height: 1.65; }
.bs-article ul, .bs-article ol { padding-left: 1.2em; }
.bs-article img, .bs-article svg { max-width: 100%; height: auto; }
.bs-article svg { max-height: 260px; width: auto; }
.bs-article table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.bs-article th, .bs-article td { border: 1px solid rgba(29,41,40,.12); padding: 8px 12px; text-align: left; font-size: 14px; }
.bs-article th { background: rgba(29,41,40,.04); }

/* ============ additive: dd guide components (ported from worker renderer) ============ */
.dd-answer { font-size: 1.05rem; font-weight: 600; margin: 12px 0 20px; padding: 12px 16px; background: rgba(200,244,61,.12); border-radius: 3px; }
.dd-urgent { border: 2px solid var(--warn, #a14437); border-radius: 8px; padding: 12px 16px; margin: 16px 0; background: rgba(161,68,55,.05); }
.dd-urgent h2 { color: var(--warn, #a14437); font-size: 1.1rem; margin-top: 0; }
.dd-item { list-style: none; border: 1px solid rgba(29,41,40,.08); border-radius: 10px; padding: 14px; margin: 10px 0; background: #fff; }
.dd-item--do { border-left: 4px solid var(--lime-dark, #9bc71d); }
.dd-item--dont { border-left: 4px solid var(--warn, #a14437); }
.dd-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .05em; margin-bottom: 6px; background: var(--lime, #c8f43d); color: var(--ink, #1d2928); }
.dd-item--do .dd-badge { background: var(--lime, #c8f43d); color: var(--ink, #1d2928); }
.dd-item--dont .dd-badge { background: var(--warn, #a14437); color: #fff; }
.dd-item h3 { font-size: 1rem; margin: 4px 0; }
.dd-item p { margin: 4px 0; font-size: 14px; color: var(--ink-soft, #40504d); }
.dd-signal { font-weight: 600; color: var(--ink, #1d2928) !important; }
.dd-list { padding-left: 0; margin: 0; }
.dd-cta { margin: 24px 0; }
.dd-btn { display: inline-block; padding: 10px 18px; background: var(--lime, #c8f43d); color: var(--ink, #1d2928); border-radius: 8px; font-weight: 700; text-decoration: none; margin: 4px 8px 4px 0; }
.dd-btn:hover { background: var(--lime-dark, #9bc71d); color: var(--ink, #1d2928); }
.dd-btn.dd-outline { background: transparent; border: 2px solid var(--lime-dark, #9bc71d); padding: 8px 16px; }
.dd-btn:focus-visible { outline: 2px solid var(--ink, #1d2928); outline-offset: 2px; }
.dd-langs { margin: 20px 0; border: 1px solid rgba(29,41,40,.1); border-radius: 8px; overflow: hidden; }
.dd-langs-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid rgba(29,41,40,.08); background: rgba(29,41,40,.03); }
.dd-lt { padding: 8px 14px; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.dd-lt:hover { background: rgba(29,41,40,.05); }
.dd-lt.is-active { border-bottom-color: var(--ink, #1d2928); }
.dd-lt:focus-visible { outline: 2px solid var(--ink, #1d2928); outline-offset: -2px; }
.dd-langs-body { padding: 12px 16px; }
.dd-langs-body [data-lang] { display: none; margin: 0; }
.dd-langs-body [data-lang="en"] { display: block; }
.dd-langs.is-hi .dd-langs-body [data-lang="hi"] { display: block; }
.dd-langs.is-bn .dd-langs-body [data-lang="bn"] { display: block; }
.dd-langs.is-hg .dd-langs-body [data-lang="hg"] { display: block; }
.dd-langs.is-bl .dd-langs-body [data-lang="bl"] { display: block; }
.dd-langs.is-hi .dd-langs-body [data-lang="en"], .dd-langs.is-bn .dd-langs-body [data-lang="en"],
.dd-langs.is-hg .dd-langs-body [data-lang="en"], .dd-langs.is-bl .dd-langs-body [data-lang="en"] { display: none; }
.dd-topic { font-size: 12px; color: var(--ink-soft, #40504d); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

/* ============ additive: static content components ============ */
.check-item { border: 1px solid rgba(29,41,40,.08); border-radius: 10px; padding: 14px 18px; margin: 14px 0; background: #fff; }
.faq { margin: 24px 0; }
.lang-summary { border-top: 2px solid var(--lime, #c8f43d); margin-top: 24px; padding-top: 14px; }
.lang-summary[lang="bn"], .lang-summary[lang="hi"] { font-size: 15px; line-height: 1.8; }
.about { border: 1px solid rgba(29,41,40,.08); border-radius: 10px; padding: 14px 18px; margin: 24px 0; background: rgba(155,199,29,.05); }
.price-ledger { border-top: 2px solid var(--ink, #1d2928); margin: 16px 0; }

/* ============ additive: track order + upi ============ */
.bs-track-steps .dd-item--pending { opacity: .55; }
.bs-track-box { border: 1px solid rgba(29,41,40,.15); border-radius: 12px; padding: 16px; margin: 16px 0; background: #fff; }
.bs-track-box p { margin: 0 0 6px; }
.bs-upi-box { border: 1px solid rgba(29,41,40,.15); border-radius: 12px; padding: 16px; margin: 16px 0; background: #fff; }
.bs-upi-box h2 { margin-top: 0; }

/* ============ additive: product trust + ask ============ */
.bs-trust { clear: both; border: 1px solid rgba(29,41,40,.1); border-radius: 3px; padding: 10px 14px; margin: 1rem 0 0; background: rgba(200,244,61,.1); }
.bs-trust p { margin: 0 0 2px; font-size: .88rem; font-weight: 600; }
.bs-trust p:last-child { margin-bottom: 0; }
.bs-ask { margin: .5rem 0 0; }
.bs-ask a { font-weight: 700; }

/* ============ additive: shop hero + trust bar + category cards ============ */
.bs-shop-hero { max-width: var(--narrow, 44rem); margin: 0 auto var(--space-5, 2rem); padding: 0 var(--space-4, 1.5rem); }
.bs-shop-hero-cta { display: flex; gap: var(--space-2, .75rem); flex-wrap: wrap; margin-top: var(--space-3, 1rem); }
.bs-trust-bar { display: flex; gap: var(--space-3, 1rem); flex-wrap: wrap; border-top: 2px solid var(--ink, #1d2928); border-bottom: 2px solid var(--ink, #1d2928); padding: 10px 0; margin: 0 0 var(--space-5, 2rem); max-width: var(--wrap, 72rem); margin-left: auto; margin-right: auto; padding-left: var(--space-4, 1.5rem); padding-right: var(--space-4, 1.5rem); }
.bs-trust-bar p { margin: 0; font-size: .88rem; font-weight: 700; }
.bs-shop-cats { max-width: var(--wrap, 72rem); margin: 0 auto var(--space-5, 2rem); padding: 0 var(--space-4, 1.5rem); }
.bs-shop-cats h2 { margin-top: 0; }
.bs-shop-cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3, 1rem); }
.bs-cat-card { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2, .75rem); border: 1px solid rgba(29,41,40,.12); border-radius: 12px; background: #fff; padding: 12px 16px; text-decoration: none; color: var(--ink, #1d2928); transition: border-color .18s ease; }
.bs-cat-card:hover { border-color: var(--ink, #1d2928); }
.bs-cat-card:focus-visible { outline: 2px solid var(--ink, #1d2928); outline-offset: 2px; }
.bs-cat-card span { font-size: .82rem; color: var(--ink-soft, #40504d); white-space: nowrap; }

/* ============ WooCommerce additive overrides ============ */
body.woocommerce-page, body.woocommerce { background: var(--paper, #fffdf8); }
.woocommerce div.product div.images { background: var(--paper, #fffdf8); border: 1px solid rgba(29,41,40,.08); border-radius: 12px; padding: 12px; }
.woocommerce span.onsale { background: var(--lime, #c8f43d); color: var(--ink, #1d2928); font-weight: 800; border-radius: 4px; z-index: 5; }
ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4, 1.5rem); list-style: none; margin: 0; padding: 0; max-width: var(--wrap, 72rem); margin-left: auto; margin-right: auto; }
ul.products::before, ul.products::after { content: none !important; display: none !important; }
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; border: 1px solid rgba(29,41,40,.1); border-radius: 12px; background: #fff; padding: 0 0 var(--space-3, 1rem); overflow: hidden; display: flex; flex-direction: column; }
ul.products li.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin: 0 0 var(--space-3, 1rem); background: rgba(29,41,40,.03); }
ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; padding: 0 var(--space-3, 1rem); font-weight: 700; }
ul.products li.product .price { padding: 0 var(--space-3, 1rem); font-weight: 700; }
ul.products li.product .price del { color: var(--ink-soft, #40504d); font-weight: 400; }
ul.products li.product .price ins { text-decoration: none; color: var(--ink, #1d2928); }
ul.products li.product .button { margin: var(--space-2, .75rem) var(--space-3, 1rem) 0; margin-top: auto; align-self: flex-start; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wc-block-components-button, .wc-block-cart__submit-button {
  background: var(--ink, #1d2928) !important; color: var(--paper, #fffdf8) !important;
  border: 2px solid var(--ink, #1d2928); border-radius: 3px !important;
  padding: 10px 20px; font-weight: 700; text-decoration: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--ink-soft, #40504d) !important; }
.woocommerce-MyAccount-navigation { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.woocommerce-MyAccount-navigation li a { display: inline-block; padding: 8px 14px; border: 1px solid rgba(29,41,40,.15); border-radius: 3px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink, #1d2928); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ink, #1d2928); color: var(--paper, #fffdf8); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="number"], textarea {
  font: inherit; padding: 10px 12px; border: 1px solid rgba(29,41,40,.2); border-radius: 3px; background: #fff; color: var(--ink, #1d2928); max-width: 100%;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ink, #1d2928); outline-offset: 1px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink, #1d2928); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
