:root {
  --ink:#10383d;
  --sea:#146962;
  --muted:#526968;
  --paper:#f1f9fa;
  --brand-surface:#fcfefe;
  --line:#dbe5e0;
  --foam:#e8f4ef;
  --sand:#f5f2e9;
  --accent:#b4e7d5;
  --brand-header-height:67px;
}

body { background:var(--paper); color:var(--ink); }
html { scroll-padding-top:calc(var(--brand-header-height) + 14px); }
body > header {
  height:var(--brand-header-height);
  background:var(--brand-surface);
  border-color:#dce6de;
  box-shadow:0 1px 0 #10383d08;
}
.shop-nav a { font-weight:680; }
.shop-nav a[data-route=cart] {
  min-height:40px;
  padding:5px 10px;
  border:1px solid #cee1d8;
  border-radius:999px;
  background:#fff;
}
.shop-nav a[data-route=cart][aria-current=page] { border-color:#9fc8ba; background:var(--foam); }
.shop-nav b { background:#dcefe8; font-variant-numeric:tabular-nums; }

.kakao-contact {
  position:fixed;
  z-index:25;
  right:max(22px,env(safe-area-inset-right,0px));
  bottom:calc(24px + env(safe-area-inset-bottom,0px));
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#fee500;
  color:#351c17;
  box-shadow:0 4px 15px #10383d26;
}
.kakao-contact svg { display:block; width:32px; height:30px; }
.kakao-contact:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }

.store-discovery { --promotion-height:clamp(244px,24vw,298px); }
.store-discovery[hidden],.catalog[hidden],.catalog-count[hidden],.products > .product-card[hidden] { display:none; }
.store-discovery .banner-track { border-radius:20px; }
.store-discovery .banner-carousel .hero { min-height:var(--promotion-height); }
.store-discovery .social-banner {
  background-image:radial-gradient(ellipse 44% 125% at center,#f7fbfcee 18%,#f1f9fac9 50%,#d9edf05e 100%),var(--banner-photo);
  background-size:cover;
  background-position:center,center var(--banner-photo-position);
  background-repeat:no-repeat;
}
.kakao-banner { --banner-photo:url('/yb-banner-freedive.webp'); --banner-photo-position:42%; }
.youtube-banner { --banner-photo:url('/yb-banner-reef.webp'); --banner-photo-position:35%; }
.instagram-banner { --banner-photo:url('/yb-banner-blue.webp'); --banner-photo-position:74%; }
.kakao-banner .social-logo svg {
  width:70px;
  height:70px;
  border-radius:19px;
  background:#fee500;
  color:#351c17;
}
.banner-controls { gap:4px; }
.banner-rotation {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--muted);
}
.banner-rotation[hidden] { display:none; }
.banner-rotation:hover { background:var(--foam); }
.banner-rotation::before {
  content:"";
  width:8px;
  height:9px;
  border-inline:2px solid currentColor;
}
.banner-rotation[data-paused=true]::before {
  width:0;
  height:0;
  margin-left:2px;
  border:0;
  border-block:5px solid transparent;
  border-left:7px solid currentColor;
}
.store-discovery .banner-dots button { height:27px; }
.store-discovery .banner-dots button::after { top:11px; }

.catalog {
  padding-top:23px;
  gap:15px 18px;
  border-top:1px solid #dce5dc;
}
.catalog-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:7px 10px; min-width:0; }
#catalog-title { font-size:clamp(22px,2.65vw,32px); letter-spacing:-.055em; }
.catalog-count {
  display:inline-block;
  padding:3px 7px;
  border-radius:999px;
  background:#e9eee5;
  color:#436056;
  font-size:11px;
  font-weight:680;
  line-height:1.4;
  letter-spacing:0;
  white-space:nowrap;
}
.shop-filters { padding:3px; border:1px solid #dde6dd; border-radius:12px; gap:3px; background:#eef1e9; }
.shop-filters button { min-height:40px; padding:7px 13px; border:1px solid transparent; border-radius:8px; background:transparent; color:#425e59; }
.shop-filters button[aria-pressed=true] { background:var(--ink); border-color:var(--ink); color:#fff; }
.shop-filters button:not([aria-pressed=true]):hover { background:var(--brand-surface); }

.products { gap:25px 17px; }
.products > .product-card {
  --product-photo-radius:13px;
  display:grid;
  align-content:start;
  min-width:0;
}
.product-card .product-choice {
  display:block;
  height:auto;
  min-width:0;
  padding:0;
  border-radius:var(--product-photo-radius);
}
.product-card .product-choice::before { display:none; }
.product-card .product-choice:focus-visible { outline-offset:3px; }
.product-card .product-choice.sold-out { opacity:1; }
.product-card .product-choice.sold-out > .product-image { opacity:.62; }
.product-card .product-choice > :is(.product-image,.product-placeholder),.product-card .product-gallery {
  display:block;
  width:100%;
  max-width:100%;
  margin:0;
  border:1px solid #e0ebeb;
  border-radius:var(--product-photo-radius);
  background:#fff;
  transition:border-color .18s;
}
.product-card .product-choice > .product-placeholder { display:flex; }
.product-card .product-choice > .product-image { height:auto; object-fit:contain; }
@media(hover:hover) {
  .product-card:hover :is(.product-image,.product-placeholder,.product-gallery) { border-color:#a5c6c3; }
}
.product-card-info { padding:10px 2px 0; }
.product-card-title {
  margin:0;
  color:var(--ink);
  font-size:clamp(14px,1.3vw,17px);
  line-height:1.4;
  font-weight:640;
  overflow-wrap:anywhere;
  word-break:keep-all;
}
.product-card-bottom {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:1px 7px;
  margin-top:3px;
}
.product-card-meta { display:flex; flex-wrap:wrap; gap:5px; }
.product-card .product-choice .type,.product-card .sold-label {
  padding:0;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  font-weight:560;
  white-space:nowrap;
}
.product-card .sold-label { color:#8d4337; }
.product-card .product-choice .amount {
  margin:0;
  padding:0;
  color:var(--ink);
  font-size:clamp(16px,1.6vw,21px);
  font-weight:770;
  line-height:1.25;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
.product-price-unit { margin-inline-start:2px; font-size:.7em; font-weight:630; letter-spacing:normal; white-space:nowrap; }

#shop-cart { width:100%; max-width:1050px; }
.cart-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(275px,1fr); align-items:start; gap:18px; }
.cart-grid > * { min-width:0; }
.cart-order-column { position:sticky; top:calc(var(--brand-header-height) + 17px); }
.cart-order-column .summary { position:static; margin:0; }
.cart-order-column #cart-checkout { position:static; margin:12px 0 0; }
#cart-box,#order>form,.summary,.checkout-gate { background:var(--brand-surface); border-color:#dbe4da; }
.shop-cart-item {
  grid-template-columns:72px minmax(0,1fr) auto;
  align-items:start;
  gap:14px;
  padding:13px 0;
  border-bottom:1px solid #e6ede6;
}
.shop-cart-item:last-child { border-bottom:0; }
.cart-item-photo {
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:1;
  border:1px solid #e3ebe2;
  border-radius:10px;
  overflow:hidden;
  background:var(--foam);
}
.cart-item-photo img { display:block; width:100%; height:100%; object-fit:contain; }
.cart-item-label { min-width:0; }
.cart-item-label > strong:first-child { font-size:clamp(14px,1.5vw,16px); }
.cart-line-option { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.cart-line-option:empty { display:none; }
.cart-line-price { color:var(--ink); }
.cart-item-actions { display:grid; justify-items:end; gap:3px; }
.cart-quantity { align-items:center; gap:3px; }
.cart-quantity output { min-width:2.1ch; margin-inline:2px; text-align:center; font-size:13px; font-weight:700; }
.cart-quantity button { display:grid; place-items:center; color:var(--ink); font-size:16px; }
.cart-quantity button:disabled { opacity:.42; cursor:default; }
.cart-remove { min-height:32px; padding:4px 9px; border:0; border-radius:7px; background:transparent; color:#73534b; font-size:12px; }
.cart-remove:hover { background:#f8eeeb; }
.page-heading h1,.checkout-gate h1 { font-weight:780; letter-spacing:-.055em; }
.page-heading a,.checkout-gate-back { color:var(--sea); font-weight:650; }
.bank { border-color:#cce5d6; background:var(--foam); }
.shop-primary,#add-cart,.summary .submit {
  min-height:49px;
  border-radius:10px;
  font-weight:750;
  letter-spacing:-.02em;
}
#add-cart { box-shadow:0 5px 13px #10383d29; }
#product-detail { background:var(--brand-surface); scroll-padding-block:58px 78px; }
#product-detail .detail-layout { align-items:start; }
#product-detail .detail-photo { min-height:300px; margin:0; border-radius:0; }
#product-detail .detail-copy { padding:42px 26px 20px; }
.detail-info .detail-tag {
  display:inline-block;
  margin-bottom:5px;
  padding:4px 8px;
  border-radius:5px;
  background:var(--foam);
  color:#315c51;
  font-weight:690;
  letter-spacing:0;
}
.detail-info h2 { margin:2px 0 6px; font-weight:790; letter-spacing:-.045em; line-height:1.3; }
.detail-info .detail-price { color:var(--ink); font-size:clamp(23px,3vw,31px); font-variant-numeric:tabular-nums; }
.detail-info .detail-delivery { margin:8px 0 0; padding:0; border:0; line-height:1.55; }
#product-detail #shop-options {
  margin:16px 0 0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f1f6ee;
}
#shop-options > h2 { margin:0 0 12px; }
.detail-more { margin-top:14px; border-top:1px solid var(--line); }
.detail-more summary { padding:12px 0 8px; color:var(--ink); font-weight:700; cursor:pointer; }
.detail-more .detail-description { margin-top:4px; }
#product-detail > #detail-cart-footer {
  position:sticky;
  bottom:0;
  z-index:6;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:3px;
  padding:11px 26px;
  border-top:1px solid #dce8df;
  background:#fff;
}
#detail-cart-footer #add-cart { position:static; width:min(100%,235px); min-height:51px; margin:0 0 0 auto; }
#detail-cart-footer #add-cart:only-child { width:100%; }
#detail-cart-footer > :not(#add-cart) { min-width:0; overflow-wrap:anywhere; }
.detail-cart-total { display:grid; gap:1px; }
.detail-cart-total span { color:var(--muted); font-size:11px; }
.detail-cart-total strong { font-size:clamp(17px,3vw,22px); font-variant-numeric:tabular-nums; }

@media(max-width:740px) {
  :root { --brand-header-height:59px; }
  .shop-nav a[data-route=cart] { min-height:35px; padding:4px 6px; }
  .kakao-contact { right:max(16px,env(safe-area-inset-right,0px)); width:52px; height:52px; }
  .kakao-contact svg { width:28px; height:28px; }
  body[data-shop-page=cart] .kakao-contact,body[data-shop-page=checkout] .kakao-contact {
    bottom:calc(88px + env(safe-area-inset-bottom,0px));
  }
  .store-discovery { --promotion-height:clamp(196px,36vw,235px); }
  .store-discovery .banner-track { border-radius:14px; }
  .store-discovery .social-banner {
    background-image:radial-gradient(ellipse 66% 120% at center,#f7fbfcea 18%,#f1f9facc 60%,#e2f2f465 100%),var(--banner-photo);
  }
  .youtube-banner { --banner-photo-position:14%; }
  .kakao-banner .social-logo svg { width:56px; height:56px; border-radius:16px; }
  .store-discovery .banner-dots button { height:22px; }
  .store-discovery .banner-dots button::after { top:9px; }
  .catalog { padding-top:13px; gap:10px; }
  .shop-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .shop-filters button { padding-inline:4px; }
  .products { gap:17px 10px; }
  .products > .product-card { --product-photo-radius:10px; }
  .product-card-info { padding-top:7px; }
  .cart-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .cart-order-column { position:static; }
  .shop-cart-item { grid-template-columns:56px minmax(0,1fr); gap:7px 10px; }
  .cart-item-actions { grid-column:2; display:flex; align-items:center; justify-content:space-between; }
  .cart-quantity button { width:40px; height:40px; }
  .cart-remove { min-height:40px; padding-inline:8px; }
  body[data-shop-page=cart] #shop-cart { padding-bottom:calc(67px + env(safe-area-inset-bottom,0px)); }
  body[data-shop-page=cart] #cart-checkout {
    position:fixed;
    z-index:5;
    right:14px;
    bottom:max(10px,env(safe-area-inset-bottom,0px));
    left:14px;
    width:auto;
    box-shadow:0 6px 21px #10383d38;
  }
  #product-detail .detail-photo { min-height:0; }
  #product-detail .detail-copy { padding:15px 14px 17px; }
  #product-detail #shop-options { margin-top:13px; padding:12px; }
  #product-detail > #detail-cart-footer {
    margin-top:0;
    padding:8px 14px max(8px,env(safe-area-inset-bottom,0px));
    box-shadow:0 -5px 17px #10383d12;
  }
  #detail-cart-footer #add-cart:not(:only-child) { width:min(58%,225px); padding-inline:8px; }
}
@media(max-width:360px) {
  .shop-nav { gap:6px; }
  .shop-nav a[data-route=cart] { padding-inline:4px; }
}
@media(prefers-reduced-motion:reduce) {
  .product-card { transition:none; }
}
