/* =========================================================
   Lia Atelier — Inner pages (shop, product, cart, account, static)
   ========================================================= */

/* ---------- Page hero / breadcrumb ---------- */
.page-hero { background: var(--white); border-bottom: 1px solid var(--border); padding-block: var(--sp-7); }
.page-hero .container { text-align: center; }
.page-hero h1 { font-size: var(--fs-2xl); }
.page-hero p { color: var(--text-muted); margin-top: var(--sp-3); max-width: 60ch; margin-inline: auto; }
.breadcrumb { display: flex; gap: var(--sp-2); align-items: center; justify-content: center; font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--sp-4); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-6); align-items: start; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.shop-toolbar .count { font-size: var(--fs-sm); color: var(--muted); }
.shop-toolbar .tools { display: flex; align-items: center; gap: var(--sp-3); }
.select { border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-pill); padding: 0.6rem 1.1rem; font-size: var(--fs-sm); }
.filter-toggle { display: none; }

.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); }
.filter-group { padding-block: var(--sp-4); border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.check { display: flex; align-items: center; gap: var(--sp-2); padding-block: 5px; font-size: var(--fs-sm); color: var(--ink-soft); cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.check .num { margin-inline-start: auto; color: var(--muted); font-size: var(--fs-xs); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--border); cursor: pointer; transition: transform var(--dur) var(--ease); }
.swatch:hover, .swatch.active { transform: scale(1.15); box-shadow: 0 0 0 2px var(--accent); }
.price-range { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
.price-range input { width: 100%; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-7); }
.pagination a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-xs); font-size: var(--fs-sm); font-weight: 600; }
.pagination a.active { background: var(--ink); color: #fff; }
.pagination a:hover:not(.active) { color: var(--accent); }

/* ---------- Single product ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; }
.gallery .stage { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.gallery .stage .zoom-layer { position: absolute; inset: 0; background-size: 200%; background-position: center; opacity: 0; transition: opacity var(--dur) var(--ease); }
.gallery .stage.zooming { cursor: zoom-out; }
.gallery .stage.zooming .zoom-layer { opacity: 1; }
.gallery .hint { position: absolute; bottom: var(--sp-3); inset-inline-end: var(--sp-3); background: rgba(255,255,255,.85); border-radius: var(--radius-pill); padding: 6px 12px; font-size: var(--fs-xs); color: var(--ink-soft); z-index: 2; pointer-events: none; }
.gallery .thumbs { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.gallery .thumbs .thumb { width: 84px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.gallery .thumbs .thumb.active { border-color: var(--accent); }

.product-info .breadcrumb { justify-content: flex-start; margin-bottom: var(--sp-3); }
.product-info h1 { font-size: var(--fs-xl); }
.product-info .sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.product-info .rating-row { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); font-size: var(--fs-sm); }
.product-info .rating-row .stars { color: #E3B23C; }
.product-info .price-block { display: flex; align-items: baseline; gap: var(--sp-3); margin-block: var(--sp-4); }
.product-info .price-block .price { font-size: var(--fs-2xl); font-weight: 700; }
.product-info .price-block .price-old { color: var(--muted); text-decoration: line-through; font-size: var(--fs-md); }
.product-info .price-block .save { background: var(--pink); color: #9d5f5a; font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); }
.product-info .desc { color: var(--ink-soft); margin-block: var(--sp-4); }
.product-divider { height: 1px; background: var(--border); margin-block: var(--sp-5); }

.opt-row { margin-bottom: var(--sp-4); }
.opt-row .lbl { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-2); display: flex; gap: var(--sp-2); }
.opt-row .lbl .val { color: var(--muted); font-weight: 400; }
.opt-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.opt-pill { border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-pill); padding: 0.5rem 1.1rem; font-size: var(--fs-sm); cursor: pointer; transition: all var(--dur) var(--ease); }
.opt-pill:hover { border-color: var(--accent); }
.opt-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 42px; height: 44px; font-size: var(--fs-md); color: var(--ink); }
.qty button:hover { background: var(--cream); }
.qty input { width: 46px; text-align: center; border: none; font-weight: 600; }

.buy-row { display: flex; gap: var(--sp-3); align-items: center; margin-block: var(--sp-5); flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 160px; }

.assurances { display: grid; gap: var(--sp-3); background: var(--white); border-radius: var(--radius); padding: var(--sp-4); }
.assurances .a { display: flex; gap: var(--sp-3); align-items: center; font-size: var(--fs-sm); color: var(--ink-soft); }
.assurances .a .ic { color: var(--accent); font-size: var(--fs-md); }

/* Specs / tabs */
.product-tabs { margin-top: var(--sp-8); }
.tab-nav { display: flex; gap: var(--sp-5); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.tab-nav button { padding-block: var(--sp-3); font-size: var(--fs-md); font-weight: 600; color: var(--muted); position: relative; }
.tab-nav button.active { color: var(--ink); }
.tab-nav button.active::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--accent); }
.tab-panel { display: none; animation: fade .4s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

.spec-table { width: 100%; border-collapse: collapse; max-width: 640px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table th { text-align: start; padding: var(--sp-3) 0; font-weight: 600; color: var(--ink); width: 200px; font-size: var(--fs-sm); }
.spec-table td { padding: var(--sp-3) 0; color: var(--ink-soft); font-size: var(--fs-sm); }

/* Reviews */
.review-summary { display: flex; gap: var(--sp-7); align-items: center; margin-bottom: var(--sp-6); flex-wrap: wrap; }
.review-summary .big { font-size: var(--fs-3xl); font-weight: 700; line-height: 1; }
.review-summary .big + div .stars { color: #E3B23C; }
.review-bars { flex: 1; min-width: 240px; display: grid; gap: 6px; }
.review-bar { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.review-bar .track { flex: 1; height: 7px; background: var(--gray-100); border-radius: var(--radius-pill); overflow: hidden; }
.review-bar .fill { height: 100%; background: var(--accent); border-radius: var(--radius-pill); }
.review { border-top: 1px solid var(--border); padding-block: var(--sp-5); }
.review .head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-weight: 700; color: var(--accent-hover); }
.review .who { font-weight: 600; font-size: var(--fs-sm); }
.review .when { font-size: var(--fs-xs); color: var(--muted); }
.review .stars { color: #E3B23C; font-size: var(--fs-sm); margin-inline-start: auto; }
.review p { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-6); align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: var(--sp-4); align-items: center; background: var(--white); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-3); }
.cart-item .ph { width: 90px; aspect-ratio: 1; border-radius: var(--radius-sm); }
.cart-item .t { font-weight: 600; font-size: var(--fs-sm); }
.cart-item .meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.cart-item .rm { font-size: var(--fs-xs); color: var(--danger); margin-top: var(--sp-2); }
.summary { background: var(--white); border-radius: var(--radius); padding: var(--sp-5); position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { font-size: var(--fs-md); margin-bottom: var(--sp-4); }
.summary .line { display: flex; justify-content: space-between; padding-block: var(--sp-2); font-size: var(--fs-sm); color: var(--ink-soft); }
.summary .line.total { border-top: 1px solid var(--border); margin-top: var(--sp-3); padding-top: var(--sp-3); font-size: var(--fs-md); font-weight: 700; color: var(--ink); }
.coupon { display: flex; gap: var(--sp-2); margin-block: var(--sp-4); }
.coupon input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.7rem 1rem; font-size: var(--fs-sm); }

/* ---------- Forms / account / auth ---------- */
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-2); }
.input, textarea.input, select.input { width: 100%; border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; font-size: var(--fs-base); transition: border-color var(--dur) var(--ease); }
.input:focus { border-color: var(--accent); outline: none; }
textarea.input { min-height: 130px; resize: vertical; }

