/* ===== AUTO98SG - Shop (products.php / product.php) ===== */

.site-header { position: fixed; }
.page-hero { background: var(--dark); color: #fff; padding: 130px 0 56px; }
.page-hero .eyebrow { display: inline-block; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 8px; }
.page-hero p { color: #9aa2b5; }

.shop-main { padding: 34px 20px 60px; }
.shop-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 28px; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--muted); transition: .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(255,106,0,.9); }
.shop-search { display: flex; gap: 8px; }
.shop-search input { padding: 11px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: .9rem; min-width: 220px; }
.shop-search input:focus { outline: none; border-color: var(--brand); }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pc-img { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-noimg { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255,106,0,.16), rgba(13,16,23)); color: #fff; font-weight: 800; letter-spacing: .1em; }
.pc-discount { position: absolute; top: 12px; left: 12px; background: var(--brand-grad); color: #fff; font-weight: 700; font-size: .78rem; padding: 5px 10px; border-radius: 8px; box-shadow: 0 6px 14px -6px rgba(255,46,0,.8); }
.pc-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-cat { color: var(--brand); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pc-body h3 { font-size: 1.06rem; line-height: 1.35; }
.pc-body h3 a:hover { color: var(--brand); }
.pc-desc { color: var(--muted); font-size: .88rem; line-height: 1.55; flex: 1; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pc-price { display: grid; gap: 2px; }
.pc-price strong { color: var(--brand-2); font-size: 1.08rem; }
.pc-price del { color: var(--muted); font-size: .8rem; }
.pc-contact { color: var(--ink) !important; }

.empty-shop { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-shop p { margin-bottom: 16px; }

/* ===== Detail ===== */
.detail-main { padding: 30px 20px 20px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; margin-bottom: 40px; }
.dg-main { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--bg-alt); }
.dg-main img { width: 100%; height: 100%; object-fit: cover; }
.dg-empty { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; letter-spacing: .1em; color: #fff; background: linear-gradient(135deg, rgba(255,106,0,.18), rgba(13,16,23)); }
.dg-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.dg-thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid var(--line); transition: .2s; }
.dg-thumbs img.on, .dg-thumbs img:hover { border-color: var(--brand); }

.detail-info h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 8px 0 12px; }
.detail-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-price strong { font-size: 1.8rem; color: var(--brand-2); font-weight: 800; }
.detail-price del { color: var(--muted); }
.detail-short { color: var(--muted); font-size: 1rem; margin-bottom: 16px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.detail-call { color: #fff !important; }
.detail-promise { display: grid; gap: 10px; color: #3b4256; font-size: .92rem; }
.detail-promise li { position: relative; padding-left: 26px; }
.detail-promise li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

.detail-desc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); margin-bottom: 48px; }
.detail-desc h2 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.detail-desc p { margin-bottom: 14px; color: #3b4256; line-height: 1.75; }

.related { margin-bottom: 40px; }

@media (max-width: 980px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-toolbar { flex-direction: column; }
  .shop-search { width: 100%; }
  .shop-search input { flex: 1; min-width: 0; }
  .detail-actions .btn { flex: 1; text-align: center; }
}
/* ===== Light theme (shop) ===== */
.page-hero { background: linear-gradient(180deg,#fff7f1,#eef3ff); color: var(--ink); }
.page-hero p { color: #525a6e; }
.pc-noimg { background: linear-gradient(135deg, rgba(255,106,0,.16), #f2f6ff); color: var(--ink); }
.dg-empty { background: linear-gradient(135deg, rgba(255,106,0,.18), #f2f6ff); color: var(--ink); }
