/* ============================================================
   Faxione Theme — OpenCart 4
   移植自 faxione_template 静态站（index/product/about/contact）
   ============================================================ */

:root {
  --navy: #1b4f8a;
  --navy-dark: #123a68;
  --navy-deep: #0c2748;
  --ink: #1a2332;
  --muted: #5c6573;
  --cream: #f7f5f1;
  --paper: #ffffff;
  --sand: #efeae2;
  --line: #e4ddd3;
  --brass: #b08d57;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Manrope", system-ui, sans-serif; background: var(--cream); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; font-size: 15px; }
h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
main { min-height: 60vh; }

/* OC default stylesheet.css uses an absolute-positioned #container + footer
   sticky-footer hack — incompatible with the faxione theme's normal flow.
   Restore normal document flow so the footer sits below content (never overlaps). */
#container {
  position: static !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
}
#content, #column-left, #column-right {
  padding-bottom: 0 !important;
}

.home_top_content {padding:0 15px}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; border: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { border: 1.5px solid var(--navy-dark); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--navy-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; width: 100%; height: 48px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; font-weight: 600; }
.btn-dark:hover { background: var(--navy-deep); color: #fff; }
.btn-outline-block { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; height: 44px; border-radius: 4px; font-size: 14px; font-weight: 600; margin-top: 10px; display: flex; align-items: center; justify-content: center; }
.btn-outline-block:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Promo bar + Header ---------- */
.promo { background: var(--navy-deep); color: rgba(255, 255, 255, 0.85); font-size: 13px; text-align: center; padding: 8px 16px; }
.promo a { color: #fff; text-decoration: underline; }
header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo img { height: 51px; width: auto; }
nav.main { display: flex; gap: 28px; font-size: 16px; font-weight: 500; align-items: center; }
nav.main a:hover { color: var(--navy); }
nav.main a.active { color: var(--navy); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* OC integration bits in header */
/* #top utility bar is styled at the bottom of this file (re-enabled for faxione) */
#alert { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 1000; max-width: 640px; }
.alert { border-radius: 10px; font-size: 14px; }
.header-cart a, .header-cart button { font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.header-cart .dropdown-menu { min-width: 320px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(18, 58, 104, .12); }

/* ---------- Footer ---------- */
footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); padding: 48px 0 24px; margin-top: 24px; position: static !important; width: auto !important; bottom: auto !important; border: none !important; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
footer h4 { font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 14px; }
footer a { display: block; font-size: 14px; margin-bottom: 8px; color: rgba(255, 255, 255, 0.75); }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Hero (home) ---------- */
.hero { background: var(--sand); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.hero h1 { font-size: clamp(37px, 5vw, 57px); line-height: 1.1; margin-bottom: 18px; }
.hero p.lead { color: var(--muted); max-width: 420px; margin-bottom: 28px; font-size: 16px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-visual { position: relative; }
.hero-visual .scene { aspect-ratio: 5/4; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(18, 58, 104, 0.15); }
.hero-visual .scene img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: absolute; z-index: 3; bottom: 20px; right: 20px; background: var(--paper); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1); max-width: 260px; transition: transform .18s, box-shadow .18s; }
.hero-card .thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.hero-card h4 { font-family: Manrope, sans-serif; font-size: 14px; font-weight: 600; }
.hero-card p { font-size: 13px; color: var(--muted); margin: 0;font-weight: bold; }
.hero-card a { font-size: 12px; font-weight: 600; color: var(--navy); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--paper); border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trust-item strong { display: block; font-size: 17px; margin-bottom: 4px; }
.trust-item span { font-size: 16px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 16px; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(27px, 3.5vw, 37px); }
.section-head a { font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-card { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 39, 72, 0.72), transparent 55%); }
.cat-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 12px; color: #fff; }
.cat-card h3 { font-size: 17px; line-height: 1.25; margin-bottom: 2px; color: #fff; }
.cat-card span { font-size: 12px; opacity: 0.9; }

/* ---------- Featured / Banner ---------- */
.featured { background: var(--sand); }
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.featured-img { aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.banner { background: var(--navy); color: #fff; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.1fr; min-height: 280px; }
.banner-content { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.banner-content .section-label { color: rgba(255, 255, 255, 0.65); }
.banner-content h2 { font-size: 29px; margin-bottom: 10px; color: #fff; }
.banner-content p { opacity: 0.85; font-size: 15px; max-width: 300px; margin-bottom: 20px; }
.banner-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 12px 32px rgba(18, 58, 104, 0.08); }
.product-card .img { position: relative; aspect-ratio: 1; background: var(--sand); overflow: hidden; }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .img img { transform: scale(1.04); }
.product-card .body { padding: 14px 16px 16px; }
.product-card h3 { font-family: Manrope, sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
/* listing pages put the cards inside #content, whose generic `#content h3{18px}` used to win
   over the class rule - keep the card name explicit so both pages are +2 from their own base */
#content .product-card h3 { font-size: 21px; }
.product-card .code { font-size: 14px; color: var(--muted); }
.product-card .price { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 8px; }
.product-card .cart-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--navy); }

/* ---------- Why / Testimonials ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.why-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; }
.why-card h3 { font-size: 21px; margin-bottom: 8px; }
.why-card p { font-size: 16px; color: var(--muted); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.testimonial-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.stars { color: var(--brass); letter-spacing: 2px; font-size: 13px; margin-bottom: 10px; }
.testimonial-card p { font-size: 15px; margin-bottom: 14px; }
.testimonial-card strong { font-size: 14px; display: block; }
.testimonial-card span { font-size: 12px; color: var(--muted); }

/* ---------- Breadcrumb (shared) ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0 8px; display: flex; flex-wrap: wrap; gap: 0; margin-top: 20px; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb li + li::before { content: "/"; margin: 0 6px; opacity: .5; }

/* ---------- Category listing page ---------- */
.category-layout { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; margin-top: 12px; }
.category-side { position: sticky; top: 88px; }
.category-menu { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 20px; }
.category-menu .list-group-item {
  display: block; padding: 11px 14px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin-bottom: 10px; transition: background .15s, color .15s;border:none;
}
.category-menu .list-group-item:hover { background: var(--cream); color: var(--navy); }
.category-menu .list-group-item.active { background: var(--navy); color: #fff; }
.category-menu .list-group-item.active:hover { background: var(--navy-dark); }
.category-banner { border-radius: 14px; overflow: hidden; background: var(--sand); }
.category-banner img { width: 100%; height: auto; display: block; }
.category-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 4px; flex-wrap: wrap; }
.category-head .page-title { margin: 0; }
.category-head .category-desc { margin-bottom: 0; }
.category-head .listing-toolbar { margin: 0; }
.page-title { font-size: clamp(29px, 3vw, 39px); margin: 0 0 6px; }
@media (max-width: 900px) {
  .category-layout { grid-template-columns: 1fr; gap: 20px; }
  .category-side { position: static; }
  .category-banner { max-width: 320px; }
  .category-head { flex-direction: column; align-items: flex-start; }
}
.category-desc { color: var(--muted); font-size: 15px; max-width: 760px; margin-bottom: 24px; }
.category-desc p { margin-bottom: 10px; }
.listing-toolbar { display: flex; justify-content: flex-end; gap: 12px; margin: 18px 0 22px; flex-wrap: wrap; }
.listing-toolbar select { height: 40px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 12px; font-size: 14px; background: var(--paper); font-family: inherit; color: var(--ink); outline: none; }
.listing-toolbar select:focus { border-color: var(--navy); }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 12px 0 56px; align-items: start; }
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; position: sticky; top: 88px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { width: 72px; height: 72px; border-radius: 6px; overflow: hidden; border: 1.5px solid transparent; background: var(--sand); padding: 0; }
.thumbs button.active, .thumbs button:hover { border-color: var(--navy); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.main-image { aspect-ratio: 1; background: var(--sand); border-radius: 12px; overflow: hidden; position: relative; }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.badge-bestseller { position: absolute; top: 16px; left: 16px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 3px; z-index: 1; }
.buy-box h1 { font-size: 33px; line-height: 1.15; margin-bottom: 8px; }
.pd-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.price { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.price span { color: var(--muted); font-weight: 400; font-size: 15px; }
.sku { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.material-line { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: -8px 0 16px; }
.material-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.material-value { font-weight: 600; color: var(--navy); background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 3px 14px; }
.option-block { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.option-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; }
.option-label a { color: var(--navy); font-weight: 500; font-size: 12px; }
.form-select, .form-control { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 14px; font-size: 14px; font-family: inherit; background: var(--paper); color: var(--ink); outline: none; }
.form-select:focus, .form-control:focus { border-color: var(--navy); }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 4px; height: 44px; background: var(--paper); }
.qty button { width: 40px; height: 100%; font-size: 17px; color: var(--ink); }
.qty input { width: 48px; text-align: center; border: none; font-size: 15px; font-weight: 600; outline: none; background: transparent; }
.delivery { background: var(--sand); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }
.delivery label { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; cursor: pointer; }
.delivery label:last-child { margin-bottom: 0; }
.delivery input { margin-top: 3px; accent-color: var(--navy); }
.delivery .muted { color: var(--muted); font-size: 13px; }
.trust-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- Product accordion ---------- */
.details-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px 48px; }
.details { min-width: 0; }
.accordion { border-top: 1px solid var(--line); }
.accordion:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 19px; font-weight: 400; color: var(--muted); }
.accordion[open] summary::after { content: "\2212"; }
.accordion .body { padding: 0 4px 24px; font-size: 15px; color: var(--muted); max-width: 720px; }
.accordion .body p { margin-bottom: 10px; }
.accordion .body ul { margin: 12px 0 0 18px; list-style: disc; }
.accordion .body li { margin-bottom: 6px; }
.accordion .body h4 { font-family: Manrope, sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 16px 0 8px; }
.accordion .body table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.accordion .body td { border: 1px solid var(--line); padding: 8px 12px; }
.accordion .body thead td { background: var(--sand); font-weight: 600; color: var(--ink); }

/* ---------- Product page side column: IT MATCHES / YOU MAY ALSO LIKE ---------- */
.details-wrap.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 44px; align-items: start; }
.pd-aside { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.aside-block { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 20px 18px; }
.aside-title { font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
/* two big tiles per row (up to 12 tiles per list) */
.match-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.match-item { min-width: 0; }
.match-item a { display: block; }
.match-item img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 10px; background: var(--sand); }
.match-text { display: block; margin-top: 9px; }
.match-name { display: block; font-size: 14px; line-height: 1.35; color: var(--ink); }
.match-model { display: block; margin-top: 2px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.match-item a:hover .match-name { color: var(--navy); }

@media (max-width: 900px) {
  .details-wrap { padding: 0 20px 40px; }
  .details-wrap.with-aside { grid-template-columns: 1fr; gap: 32px; }
  /* below Overview the column goes full width: keep the tiles the same size as
     on desktop by putting the two blocks side by side instead of stretching them */
  .pd-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .pd-aside > .aside-block:only-child { grid-column: 1 / -1; }
  .aside-block { padding: 18px 16px; }
  .match-list { gap: 16px 12px; }
}

@media (max-width: 700px) {
  /* phones: stack the two blocks, tiles stay two per row */
  .pd-aside { grid-template-columns: 1fr; }
}

/* ---------- Finish guide (product) ---------- */



/* Size list with per-size quantity (product option) */
.size-qty-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.form-check.size-qty-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; margin: 0; background: var(--paper);
  min-height: 0; padding-left: 12px;
}
.form-check.size-qty-row .form-check-input {
  float: none; margin: 0; flex: 0 0 auto;
}
.form-check.size-qty-row .form-check-label {
  flex: 1 1 auto; font-size: 14px; color: var(--ink); margin: 0;
  padding-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.size-qty-input { width: 90px; flex: 0 0 auto; text-align: center; font-weight: 600; }
.size-qty-input:disabled { opacity: .45; background: var(--sand); }

/* Finish swatches (product option radio) */
/* Material option (pills) - sits above the Finish swatches */
.material-pills { display: none; }
.material-pill {
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  padding: 7px 15px; font-size: 14px; line-height: 1.2; color: var(--ink);
  cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.material-pill:hover { border-color: var(--navy); color: var(--navy); }
.material-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 520px) {
  .material-pill { padding: 6px 12px; font-size: 13px; }
}

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent;
  outline: 1px solid var(--line); outline-offset: 3px; cursor: pointer; padding: 0;
  transition: transform .15s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { outline-color: var(--navy); outline-width: 2px; }

.finish-guide { background: var(--paper); padding: 64px 0; border-top: 1px solid var(--line); }
.finish-guide .intro { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.finish-guide .intro h2 { font-size: 33px; margin-bottom: 10px; }
.finish-guide .intro p { font-size: 15px; color: var(--muted); }
.finish-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.finish-card { text-align: center; }
.finish-card .swatch-lg { width: 100%; aspect-ratio: 1.4; border-radius: 8px; margin-bottom: 12px; border: 1px solid var(--line); }
.finish-card h3 { font-family: Manrope, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.finish-card p { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- Related rail ---------- */
.rail { padding: 56px 0; border-top: 1px solid var(--line); }
.rail h2 { font-size: 29px; margin-bottom: 24px; }
.rail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rail-grid .product-card .img { aspect-ratio: 1; background: var(--sand); overflow: hidden; }
.rail-grid .product-card .img img { width: 100%; height: 100%; object-fit: cover; }
.rail-grid .product-card .info { padding: 14px 16px 18px; }
.rail-grid .product-card h3 { font-family: Manrope, sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.rail-grid .product-card .meta { font-size: 13px; color: var(--muted); }
.rail-grid .product-card .p { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 9px 18px; border: 1px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); transition: background .2s, color .2s; }
.tag:hover { background: var(--navy); color: #fff; }

/* ---------- Page hero (about/contact) ---------- */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding: 56px 0; }
.page-hero h1 { font-size: clamp(33px, 4vw, 49px); max-width: 640px; margin-bottom: 16px; }
.page-hero p { color: var(--muted); max-width: 560px; font-size: 17px; }
.page-hero .label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.about-grid img { width: 100%; border-radius: 18px; aspect-ratio: 4/3; object-fit: cover; }
.about-grid h2 { font-size: 29px; margin-bottom: 14px; }
.about-grid p { color: var(--muted); margin-bottom: 14px; line-height: 1.7; }
.about-content { padding: 48px 0; }
.about-content p { color: var(--muted); margin-bottom: 14px; line-height: 1.7; max-width: 760px; }

/* ---------- Contact ---------- */
.form-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.form-grid label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.form-grid input, .form-grid textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; font-family: inherit; background: var(--paper); outline: none; color: var(--ink); }
.form-grid textarea { border-radius: 16px; min-height: 120px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--navy); }
.form-grid .invalid-feedback { font-size: 13px; color: #c0392b; margin-top: -10px; margin-bottom: 10px; display: block; }
.aside { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.aside img { width: 100%; border-radius: 10px; margin-bottom: 16px; aspect-ratio: 16/10; object-fit: cover; }
.aside h2 { font-size: 23px; margin-bottom: 12px; }
.aside p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }

/* ---------- OC generic (cart page, account, checkout) ---------- */
#product-category, #product-info, #information-information, #information-contact, #checkout-cart, #account-account { padding-bottom: 40px; }
#content h1:not(.page-title) { font-size: 29px; margin: 12px 0 16px; }
#content h2 { font-size: 23px; margin: 20px 0 12px; }
#content h3 { font-size: 19px; margin: 16px 0 10px; }
#content p { margin-bottom: 12px; }
#content .alert { margin-bottom: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.table th { background: var(--sand); font-weight: 600; }
.form-check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.form-check input { margin-top: 3px; accent-color: var(--navy); }
.pagination { display: flex; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: var(--paper); }
.pagination .active { color: #fff; border-color: var(--navy); }
.text-end { text-align: right; }
.text-start { text-align: left; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 16px; }
.mt-3 { margin-top: 16px; }
.float-end { float: right; }
.d-none { display: none; }

/* ---------- Responsive ---------- */
.menu-toggle { display: none; }
@media (max-width: 900px) {
  nav.main { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .featured-grid, .banner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .why-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pd-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr; position: static; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .finish-grid, .rail-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .form-grid { grid-template-columns: 1fr; }

  /* Mobile hamburger nav */
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 8px;
    border: 1.5px solid var(--line); background: var(--paper);
    color: var(--ink); font-size: 17px;
  }
  .menu-toggle.open { background: var(--navy); color: #fff; border-color: var(--navy); }
  .header-inner { height: 88px; gap: 10px; }
  .logo img { height: 42px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { height: 38px; padding: 0 14px; font-size: 13px; }
  .header-cart .btn { height: 38px; padding: 0 12px; font-size: 13px; }
  nav.main#main-nav {
    display: none;
    position: absolute; top: 88px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(12, 39, 72, 0.10);
    flex-direction: column; gap: 0; padding: 8px 32px 16px;
    z-index: 60;
  }

.home_top_content {padding:0 15px}


  nav.main#main-nav.open { display: flex; }
  nav.main#main-nav a {
    display: block; padding: 14px 0 14px 10px; font-size: 16px; font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  nav.main#main-nav a:last-child { border-bottom: none; }

  .hero { padding-top: 4px; }
  .hero-grid { padding-top: 36px; padding-bottom: 44px; gap: 28px; }
  .hero-card { position: relative; z-index: 3; margin-top: -16px; max-width: 100%; right: auto; bottom: auto; }
  .hero-visual .scene { aspect-ratio: 4/3; }
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .promo { font-size: 12px; padding: 8px 12px; line-height: 1.5; }
  .buy-box h1 { font-size: 27px; }
  .page-hero { padding: 40px 0; }
  .details { padding-bottom: 32px; }
  .rail { padding: 40px 0; }
  .form-grid { padding-top: 32px; padding-bottom: 32px; }
  .form-grid div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .listing-toolbar { justify-content: flex-start; }
  .listing-toolbar select { flex: 1; min-width: 0; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
  .breadcrumb { flex-wrap: wrap; row-gap: 4px; }
  #alert { top: 66px; width: calc(100% - 32px); }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  /* phones: products stay two-up */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card .body { padding: 10px 11px 12px; }
  .product-card h3 { font-size: 15.5px; line-height: 1.35; }
  .product-card .code { font-size: 13.5px; }
  .product-card .card-inquiry-btn { height: 32px; font-size: 14px; }
  .product-card .wish-card-btn { width: 30px; height: 30px; font-size: 13px; }
  .why-grid, .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .finish-grid, .rail-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero h1 { font-size: 35px; }
  .header-actions .btn { padding: 0 12px; font-size: 12px; }
}

/* ---------- Faxione inquiry modal ---------- */
.cf-float {
  position: fixed; right: 28px; bottom: 28px; z-index: 120;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; border: none; border-radius: 50px;
  padding: 15px 22px; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 10px 28px rgba(12, 39, 72, 0.28); cursor: pointer;
  transition: background .15s, transform .15s;
}
.cf-float:hover { background: var(--navy-dark); transform: translateY(-2px); }
.cf-float i { font-size: 16px; }
.cf-overlay {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(10, 20, 35, 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cf-overlay[hidden] { display: none; }
.cf-modal {
  background: var(--paper); border-radius: 18px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(6, 18, 34, 0.35);
  animation: cfIn .22s ease-out;
}
@keyframes cfIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cf-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cf-close:hover { background: var(--cream); color: var(--navy); }
.cf-modal-body { padding: 30px 32px 34px; }
.cf-modal-head h3 { font-size: 27px; margin-bottom: 6px; }
.cf-modal-head p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.cf-product-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); border: 1px solid var(--navy); color: var(--navy);
  font-size: 13px; font-weight: 700; border-radius: 20px; padding: 5px 14px; margin-bottom: 16px;
}
.cf-field { margin-bottom: 13px; }
.cf-field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; padding: 10px 13px; font-size: 15px; color: var(--ink);
  font-family: inherit; transition: border-color .15s;
}
.cf-field textarea { min-height: 88px; resize: vertical; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--navy); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-error { display: none; color: #c0392b; font-size: 13px; margin-top: 4px; }
.cf-submit {
  width: 100%; height: 48px; margin-top: 14px; border: none; border-radius: 10px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  transition: background .15s;
}
.cf-submit:hover { background: var(--navy-dark); }
.cf-submit:disabled { opacity: .6; cursor: default; }
.cf-status { display: none; margin-top: 12px; font-size: 14px; }
.cf-status.err { display: block; color: #c0392b; }
.cf-loading { text-align: center; padding: 30px 0; color: var(--muted); font-size: 15px; }
.cf-success { text-align: center; padding: 14px 6px; }
.cf-success-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--cream); color: var(--navy); font-size: 27px;
  display: flex; align-items: center; justify-content: center;
}
.cf-success h3 { font-size: 27px; margin-bottom: 8px; }
.cf-success p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
@media (max-width: 600px) {
  .cf-float { right: 16px; bottom: 16px; padding: 13px 16px; }
  .cf-float span { display: none; }
  .cf-float i { font-size: 18px; }
  .cf-row { grid-template-columns: 1fr; gap: 0; }
  .cf-modal-body { padding: 26px 20px 28px; }
}

/* ============================================================
   Top utility bar — My Account · Wish List · Inquiry List · Search
   (reference: legacy faxione.com top links)
   ============================================================ */
#top {
  display: block;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px;
  color: #fff;
  position: relative;
  z-index: 80;
}
#top .list-inline { margin: 0; }
.top-wrap { display: flex; align-items: center; gap: 14px; min-height: 38px; }
.top-util { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; flex: 0 0 auto; }
.tu-account > .tu-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: 14px; font-weight: 600; color: #fff;
  border-radius: 8px; white-space: nowrap; transition: background .15s, color .15s;
  background: var(--navy);
}
.tu-link:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.tu-link i { font-size: 13px; color: #fff; width: 14px; text-align: center; opacity: .92; }
.tu-caret { font-size: 10px !important; width: auto !important; margin-left: 2px; color: rgba(255, 255, 255, 0.65) !important; }
.tu-count { font-weight: 700; color: #fff; font-style: normal; }
.tu-account { position: relative; }
.tu-wishlist { margin-left: 15px !important; }
.tu-inquiry { margin-left: 15px !important; }
.tu-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(12, 39, 72, .12); min-width: 180px; padding: 6px; z-index: 95;
}
.tu-menu.open { display: block; }
.tu-menu a { display: block; padding: 9px 13px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tu-menu a:hover { background: var(--cream); color: var(--navy); }
.top-search {
  margin-left: auto; display: flex; align-items: center;
 
   border-radius: 999px;

  transition: border-color .15s, box-shadow .15s, background .15s;
}
.top-search:focus-within { border-color: #fff; background: rgba(255, 255, 255, 0.18); }
.top-search input {
  width: 150px; border: none; outline: none; background: transparent;
  font: inherit; font-size: 13px; color: #fff;
  padding: 7px 2px 7px 14px; transition: width .18s ease;
}
.top-search input::placeholder { color: rgba(255, 255, 255, 0.6); }
.top-search.open input { width: 240px; }
.top-search-btn { border: none; background: none; color: #fff; font-size: 14px; padding: 7px 12px; cursor: pointer; }
.top-search-btn:hover { color: #fff; }
.top-lang { flex: 0 0 auto; display: flex; align-items: center; }
.top-lang ul { display: flex; align-items: center; }
.top-lang .list-inline-item { margin-right: 10px; }
.top-lang .list-inline-item:last-child { margin-right: 0; }
.top-lang a, .top-lang button, .top-lang select { font-size: 13px; color: #fff; }

@media (max-width: 900px) {
  .top-search input { width: 110px; }
  .top-search.open input { width: 170px; }
}
@media (max-width: 640px) {
  .tu-link { padding: 6px 7px; }
  .tu-link span { display: none; }
  .tu-caret { display: none; }
  .top-search { border: none; background: none; }
  .top-search input { display: none; width: auto; }
  .top-search.open {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 6px);
    border: 1.5px solid var(--line); background: #fff;
    box-shadow: 0 14px 30px rgba(12, 39, 72, .14);
  }
  .top-search.open input { display: block; width: 100%; padding: 9px 6px 9px 14px; color: var(--ink); }
  .top-search.open input::placeholder { color: var(--muted); }
  .top-search.open .top-search-btn { color: var(--navy); }
  .top-lang { margin-left: auto; }
}

/* ============================================================
   Inquiry List page
   ============================================================ */
#account-inquiry { padding-bottom: 56px; }
.inq-count { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }

.inq-prod { position: relative; }
.inq-options { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.inq-opt-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--navy);
  background: rgba(27, 79, 138, .08); border: 1px solid rgba(27, 79, 138, .18);
  border-radius: 999px; padding: 3px 10px;
}

.inq-sel { min-width: 150px; }
.inq-sel .inq-opt-chip { display: inline-flex; margin: 2px 0; }
.inq-sel-none { color: var(--muted); font-size: 14px; }


.inq-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.inq-table .table { margin: 0; }
.inq-table .table td { vertical-align: middle; }
.inq-prod a { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.inq-prod img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--sand); flex: 0 0 auto; }
.inq-prod span { font-weight: 600; color: var(--ink); line-height: 1.35; }
.inq-prod a:hover span { color: var(--navy); }
.inq-qty { display: flex; align-items: center; gap: 6px; }
.inq-qty .form-control { width: 86px; height: 38px; padding: 0 10px; font-size: 14px; border-radius: 8px; }
.inq-btn-update {
  border: 1.5px solid var(--navy); color: var(--navy); background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 7px 14px; cursor: pointer;
  transition: background .15s, color .15s;
}
.inq-btn-update:hover { background: var(--navy); color: #fff; }
.inq-btn-remove { border: none; background: none; color: #b0302a; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.inq-btn-remove:hover { background: #fdf0ef; }
.inq-send-box {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--sand); border-radius: 14px; padding: 22px 26px; margin-top: 22px;
}
.inq-send-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 25px; font-weight: 600; }
.inq-send-hint { font-size: 13px; color: var(--muted); max-width: 480px; line-height: 1.55; margin: 4px 0 0; }
.inq-empty {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 40px 28px; text-align: center; max-width: 560px; margin: 26px auto; color: var(--muted);
}
.inq-empty p { margin-bottom: 18px; }

/* Card-level quick actions (home / category / search grids) */
.product-card .card-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.product-card .card-row .cart-btn { margin-top: 0; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.product-card .price-row .price { margin-top: 0; }
.wish-card-btn {
  width: 30px; height: 30px; flex: 0 0 auto; border: 1.5px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--muted); font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s;
}
.wish-card-btn:hover { border-color: #e25563; color: #e25563; background: #fdf3f4; }
.wish-card-btn.wished { border-color: #e25563; color: #e25563; background: #fdf3f4; pointer-events: none; }
.inq-card-btn {
  width: 30px; height: 30px; flex: 0 0 auto; border: 1.5px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--navy); font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s;
}
.inq-card-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Product page secondary actions row (wishlist + inquiry) */
.pd-actions { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.pd-actions button {
  border: none; background: none; padding: 0; font: inherit; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px;
}
.pd-actions button i { color: var(--navy); font-size: 15px; }
.pd-actions button:hover { color: var(--navy); }
.pd-actions .sep { color: var(--line); }

/* ---------- Search results page ---------- */
.search-box { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; max-width: 720px; }
.search-box .form-control, .search-box .form-select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 15px;
}
.search-box .form-control { flex: 2 1 220px; }
.search-box .form-select { flex: 1 1 180px; }
.search-box .btn { height: 42px; padding: 0 22px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.search-opts { display: flex; gap: 22px; flex-wrap: wrap; margin: 8px 0 6px; font-size: 14px; color: var(--muted); }
.search-opts .opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.search-opts input { accent-color: var(--navy); }

/* ---------- Top-nav category dropdown (View by Category) ---------- */
.nav-drop { position: relative; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-drop-toggle i { font-size: 11px; transition: transform .18s; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 12px); left: -14px; min-width: 230px; z-index: 90;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(12, 39, 72, 0.14); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-drop-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-drop-menu,
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop:hover .nav-drop-toggle i,
.nav-drop.open .nav-drop-toggle i { transform: rotate(180deg); }
.nav-drop-menu a {
  display: block; padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--ink); margin-bottom: 2px; transition: background .14s, color .14s;
}
.nav-drop-menu a:last-child { margin-bottom: 0; }
.nav-drop-menu a:hover { background: var(--cream); color: var(--navy); }
.nav-drop-menu a.active { color: var(--navy); background: var(--cream); }
@media (max-width: 900px) {
  .nav-drop { width: 100%; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
  .nav-drop-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; padding: 0; min-width: 0;
    /* phones: the category list is always expanded, no collapse */
    max-height: none; overflow: visible; transition: none;
  }
  .nav-drop.open .nav-drop-menu { max-height: none; }
  .nav-drop-toggle i { display: none; }
  .nav-drop-menu a { padding: 12px 8px; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
  .nav-drop-menu a:hover { background: transparent; }
}

/* ---------- E-Catalogs page ---------- */
.ecat-head { max-width: 680px; margin-bottom: 30px; }
.ecat-head h1 { margin-bottom: 8px; }
.ecat-head p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.ecat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px; }
.ecat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s;
}
.ecat-card:hover { box-shadow: 0 16px 38px rgba(12, 39, 72, 0.12); transform: translateY(-3px); }
.ecat-cover { aspect-ratio: 3/4; background: var(--sand); overflow: hidden; }
.ecat-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecat-cover-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 41px; }
.ecat-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.ecat-body h3 { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }
.ecat-body p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.ecat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.ecat-date { font-size: 12px; color: var(--muted); }
.ecat-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  background: var(--navy); color: #fff; border-radius: 8px; padding: 8px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; transition: background .15s;
}
.ecat-btn:hover { background: var(--navy-dark); color: #fff; }
.ecat-empty { padding: 40px 0; color: var(--muted); }
@media (max-width: 900px) {
  .ecat-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .ecat-grid { grid-template-columns: 1fr; }
}

/* ---------- Event popup (menu "Event") ---------- */
.ev-overlay {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(10, 20, 35, 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ev-overlay[hidden] { display: none; }
.ev-modal {
  background: var(--paper); border-radius: 18px; width: 100%; max-width: 720px;
  max-height: 86vh; overflow-y: auto; position: relative;
  box-shadow: 0 30px 80px rgba(6, 18, 34, 0.35); animation: evIn .22s ease-out;
}
@keyframes evIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ev-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ev-close:hover { background: var(--cream); color: var(--navy); }
.ev-body { padding: 38px 40px 40px; }
.ev-title { font-family: "Cormorant Garamond", serif; font-size: 33px; line-height: 1.2; margin-bottom: 16px; color: var(--ink); }
.ev-content { font-size: 15px; line-height: 1.75; color: var(--ink); }
.ev-content p { margin-bottom: 14px; }
.ev-content h1, .ev-content h2, .ev-content h3 { font-size: 21px; margin: 22px 0 10px; color: var(--ink); }
.ev-content ul, .ev-content ol { margin: 0 0 14px 20px; }
.ev-content li { margin-bottom: 6px; }
.ev-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.ev-content a { color: var(--navy); text-decoration: underline; }
@media (max-width: 600px) {
  .ev-body { padding: 30px 22px 30px; }
  .ev-title { font-size: 27px; }
}

/* Home hero card opens the Event popup */
.hero-card[data-event-open] { cursor: pointer; }
.hero-card[data-event-open]:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(12, 39, 72, 0.16); }

/* ---------- Popular pieces: 4 rows visible, scrollable (no iframe) ---------- */
.product-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 8px 4px 4px;
  border-radius: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 79, 138, .35) var(--cream);
  -webkit-overflow-scrolling: touch;
}
.product-scroll::-webkit-scrollbar { width: 9px; }
.product-scroll::-webkit-scrollbar-track { background: var(--cream); border-radius: 6px; }
.product-scroll::-webkit-scrollbar-thumb { background: rgba(27, 79, 138, .32); border-radius: 6px; }
.product-scroll::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ---------- Product card: Inquiry button (replaces price) ---------- */
.card-inquiry-btn {
  flex: 1 1 auto; height: 32px; border: 1px solid var(--navy); border-radius: 9px;
   color: var(--navy); font-family: inherit;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; transition: background .15s, transform .15s;
  display: inline-flex; align-items: center; justify-content: center;
}
.card-inquiry-btn:hover { background: var(--navy-dark); color: #fff; }
.card-inquiry-btn:active { transform: scale(.98); }

/* ---------- Worldwide shipping band (home, between Popular pieces and Why Faxione) ---------- */
.worldwide {
  position: relative;
  background: #fafafa;
  padding: 64px 0;
  overflow: hidden;
}
/* faint world map behind the copy */
.worldwide-map {
  position: absolute;
  left: 50%; top: 50%;
  width: min(1180px, 96%);
  height: 96%;
  transform: translate(-58%, -50%);
  background: #dfe3ea;
  -webkit-mask-image: url(/image/catalog/faxione/world-map.svg);
  mask-image: url(/image/catalog/faxione/world-map.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: .55;
  pointer-events: none;
}
.worldwide .container { position: relative; z-index: 1; }
.worldwide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.worldwide-text .section-label { color: #a8814f; letter-spacing: .14em; text-transform: uppercase; }
.worldwide-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(25px, 2.6vw, 35px);
  color: #2a3050;
  line-height: 1.25;
  margin: 10px 0 14px;
}
.worldwide-text > p:last-child {
  font-size: 16px;
  line-height: 1.75;
  color: #3a4160;
  max-width: 420px;
}
.worldwide-img img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  border-radius: 18px;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  -ms-border-radius: 18px;
  -o-border-radius: 18px;
}
@media (max-width: 900px) {
  .worldwide { padding: 44px 0; }
  .worldwide-grid { grid-template-columns: 1fr; gap: 28px; }
  .worldwide-img img { max-height: 300px; }
  .worldwide-map { transform: translate(-50%, -50%); opacity: .4; }
}

/* ---------- About page (information_id = 1) ---------- */
.about-page { background: #fff; }
.ab-sec { padding: 72px 0; }
.ab-sec.ab-white { background: #fff; }
.ab-sec.ab-cream { background: #faf9f6; }
.ab-sec.ab-grey { background: #f6f6f4; }
.ab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-page h1,
.about-page h2,
.about-page h3 {
  font-family: Manrope, sans-serif;
  font-weight: 300;
  color: #14171f;
  letter-spacing: -.01em;
}
.about-page h1 { font-size: clamp(33px, 4vw, 47px); margin: 0 0 18px; }
.about-page h2 { font-size: clamp(27px, 3vw, 35px); margin: 0 0 18px; }
.about-page h3 { font-size: clamp(21px, 2.2vw, 27px); margin: 0 0 6px; }
.ab-text p {
  font-size: 16px;
  line-height: 1.85;
  color: #6b7280;
  margin: 0 0 16px;
  max-width: 460px;
}
.ab-text p:last-child { margin-bottom: 0; }
.ab-img img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
/* who we serve */
.ab-h2 { margin-bottom: 40px; }
.ab-serve {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.ab-serve-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  border-radius: 3px;
}
.ab-serve-item p {
  font-size: 15px;
  font-weight: 600;
  color: #14171f;
  margin: 0;
}
/* our work / qc cards */
.ab-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.ab-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  margin-bottom: 24px;
  border-radius: 3px;
}
.ab-card-body p {
  font-size: 15.5px;
  line-height: 1.85;
  color: #6b7280;
  margin: 0;
}
.ab-label {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #2a3050 !important;
  margin: 0 0 12px !important;
}
.ab-card h3 + .ab-label { margin-top: 4px !important; }
@media (max-width: 900px) {
  .ab-sec { padding: 48px 0; }
  .ab-grid { grid-template-columns: 1fr; gap: 26px; }
  .ab-img img { max-height: 300px; }
  .ab-serve { grid-template-columns: 1fr 1fr; gap: 18px; }
  .ab-two { grid-template-columns: 1fr; gap: 34px; }
  .ab-text p { max-width: none; }
}

/* ---------- Finish swatches (image-based) ---------- */
.swatch {  background-position: center !important; background-repeat: no-repeat !important; }

/* ---------- Finish guide: 24 finishes ---------- */
.finish-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; }
.finish-card .swatch-lg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1;
  background-color: var(--cream);
}
.finish-card h3 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0;
}
@media (max-width: 1100px) { .finish-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .finish-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* finish abbreviation on its own line, name below */
.finish-card h3 .finish-code {
  display: block;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
  font-size: 13.5px;
  line-height: 1.5;
}
.finish-card h3 .finish-name {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Product card: thumbnail switcher ---------- */
.product-card .card-slides {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-card .card-slides::-webkit-scrollbar { display: none; }
.product-card .card-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  height: 100%;
}
.product-card .card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* the viewer replaces the old hover zoom */
.product-card:hover .card-slides img { transform: none; }

/* arrows — desktop only; touch devices swipe instead */
.product-card .card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  /* Faxione: no circle behind the arrows (same as the home page grid) */
  background: transparent;
  color: var(--ink);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  z-index: 3;
  box-shadow: none;
  opacity: 0;
  transition: opacity .18s, color .18s;
}
.product-card .card-nav:hover { background: transparent; color: var(--navy); }
.product-card .card-nav-prev { left: 8px; }
.product-card .card-nav-next { right: 8px; }
/* desktop: arrows always visible so the switcher is discoverable */
@media (min-width: 701px) {
  .product-card .card-nav { display: flex; opacity: .92; }
  .product-card .card-nav:hover { opacity: 1; }
}

.product-card .card-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-card .card-thumbs::-webkit-scrollbar { display: none; }
.product-card .card-thumb {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card .card-thumb:hover { transform: translateY(-2px); border-color: #b9c3d0; }
.product-card .card-thumb.active { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }
/* mobile: the thumbnail strip becomes dots, the viewer is swiped */
@media (max-width: 700px) {
  .product-card .card-thumbs {
    gap: 8px;
    padding: 10px 10px 2px;
    justify-content: center;
    overflow: visible;
  }
  .product-card .card-thumb {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #ccd4dd;
    transition: background .18s, transform .18s;
  }
  .product-card .card-thumb img { display: none; }
  .product-card .card-thumb:hover { transform: none; border: none; }
  .product-card .card-thumb.active {
    background: var(--navy);
    box-shadow: none;
    transform: scale(1.15);
  }
}

/* ---------- Workshop photo gallery ---------- */
.ws-page { padding: 56px 0 70px; background: #fff; }
.ws-head { max-width: 720px; margin-bottom: 38px; }
.ws-head h1 {
  font-family: Manrope, sans-serif;
  font-weight: 300;
  font-size: clamp(31px, 3.6vw, 45px);
  color: #14171f;
  margin: 6px 0 14px;
}
.ws-intro { font-size: 16px; line-height: 1.8; color: #6b7280; margin: 0; }

.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ws-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
  display: block;
  aspect-ratio: 4/3;
}
.ws-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ws-item:hover img { transform: scale(1.05); }
.ws-zoom {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; opacity: 0; transition: opacity .2s;
}
.ws-item:hover .ws-zoom { opacity: 1; }
.ws-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-size: 14px; font-weight: 600; color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(10,20,32,.72), rgba(10,20,32,0));
}
.ws-empty { font-size: 16px; color: var(--muted); }

/* lightbox */
.ws-lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(8, 14, 22, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 70px;
}
.ws-lb-stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ws-lightbox img#ws-lb-img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.ws-lightbox figcaption { color: #e8ecf1; font-size: 15px; letter-spacing: .02em; }
.ws-lb-close, .ws-lb-nav {
  position: absolute;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.14); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer; transition: background .18s;
}
.ws-lb-close:hover, .ws-lb-nav:hover { background: rgba(255,255,255,.28); }
.ws-lb-close { top: 20px; right: 22px; }
.ws-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.ws-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.ws-lb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.72); font-size: 14px; letter-spacing: .06em;
}
@media (max-width: 900px) {
  .ws-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ws-lightbox { padding: 70px 12px 80px; }
  .ws-lb-prev { left: 8px; }
  .ws-lb-next { right: 8px; }
  .ws-lb-close { top: 12px; right: 12px; }
}
@media (max-width: 560px) {
  /* phones: workshop photos stay two-up */
  .ws-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ws-caption { font-size: 12.5px; padding: 18px 10px 8px; }
  .ws-zoom { width: 28px; height: 28px; font-size: 12px; top: 7px; right: 7px; }
  .ws-head h1 { font-size: 31px; }
  .ws-intro { font-size: 15px; }
}

/* phones: hide the category banner image (keeps the category menu) */
@media (max-width: 700px) {
  .category-banner { display: none; }
}

/* ---------- Product detail: swipeable main image ---------- */
.main-image .pd-slides {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.main-image .pd-slides::-webkit-scrollbar { display: none; }
.main-image .pd-slide { flex: 0 0 100%; scroll-snap-align: start; height: 100%; }
.main-image .pd-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-image .badge-bestseller { z-index: 2; }
