:root {
  --ink: #172033;
  --muted: #657084;
  --line: #e3e8f0;
  --soft: #f6f8fb;
  --blue: #105bd8;
  --red: #d8243c;
  --gold: #f6bd3f;
  --green: #128767;
  --shadow: 0 18px 45px rgba(23, 32, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "Segoe UI", "Noto Sans TC", Arial, sans-serif; background: var(--soft); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
textarea { min-height: 110px; resize: vertical; }

.top-strip { display: flex; justify-content: center; gap: 34px; padding: 8px 16px; color: #fff; font-size: 13px; background: #122655; }
.site-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto auto minmax(220px, 1fr) auto; align-items: center; gap: 18px; padding: 18px clamp(18px, 4vw, 54px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.icon-button { width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.icon-button span { display: block; width: 18px; height: 2px; background: var(--ink); }
.brand { display: inline-grid; line-height: .95; letter-spacing: 0; min-width: 118px; }
.brand strong { font-size: 28px; }
.brand small { color: var(--blue); font-weight: 700; font-size: 15px; }
.search { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.search input { min-width: 0; border: 0; padding: 13px 16px; outline: 0; }
.search button, .primary-button, .primary-link { border: 0; color: #fff; background: var(--blue); font-weight: 700; }
.search button { padding: 0 18px; }
.header-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.header-actions button, .header-actions a { min-height: 42px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.header-actions .active, footer .active { border-color: var(--blue); color: var(--blue); font-weight: 800; }
#cartCount { display: inline-grid; min-width: 22px; height: 22px; place-items: center; margin-left: 4px; color: #fff; background: var(--red); border-radius: 999px; font-size: 12px; }
.main-nav { display: flex; justify-content: center; gap: clamp(12px, 4vw, 38px); padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.main-nav a { flex: 0 0 auto; font-size: 14px; font-weight: 700; }

.mega-menu { position: fixed; inset: 111px auto auto 22px; z-index: 30; display: none; width: min(760px, calc(100vw - 44px)); grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.mega-menu.open { display: grid; }
.mega-menu h3 { margin: 0 0 12px; }
.mega-menu button { display: block; width: 100%; margin: 7px 0; padding: 12px; text-align: left; background: var(--soft); border: 1px solid transparent; border-radius: 8px; }

.page-view { display: none; }
.page-view.active { display: block; }
.page-title, .search-results, .promo-grid, .selection, .product-section, .info-band, .qa-section, .yahoo-band, .admin-view { width: min(1180px, calc(100% - 36px)); margin: 42px auto; }
.page-title { padding: 34px 0 8px; }
.page-title p, .section-heading p, .admin-header p { margin: 0 0 8px; color: var(--blue); font-weight: 800; text-transform: uppercase; font-size: 13px; }
.page-title h1 { margin: 0 0 8px; font-size: clamp(34px, 6vw, 58px); letter-spacing: 0; }
.page-title span { color: var(--muted); line-height: 1.8; }

.hero { position: relative; min-height: min(620px, calc(100vh - 120px)); display: grid; align-items: end; padding: 0 clamp(20px, 7vw, 92px) 58px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,16,31,.72), rgba(9,16,31,.18) 58%, rgba(9,16,31,.06)); }
.hero-copy { width: min(560px, 100%); color: #fff; }
.hero-copy p { margin: 0 0 8px; color: var(--gold); font-weight: 800; text-transform: uppercase; font-size: 13px; }
.hero-copy h1 { margin: 0 0 14px; font-size: clamp(42px, 8vw, 82px); line-height: .98; letter-spacing: 0; }
.hero-copy span { display: block; max-width: 520px; line-height: 1.8; }
.primary-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 24px; padding: 0 24px; border-radius: 8px; }

.promo-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-auto-rows: 220px; gap: 18px; }
.promo-card { position: relative; overflow: hidden; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; border-radius: 8px; background: #222; }
.promo-card img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.promo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.58), rgba(0,0,0,.08)); }
.promo-card:hover img { transform: scale(1.04); }
.promo-card span, .promo-card strong { position: relative; z-index: 1; }
.promo-card span { font-size: 13px; font-weight: 800; color: var(--gold); }
.promo-card strong { margin-top: 4px; font-size: 22px; }
.promo-card.tall { grid-row: span 2; }
.promo-card.wide { grid-column: span 2; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2, .admin-header h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); }
.section-heading button { min-height: 40px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.quick-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-tabs button { min-height: 58px; padding: 10px 14px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-weight: 800; color: var(--ink); }

.catalog-tools { display: flex; justify-content: flex-end; gap: 10px; }
.catalog-tools select { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-grid.compact { grid-template-columns: repeat(2, 1fr); }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.product-image { position: relative; aspect-ratio: 1 / 1; background: #edf1f7; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; padding: 6px 9px; color: #fff; background: var(--red); border-radius: 999px; font-size: 12px; font-weight: 800; }
.product-body { padding: 14px; }
.product-body h3 { min-height: 48px; margin: 0 0 9px; font-size: 15px; line-height: 1.55; }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.price { display: block; margin: 10px 0 13px; font-size: 18px; font-weight: 900; }
.add-cart { width: 100%; min-height: 42px; border: 0; border-radius: 8px; color: #fff; background: var(--ink); font-weight: 800; }

.info-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.info-band h2 { margin: 0 0 8px; }
.info-band p { color: var(--muted); line-height: 1.8; }
.info-band ul { margin: 0; padding: 0; list-style: none; }
.info-band li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-band time { color: var(--blue); font-weight: 800; }

.yahoo-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(23,32,51,.08); }
.yahoo-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vw, 46px); }
.yahoo-copy p { margin: 0 0 8px; color: var(--red); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.yahoo-copy h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 40px); letter-spacing: 0; }
.yahoo-copy span { color: var(--muted); line-height: 1.8; }
.yahoo-media { min-height: 300px; background: var(--soft); }
.yahoo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.qa-list { display: grid; gap: 12px; }
.qa-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.qa-item summary { padding: 16px 18px; cursor: pointer; font-weight: 800; }
.qa-item summary span { display: inline-block; margin-right: 10px; padding: 4px 8px; color: #fff; background: var(--green); border-radius: 999px; font-size: 12px; }
.qa-item p { margin: 0; padding: 0 18px 18px; color: var(--muted); line-height: 1.8; }
.search-results { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.search-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.search-layout h3 { margin: 0 0 14px; }

.admin-view { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.admin-header { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.primary-button { min-height: 42px; padding: 0 16px; border-radius: 8px; }
.auth-panel { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; margin: 22px 0; padding: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.auth-panel h3 { margin: 0 0 4px; }
.auth-panel p { margin: 0; color: var(--muted); line-height: 1.6; }
.login-form { display: flex; gap: 10px; align-items: center; }
.login-form input { min-height: 42px; min-width: 180px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
#logoutButton { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; border-bottom: 1px solid var(--line); }
.admin-tabs button { min-height: 42px; padding: 0 16px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; }
.admin-tabs .active { color: #fff; background: var(--ink); border-color: var(--ink); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.metric-grid div, .module-card { padding: 18px; background: var(--soft); border-radius: 8px; }
.metric-grid span { display: block; color: var(--muted); font-size: 13px; }
.metric-grid strong { font-size: 28px; }
.module-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.module-card h3 { margin: 0 0 12px; }
.module-toggle { display: flex; align-items: center; gap: 10px; min-height: 42px; font-weight: 800; }
.admin-layout { display: grid; grid-template-columns: 360px 1fr; gap: 22px; align-items: start; }
.admin-form { display: grid; gap: 12px; padding: 18px; background: var(--soft); border-radius: 8px; }
.admin-form.wide { width: min(720px, 100%); }
.admin-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-form input, .admin-form textarea { min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.field-hint { margin: -4px 0 4px; padding: 12px; color: #455267; background: #fff; border: 1px dashed #c7d2e3; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.promo-admin-list { display: grid; gap: 16px; }
.nav-admin-list { display: grid; gap: 16px; }
.promo-admin-item, .nav-admin-item { display: grid; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.promo-admin-item legend, .nav-admin-item legend { padding: 0 8px; color: var(--blue); font-weight: 900; }
.promo-admin-item select, .nav-admin-item select { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.nav-admin-item button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--red); font-weight: 800; }
.promo-admin-preview { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 8px; background: var(--soft); }
.checkbox-row { display: flex !important; align-items: center; gap: 8px !important; color: var(--ink) !important; }
.checkbox-row input { min-height: auto; }
.form-actions { display: flex; gap: 10px; }
.form-actions button:not(.primary-button) { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 660px; }
.admin-table th, .admin-table td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: 13px; }
.admin-table img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; margin-right: 8px; vertical-align: middle; }
.table-actions { display: flex; gap: 8px; }
.table-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.status-live { color: var(--green); font-weight: 800; }
.status-off { color: var(--red); font-weight: 800; }
.hero-preview { width: min(720px, 100%); margin-top: 18px; aspect-ratio: 16 / 7; background: var(--soft); border-radius: 8px; overflow: hidden; }
.hero-preview img { width: 100%; height: 100%; object-fit: cover; }

.cart-drawer { position: fixed; inset: 0 0 0 auto; z-index: 50; width: min(420px, 100vw); padding: 22px; background: #fff; transform: translateX(102%); transition: transform .25s ease; box-shadow: var(--shadow); }
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-head h2 { margin: 0; }
.drawer-head button { min-height: 38px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-row h3 { margin: 0; font-size: 14px; }
.cart-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.cart-row button { border: 0; color: var(--red); background: transparent; font-weight: 800; }
.cart-total { display: flex; justify-content: space-between; margin: 20px 0; font-size: 18px; }
.checkout-button { width: 100%; }
.backdrop { position: fixed; inset: 0; z-index: 40; display: none; background: rgba(11,17,31,.42); }
.backdrop.open { display: block; }

footer { display: flex; justify-content: space-between; gap: 18px; padding: 34px clamp(20px, 6vw, 80px); color: #fff; background: #111827; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .search { grid-column: 1 / -1; order: 2; }
  .header-actions { grid-column: 1 / -1; overflow-x: auto; }
  .promo-grid, .product-grid, .quick-tabs, .metric-grid, .admin-layout, .info-band, .search-layout, .module-admin-grid, .yahoo-band { grid-template-columns: 1fr 1fr; }
  .auth-panel { grid-template-columns: 1fr; }
  .login-form { flex-wrap: wrap; }
  .promo-card.tall, .promo-card.wide { grid-row: auto; grid-column: auto; }
  .admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .top-strip { justify-content: flex-start; overflow-x: auto; }
  .site-header { gap: 12px; padding: 14px; }
  .brand strong { font-size: 23px; }
  .main-nav { justify-content: flex-start; }
  .hero { min-height: 520px; padding: 0 20px 42px; }
  .promo-grid, .product-grid, .product-grid.compact, .quick-tabs, .metric-grid, .info-band, .search-layout, .module-admin-grid, .yahoo-band { grid-template-columns: 1fr; }
  .login-form input, .login-form button, #logoutButton { width: 100%; }
  .section-heading, .admin-header, footer { align-items: flex-start; flex-direction: column; }
  .catalog-tools { width: 100%; }
  .catalog-tools select { flex: 1; min-width: 0; }
  .mega-menu { inset: 168px 14px auto; width: auto; grid-template-columns: 1fr; }
}

/* Storefront refresh: brighter editorial commerce layout with a compact utility header. */
:root {
  --ink: #16213d;
  --muted: #6d7890;
  --line: #dfe5ef;
  --soft: #f5f7fb;
  --blue: #1264d9;
  --red: #e52a46;
  --gold: #f3b52f;
  --shadow: 0 14px 34px rgba(22, 33, 61, .10);
}

body { background: #fff; color: var(--ink); }
.top-strip { min-height: 30px; padding: 7px 16px; background: #0869d8; font-size: 11px; letter-spacing: .02em; }
.site-header { grid-template-columns: auto auto minmax(260px, 1fr) auto; gap: 22px; padding: 12px clamp(18px, 4vw, 54px); background: #fff; box-shadow: 0 1px 0 rgba(22,33,61,.08); }
.icon-button { width: 38px; height: 38px; border: 0; }
.brand { min-width: 142px; }
.brand strong { font-size: 26px; letter-spacing: -.04em; }
.brand small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.search { max-width: 560px; justify-self: center; width: 100%; border-radius: 999px; background: #f4f6fa; }
.search input { padding: 11px 18px; background: transparent; }
.search button { padding: 0 20px; border-radius: 0 999px 999px 0; }
.header-actions { gap: 6px; }
.header-actions button, .header-actions a { min-height: 36px; padding: 0 10px; border: 0; font-size: 13px; }
#cartCount { min-width: 19px; height: 19px; }
.main-nav { gap: clamp(16px, 3.2vw, 42px); padding: 12px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.main-nav a { position: relative; padding: 4px 0; font-size: 14px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after { transform: scaleX(1); }
.hero { min-height: min(600px, calc(100vh - 118px)); padding: 0 clamp(24px, 8vw, 110px) 64px; }
.hero-media::after { background: linear-gradient(90deg, rgba(14,25,54,.70), rgba(14,25,54,.12) 65%, transparent); }
.hero-copy h1 { max-width: 620px; font-size: clamp(42px, 6vw, 78px); letter-spacing: -.035em; }
.primary-link, .primary-button { border-radius: 4px; }
.page-title, .search-results, .promo-grid, .selection, .product-section, .info-band, .qa-section, .yahoo-band, .admin-view { width: min(1240px, calc(100% - 40px)); margin: 56px auto; }
.page-title { padding: 46px 0 4px; }
.page-title h1, .section-heading h2 { letter-spacing: -.035em; }
.promo-grid { gap: 20px; grid-auto-rows: 245px; }
.promo-card { border-radius: 12px; padding: 28px; }
.promo-card strong { font-size: 24px; }
.selection { padding: 6px 0; }
.quick-tabs { gap: 10px; }
.quick-tabs button { min-height: 62px; border-radius: 5px; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.quick-tabs button:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.product-section { margin-top: 72px; }
.product-grid { gap: 20px; }
.product-card { border: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card-main { display: block; color: inherit; }
.product-image { background: #f2f5f9; }
.product-image img { transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.badge { top: 12px; left: 12px; right: auto; padding: 5px 9px; border-radius: 3px; background: var(--blue); font-size: 11px; }
.product-body { padding: 16px 18px 18px; }
.product-card-main .product-body { padding-bottom: 6px; }
.product-body h3 { min-height: 42px; margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.product-meta { font-size: 12px; }
.price { margin-top: 11px; font-size: 20px; }
.add-cart { width: 100%; min-height: 40px; border: 1px solid var(--blue); border-radius: 4px; color: var(--blue); background: #fff; font-weight: 800; transition: background .2s ease, color .2s ease; }
.add-cart:hover { color: #fff; background: var(--blue); }
.yahoo-band { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.qa-item, .search-results { border-radius: 8px; }

.product-detail-shell { width: min(1240px, calc(100% - 40px)); margin: 42px auto 0; }
.back-link { padding: 0; border: 0; background: transparent; color: var(--muted); font-weight: 800; }
.back-link:hover { color: var(--blue); }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr); gap: clamp(34px, 7vw, 96px); align-items: center; margin-top: 28px; }
.product-detail-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 12px; background: #f3f6fa; }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-media .badge { position: absolute; }
.product-detail-copy { padding: 10px 0; }
.detail-kicker { margin: 0 0 15px; color: var(--blue); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.product-detail-copy h1 { margin: 0; font-size: clamp(32px, 4.5vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.detail-price { margin-top: 24px; color: var(--blue); font-size: 30px; font-weight: 900; }
.detail-stock { color: var(--green); font-weight: 800; }
.detail-description { max-width: 520px; margin: 24px 0; color: var(--muted); line-height: 1.9; }
.detail-purchase { display: flex; gap: 12px; align-items: end; }
.detail-purchase label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.detail-purchase input { width: 86px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; }
.detail-add { min-height: 48px; padding: 0 28px; }
.detail-notes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; color: var(--muted); font-size: 12px; }
.product-detail-empty { width: min(720px, calc(100% - 40px)); margin: 100px auto; text-align: center; }
.related-products { margin-top: 88px; }
.admin-view { border-radius: 10px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-copy { max-width: 700px; }
}

@media (max-width: 640px) {
  .site-header { padding: 10px 14px; }
  .header-actions button[data-page-link="qa"], .header-actions button[data-page-link="admin"] { display: none; }
  .page-title, .search-results, .promo-grid, .selection, .product-section, .info-band, .qa-section, .yahoo-band, .admin-view, .product-detail-shell { width: min(100% - 28px, 1240px); }
  .product-detail-shell { margin-top: 28px; }
  .detail-purchase { align-items: stretch; }
  .detail-add { flex: 1; }
}

/* UI v3: brighter Disney-store-inspired commerce shell. */
body {
  background: #ffffff;
}

.top-strip {
  position: relative;
  justify-content: center;
  min-height: 28px;
  background: #0075d9;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  grid-template-columns: 44px 190px minmax(320px, 620px) auto;
  min-height: 58px;
  padding: 8px clamp(18px, 5vw, 68px);
  border-bottom: 1px solid #e8edf5;
  box-shadow: 0 8px 24px rgba(12, 27, 54, .05);
}

.icon-button {
  background: #ffffff;
}

.icon-button span {
  background: #18243a;
}

.brand {
  justify-self: center;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  color: #102349;
}

.brand strong {
  font-size: 20px;
  font-weight: 900;
}

.brand small {
  margin-left: 4px;
  color: #0075d9;
  font-size: 11px;
}

.search {
  height: 38px;
  border: 1px solid #dbe5f2;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}

.search input {
  min-height: 36px;
  font-size: 13px;
}

.search button {
  min-height: 36px;
  background: #0075d9;
  font-size: 13px;
}

.header-actions {
  gap: 2px;
}

.header-actions button {
  min-height: 34px;
  color: #17223a;
  background: transparent;
  font-size: 13px;
}

.header-actions button.active,
.header-actions button:hover {
  color: #0075d9;
  background: #eef7ff;
}

.main-nav {
  position: sticky;
  top: 58px;
  z-index: 24;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top: 0;
  border-bottom: 1px solid #e6ecf5;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #17223a;
  font-size: 15px;
  font-weight: 900;
}

.main-nav a::after {
  bottom: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr);
  align-items: stretch;
  width: min(1440px, 100%);
  min-height: 510px;
  margin: 0 auto;
  padding: 0;
  background: linear-gradient(90deg, #fff8d7 0 47%, #ffffff 47% 100%);
  border-bottom: 1px solid #edf1f7;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 35%;
  width: 210px;
  background: #fff8d7;
  border-radius: 0 100% 100% 0;
  z-index: 0;
}

.hero-media {
  position: relative;
  inset: auto;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  min-height: 510px;
  background: #fff8d7;
}

.hero-media::after {
  display: none;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: auto;
  padding: clamp(30px, 5vw, 74px);
  color: #17223a;
}

.hero-copy p {
  margin-bottom: 14px;
  color: #f2a022;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.hero-copy h1 {
  max-width: 470px;
  margin-bottom: 18px;
  color: #17223a;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy span {
  max-width: 430px;
  color: #58657a;
  font-size: 16px;
  line-height: 1.9;
}

.hero .primary-link {
  min-width: 156px;
  min-height: 42px;
  margin-top: 22px;
  justify-content: center;
  color: #ffffff;
  background: #f2a022;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(242, 160, 34, .24);
}

.promo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 170px;
  width: min(1180px, calc(100% - 40px));
  margin: 36px auto 62px;
}

.promo-card,
.promo-card.tall,
.promo-card.wide {
  grid-column: auto;
  grid-row: auto;
  min-height: 170px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 36, 68, .10);
}

.promo-card::after {
  background: linear-gradient(180deg, rgba(14,25,54,.05), rgba(14,25,54,.64));
}

.promo-card span {
  color: #ffd447;
}

.promo-card strong {
  font-size: 22px;
  line-height: 1.25;
}

.section-heading {
  margin-bottom: 20px;
  justify-content: center;
  text-align: center;
}

.section-heading p,
.page-title p {
  color: #006bd6;
  font-size: 12px;
  letter-spacing: .08em;
}

.section-heading h2,
.page-title h1 {
  color: #17223a;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
}

.selection {
  width: min(1100px, calc(100% - 40px));
  margin: 58px auto;
  padding: 0;
}

.quick-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-tabs button {
  min-height: 72px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #ffffff;
  color: #17223a;
  font-size: 17px;
  box-shadow: 0 8px 18px rgba(20, 36, 68, .04);
}

.quick-tabs button:hover {
  color: #006bd6;
  background: #f3f9ff;
  border-color: #9bcaff;
}

.product-section {
  width: min(1180px, calc(100% - 40px));
  margin: 72px auto;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}

.product-card {
  cursor: pointer;
  overflow: visible;
  text-align: center;
  box-shadow: none;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

.product-image {
  overflow: hidden;
  border-radius: 50%;
  background: #fff8d7;
  box-shadow: inset 0 0 0 1px #edf1f7;
}

.product-card:nth-child(2n) .product-image {
  background: #e9f6ff;
}

.product-card:nth-child(3n) .product-image {
  background: #fff0f3;
}

.product-card:nth-child(4n) .product-image {
  background: #eefbe9;
}

.badge {
  border-radius: 999px;
  background: #0075d9;
}

.product-body h3 {
  min-height: 44px;
  color: #17223a;
  font-size: 14px;
}

.product-meta {
  justify-content: center;
  color: #7a8699;
}

.price {
  color: #17223a;
  font-size: 18px;
}

.add-cart {
  width: auto;
  min-width: 132px;
  margin-top: 12px;
  border-radius: 999px;
  background: #ffffff;
}

.yahoo-band {
  grid-template-columns: .9fr 1.1fr;
  width: min(1180px, calc(100% - 40px));
  min-height: 330px;
  border-radius: 8px;
  background: #f7fbff;
  box-shadow: 0 0 0 1px #dfe7f2;
}

.yahoo-copy {
  padding: clamp(28px, 5vw, 60px);
}

.yahoo-copy h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.12;
}

.info-band,
.qa-section,
.search-results {
  width: min(1080px, calc(100% - 40px));
  background: #f8fafc;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #e5ebf4;
}

footer {
  background: #102349;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 44px 1fr auto;
  }

  .brand {
    justify-self: start;
  }

  .hero {
    grid-template-columns: 1fr;
    background: #fff8d7;
  }

  .hero::before {
    display: none;
  }

  .hero-media {
    grid-column: 1;
    grid-row: 1;
    min-height: 360px;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 30px 24px 40px;
  }

  .promo-grid,
  .product-grid,
  .quick-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .main-nav {
    top: 112px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-media {
    min-height: 270px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .promo-grid,
  .product-grid,
  .quick-tabs,
  .yahoo-band {
    grid-template-columns: 1fr;
  }

  .promo-card {
    min-height: 160px;
  }
}

/* Warm family style: friendly for parents and junior-high students. */
:root {
  --ink: #263456;
  --muted: #687493;
  --line: #eadfce;
  --soft: #fff6e6;
  --blue: #3f8de8;
  --red: #ef6b7b;
  --gold: #f5b94f;
  --green: #43a872;
  --shadow: 0 18px 38px rgba(125, 89, 48, .12);
  --warm-page: #fff4df;
  --warm-surface: #fffbf3;
  --warm-peach: #ffe2d6;
  --warm-pink: #ffddea;
  --warm-sky: #dff2ff;
  --warm-mint: #e7f8e8;
}

html {
  background: var(--warm-page);
}

body {
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 221, 234, .75) 0 120px, transparent 121px),
    radial-gradient(circle at 94% 18%, rgba(223, 242, 255, .85) 0 150px, transparent 151px),
    linear-gradient(180deg, #fff8ec 0%, #fff2dc 54%, #fff8ef 100%);
  color: var(--ink);
}

.top-strip {
  background: linear-gradient(90deg, #ff9f69, #f5b94f 45%, #55a7ee);
  color: #fff;
}

.site-header {
  background: rgba(255, 251, 243, .94);
  border-bottom: 1px solid rgba(234, 223, 206, .9);
  box-shadow: 0 10px 30px rgba(125, 89, 48, .10);
}

.brand strong {
  color: #263456;
}

.brand small {
  color: #ef6b7b;
}

.search {
  border-color: #f2d8c6;
  background: #fffaf1;
  box-shadow: 0 8px 20px rgba(125, 89, 48, .08);
}

.search input::placeholder {
  color: #9a87a1;
}

.search button,
.primary-button,
.hero .primary-link {
  background: linear-gradient(135deg, #ff9f69, #ef6b7b);
  color: #fff;
  box-shadow: 0 12px 22px rgba(239, 107, 123, .22);
}

.header-actions button.active,
.header-actions button:hover {
  color: #d94c68;
  background: #ffe7ec;
}

#cartCount {
  background: #ef6b7b;
}

.main-nav {
  background: rgba(255, 247, 232, .94);
  border-bottom-color: #eadfce;
}

.main-nav a {
  color: #2a3455;
}

.main-nav a:hover {
  color: #d94c68;
}

.main-nav a::after {
  height: 3px;
  background: linear-gradient(90deg, #ff9f69, #ef6b7b, #55a7ee);
  border-radius: 999px;
}

.mega-menu,
.cart-drawer {
  background: #fffbf3;
  border-color: #eadfce;
}

.hero {
  background:
    linear-gradient(90deg, rgba(255, 226, 214, .96) 0 47%, rgba(223, 242, 255, .72) 47% 100%);
  border-bottom-color: #eadfce;
}

.hero::before {
  background: #ffe2d6;
}

.hero-copy p {
  color: #df6a35;
}

.hero-copy h1 {
  color: #263456;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .55);
}

.hero-copy span {
  color: #646f8a;
}

.hero-media {
  background: #dff2ff;
}

.hero-media img {
  border-radius: 0 0 0 56px;
}

.page-title,
.selection,
.product-section,
.qa-section,
.info-band,
.search-results,
.yahoo-band {
  position: relative;
}

.page-title {
  padding: 46px 28px 18px;
  background: rgba(255, 251, 243, .72);
  border: 1px solid rgba(234, 223, 206, .78);
  border-radius: 18px;
}

.section-heading p,
.page-title p {
  color: #d94c68;
}

.section-heading h2,
.page-title h1 {
  color: #263456;
}

.promo-grid {
  padding: 18px;
  background: rgba(255, 251, 243, .62);
  border: 1px solid rgba(234, 223, 206, .78);
  border-radius: 22px;
}

.promo-card,
.promo-card.tall,
.promo-card.wide {
  border: 5px solid rgba(255, 255, 255, .88);
  box-shadow: 0 14px 28px rgba(125, 89, 48, .16);
}

.promo-card::after {
  background: linear-gradient(180deg, rgba(38,52,86,.04), rgba(38,52,86,.58));
}

.promo-card span {
  color: #ffd968;
}

.selection {
  padding: 26px;
  background: #fffbf3;
  border: 1px solid #eadfce;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.quick-tabs button {
  min-height: 76px;
  border-color: #efdcca;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fff7eb);
  color: #263456;
  box-shadow: 0 10px 20px rgba(125, 89, 48, .08);
}

.quick-tabs button:nth-child(4n + 2) {
  background: linear-gradient(180deg, #ffffff, #eef9ff);
}

.quick-tabs button:nth-child(4n + 3) {
  background: linear-gradient(180deg, #ffffff, #fff0f5);
}

.quick-tabs button:nth-child(4n + 4) {
  background: linear-gradient(180deg, #ffffff, #effbef);
}

.quick-tabs button:hover {
  color: #d94c68;
  background: #fff1e7;
  border-color: #ffb9a0;
}

.product-section {
  padding: 30px;
  background: rgba(255, 251, 243, .72);
  border: 1px solid rgba(234, 223, 206, .78);
  border-radius: 26px;
}

.product-card {
  padding: 14px 12px 18px;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 8px 20px rgba(125, 89, 48, .08);
}

.product-card:hover {
  box-shadow: 0 18px 34px rgba(125, 89, 48, .15);
}

.product-image {
  border-radius: 28px;
  background: linear-gradient(135deg, #fff2c8, #ffe2d6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.82);
}

.product-card:nth-child(2n) .product-image {
  background: linear-gradient(135deg, #dff2ff, #fff2c8);
}

.product-card:nth-child(3n) .product-image {
  background: linear-gradient(135deg, #ffddea, #fff2c8);
}

.product-card:nth-child(4n) .product-image {
  background: linear-gradient(135deg, #e7f8e8, #dff2ff);
}

.badge {
  background: linear-gradient(135deg, #55a7ee, #ef6b7b);
  box-shadow: 0 8px 18px rgba(38, 52, 86, .16);
}

.product-body h3 {
  color: #263456;
}

.price {
  color: #d94c68;
}

.add-cart {
  border-color: #ffb09b;
  color: #d94c68;
  background: #fff6ef;
}

.add-cart:hover {
  color: #fff;
  background: linear-gradient(135deg, #ff9f69, #ef6b7b);
}

.yahoo-band {
  background: linear-gradient(135deg, #fff2dc, #eaf7ff);
  border-color: #eadfce;
}

.yahoo-media img {
  border-radius: 22px 0 0 22px;
}

.qa-section,
.info-band,
.search-results {
  background: #fffbf3;
  border: 1px solid #eadfce;
  box-shadow: var(--shadow);
}

.qa-item {
  border-color: #efdcca;
  background: linear-gradient(180deg, #ffffff, #fff8ed);
}

.qa-item summary span {
  color: #d94c68;
}

.admin-view {
  background: #fffbf3;
  border: 1px solid #eadfce;
  box-shadow: var(--shadow);
}

.admin-tabs,
.admin-form,
.metric-grid div,
.module-card {
  background: #fff6e6;
}

.admin-tabs .active {
  background: #263456;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.promo-admin-item,
.nav-admin-item {
  border-color: #eadfce;
  background: #fffdf8;
}

.product-detail-shell {
  padding: 28px;
  background: #fffbf3;
  border: 1px solid #eadfce;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.product-detail-media {
  border-radius: 28px;
  background: linear-gradient(135deg, #fff2c8, #dff2ff);
}

.detail-price {
  color: #d94c68;
}

footer {
  background: #263456;
}

@media (max-width: 980px) {
  .hero {
    background: linear-gradient(180deg, #ffe2d6, #fff6e6);
  }

  .hero-media img {
    border-radius: 0 0 36px 36px;
  }

  .product-section,
  .selection,
  .promo-grid {
    padding: 18px;
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  body {
    background: linear-gradient(180deg, #fff6e6 0%, #fff1dc 100%);
  }

  .hero-copy {
    padding: 28px 20px 34px;
  }

  .product-section,
  .selection,
  .promo-grid,
  .product-detail-shell {
    width: min(100% - 24px, 1240px);
    padding: 14px;
  }

  .quick-tabs button {
    min-height: 64px;
  }
}

/* Final brand color adjustments requested by the owner. */
:root {
  --brand-orange: #ff9f4f;
}

.top-strip,
footer {
  background: var(--brand-orange) !important;
  background-image: none !important;
  color: #ffffff;
}

footer a,
footer .active,
footer nav a {
  color: #ffffff !important;
}

.qa-item summary span {
  color: #ffffff !important;
}

/* Replaceable transparent PNG logo. */
.brand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 44px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 150px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.logo-preview {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 18px;
  border: 1px dashed #e0b79a;
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.55) 25%, transparent 25% 75%, rgba(255,255,255,.55) 75%),
    linear-gradient(45deg, rgba(255,255,255,.55) 25%, transparent 25% 75%, rgba(255,255,255,.55) 75%),
    #ffe9d8;
  background-position: 0 0, 10px 10px, 0 0;
  background-size: 20px 20px, 20px 20px, auto;
  color: #8c5d45;
  font-weight: 800;
}

.logo-preview img {
  max-width: 260px;
  max-height: 90px;
  object-fit: contain;
}

.logo-preview img[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .brand {
    min-width: 118px;
  }

  .brand-logo {
    max-width: 118px;
    max-height: 38px;
  }
}