.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); max-width: 980px; margin-inline: auto; align-items: center; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: var(--sp-7); box-shadow: var(--shadow-sm); }
.auth-card h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.auth-card .muted { margin-bottom: var(--sp-5); }
.auth-tabs { display: flex; gap: var(--sp-2); background: var(--cream); border-radius: var(--radius-pill); padding: 5px; margin-bottom: var(--sp-5); }
.auth-tabs button { flex: 1; padding: 0.6rem; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--fs-sm); color: var(--muted); }
.auth-tabs button.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-xs); }

/* Account dashboard */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-6); align-items: start; }
.account-nav { background: var(--white); border-radius: var(--radius); padding: var(--sp-3); }
.account-nav a { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--ink-soft); }
.account-nav a.active, .account-nav a:hover { background: var(--cream); color: var(--ink); }
.account-panel { background: var(--white); border-radius: var(--radius); padding: var(--sp-6); }
.order-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: var(--sp-4); align-items: center; padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.status { padding: 4px 12px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; }
.status.done { background: #e6f0e4; color: var(--success); }
.status.progress { background: var(--lilac); color: #6f5f8a; }
.status.pending { background: var(--pink); color: #9d5f5a; }

/* Order tracking timeline */
.track { display: flex; gap: 0; margin-top: var(--sp-5); }
.track .step { flex: 1; text-align: center; position: relative; font-size: var(--fs-xs); color: var(--muted); }
.track .step .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--gray-100); display: grid; place-items: center; margin: 0 auto var(--sp-2); position: relative; z-index: 1; }
.track .step.done .dot { background: var(--accent); color: #fff; }
.track .step.done { color: var(--ink); font-weight: 600; }
.track .step::before { content: ""; position: absolute; top: 17px; inset-inline-end: 50%; width: 100%; height: 2px; background: var(--gray-100); z-index: 0; }
.track .step:first-child::before { display: none; }
.track .step.done::before { background: var(--accent); }

/* ---------- Static content (about/faq/policies/contact) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: var(--fs-xl); margin-block: var(--sp-6) var(--sp-3); }
.prose h3 { font-size: var(--fs-md); margin-block: var(--sp-5) var(--sp-2); }
.prose p { color: var(--ink-soft); margin-bottom: var(--sp-4); }
.prose ul.bullets { margin-bottom: var(--sp-4); }
.prose ul.bullets li { position: relative; padding-inline-start: var(--sp-5); margin-bottom: var(--sp-2); color: var(--ink-soft); }
.prose ul.bullets li::before { content: "✦"; position: absolute; inset-inline-start: 0; color: var(--accent); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.value-card { background: var(--white); border-radius: var(--radius); padding: var(--sp-5); text-align: center; }
.value-card .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; margin: 0 auto var(--sp-3); color: var(--accent); font-size: var(--fs-lg); }
.value-card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.value-card p { font-size: var(--fs-sm); color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: start; }
.contact-info .item { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-5); }
.contact-info .item .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.contact-info .item .t { font-weight: 600; font-size: var(--fs-sm); }
.contact-info .item .s { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Search form ---------- */
.lia-search-form { display: flex; gap: var(--sp-2); align-items: center; }
.lia-search-form input[type="search"] { flex: 1; border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-pill); padding: 0.9rem 1.3rem; font-size: var(--fs-base); }
.search-bar form { padding-block: var(--sp-4); }

/* ---------- Blog listing ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.blog-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: var(--sp-5); }
.blog-body .cat { font-size: var(--fs-xs); color: var(--muted); }
.blog-body .title { display: block; font-size: var(--fs-md); font-weight: 600; margin-block: var(--sp-2) var(--sp-3); color: var(--ink); }
.blog-body .title:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(86vw, 320px); z-index: 210; border-radius: 0; transform: translateX(-100%); transition: transform var(--dur) var(--ease); overflow-y: auto; }
  [dir="rtl"] .filters { transform: translateX(100%); }
  .filters.open { transform: translateX(0); }
  .filter-toggle { display: inline-flex; }
  .product-layout { grid-template-columns: 1fr; gap: var(--sp-6); }
  .cart-layout { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-wrap .auth-aside { display: none; }
  .account-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .order-row { grid-template-columns: 1fr 1fr; }
  .track { flex-wrap: wrap; gap: var(--sp-4); }
  .track .step { flex-basis: 40%; }
  .track .step::before { display: none; }
}
