/* ==========================================================================
   YJ BATTERY - 站点主样式
   移动优先 / 响应式 / 纯静态
   ========================================================================== */

:root {
  --brand: #ff6a13;
  --brand-dark: #e05500;
  --brand-soft: #fff3ec;
  --ink: #1c1f23;
  --ink-2: #4a5058;
  --ink-3: #7a828c;
  --line: #e6e9ee;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(20, 24, 31, .07);
  --shadow-hover: 0 8px 26px rgba(20, 24, 31, .14);
  --maxw: 1280px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 顶部 ---------- */
.topbar {
  background: var(--ink); color: #cfd5dd; font-size: 13px;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 36px; gap: 12px; flex-wrap: wrap;
}
.topbar a { color: #cfd5dd; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; gap: 16px; flex-wrap: wrap; }

.header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 40px; height: 40px; display: block; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo-txt b { font-size: 17px; letter-spacing: .2px; }
.logo-txt span { font-size: 11px; color: var(--ink-3); letter-spacing: .4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 10px 14px; font-weight: 600; font-size: 15px;
  border-radius: 6px; white-space: nowrap;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--brand); background: var(--brand-soft); }
.nav .has-sub > a::after { content: " \25BE"; font-size: 10px; color: var(--ink-3); }
.submenu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-hover); padding: 6px 0; z-index: 60;
}
.nav > li:hover .submenu { display: block; }
.submenu a { display: block; padding: 8px 16px; font-size: 14px; }
.submenu a:hover { background: var(--bg-soft); color: var(--brand); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 38px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle i { display: block; width: 20px; height: 2px; background: var(--ink); }

.hd-cta {
  background: var(--brand); color: #fff; padding: 9px 18px; border-radius: 6px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.hd-cta:hover { background: var(--brand-dark); color: #fff; }

/* ---------- Banner ---------- */
.hero { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero-slide { display: none; position: relative; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 340px; object-fit: cover; }
.hero-txt {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 0 34px;
  background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, 0));
  color: #fff;
}
.hero-txt .wrap h1 { font-size: 30px; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero-txt .wrap p { margin: 0 0 14px; font-size: 15px; opacity: .95; max-width: 620px; }
.hero-dots { position: absolute; right: 20px; bottom: 18px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, .55); cursor: pointer;
}
.hero-dots button.active { background: var(--brand); }

/* ---------- 区块 ---------- */
.section { padding: 44px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 24px; }
.sec-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.sec-more { color: var(--brand); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- 分类 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: .2s; display: block;
}
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cat-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.cat-card span { color: var(--ink-3); font-size: 13px; }

/* ---------- 产品橱窗 ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pgrid.c3 { grid-template-columns: repeat(3, 1fr); }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .22s; display: flex; flex-direction: column;
}
.pcard:hover { box-shadow: var(--shadow-hover); border-color: #dcdfe6; transform: translateY(-3px); }
.pcard-media {
  position: relative; padding-top: 100%; background: var(--bg-soft); overflow: hidden;
}
.pcard-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .3s ease;
}
.pcard-media img.img-b { opacity: 0; }
/* 橱窗：hover 切换第二张图 */
.pcard:hover .pcard-media img.img-a { opacity: 0; }
.pcard:hover .pcard-media img.img-b { opacity: 1; }
.pcard-media .no-b .img-b { display: none; }
.pcard:hover .pcard-media.no-b img.img-a { opacity: 1; }
/* 移动端触摸切换第二张图 */
.pcard-media.touch-flip img.img-a { opacity: 0; }
.pcard-media.touch-flip img.img-b { opacity: 1; }

.pcard-body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.pcard-title {
  font-size: 14px; font-weight: 600; line-height: 1.45; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 40px;
}
.pcard-price { color: var(--brand); font-weight: 800; font-size: 16px; margin-bottom: 2px; }
.pcard-moq { color: var(--ink-3); font-size: 12px; margin-bottom: 10px; }
.pcard-btn {
  margin-top: auto; display: block; text-align: center; border: 1px solid var(--brand);
  color: var(--brand); border-radius: 6px; padding: 7px 0; font-size: 13px; font-weight: 700;
}
.pcard:hover .pcard-btn { background: var(--brand); color: #fff; }

/* ---------- 面包屑 ---------- */
.crumb { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.crumb .wrap { padding-top: 12px; padding-bottom: 12px; color: var(--ink-3); }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--brand); }
.crumb .sep { margin: 0 8px; color: #c3c8d0; }

/* ---------- 布局 ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; padding: 26px 0 40px; }
.side { align-self: start; position: sticky; top: 88px; min-width: 0; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.side-box h3 { font-size: 15px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.side-box li a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: 14px; color: var(--ink-2); }
.side-box li a:hover, .side-box li.active a { color: var(--brand); font-weight: 600; }
.side-box .cnt { color: var(--ink-3); font-size: 12px; }

/* 侧栏热门产品：图片在上、标题在下（不使用分类的左右 flex 布局） */
.side-hot li a {
  display: block; padding: 0 0 14px; font-size: 13px; color: var(--ink-2);
}
.side-hot li:last-child a { padding-bottom: 0; }
.side-hot li a:hover { color: var(--brand); }
.side-hot li a img {
  width: 100%; border-radius: 6px; margin-bottom: 6px; background: var(--bg-soft);
}
.side-hot li a span { display: block; line-height: 1.45; }

/* ---------- 产品详情 ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 26px 0 10px; }
.gallery { position: sticky; top: 88px; align-self: start; }
.gal-main {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; position: relative;
}
.gal-main .gal-img { display: none; width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.gal-main .gal-img.active { display: block; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .38); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.gal-nav:hover { background: rgba(0, 0, 0, .6); }
.gal-prev { left: 10px; }
.gal-next { right: 10px; }
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gal-thumbs button {
  width: 66px; height: 66px; padding: 0; border: 2px solid var(--line);
  border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; flex: 0 0 auto;
}
.gal-thumbs button.active { border-color: var(--brand); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: 24px; margin-bottom: 10px; }
.pd-price-box { background: var(--brand-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.pd-price { color: var(--brand); font-size: 24px; font-weight: 800; }
.pd-price small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pd-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px; font-weight: 700;
  font-size: 15px; border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-ghost:hover { background: var(--brand-soft); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.spec-table th { background: var(--bg-soft); width: 40%; font-weight: 600; color: var(--ink-2); }

.detail-block { margin-bottom: 22px; }
.detail-block h3 { font-size: 17px; margin-bottom: 12px; padding-left: 10px; border-left: 4px solid var(--brand); }
.detail-block img { border-radius: 8px; margin: 0 auto 14px; }
.detail-block p { color: var(--ink-2); }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 30px 0 10px; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; background: #fff;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .dis { opacity: .45; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq-q {
  width: 100%; text-align: left; padding: 14px 18px; background: none; border: 0;
  font-size: 15px; font-weight: 700; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; color: var(--ink);
}
.faq-q::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 700; }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--ink-2); font-size: 14px; }
.faq-item.open .faq-a { display: block; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.contact-list b { display: inline-block; min-width: 92px; color: var(--ink-2); }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 14px; font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus { outline: 0; border-color: var(--brand); }
.form-note { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.inquiry-msg { margin-top: 10px; }
.inquiry-msg.ok { color: #1a7f45; }
.inquiry-msg.err { color: #b3261e; }

/* ---------- 产品详情页下单区 ---------- */
.buy-panel {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin: 18px 0;
}
.buy-panel h3 {
  font-size: 16px; margin-bottom: 14px; padding-left: 10px;
  border-left: 4px solid var(--brand);
}
.buy-hint { font-weight: 400; color: var(--ink-3); }
.buy-panel .buy-qty, .buy-panel .buy-email { min-height: 42px; }
.buy-total {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
  padding: 12px 0; margin: 14px 0; font-size: 14px; color: var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.buy-total strong { color: var(--brand); font-size: 22px; }
.buy-submit { width: 100%; font-size: 16px; padding: 14px 20px; min-height: 50px; }
.buy-submit:disabled { opacity: .55; cursor: not-allowed; }
.buy-msg { font-size: 13px; margin: 10px 0 0; min-height: 1em; }
.buy-msg.err { color: #b3261e; }
.buy-msg.ok { color: #1a7f45; }
.buy-note { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; line-height: 1.6; }
.buy-note a { color: var(--brand); text-decoration: underline; }

/* ---------- 收货地址页（下单第一步） ---------- */
.ship-page { background: var(--bg-soft); }
.ship-secure { font-size: 13px; color: var(--ink-3); }
.ship-wrap { max-width: 760px; padding: 24px 16px 56px; }
.ship-back { display: inline-block; font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.ship-back:hover { color: var(--brand); }
.ship-head { margin-bottom: 16px; }
.ship-head h1 { font-size: 24px; margin-bottom: 6px; }
.ship-sub { font-size: 14px; color: var(--ink-2); margin: 0; }
.ship-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.ship-summary {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 20px; border-radius: 8px; background: var(--bg-soft);
  font-size: 14px;
}
.ship-summary-title { font-weight: 600; color: var(--ink); }
.ship-summary-meta { color: var(--ink-2); white-space: nowrap; }
.ship-summary-meta b { color: var(--brand); font-size: 17px; }
.ship-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ship-col-2 { grid-column: span 2; }
.ship-col-3 { grid-column: span 3; }
.ship-col-6 { grid-column: span 6; }
.ship-grid label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.ship-grid input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 7px; font-size: 14px; font-family: inherit; background: #fff;
}
.ship-grid input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ship-grid input[aria-invalid="true"] { border-color: #b3261e; background: #fffafa; }
.ship-req { color: #b3261e; }
.ship-opt { font-weight: 400; color: var(--ink-3); }
.ship-err { min-height: 1em; margin: 5px 0 0; font-size: 12px; color: #b3261e; }
.ship-err:empty { min-height: 0; margin: 0; }
.ship-link {
  padding: 0; border: 0; background: none; color: var(--brand); font: inherit;
  font-size: 13px; cursor: pointer; text-decoration: underline;
}
.ship-link:hover { color: var(--brand-dark); }
.ship-submit { width: 100%; margin-top: 18px; font-size: 16px; padding: 14px 20px; min-height: 50px; }
.ship-submit:disabled { opacity: .55; cursor: not-allowed; }
.ship-msg { font-size: 13px; margin: 10px 0 0; min-height: 1em; }
.ship-msg.err { color: #b3261e; }
.ship-msg.ok { color: #1a7f45; }
.ship-note { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; line-height: 1.6; }
.ship-note a { color: var(--brand); text-decoration: underline; }

@media (max-width: 719px) {
  .ship-col-2, .ship-col-3 { grid-column: span 3; }
  .ship-wrap { padding: 18px 14px 40px; }
  .ship-card { padding: 18px 16px; }
}
@media (max-width: 479px) {
  .ship-col-2, .ship-col-3, .ship-col-6 { grid-column: span 6; }
  .ship-head h1 { font-size: 21px; }
}

/* ---------- 订单结果页 ---------- */
.order-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.os-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
  font-weight: 700; font-size: 13px; background: var(--bg-soft); color: var(--ink-2);
}
.os-badge[data-state="paid"] { background: #e6f7ed; color: #1a7f45; }
.os-badge[data-state="wait"], .os-badge[data-state="confirm"] { background: #fff3e6; color: #b85c00; }
.os-badge[data-state="expired"], .os-badge[data-state="cancelled"],
.os-badge[data-state="error"] { background: #fdeaea; color: #b3261e; }
.os-line { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }

@media (max-width: 600px) {
}

/* ---------- 页脚 ---------- */
.footer { background: #16191d; color: #a8b0ba; margin-top: 40px; font-size: 14px; }
.footer .wrap { padding-top: 40px; padding-bottom: 20px; }
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 26px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer li a { display: block; padding: 5px 0; color: #a8b0ba; }
.footer li a:hover { color: var(--brand); }
.footer p { color: #a8b0ba; }
.f-bottom {
  border-top: 1px solid #262b31; margin-top: 26px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
}

/* ---------- 询盘弹窗 ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 200; }
.modal.open { display: block; }
.modal-bg { position: absolute; inset: 0; background: rgba(12, 16, 22, .58); }
.modal-box {
  position: relative; background: #fff; max-width: 460px; margin: 8vh auto 0;
  border-radius: 12px; padding: 24px; box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
  max-height: 84vh; overflow: auto;
}
.modal-box h3 { margin-bottom: 6px; }
.modal-x {
  position: absolute; right: 12px; top: 10px; border: 0; background: none;
  font-size: 26px; line-height: 1; cursor: pointer; color: #7a828c;
}
@media (max-width: 480px) {
  .modal-box { margin: 4vh 12px 0; padding: 18px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .pd { grid-template-columns: 1fr; gap: 20px; }
  .gallery { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-slide img { height: 260px; }
  .hero-txt .wrap h1 { font-size: 22px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 8px; box-shadow: var(--shadow-hover);
  }
  .nav.open { display: flex; }
  .nav > li > a { padding: 12px 14px; border-radius: 6px; }
  .nav .has-sub > a::after { content: ""; }
  .submenu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .header .wrap { min-height: 60px; position: relative; }
  .hd-cta { display: none; }
  .pgrid, .pgrid.c3, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide img { height: 200px; }
  .hero-txt { padding: 18px 0 24px; }
  .hero-txt .wrap h1 { font-size: 19px; }
  .hero-txt .wrap p { font-size: 13px; }
  h1 { font-size: 21px; }
  h2 { font-size: 19px; }
  .section { padding: 30px 0; }
  .gal-thumbs button { width: 56px; height: 56px; }
  .f-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pgrid, .pgrid.c3, .cat-grid { grid-template-columns: 1fr; }
  .pd-info h1 { font-size: 20px; }
  .pd-price { font-size: 21px; }
  .topbar { display: none; }
}
