/* ============================================================
   Architect Interior Studio — Store + Pricing CSS
   Editorial graphite + brass. Inquiry-based store (no checkout).
   Inherits tokens from site.css (--ink, --brass, --rule, etc.).
   ============================================================ */

/* ===== Shared page head (listing / cart / pricing) ===== */
.shop-head { padding: 64px 0 0; background: var(--bg); }
.shop-head .shop-lede {
    color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 1rem 0 0;
}
.shop-crumb { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.shop-crumb a { color: var(--muted); }
.shop-crumb a:hover { color: var(--brass); }
.shop-crumb span { margin: 0 .5rem; color: var(--rule); }

/* ===== Filter bar (listing) ===== */
.shop-filter { margin-top: 2rem; }
.shop-filter .form-label { font-size: .78rem; font-weight: 600; letter-spacing: .3px; color: var(--ink); margin-bottom: .35rem; }
.shop-filter .form-select { border-radius: 0; border-color: var(--rule); }
.shop-filter .form-select:focus { border-color: var(--brass); box-shadow: 0 0 0 .15rem rgba(0,174,239,.18); }
.shop-filter-actions { display: flex; gap: .6rem; }
.btn-brass { background: var(--brass); color: #fff; border: 1px solid var(--brass); border-radius: 0; }
.btn-brass:hover { background: var(--brass-dark); border-color: var(--brass-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--rule); color: var(--ink); background: transparent; border-radius: 0; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.shop-count { color: var(--muted); font-size: .9rem; }
.shop-active-cat {
    display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem;
    background: var(--surface); border: 1px solid var(--rule); border-left: 2px solid var(--brass);
    padding: .35rem .75rem; color: var(--ink);
}
.shop-active-cat a { color: var(--muted); }
.shop-active-cat a:hover { color: var(--brass); }

/* ===== Product card (grid) ===== */
.product-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--rule);
    transition: box-shadow .25s ease, transform .25s ease;
}
/* §9.21 — equal-height only inside a grid column, never on a lone base card */
.row > [class*="col"] > .product-card { height: 100%; }
.product-card:hover { box-shadow: 0 14px 34px rgba(31,41,55,.10); transform: translateY(-3px); }
.pcard-figure {
    display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e8e3dc;
}
.pcard-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .pcard-figure img { transform: scale(1.05); }
.pcard-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b9b0a3; font-size: 2.4rem; }
.pcard-featured {
    position: absolute; top: .8rem; left: .8rem; background: var(--brass); color: #fff;
    font-size: .65rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; padding: .3rem .55rem;
}
.pcard-body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.pcard-brand { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: .25rem; }
.pcard-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin: 0 0 .4rem; }
:lang(bn) .pcard-name { font-family: var(--bengali); font-size: 1.15rem; }
.pcard-name a { color: var(--ink); }
.product-card:hover .pcard-name a { color: var(--brass); }
.pcard-price { font-weight: 600; color: var(--ink); margin: 0 0 1rem; }
.pcard-actions { margin-top: auto; display: flex; gap: .6rem; align-items: center; }
.pcard-actions .btn { flex: 1 1 auto; }

/* "Add to cart" / store buttons */
.btn-add-cart {
    background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0;
    font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
}
.btn-add-cart:hover { background: var(--brass); border-color: var(--brass); color: #fff; }

/* ===== Empty / pagination (reused look from projects) ===== */
.shop-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.shop-empty i { font-size: 2.6rem; color: var(--rule); display: block; margin-bottom: .8rem; }
.shop-empty h4 { margin: 0 0 .4rem; }

.shop-pagination { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 3rem 0 0; justify-content: center; }
.shop-pagination li a, .shop-pagination li span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
    padding: 0 .6rem; border: 1px solid var(--rule); color: var(--ink); font-size: .9rem; background: var(--surface);
}
.shop-pagination li a:hover { border-color: var(--brass); color: var(--brass); }
.shop-pagination li.active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.shop-pagination li.disabled span { color: var(--rule); }

/* ===== Product detail ===== */
.pd-figure { background: #e8e3dc; border: 1px solid var(--rule); aspect-ratio: 4/3; overflow: hidden; }
.pd-figure img { width: 100%; height: 100%; object-fit: cover; }
.pd-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b9b0a3; font-size: 3.2rem; }
.pd-brand { font-size: .74rem; text-transform: uppercase; letter-spacing: 2px; color: var(--brass); font-weight: 600; }
.pd-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .4rem 0 .6rem; }
.pd-cat { color: var(--muted); font-size: .9rem; }
.pd-price { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); margin: 1.2rem 0; }
:lang(bn) .pd-price { font-family: var(--bengali); }
.pd-desc { color: var(--muted); line-height: 1.8; margin-bottom: 1.6rem; }
.pd-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.pd-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; display: flex; gap: .5rem; align-items: flex-start; }
.pd-note i { color: var(--brass); margin-top: .15rem; }

