:root {
  --orange: #be1e2d;
  --orange-dark: #951522;
  --orange-light: #fcebed;
  --ink: #24262d;
  --muted: #70757f;
  --paper: #f5f5f5;
  --white: #fff;
  --line: #e7e7e7;
  --gold: #be1e2d;
  --shadow: 0 12px 36px rgba(34, 38, 48, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "Be Vietnam Pro", system-ui, sans-serif; line-height: 1.5; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: calc(100% - 32px); margin: 0 auto; }

@media (min-width: 576px) {
  .shell { width: 540px; }
}

@media (min-width: 768px) {
  .shell { width: 720px; }
}

@media (min-width: 992px) {
  .shell { width: 960px; }
}

@media (min-width: 1200px) {
  .shell { width: 1140px; }
}

@media (min-width: 1400px) {
  .shell { width: 1320px; }
}

.top-strip { color: white; background: linear-gradient(90deg, #86101c, var(--orange)); font-size: 14px; }
.strip-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.strip-inner nav { display: flex; gap: 23px; }
.strip-inner a { opacity: .92; }
.strip-inner a:hover { opacity: 1; text-decoration: underline; }

.market-header { position: sticky; top: 0; z-index: 40; color: white; background: linear-gradient(90deg, #a11624, var(--orange)); box-shadow: 0 3px 16px rgba(95, 12, 24, .28); }
.header-main { min-height: 86px; display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo-wide { width: 205px; height: auto; object-fit: contain; }
.market-header .brand-logo-wide { padding: 7px 10px; border-radius: 8px; background: white; box-shadow: 0 4px 14px rgba(85, 6, 17, .18); }
.search { height: 45px; display: grid; grid-template-columns: 1fr 58px; padding: 3px; border-radius: 4px; background: white; box-shadow: 0 2px 8px rgba(70, 25, 16, .18); }
.search input { min-width: 0; padding: 0 15px; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 15px; }
.search button { display: grid; place-items: center; border: 0; border-radius: 3px; color: white; background: var(--orange); cursor: pointer; }
.search svg, .coming-cart svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.coming-cart { display: flex; gap: 10px; align-items: center; padding: 0; color: white; border: 0; background: transparent; cursor: pointer; text-align: left; }
.coming-cart svg { width: 29px; }
.coming-cart span { font-size: 14px; font-weight: 700; }
.coming-cart small { display: block; opacity: .8; font-size: 11px; font-weight: 500; }
.search-hints { min-height: 30px; display: flex; gap: 19px; overflow: hidden; }
.search-hints { scrollbar-width: none; }
.search-hints::-webkit-scrollbar { display: none; }
.search-hints button { padding: 0; border: 0; color: rgba(255,255,255,.9); background: none; cursor: pointer; font-size: 12px; white-space: nowrap; }

.shop-hero { padding: 24px 0 0; }
.hero-card { position: relative; min-height: 220px; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 35px; align-items: center; padding: 38px 42px; color: white; border-radius: 12px; background: radial-gradient(circle at 80% 20%, rgba(255,190,199,.22), transparent 28%), linear-gradient(130deg, #321015, #6f1521 56%, #a71a2a); box-shadow: var(--shadow); }
.hero-pattern { position: absolute; inset: 0; opacity: .14; pointer-events: none; }
.hero-pattern span { position: absolute; width: 270px; height: 270px; border: 1px solid white; transform: rotate(45deg); }
.hero-pattern span:nth-child(1) { top: -180px; right: 110px; }
.hero-pattern span:nth-child(2) { top: 80px; right: -130px; }
.hero-pattern span:nth-child(3) { bottom: -220px; left: 35%; }
.shop-identity { position: relative; display: flex; gap: 20px; align-items: center; }
.shop-identity > div:last-child { min-width: 0; }
.shop-avatar { flex: 0 0 auto; width: 92px; height: 92px; overflow: hidden; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; background: white; box-shadow: 0 10px 34px rgba(25,10,5,.28); }
.shop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.verified { display: inline-flex; margin: 0 0 6px; padding: 4px 8px; border-radius: 4px; color: #ffe7eb; background: rgba(255,255,255,.13); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.shop-identity h1 { margin: 0; font-size: 33px; letter-spacing: -.04em; }
.shop-identity p:last-child { margin: 5px 0 0; overflow-wrap: anywhere; color: #f3d8dc; font-size: 14px; }
.shop-stats { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 34px; }
.shop-stats div { min-width: 0; display: flex; flex-direction: column; }
.shop-stats strong { font-size: 24px; }
.shop-stats span { color: #f1d9dd; font-size: 12px; }
.shop-link { position: relative; min-height: 44px; display: inline-flex; align-items: center; gap: 16px; padding: 0 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 5px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.shop-link:hover { color: #75111e; background: white; }

.trust-bar { margin-top: 18px; background: white; border-bottom: 1px solid var(--line); }
.trust-grid { min-height: 86px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-grid > div { min-width: 0; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 0 25px; border-right: 1px solid var(--line); }
.trust-grid > div:last-child { border: 0; }
.trust-grid i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--orange); background: var(--orange-light); font-style: normal; font-weight: 800; }
.trust-grid b, .trust-grid small { display: block; }
.trust-grid b { font-size: 13px; }
.trust-grid small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.section { padding: 52px 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-title h2, .catalog-head h2 { margin: 3px 0 0; font-size: 30px; letter-spacing: -.04em; }
.section-title p, .catalog-head p { margin: 0; color: var(--muted); font-size: 13px; }
.kicker { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; }
.category-card { min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; transition: .2s ease; }
.category-card:hover, .category-card.active { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 10px 24px rgba(35,35,35,.08); }
.category-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; color: var(--orange); background: var(--orange-light); font-size: 20px; }
.category-card b { font-size: 13px; }
.category-card small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.featured-section { padding-top: 0; }
.feature-banner { min-height: 340px; overflow: hidden; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; border-radius: 14px; color: white; background: radial-gradient(circle at 75% 30%, rgba(255,190,199,.24), transparent 28%), linear-gradient(130deg, #3b0e14, #821522); box-shadow: var(--shadow); }
.feature-copy { padding: 46px 54px; }
.feature-label { display: inline-block; padding: 5px 8px; color: #75111e; border-radius: 3px; background: #f8d9de; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.feature-copy h2 { margin: 15px 0; font-size: 38px; line-height: 1.12; letter-spacing: -.045em; }
.feature-copy p { max-width: 450px; color: #f3dce0; font-size: 14px; }
.outline-button { min-height: 42px; margin-top: 12px; padding: 0 17px; border: 1px solid rgba(255,255,255,.65); border-radius: 4px; color: white; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.outline-button:hover { color: #75111e; background: white; }
.feature-products { position: relative; align-self: stretch; display: flex; align-items: end; justify-content: center; gap: 20px; padding: 24px 50px 0; }
.feature-products::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); }
.feature-products img { position: relative; width: 220px; height: 290px; object-fit: cover; border: 7px solid white; box-shadow: 0 22px 40px rgba(28,7,2,.32); }
.feature-products img:first-child { transform: rotate(-4deg) translateY(20px); }
.feature-products img:nth-child(2) { transform: rotate(5deg) translateY(30px); }
.year-stamp { position: absolute; top: 24px; right: 36px; display: flex; flex-direction: column; color: #f5dce0; font-size: 39px; font-weight: 800; letter-spacing: -.05em; }
.year-stamp small { font-size: 9px; letter-spacing: .12em; }

.product-section { padding-top: 8px; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 18px 20px; border-radius: 7px; background: white; border: 1px solid var(--line); }
.sort-control { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.sort-control select { min-width: 150px; height: 38px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 4px; outline: none; background: white; font-size: 12px; }
.active-filter { width: fit-content; align-items: center; gap: 9px; margin: 0 0 15px; padding: 8px 10px 8px 13px; border-radius: 999px; color: var(--orange-dark); background: var(--orange-light); font-size: 12px; }
.active-filter:not([hidden]) { display: flex; }
.active-filter button { border: 0; background: none; cursor: pointer; font-size: 17px; line-height: 1; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid transparent; border-radius: 5px; background: white; cursor: pointer; transition: .18s ease; }
.product-card:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 10px 25px rgba(45,45,45,.12); }
.product-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #eee; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.discount-badge, .new-badge { position: absolute; z-index: 2; top: 8px; padding: 4px 7px; color: white; font-size: 10px; font-weight: 800; }
.discount-badge { right: 0; background: var(--orange); }
.new-badge { left: 0; background: #7f1420; }
.product-info { flex: 1; display: flex; flex-direction: column; padding: 11px 11px 12px; }
.product-title { height: 43px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; font-weight: 500; line-height: 1.45; }
.product-price { min-height: 30px; display: flex; align-items: end; gap: 6px; margin-top: 8px; color: var(--orange); font-size: 16px; font-weight: 700; }
.product-price small { margin-bottom: 1px; color: #999; font-size: 10px; font-weight: 400; text-decoration: line-through; }
.product-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: #7e838d; font-size: 10px; }
.product-foot span:last-child { color: var(--orange); }
.product-hover { position: absolute; z-index: 3; right: 9px; bottom: 9px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); box-shadow: 0 5px 12px rgba(190,30,45,.3); opacity: 0; transform: translateY(8px); transition: .18s ease; }
.product-card:hover .product-hover { opacity: 1; transform: translateY(0); }
.load-more-wrap { display: flex; justify-content: center; padding: 28px 0 8px; }
.load-more-wrap[hidden] { display: none; }
.load-more-button { min-width: 210px; min-height: 44px; padding: 0 22px; color: var(--orange); border: 1px solid var(--orange); border-radius: 5px; background: white; cursor: pointer; font-size: 13px; font-weight: 700; }
.load-more-button:hover { color: white; background: var(--orange); }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state span { font-size: 48px; color: #bfc2c8; }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.empty-state button { padding: 10px 15px; border: 0; border-radius: 4px; color: white; background: var(--orange); cursor: pointer; font-size: 12px; }

.about-section { margin-top: 40px; color: white; background: #251014; }
.about-grid { min-height: 465px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: stretch; }
.about-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 30%, #b92b3b, transparent 36%), linear-gradient(145deg, #64121d, #261116); }
.about-visual::before, .about-visual::after { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.15); transform: rotate(45deg); }
.about-visual::before { top: -190px; left: -160px; }
.about-visual::after { bottom: -190px; right: -120px; }
.about-logo { position: relative; width: 225px; border: 5px solid rgba(255,255,255,.9); border-radius: 50%; background: white; box-shadow: 0 18px 45px rgba(35,0,7,.35); }
.about-visual small { position: relative; margin-top: 20px; color: #f2cdd3; text-align: center; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.about-copy { align-self: center; max-width: 650px; padding: 58px 70px; }
.kicker.light { color: #f1bbc4; }
.about-copy h2 { margin: 10px 0 20px; font-size: 38px; line-height: 1.18; letter-spacing: -.045em; }
.about-copy p { color: #d3c8ca; font-size: 14px; line-height: 1.8; }
.about-copy a { display: inline-flex; gap: 12px; margin-top: 13px; color: #f2c1c9; font-size: 12px; font-weight: 700; }

.contact-section { padding: 52px 0; }
.contact-card { display: flex; justify-content: space-between; gap: 35px; align-items: center; padding: 37px 42px; border-radius: 10px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card h2 { margin: 5px 0 7px; font-size: 28px; letter-spacing: -.035em; }
.contact-card p { margin: 0; color: var(--muted); font-size: 13px; }
.contact-actions { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.primary-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 19px; border-radius: 4px; color: white; background: var(--orange); font-size: 12px; font-weight: 700; }
.primary-button:hover { background: var(--orange-dark); }
.contact-actions > span { color: var(--muted); font-size: 10px; }
.contact-actions b { color: var(--orange); }

footer { padding-top: 46px; color: #5f636a; background: white; border-top: 4px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: 45px; padding-bottom: 40px; }
.footer-brand { color: var(--orange); }
.footer-brand .brand-logo-wide { width: 215px; }
.footer-grid > div > p { max-width: 280px; font-size: 11px; line-height: 1.7; }
.footer-grid h3 { margin: 5px 0 14px; color: var(--ink); font-size: 13px; }
.footer-grid a, .footer-grid button { display: block; margin: 8px 0; padding: 0; border: 0; color: #5e626a; background: none; cursor: pointer; font-size: 11px; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--orange); }
.footer-bottom { min-height: 58px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); font-size: 10px; }

.detail-nav { align-items: center; }
.detail-nav a { color: rgba(255,255,255,.9); font-size: 12px; white-space: nowrap; }
.detail-nav a:hover { color: white; text-decoration: underline; }
.product-page { padding-bottom: 10px; }
.breadcrumb { min-height: 62px; display: flex; align-items: center; gap: 9px; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; }
.breadcrumb a { color: var(--orange); }
.breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.product-detail-card { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 34px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.detail-gallery { min-width: 0; }
.detail-main-image { overflow: hidden; aspect-ratio: 1 / 1; border-radius: 7px; background: #f1f1f1; }
.detail-main-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.detail-thumbnails button { flex: 0 0 auto; width: 74px; height: 74px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: white; cursor: pointer; }
.detail-thumbnails button.active { border: 2px solid var(--orange); }
.detail-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery > p { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.detail-summary { min-width: 0; padding: 7px 8px 7px 0; }
.detail-category { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.detail-summary h1 { margin: 11px 0 17px; font-size: 28px; line-height: 1.42; letter-spacing: -.025em; }
.detail-metrics { display: flex; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-metrics > div { min-width: 0; display: flex; flex-direction: column; padding: 13px 22px 13px 0; }
.detail-metrics > div + div { margin-left: 22px; padding-left: 22px; border-left: 1px solid var(--line); }
.detail-metrics strong { color: var(--orange); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.detail-metrics span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.detail-price { display: flex; align-items: end; gap: 12px; margin: 20px 0 17px; padding: 18px 20px; color: var(--orange); border-radius: 6px; background: var(--orange-light); font-size: 28px; font-weight: 800; }
.detail-price small { margin-bottom: 4px; color: #999; font-size: 12px; font-weight: 400; text-decoration: line-through; }
.detail-lead { color: #565b64; font-size: 14px; line-height: 1.75; }
.detail-highlights { display: grid; gap: 12px; margin: 22px 0; }
.detail-highlights > div { display: flex; gap: 12px; align-items: center; }
.detail-highlights i { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--orange); background: var(--orange-light); font-style: normal; font-weight: 800; }
.detail-highlights b, .detail-highlights small { display: block; }
.detail-highlights b { font-size: 13px; }
.detail-highlights small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.detail-shopee-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 24px; border-radius: 5px; color: white; background: var(--orange); box-shadow: 0 10px 24px rgba(190,30,45,.22); font-size: 14px; font-weight: 800; }
.detail-shopee-button:hover { background: var(--orange-dark); }
.detail-content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 18px; margin-top: 22px; }
.detail-panel { padding: 28px 30px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.detail-panel h2 { margin: 0 0 22px; font-size: 23px; letter-spacing: -.025em; }
.detail-panel h3 { margin: 28px 0 13px; font-size: 17px; }
.product-description-panel p, .product-description-panel li { color: #5d626b; font-size: 13px; line-height: 1.8; }
.product-description-panel p { white-space: pre-line; }
.product-description-panel ul { display: grid; gap: 8px; margin: 0; padding-left: 19px; }
.product-description-panel li::marker { color: var(--orange); }
.description-media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; margin: 28px 0; }
.description-media-grid:empty { display: none; }
.description-media-card { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #f7f3f3; box-shadow: 0 12px 30px rgba(51,20,25,.08); }
.description-media-card img { width: 100%; height: auto; object-fit: contain; }
.description-media-card figcaption { padding: 11px 14px; color: var(--muted); font-size: 12px; text-align: center; }
.product-spec-panel dl { margin: 0; }
.product-spec-panel dl div { display: grid; grid-template-columns: 125px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.product-spec-panel dl div:last-child { border-bottom: 0; }
.product-spec-panel dt { color: var(--muted); }
.product-spec-panel dd { margin: 0; color: var(--ink); font-weight: 600; }
.reviews-panel { margin-top: 18px; }
.reviews-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.reviews-heading h2 { margin: 5px 0 0; }
.review-score { display: flex; align-items: baseline; gap: 5px; color: var(--orange); }
.review-score strong { font-size: 32px; }
.review-score > span { font-size: 14px; }
.review-score small { margin-left: 9px; color: var(--muted); font-size: 11px; }
.review-notice { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 22px; padding: 20px; border-radius: 7px; background: var(--orange-light); }
.review-notice > span { color: var(--orange); font-size: 28px; }
.review-notice b { font-size: 13px; }
.review-notice p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.review-status { padding: 11px 15px; color: var(--orange-dark); border: 1px solid #e5a9b0; border-radius: 999px; background: white; font-size: 12px; font-weight: 700; white-space: nowrap; }
.variation-panel { margin-top: 18px; }
.variation-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.variation-heading h2 { margin: 5px 0 0; }
.variation-heading > span { color: var(--muted); font-size: 12px; }
.variation-table-wrap { overflow-x: auto; }
.variation-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.variation-table th { padding: 12px 14px; color: white; background: var(--orange-dark); font-size: 11px; text-align: left; }
.variation-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: #525760; font-size: 11px; vertical-align: top; }
.variation-table tr:last-child td { border-bottom: 0; }
.variation-table td:nth-child(3), .variation-table td:nth-child(4) { color: var(--orange); font-weight: 700; white-space: nowrap; }
.related-section { padding-bottom: 55px; }
.related-section .section-title > a { color: var(--orange); font-size: 12px; font-weight: 700; }
.related-grid { grid-template-columns: repeat(4, 1fr); }

.product-modal { width: min(920px, calc(100% - 30px)); max-height: min(720px, calc(100vh - 30px)); padding: 0; border: 0; border-radius: 12px; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.product-modal::backdrop { background: rgba(28,27,27,.7); backdrop-filter: blur(3px); }
.modal-close { position: absolute; z-index: 3; top: 13px; right: 14px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); cursor: pointer; font-size: 22px; }
.modal-content { display: grid; grid-template-columns: .95fr 1.05fr; }
.modal-image-wrap { min-height: 520px; background: #f0efed; }
.modal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 47px 42px; }
.modal-category { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.modal-info h2 { margin: 11px 0 14px; font-size: 25px; line-height: 1.4; }
.modal-price { color: var(--orange); font-size: 24px; font-weight: 800; }
.modal-info > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.modal-meta { display: grid; gap: 8px; margin: 22px 0; padding: 17px; border-radius: 7px; background: #f7f7f7; color: #626770; font-size: 11px; }
.modal-meta span::first-letter { color: #299769; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.disabled-order { min-height: 43px; border: 1px solid #ddd; border-radius: 4px; color: #8b8e95; background: #f4f4f4; font-size: 11px; }

.toast { position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: 360px; display: flex; gap: 12px; align-items: center; padding: 14px 17px; border-radius: 8px; color: white; background: #2e302f; box-shadow: 0 18px 40px rgba(0,0,0,.24); opacity: 0; pointer-events: none; transform: translateY(18px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); }
.toast b, .toast small { display: block; }
.toast b { font-size: 12px; }
.toast small { margin-top: 3px; color: #c6c8c7; font-size: 10px; }

@media (max-width: 1020px) {
  .header-main { grid-template-columns: 215px 1fr; gap: 18px; }
  .hero-card { grid-template-columns: 1fr 1fr; }
  .shop-link { grid-column: 1 / -1; width: fit-content; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .product-detail-card { gap: 24px; }
  .related-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-products img { width: 175px; height: 250px; }
}

@media (max-width: 760px) {
  .top-strip { display: none; }
  .market-header { position: relative; }
  .header-main { grid-template-columns: 1fr; padding: 13px 0 8px; }
  .brand { grid-column: 1; }
  .brand-logo-wide { width: 170px; }
  .search { grid-column: 1; grid-row: 2; }
  .search-hints { padding-bottom: 7px; overflow-x: auto; }
  .hero-card { grid-template-columns: minmax(0, 1fr); padding: 27px 24px; }
  .shop-identity, .shop-stats, .shop-link { width: 100%; max-width: 100%; }
  .shop-identity { min-width: 0; }
  .shop-link { white-space: normal; }
  .shop-avatar { width: 72px; height: 72px; }
  .shop-stats { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; padding: 12px 0; }
  .trust-grid > div { min-height: 63px; border-bottom: 1px solid var(--line); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(3), .trust-grid > div:nth-child(4) { border-bottom: 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-banner { grid-template-columns: 1fr; }
  .feature-copy { padding: 36px 28px 20px; }
  .feature-products { min-height: 290px; padding: 10px 20px 0; overflow: hidden; }
  .feature-products img { width: 155px; height: 220px; }
  .year-stamp { right: 16px; font-size: 28px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .breadcrumb { min-height: 52px; }
  .product-detail-card { grid-template-columns: 1fr; padding: 16px; }
  .detail-summary { padding: 4px 0 2px; }
  .detail-summary h1 { font-size: 24px; }
  .detail-content-grid { grid-template-columns: 1fr; }
  .reviews-heading { align-items: start; flex-direction: column; }
  .review-notice { grid-template-columns: auto 1fr; }
  .review-status { grid-column: 1 / -1; width: fit-content; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-head { align-items: start; flex-direction: column; }
  .sort-control { width: 100%; justify-content: space-between; }
  .sort-control select { flex: 1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 280px; }
  .about-logo { width: 175px; }
  .about-copy { padding: 44px 24px; }
  .contact-card { align-items: start; flex-direction: column; padding: 28px 24px; }
  .contact-actions { align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-brand .brand-logo-wide { width: 190px; }
  .footer-bottom { align-items: start; flex-direction: column; justify-content: center; gap: 5px; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-image-wrap { min-height: 310px; max-height: 310px; }
  .modal-info { padding: 28px 23px; }
}

@media (max-width: 430px) {
  .shell { width: calc(100% - 20px); }
  .brand-logo-wide { width: 155px; }
  .shop-identity { align-items: start; }
  .shop-identity > div:last-child, .trust-grid > div > div { min-width: 0; }
  .shop-identity h1 { font-size: 27px; }
  .trust-grid > div { justify-content: start; padding: 0 10px; }
  .trust-grid b { overflow-wrap: anywhere; }
  .trust-grid small { display: none; }
  .section { padding: 40px 0; }
  .section-title { align-items: start; flex-direction: column; }
  .category-card { min-height: 112px; }
  .feature-copy h2, .about-copy h2 { font-size: 32px; }
  .feature-products img { width: 136px; height: 195px; }
  .product-title { height: 42px; }
  .detail-metrics > div { padding-right: 12px; }
  .detail-metrics > div + div { margin-left: 12px; padding-left: 12px; }
  .detail-price { font-size: 24px; }
  .detail-shopee-button { width: 100%; }
  .detail-panel { padding: 23px 20px; }
  .product-spec-panel dl div { grid-template-columns: 105px 1fr; }
  .footer-grid { gap: 28px; }
  .modal-actions { grid-template-columns: 1fr; }
}
