/* Prototype layout. Loaded after shop.css so these rules win. */

.header { position: sticky; top: 0; z-index: 40; background: #F6F6F5; border-bottom: 1px solid #E7E7E7; }
.header .wrap { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

.top-inner,
.row1 {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 16px 0;
}

.logo { font-size: 27px; font-weight: 700; color: #1E4D3B; letter-spacing: .2px; white-space: nowrap; }
.logo sup { font-size: 10px; color: #999; margin-left: 2px; font-weight: 400; }

.search {
  flex: 1;
  width: auto;
  max-width: 560px;
  height: auto;
  border: 1px solid #E7E7E7;
  border-radius: 999px;
  background: #fff;
  padding: 3px 6px 3px 16px;
}
.search:focus-within { border-color: #1E4D3B; }
.search input { flex: 1; border: 0; min-height: 36px; padding: 8px 0; font-size: 16px; background: transparent; }
.search button,
.top .btn {
  background: #1E4D3B;
  color: #fff;
  border-radius: 999px;
  min-height: 0;
  height: auto;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 700;
}

.headtools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ht,
.tool.ht {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 8px 11px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #5F5F5F;
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
}
.ht svg,
.tool.ht svg { width: 18px; height: 18px; flex: none; }
.ht:hover { background: #F2F2F1; color: #1C1C1C; }
.locale.ht { margin: 0; }
.locale.ht label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: #5F5F5F;
}
.locale select {
  border: 0;
  background: transparent;
  color: #5F5F5F;
  font: inherit;
  min-height: 0;
  width: auto;
  padding: 0;
}
.cartbtn { position: relative; }
.cartbtn .n {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  margin: 0;
  padding: 0 4px;
  border-radius: 999px;
  background: #E0522E;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navrow {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 6px 0 8px;
  border-top: 1px solid #E7E7E7;
  scrollbar-width: none;
}
.navrow::-webkit-scrollbar { display: none; }
.navrow a {
  display: block;
  flex: 0 0 auto;
  min-height: 0;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #5F5F5F;
  white-space: nowrap;
  text-decoration: none;
}
.navrow a.on,
.navrow a:hover { color: #1E4D3B; background: #EDF3EE; }

.icongrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 22px 0 8px; }
.icongrid .ic {
  min-width: 0;
  padding: 12px 4px 10px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  color: #1C1C1C;
}
.icongrid .ic img { width: 32px; height: 32px; }
.icongrid .ic span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  max-height: 2.6em;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.flash { margin: 0 0 14px; }
.fcard .fp { background: #F4F4F3; border-radius: 4px; }
.fcard img { width: 64%; height: auto; object-fit: contain; }
.fcard .nm {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.fcard .pr .was { font-size: 12px; color: #999; text-decoration: line-through; font-weight: 400; margin-left: 6px; }

.firstrow { margin: 0 0 22px; }
.firstrow .fb { color: #153D2E; font-weight: 700; white-space: nowrap; text-decoration: none; }
.firstrow .fmini { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 8px; }
.firstrow .fmini .fp { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 4px; overflow: hidden; }
.firstrow .fmini .fp img { width: 100%; height: 100%; object-fit: contain; }
.firstrow .fmini b { color: #1E4D3B; white-space: nowrap; }
.firstrow .was { font-size: 11px; color: #999; text-decoration: line-through; font-weight: 400; }

a.card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid #E7E7E7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
a.card .pic {
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}
a.card .pic img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
a.card .body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 10px 12px 12px; }
a.card .name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  min-height: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #1C1C1C;
}
a.card .pr { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
a.card .price { margin: 0; font-size: 17px; font-weight: 700; color: #E0522E; }
a.card .was { margin: 0; font-size: 13px; color: #999; text-decoration: line-through; font-weight: 400; }

.product-grid.dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .product-grid.dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .icongrid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .product-grid.dense { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.listing { display: block; }
.filters {
  background: #fff;
  border: 1px solid #E7E7E7;
  border-radius: 8px;
  padding: 18px;
}
.sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
}
.subcats a.on { background: #1E4D3B; border-color: #1E4D3B; color: #fff; }
.pager a, .pager span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E7E7E7;
  border-radius: 4px;
  background: #fff;
  padding: 0 10px;
}

.poster,
.poster-sale,
.poster-new {
  min-height: 0;
  margin: 0 0 22px;
  padding: 26px 22px;
  border-radius: 8px;
  background: #fff;
  color: #1C1C1C;
  box-shadow: none;
  display: block;
}
.poster h1,
main .poster h1 {
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  color: #E0522E;
  line-height: 1.2;
}
.poster-new,
body.event-new .poster { background: #153D2E; color: #fff; }
body.event-new .poster h1,
body.event-new main .poster h1 { color: #fff; }
.poster-line, .poster-kicker, .poster-rules { color: inherit; }
.deal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; }
.deal {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1C1C1C;
  border: 1px solid #E7E7E7;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  min-height: 0;
}
.deal-photo { background: #F4F4F3; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.deal-photo img { width: 62%; height: auto; object-fit: contain; }
.deal-copy { padding: 10px 12px 12px; }
.deal .name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1C1C1C;
  font-size: 13px;
  font-weight: 700;
  min-height: 0;
}
.deal .price { color: #E0522E; font-size: 17px; }
@media (min-width: 1100px) {
  .deal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sku-summary .price,
#sku-price { color: #E0522E; }
.sku-summary h1 { font-size: 22px; font-weight: 700; line-height: 1.25; }
label.sku-chip:has(input:checked),
.sheet-cat.on { border-color: #1E4D3B; background: #EDF3EE; box-shadow: none; }
button.sku-go { background: #1E4D3B; color: #fff; border-radius: 8px; gap: 8px; }
.sku-head img,
label.sku-chip .shot img {
  object-fit: contain;
  object-position: center;
  background: #F4F4F3;
}
label.sku-chip .shot { background: #F4F4F3; }
label.sku-chip {
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
}
label.sku-chip .shot {
  width: 100% !important;
  align-self: stretch;
}
.sku-sheet { z-index: 200; }
.sku-panel {
  height: min(78dvh, 720px);
  max-height: min(78dvh, 720px);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 1;
}
.sku-panel .sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 3;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  border-radius: 999px;
  background: #F4F4F3;
  color: #1C1C1C;
}
.sku-head { padding-right: 52px; }
.sku-grid {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.header,
.headtools,
.cartbtn,
.top,
.top-inner { overflow: visible; }
.buy-actions .dock { position: relative; }
.buy-actions .dock .n {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0 4px;
  border-radius: 999px;
  background: #E0522E;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.buy-actions .btn.quiet {
  background: #E0522E;
  color: #fff;
  border: 0;
}

.cart-line {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  border: 1px solid #E7E7E7;
  border-radius: 8px;
  background: #fff;
}
.cart-line img { width: 72px; height: 72px; object-fit: contain; padding: 8px; background: #F4F4F3; border-radius: 4px; }
.cart-line a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}
.summary { border: 1px solid #E7E7E7; border-radius: 8px; background: #fff; }
.summary > a.btn, .place-order { background: #E0522E; border-radius: 8px; }

.checkout { gap: 16px; }
.checkout fieldset { border: 1px solid #E7E7E7; border-radius: 8px; background: #fff; }
.progress { gap: 0; }
.progress li { border-radius: 0; background: transparent; color: #999; min-height: 0; padding-top: 18px; position: relative; }
.progress li:before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: #E7E7E7; }
.progress li.on { background: transparent; color: #1C1C1C; }
.progress li.on:before { background: #1E4D3B; }

.dept-index { grid-template-columns: 1fr; gap: 10px; }
.dept-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #E7E7E7;
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}
.dept-row small {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .dept-index { grid-template-columns: 1fr 1fr; }
  .listing { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
  .listing-head, .count, .sort, .product-grid, .pager, .subcats, .crumbs { grid-column: 2; }
  .filters, .filter-open { grid-column: 1; grid-row: 1 / span 8; }
}

main:has(form[action*="/login"]),
main:has(form[action*="/register"]),
main:has(form[action*="/reset"]),
main:has(form[action*="/account/password"]) {
  max-width: 420px;
  margin: 24px auto 40px;
  background: #fff;
  border: 1px solid #E7E7E7;
  border-radius: 8px;
  padding: 26px;
}
.auth form, main:has(form[action*="/login"]) > form { max-width: none; margin: 0; border: 0; padding: 0; background: transparent; }

.cookiebar {
  left: 50%;
  right: auto;
  bottom: 16px;
  width: max-content;
  max-width: min(560px, calc(100vw - 24px));
  transform: translateX(-50%);
  background: #1C1C1C;
  color: #fff;
  border-radius: 8px;
}
.cookiebar button {
  background: #E0522E;
  color: #fff;
  border-radius: 999px;
  min-height: 36px;
  min-width: 0;
  width: auto;
  padding: 7px 16px;
}

@media (max-width: 767px) {
  .announce {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header .wrap { padding: 0 12px; }
  .row1, .top-inner { flex-wrap: wrap; gap: 8px; padding: 6px 0 8px; min-height: 0; }
  .brand { order: 1; flex: 1 1 auto; }
  .logo { font-size: 22px; }
  .headtools { order: 2; margin-left: auto; gap: 0; }
  .headtools .ht, .tool.ht { padding: 6px; min-height: 44px; }
  .search { order: 3; flex: 1 0 100%; max-width: none; }
  .search input { min-height: 34px; padding: 6px 0; }
  .ht-label { display: none; }
  .depts, .navrow, .foot { display: none; }
  .tool-account { display: inline-flex; }
  .icongrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
  .icongrid .ic span { font-size: 11px; }
  .cookiebar { bottom: 72px; }
  .tabbar a { position: relative; }
  .tabbar .n {
    position: absolute;
    top: 4px;
    left: calc(50% + 6px);
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0 4px;
    border-radius: 999px;
    background: #E0522E;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
  }
  .buy-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #E7E7E7;
  }
  .buy-actions .dock {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .buy-actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 8px;
    white-space: nowrap;
    font-size: 14px;
  }
  .buy-actions .btn.quiet {
    background: #E0522E;
    color: #fff;
    border: 0;
  }
  body:has(.buy-actions) .pwa-login,
  body:has(.buy-actions) .pwa-guide,
  body:has(.buy-actions) .cookiebar {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .listing { display: block; }
  .filters { grid-column: auto; }
  .form2, .checkout { grid-template-columns: 1fr; }
  .couponhero { grid-template-columns: 1fr; padding: 20px 16px; }
  .couponhero .side { border-left: none; border-top: 1px dashed #E7E7E7; padding-left: 0; padding-top: 14px; }
  .ckgrid { grid-template-columns: repeat(4, 1fr); }
  .promohead { padding: 18px 14px; }
  .promohead h2 { font-size: 24px; }
  .footgrid { display: none; }
}

.crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 14px; font-size: 13px; color: #999; }
.crumb a { color: #5F5F5F; text-decoration: none; }
.crumb .on { color: #1C1C1C; }

.sec { padding: 4px 0 28px; }
.promohead { background: #fff; border: 1px solid #E7E7E7; border-radius: 8px; padding: 26px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.promohead h2 { font-size: 30px; color: #E0522E; margin: 0; }
.promohead .sub { color: #5F5F5F; font-size: 14px; flex: 1; min-width: 220px; }
.promohead .cd { font-size: 14px; font-weight: 700; background: #FCEFEA; border-radius: 999px; padding: 5px 14px; color: #5F5F5F; }
.promohead.green { background: #153D2E; border-color: #153D2E; }
.promohead.green h2, .promohead.green .sub, .promohead.green .cd { color: #fff; }
.promohead.green .sub { color: #CFE0D7; }
.promohead.green .cd { background: rgba(255,255,255,.12); }

.couponhero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: stretch; background: #fff; border: 1px solid #E7E7E7; border-radius: 8px; padding: 26px; margin-bottom: 22px; }
.couponhero .amt { font-size: 44px; font-weight: 700; color: #E0522E; line-height: 1; }
.couponhero .codechip { display: inline-block; background: #1E4D3B; color: #fff; font-weight: 700; font-size: 15px; padding: 6px 16px; border-radius: 4px; letter-spacing: 2px; margin-top: 10px; }
.couponhero .side { border-left: 1px dashed #E7E7E7; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #5F5F5F; }
.couponhero .side b { color: #1C1C1C; }
.couponhero .warn { color: #E0522E; }

.rules { list-style: none; margin: 8px 0 0; padding: 0; }
.rules li { font-size: 13px; color: #5F5F5F; padding: 7px 0; border-bottom: 1px solid #E7E7E7; display: flex; gap: 10px; }
.rules li b { color: #1E4D3B; flex: none; }

.ckgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ckcell { border: 1px solid #E7E7E7; border-radius: 4px; padding: 12px 4px; text-align: center; font-size: 12px; color: #5F5F5F; background: #fff; }
.ckcell .d { font-size: 20px; font-weight: 700; display: block; margin-bottom: 2px; }
.ckcell.done { background: #1E4D3B; border-color: #1E4D3B; color: #fff; }
.ckcell.today { border-color: #E0522E; color: #E0522E; font-weight: 700; }
.ckcell.lock { color: #999; background: #F6F6F5; }

.acchead { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #E7E7E7; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.acchead .avatar, .avatar { width: 54px; height: 54px; border-radius: 50%; background: #1E4D3B; color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.acchead b { font-size: 16px; }
.acchead .meta { font-size: 13px; color: #999; }
.acchead .ht { margin-left: auto; color: #5F5F5F; font-size: 13px; text-decoration: none; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid #E7E7E7; margin-bottom: 18px; overflow-x: auto; }
.tabs a { flex: none; padding: 10px 16px; font-size: 14px; color: #5F5F5F; border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 600; text-decoration: none; background: transparent; }
.tabs a.on { color: #1E4D3B; border-color: #1E4D3B; }

.bal { background: #153D2E; color: #fff; border-radius: 8px; padding: 22px; margin-bottom: 16px; }
.bal .amt { font-size: 34px; font-weight: 700; }
.bal .note { font-size: 12px; color: #CFE0D7; margin-top: 4px; }
.bal .cta { margin-top: 12px; width: auto; display: inline-block; }

.sharecard { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 20px; }
.sharecard button { flex: 1; min-width: 110px; border: 1px solid #E7E7E7; border-radius: 4px; padding: 12px; font-size: 13px; font-weight: 700; background: #fff; color: #5F5F5F; display: flex; align-items: center; justify-content: center; gap: 7px; }
.sharecard button svg { width: 16px; height: 16px; }

.art { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #E7E7E7; border-radius: 8px; padding: 13px 15px; margin-bottom: 10px; text-decoration: none; color: inherit; }
.art .st { margin-left: auto; font-size: 12px; font-weight: 700; white-space: nowrap; }
.art .st.ok { color: #1E4D3B; }
.art .st.wait { color: #E0522E; }
.art .nm { font-size: 14px; font-weight: 700; }
.art .meta { font-size: 12px; color: #999; }
.art .lnk, a.lnk { margin-left: auto; font-size: 13px; color: #1E4D3B; font-weight: 700; text-decoration: none; white-space: nowrap; }
.art-img { width: 54px; height: 54px; object-fit: contain; background: #F4F4F3; border-radius: 4px; padding: 4px; flex: none; }

.panel, .pdinfo { background: #fff; border: 1px solid #E7E7E7; border-radius: 8px; padding: 18px; margin-bottom: 12px; }
.panel h3, .pdinfo b { display: block; font-size: 16px; margin-bottom: 8px; }
.pdinfo p, .fine { font-size: 13px; color: #5F5F5F; margin: 6px 0 0; }
.panel .specs { margin-top: 8px; }

.coupon { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.coupon strong { flex: 1; min-width: 0; border: 1px solid #E7E7E7; border-radius: 4px; padding: 10px 12px; font-size: 13px; font-weight: 600; background: #F6F6F5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coupon button { background: #1E4D3B; color: #fff; border: 0; border-radius: 4px; padding: 10px 14px; font-weight: 700; }

.field { display: block; margin-bottom: 12px; font-size: 13px; color: #5F5F5F; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid #E7E7E7; border-radius: 4px; padding: 10px 12px; font-size: 16px; font-family: inherit; background: #F6F6F5; color: #1C1C1C; }
.field textarea { min-height: 110px; }

.cta { display: block; width: 100%; background: #1E4D3B; color: #fff; border: 0; border-radius: 8px; padding: 12px 16px; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; margin-top: 12px; cursor: pointer; }
.cta.coral { background: #E0522E; width: auto; }
.cta.ghost { background: #fff; color: #1E4D3B; border: 1px solid #1E4D3B; }
.cta:disabled { opacity: .55; }

.more { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.more a { color: #1E4D3B; font-size: 14px; font-weight: 700; text-decoration: none; }

@media (min-width: 768px) {
  .foot { display: block; background: #fff; border-top: 1px solid #E7E7E7; padding: 28px 20px 36px; }
  .footgrid { display: grid; grid-template-columns: 160px 1fr; gap: 24px; max-width: 1220px; margin: 0 auto; }
  .foot .brand { font-size: 22px; font-weight: 700; color: #1E4D3B; }
  .foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .foot h4 { font-size: 13px; margin: 0 0 8px; color: #1C1C1C; }
  .foot .cols a { display: block; color: #5F5F5F; font-size: 13px; text-decoration: none; padding: 3px 0; }
}

.hmodal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; }
.hmodal.show { display: flex; }
.hmodal-scrim { position: absolute; inset: 0; background: rgba(20,20,20,.45); border: 0; }
.hmodal-box { position: relative; background: #fff; border-radius: 8px; max-width: 430px; width: 100%; padding: 28px; text-align: center; box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.hmodal-box .code { font-size: 34px; font-weight: 700; color: #E0522E; margin: 8px 0; }
.hmodal-box p { font-size: 14px; color: #5F5F5F; margin: 0 0 8px; }
.hmodal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; font-size: 16px; color: #999; }
.hmodal-row { display: flex; gap: 10px; margin-top: 8px; }
.hmodal-row .cta { flex: 1; }
.cur-picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.cur-picks button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid #E7E7E7; border-radius: 4px; background: #fff; padding: 10px 8px; font-size: 14px; font-weight: 700; color: #1C1C1C; }
.cur-picks button span { color: #E0522E; font-size: 13px; }
.cur-picks button.on { border-color: #1E4D3B; background: #EDF3EE; }
.cur-open { display: inline-flex; align-items: center; border: 0; background: transparent; padding: 0; color: inherit; }
.claim { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.home3 { display: grid; grid-template-columns: 196px minmax(0,1fr) 248px; grid-template-areas: "left banner side" "left icons side" "left flash side"; gap: 14px; margin: 14px 0 8px; align-items: start; }
.leftcol { grid-area: left; display: flex; flex-direction: column; gap: 14px; align-self: stretch; min-width: 0; }
.home3 .banner { grid-area: banner; }
.home3 .icongrid { grid-area: icons; margin: 0; }
.home3 .flash { grid-area: flash; margin: 0; }
.home3 .side { grid-area: side; align-self: start; }
.gap-poster { position: relative; flex: 1; min-height: 168px; display: block; border-radius: 8px; overflow: hidden; background: #1E4D3B; text-decoration: none; color: #fff; }
.gap-poster img { width: 100%; height: 100%; object-fit: cover; }
.gap-poster .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.72)); font-size: 13px; font-weight: 700; line-height: 1.3; }
.gap-poster .cap b { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: #FFDAD0; }
.dnav { background: #fff; border: 1px solid #E7E7E7; border-radius: 8px; padding: 0 0 6px; align-self: start; }
.dnav h3 { font-size: 13px; font-weight: 700; color: #fff; background: #1E4D3B; margin: 0; padding: 9px 14px; border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: space-between; }
.dnav ul { list-style: none; margin: 0; padding: 0; }
.dnav li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; font-size: 13.5px; color: #5F5F5F; border-left: 2px solid transparent; text-decoration: none; }
.dnav li a:hover { color: #1E4D3B; background: #EDF3EE; border-left-color: #1E4D3B; }
.dnav .ar { color: #999; font-size: 12px; }
.dnav .more { display: block; border-top: 1px solid #E7E7E7; padding: 9px 14px; font-size: 12.5px; font-weight: 700; color: #1E4D3B; text-decoration: none; }
.banner { position: relative; background: #EAE7E0; border-radius: 8px; overflow: hidden; min-height: 0; }
.bslide { position: absolute; inset: 0; display: flex; align-items: center; gap: 18px; padding: 26px 30px 36px; opacity: 0; transition: opacity .5s; pointer-events: none; }
.bslide.on { position: relative; inset: auto; opacity: 1; pointer-events: auto; }
.bslide .txt { flex: 1; min-width: 0; z-index: 2; }
.bslide .kicker { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px; color: #E0522E; }
.b2 .kicker { color: #1E4D3B; }
.b3 .kicker { color: #999; }
.bslide h2 { font-size: 32px; line-height: 1.08; margin: 0; }
.bslide p { font-size: 14.5px; color: #5F5F5F; margin: 12px 0 18px; }
.bgo { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; background: #1C1C1C; text-decoration: none; }
.bslide .bgimg { display: none; }
.bslide .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 46%; flex: none; }
.bcard { background: #fff; border-radius: 8px; padding: 8px; text-decoration: none; color: inherit; min-width: 0; }
.bcard .bp { aspect-ratio: 1; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bcard img { width: 100%; height: 100%; object-fit: contain; }
.bcard .nm { display: block; font-size: 12px; font-weight: 700; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .pr { font-size: 14px; font-weight: 700; color: #E0522E; }
.bcard .was, .fcard .was { font-size: 11px; color: #999; text-decoration: line-through; font-weight: 400; margin-left: 4px; }
.b1 { background: linear-gradient(120deg, #FDEAE4, #F6C9B8); }
.b2 { background: linear-gradient(120deg, #E4EDE6, #C9DCCE); }
.b3 { background: linear-gradient(120deg, #EDEDF2, #D9DCE8); }
.dots { position: absolute; left: 30px; bottom: 16px; display: flex; gap: 7px; z-index: 3; }
.dots button { width: 22px; height: 5px; border-radius: 3px; background: rgba(28,28,28,.22); border: 0; padding: 0; }
.dots button.on { background: #E0522E; width: 30px; }
.side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.side .pane { background: #fff; border: 1px solid #E7E7E7; border-radius: 8px; padding: 14px; }
.side .pane h4 { font-size: 13px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.side .pane h4 svg { width: 15px; height: 15px; color: #E0522E; flex: none; }
.coupon-card { background: #FCEFEA; border-color: #F5CFC2; }
.coupon-card .code { display: inline-block; background: #E0522E; color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin: 4px 0; }
.coupon-card .desc { font-size: 12.5px; color: #5F5F5F; line-height: 1.5; }
.coupon-card .get { display: block; width: 100%; margin-top: 10px; background: #E0522E; color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px; border-radius: 4px; text-align: center; text-decoration: none; }
.ship-card .rows { font-size: 12.5px; color: #5F5F5F; line-height: 1.7; }
.ship-card .bar { height: 6px; background: #F2F2F1; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.ship-card .bar i { display: block; height: 100%; background: #1E4D3B; border-radius: 3px; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { border-top: 1px solid #E7E7E7; }
.rank li:first-child { border-top: 0; }
.rank a { display: flex; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; color: inherit; }
.rank .no { width: 20px; height: 20px; border-radius: 4px; background: #F2F2F1; color: #5F5F5F; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.rank li:nth-child(-n+3) .no { background: #FCEFEA; color: #E0522E; }
.rank .rp { width: 42px; height: 42px; border-radius: 4px; overflow: hidden; flex: none; background: #fff; }
.rank img { width: 100%; height: 100%; object-fit: contain; }
.rank .rn { flex: 1; min-width: 0; }
.rank .rn b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .rn span { font-size: 11.5px; color: #999; }
.rank .pr { font-size: 13.5px; font-weight: 700; color: #E0522E; white-space: nowrap; }
.frow { grid-auto-columns: minmax(168px, 1fr); }
.fcard { background: #fff; border-radius: 8px; }
.fcard .fp { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.fcard .fp img { width: 100%; height: 100%; object-fit: contain; }
.couponstrip { display: flex; align-items: center; gap: 14px; background: #E0522E; color: #fff; border-radius: 8px; padding: 12px 18px; margin: 14px 0; flex-wrap: wrap; }
.couponstrip b { font-size: 14px; }
.couponstrip .it { font-size: 12.5px; }
.couponstrip .go { margin-left: auto; background: #fff; color: #E0522E; font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 999px; text-decoration: none; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.trust .t { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #E7E7E7; border-radius: 8px; padding: 15px; }
.trust .t svg { width: 22px; height: 22px; color: #1E4D3B; flex: none; margin-top: 2px; }
.trust .t b { display: block; font-size: 14px; color: #1C1C1C; }
.trust .t span, .trust .t a { font-size: 12px; color: #999; }

@media (max-width: 991px) {
  .home3 { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .home3 .banner, .home3 .side, .home3 .icongrid, .home3 .flash { width: 100%; }
  .leftcol { display: none; }
  .home3 .banner { order: 1; }
  .home3 .side { order: 2; display: grid; grid-template-columns: repeat(3, 1fr); }
  .home3 .icongrid { order: 3; }
  .home3 .flash { order: 4; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .home3 .side { display: flex; flex-direction: column; gap: 10px; }
  .rank-pane { display: none; }
  .side .coupon-card { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
  .side .coupon-card h4 { display: none; }
  .side .coupon-card .code { margin: 0; flex: none; }
  .side .coupon-card .desc { flex: 1; min-width: 0; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .side .coupon-card .get { width: auto; margin-top: 0; flex: none; padding: 8px 14px; }
  .side .ship-card { padding: 8px 12px; }
  .side .ship-card h4, .side .ship-card .rows { display: none; }
  .side .ship-card .bar { margin: 0; height: 6px; }
  .home3 .banner { height: 470px; min-height: 0; border-radius: 8px; }
  .banner .bslide,
  .banner .bslide.on { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 10px; padding: 24px 18px 36px; min-height: 0; overflow: hidden; }
  .banner .bslide .txt { flex: none; width: 100%; }
  .banner .bslide.on { display: flex; opacity: 1; pointer-events: auto; }
  .banner .bslide .bgimg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 68%; z-index: 0; }
  .banner .bslide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 42%, rgba(0,0,0,.78) 100%); z-index: 1; }
  .banner .bcard .bp { max-height: 86px; }
  .banner .bslide .txt { position: relative; z-index: 2; }
  .banner .bslide .kicker,
  .banner .bslide h2,
  .banner .bslide p { text-shadow: 0 1px 10px rgba(0,0,0,.45); }
  .banner .bslide .kicker { color: #FFDAD0; }
  .banner .bslide.b2 .kicker { color: #C9E5D2; }
  .banner .bslide.b3 .kicker { color: #E7E7EC; }
  .banner .bslide h2 { font-size: 29px; color: #fff; }
  .banner .bslide p { color: rgba(255,255,255,.88); font-size: 13.5px; margin: 8px 0 12px; }
  .banner .bgo { background: #fff; color: #1C1C1C; }
  .banner .bslide .cards { width: 100%; position: relative; z-index: 2; }
  .banner .dots { left: 18px; bottom: 14px; z-index: 3; }
  .icongrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 0; }
  .icongrid .ic { padding: 9px 2px 7px; }
  .icongrid .ic img { width: 26px; height: 26px; }
  .icongrid .ic span { font-size: 11.5px; }
  .couponstrip .go { margin-left: 0; }
  .trust { grid-template-columns: 1fr; }
  .tabbar { z-index: 40; }
  .tabbar a.on { color: #1E4D3B; }
}

@media (max-width: 767px) {
  .couponhero { grid-template-columns: 1fr; padding: 20px 16px; }
  .couponhero .side { border-left: none; border-top: 1px dashed #E7E7E7; padding-left: 0; padding-top: 14px; }
  .ckgrid { grid-template-columns: repeat(4, 1fr); }
  .promohead { padding: 18px 14px; }
  .promohead h2 { font-size: 24px; }
  .promohead .sub { min-width: 0; }
  .foot { display: none; }
}