/* "Used in these projects" */
.pd-used { margin-top: 4rem; border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.pd-used h2 { font-size: 1.6rem; margin: 0 0 1.5rem; }
.pd-used-card { display: block; color: var(--ink); }
.pd-used-figure { aspect-ratio: 4/3; overflow: hidden; background: #e8e3dc; }
.pd-used-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.pd-used-card:hover .pd-used-figure img { transform: scale(1.05); }
.pd-used-figure .pcard-placeholder { font-size: 2rem; }
.pd-used-name { font-family: var(--serif); font-size: 1.2rem; margin: .7rem 0 0; transition: color .2s ease; }
:lang(bn) .pd-used-name { font-family: var(--bengali); }
.pd-used-card:hover .pd-used-name { color: var(--brass); }

/* ===== Cart (inquiry) ===== */
.cart-panel { background: var(--surface); border: 1px solid var(--rule); padding: 1.8rem 1.6rem; }
.cart-panel h2 { font-size: 1.5rem; margin: 0 0 1.2rem; }
.cart-empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.cart-empty-state i { font-size: 2.6rem; color: var(--rule); display: block; margin-bottom: .8rem; }

.cart-lines { display: flex; flex-direction: column; }
.cart-line {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
.cart-line:first-child { border-top: 1px solid var(--rule); }
.cart-line-name { flex: 1 1 auto; font-weight: 600; color: var(--ink); font-size: .98rem; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); }
.cart-qty-btn {
    width: 34px; height: 36px; border: none; background: var(--bg); color: var(--ink);
    font-size: 1.1rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.cart-qty-btn:hover { background: var(--brass); color: #fff; }
.cart-qty-input {
    width: 48px; height: 36px; border: none; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
    text-align: center; font-size: .9rem; color: var(--ink); -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button, .cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-line-remove {
    width: 34px; height: 34px; border: 1px solid var(--rule); background: transparent; color: var(--muted);
    font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.cart-line-remove:hover { border-color: #b23b3b; color: #b23b3b; }

.cart-form .form-label { font-size: .82rem; font-weight: 600; letter-spacing: .3px; color: var(--ink); margin-bottom: .35rem; }
.cart-form textarea.form-control { min-height: 110px; resize: vertical; }
.cart-aside { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--brass); padding: 1.8rem 1.6rem; }
.cart-aside h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 1rem; }
:lang(bn) .cart-aside h3 { font-family: var(--bengali); }
.cart-aside ul { list-style: none; padding: 0; margin: 0; }
.cart-aside li { display: flex; gap: .6rem; color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.cart-aside li i { color: var(--brass); margin-top: .2rem; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
.price-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule);
    padding: 2rem 1.8rem; position: relative; transition: box-shadow .25s ease, transform .25s ease;
}
.price-card:hover { box-shadow: 0 14px 34px rgba(31,41,55,.10); transform: translateY(-3px); }
.price-card.is-popular { border-color: var(--brass); border-width: 1px; box-shadow: 0 10px 30px rgba(0,174,239,.15); }
.price-popular-flag {
    position: absolute; top: 0; right: 1.8rem; transform: translateY(-50%);
    background: var(--brass); color: #fff; font-size: .65rem; letter-spacing: 1.5px; text-transform: uppercase;
    font-weight: 600; padding: .35rem .7rem;
}
.price-scope { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brass); font-weight: 600; }
.price-name { font-family: var(--serif); font-size: 1.7rem; margin: .4rem 0 .8rem; }
:lang(bn) .price-name { font-family: var(--bengali); font-size: 1.45rem; }
.price-amount { font-family: var(--serif); font-size: 2.1rem; color: var(--ink); line-height: 1.1; }
:lang(bn) .price-amount { font-family: var(--bengali); }
.price-from { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); display: block; margin-bottom: .2rem; }
.price-billing { color: var(--muted); font-size: .88rem; margin: .3rem 0 0; }
.price-rule { border: none; border-top: 1px solid var(--rule); margin: 1.4rem 0; }
.price-features { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1 1 auto; }
.price-features li { position: relative; padding: 0 0 .7rem 1.7rem; color: var(--ink); font-size: .94rem; line-height: 1.5; }
.price-features li::before {
    content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem;
    color: var(--brass); font-size: .9rem;
}
.price-card .btn { margin-top: auto; width: 100%; }
.pricing-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 2.5rem; }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 767.98px) {
    .shop-head { padding: 48px 0 0; }
    .pd-title { font-size: clamp(1.6rem, 7vw, 2rem); }
    .cart-line { flex-wrap: wrap; gap: .7rem; }
    .cart-line-name { flex: 1 1 100%; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-popular-flag { right: 1.4rem; }
}
