/* IFNT Home Decor — Alibaba storefront style */
:root {
  --ink: #222;
  --ink-soft: #666;
  --paper: #f5f5f5;
  --card: #ffffff;
  --orange: #ff6a00;
  --orange-deep: #e55f00;
  --blue: #1a3c78;
  --blue-deep: #12294f;
  --gold: #b98a2f;
  --line: #e4e4e4;
  --radius: 8px;
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* top utility bar (alibaba blue) */
.topbar { background: var(--blue); color: #cfd8ec; font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; margin-left: 16px; }
.topbar a:hover { text-decoration: underline; }

/* company masthead */
.mast { background: var(--card); border-bottom: 1px solid var(--line); }
.mast .wrap { display: flex; align-items: center; gap: 22px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.mast .logo { font-weight: 800; letter-spacing: .1em; font-size: 22px; color: var(--blue); }
.mast .logo span { color: var(--orange); }
.mast .co-name { font-size: 16px; font-weight: 700; }
.mast .co-meta { font-size: 13px; color: var(--ink-soft); }
.mast .co-meta .badge { background: var(--gold); color: #fff; border-radius: 4px; padding: 1px 7px; font-size: 12px; margin-right: 6px; }
.mast .mast-btns { margin-left: auto; display: flex; gap: 10px; }

/* category nav */
.catnav { background: var(--card); border-bottom: 2px solid var(--orange); }
.catnav .wrap { display: flex; gap: 0; overflow-x: auto; }
.catnav a { padding: 12px 22px; font-size: 15px; font-weight: 600; white-space: nowrap; border-right: 1px solid var(--line); }
.catnav a:hover, .catnav a.on { color: var(--orange); background: #fff7f0; }

/* buttons */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 4px;
  font-weight: 600; font-size: 15px; transition: .2s; cursor: pointer; border: none;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-white { background: rgba(255,255,255,.92); color: var(--ink); margin-left: 12px; }
.btn-white:hover { background: #fff; }
.btn-outline { border: 1px solid var(--orange); color: var(--orange); background: #fff; }
.btn-outline:hover { background: #fff7f0; }

/* banner carousel */
.banner { position: relative; overflow: hidden; }
.slides { position: relative; height: 420px; }
@media (max-width: 700px) { .slides { height: 340px; } }
.slide {
  position: absolute; inset: 0; background: #333 center/cover no-repeat;
  opacity: 0; transition: opacity .7s;
}
.slide.on { opacity: 1; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,40,.72), rgba(10,20,40,.25)); }
.slide-txt { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 90px 24px 0; color: #fff; }
@media (max-width: 700px) { .slide-txt { padding-top: 60px; } }
.slide-txt em { font-style: normal; letter-spacing: .25em; text-transform: uppercase; font-size: 13px; color: #ffb37a; }
.slide-txt h2 { font-size: clamp(28px, 4.5vw, 44px); margin: 10px 0 8px; font-weight: 800; max-width: 720px; }
.slide-txt p { font-size: 16px; color: #e8ecf5; max-width: 560px; margin-bottom: 22px; }
.dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.dots span.on { background: var(--orange); }

/* company info bar */
.co-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.co-grid { display: flex; gap: 30px; padding-top: 30px; padding-bottom: 30px; align-items: center; flex-wrap: wrap; }
.co-main { flex: 1; min-width: 300px; }
.co-main h2 { font-size: 24px; margin-bottom: 10px; }
.co-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { background: #f0f3fa; color: var(--blue); border-radius: 4px; font-size: 12.5px; padding: 3px 10px; }
.tag.gold { background: #fff3e5; color: var(--orange-deep); font-weight: 700; }
.co-desc { color: var(--ink-soft); font-size: 14.5px; max-width: 680px; }
.co-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.co-stats div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; text-align: center; min-width: 110px; }
.co-stats b { display: block; color: var(--blue); font-size: 19px; }
.co-stats span { font-size: 12px; color: var(--ink-soft); }

/* sections */
section { padding: 56px 0; }
section.alt-bg { background: #fff; }
h2.sec { font-size: 28px; text-align: center; margin-bottom: 8px; color: var(--blue-deep); }
p.sec-sub { text-align: center; color: var(--ink-soft); margin-bottom: 32px; font-size: 14.5px; }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 170px;
  display: flex; align-items: flex-end; background: #ddd;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(10,20,40,.78)); }
.cat-card b { position: relative; z-index: 2; color: #fff; padding: 14px 16px; font-size: 15.5px; }
.cat-card span { position: relative; z-index: 2; color: #ffd9bb; font-size: 12px; padding: 0 16px 12px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.09); }
.card .ph { aspect-ratio: 1; overflow: hidden; background: #f0f0f0; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card .sku { font-size: 11.5px; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }
.card h3 { font-size: 15.5px; line-height: 1.4; }
.card .price { margin-top: auto; font-weight: 800; color: var(--orange); font-size: 17px; }
.card .moq { font-size: 12.5px; color: var(--ink-soft); }
.card .card-cta { margin-top: 10px; display: flex; gap: 8px; }
.card .card-cta .btn { padding: 8px 14px; font-size: 13px; flex: 1; text-align: center; }

/* about columns */
.about-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
@media (max-width: 800px) { .about-cols { grid-template-columns: 1fr; } }
.about-cols p { color: #3d3d3d; margin-bottom: 12px; font-size: 15px; }
.fact-list { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; }
.fact-list li { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fact-list li:last-child { border-bottom: none; }
.fact-list b { width: 130px; flex-shrink: 0; color: var(--blue); font-weight: 700; }
.fact-list span { color: var(--ink-soft); }

/* inquiry */
.inquiry-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 640px; margin: 0 auto; padding: 30px;
}
.inquiry-card label { display: block; font-size: 14px; margin: 14px 0 6px; font-weight: 600; }
.inquiry-card input, .inquiry-card textarea, .inquiry-card select {
  width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px;
  font-size: 15px; background: #fff; font-family: inherit;
}
.inquiry-card .btn { margin-top: 20px; width: 100%; }
.alt-contact { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

/* product detail */
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } }
.detail .main-ph { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #f0f0f0; }
.detail .main-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; }
.thumbs img.on { border-color: var(--orange); }
.detail h1 { font-size: 24px; margin-bottom: 10px; line-height: 1.35; }
.detail .meta { margin: 18px 0; border-top: 1px solid var(--line); }
.detail .meta div { display: flex; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.detail .meta div b { width: 120px; flex-shrink: 0; color: var(--ink-soft); font-weight: 600; }

/* footer */
footer.site { background: var(--blue-deep); color: #9fb0cf; padding: 42px 0 26px; font-size: 14px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer.site b { color: #fff; display: block; margin-bottom: 8px; }
footer.site .fine { margin-top: 26px; font-size: 12px; color: #6c7f9f; border-top: 1px solid #2a4370; padding-top: 16px; }

.status-note { font-size: 12.5px; color: var(--ink-soft); background: #f0f3fa; border: 1px dashed var(--line); border-radius: 6px; padding: 8px 12px; margin-top: 8px; }

/* legal pages (compliance four) */
section.legal { max-width: 860px; margin: 0 auto; padding: 46px 20px 60px; }
section.legal h1 { font-size: 26px; color: var(--blue-deep); margin-bottom: 6px; }
section.legal .updated { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 28px; }
section.legal h2 { font-size: 17px; color: var(--blue-deep); margin: 26px 0 8px; }
section.legal p, section.legal li { font-size: 14.5px; line-height: 1.75; color: #33415c; }
section.legal ul { padding-left: 22px; margin: 8px 0; }
section.legal .fine-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
footer.site .fine a { color: #9fb0cf; margin: 0 4px; }
footer.site .fine a:hover { color: #fff; }
