/* Market storefront: black / charcoal, burgundy navigation, warm gold highlights.
   Screen-only theme preserves the public print presentation. */
@media screen {
  html:has(body.arirang-market-theme){background:#080808;color-scheme:dark}
  body.arirang-market-theme[data-brand]{
    --market-blue:#d7b65c;--market-green:#d7b65c;--market-coral:#ee7a80;
    --market-ink:#f5f3ef;--market-line:#343131;
    --ink:#f5f3ef;--muted:#b6b1ab;--line:#343131;--bg:#080808;
    --brand-ink:#f5f3ef;--brand-muted:#b6b1ab;--brand-line:#343131;
    --brand-bg:#080808;--brand-tint:#231d13;--brand-strong:#702b33;--brand-deep:#542029;
    --green:#702b33;--lime:#231d13;
    background:#080808;color:#f5f3ef;
  }
  .arirang-market-theme main{max-width:1240px;padding-inline:24px}
  .arirang-market-theme :is(h1,h2,h3,h4){color:#f5f3ef}
  .arirang-market-theme :is(button,input,select,textarea){background:#1b1b1b;color:#f5f3ef;border-color:#454141}
  .arirang-market-theme :is(input,textarea)::placeholder{color:#a9a29a}
  .arirang-market-theme button:hover:not(:disabled){background:#2b2525;border-color:#9a7463}
  .arirang-market-theme[data-brand] button.primary{background:#702b33;color:#fff;border-color:#91505a}
  .arirang-market-theme[data-brand] button.primary:hover:not(:disabled){background:#8a3741}
  .arirang-market-theme[data-brand] :is(button,input,select,textarea,a):focus-visible{outline:3px solid #e4c872;outline-offset:3px}
  .arirang-market-theme[data-brand]>.market-top{border-top:2px solid #b39552;border-bottom:1px solid #302a23;background:#0c0c0cf5;backdrop-filter:blur(16px)}
  .arirang-market-theme .market-top-inner{max-width:1240px;padding-block:16px;gap:24px}
  .arirang-market-theme .market-wordmark{color:#f5f3ef}
  .arirang-market-theme .market-wordmark img{width:44px;height:44px;object-fit:contain}
  .arirang-market-theme .market-wordmark small{color:#b6b1ab}
  .arirang-market-theme #marketSearch{background:#202020;border:1px solid #44403a;border-radius:28px;box-shadow:none}
  .arirang-market-theme #marketSearch input{background:transparent;color:#fff}
  .arirang-market-theme #marketSearch button{color:#d7b65c;background:transparent}
  .arirang-market-theme #marketSearch:focus-within{border-color:#d7b65c;box-shadow:0 0 0 2px #d7b65c30}
  .arirang-market-theme :is(.partner-link,#memberNavLink){color:#e4c872}
  .arirang-market-theme .market-context-chip{background:#251e14;color:#e4c872;border-color:#57492c}
  .arirang-market-theme .market-customer-nav{background:#420f14;border-color:#60252d;backdrop-filter:blur(14px);max-width:none;padding-inline:max(24px,calc((100vw - 1192px)/2))}
  .arirang-market-theme .market-customer-nav a{color:#c5b1b3;font-weight:600}
  .arirang-market-theme[data-brand] .market-customer-nav a[aria-current=page]{background:#671e28;color:#fff;border-color:#e4c872}
  .arirang-market-theme :is(.service-state,.feedback,.notice,.payment-note,.capacity){background:#1b1814;color:#cec2ac;border-color:#443c2f}
  .arirang-market-theme .service-state{font-size:13px;border-radius:8px}
  .arirang-market-theme .feedback:empty{display:none}
  .arirang-market-theme .delivery-strip{padding:12px 0;background:transparent;border:0;border-bottom:1px solid #302c27;border-radius:0}
  .arirang-market-theme .delivery-address-link{background:#181613;color:#e4d6b6;border:1px solid #40382a;border-radius:8px}
  .arirang-market-theme :is(#locate,#autoRegion){background:#222;color:#e2d7c4;border-color:#47413a}
  .arirang-market-theme .market-intro{position:relative;isolation:isolate;min-height:370px;padding:46px 42px;margin:18px 0 22px;background:#111;border-radius:16px;overflow:hidden;display:flex;align-items:center}
  .arirang-market-theme .market-hero-image{position:absolute;inset:0 0 0 auto;width:72%;height:100%;object-fit:cover;z-index:-2;opacity:.78}
  .arirang-market-theme .market-intro:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#080808 0%,#080808eb 22%,#08080870 59%,#08080810),linear-gradient(0deg,#080808,transparent 38%);z-index:-1}
  .arirang-market-theme .market-hero-copy{max-width:600px}
  .arirang-market-theme .market-intro h1{font-size:clamp(30px,4.5vw,52px);line-height:1.28;letter-spacing:-.04em;color:#fff;margin:12px 0 18px}
  .arirang-market-theme .market-intro p{color:#d1c9bb;line-height:1.7}
  .arirang-market-theme .market-intro .eyebrow{color:#e4c872;font-size:11px;letter-spacing:.16em;margin:0}
  .arirang-market-theme .hero-explore{display:flex;align-items:center;gap:32px;margin-top:24px;border:1px solid #8d774a;background:#282116;color:#f1d990;border-radius:24px;padding:10px 20px;font-size:14px}
  .arirang-market-theme .specialty-halls{gap:12px;margin-bottom:30px}
  .arirang-market-theme .hall-card{background:#161414;border:1px solid #39312b;border-radius:12px;padding:12px;text-align:left;box-shadow:none}
  .arirang-market-theme .hall-card img{height:114px;border-radius:8px}
  .arirang-market-theme .hall-card strong{color:#f6eee1;font-size:18px}
  .arirang-market-theme .hall-card small{color:#b8aea2}
  .arirang-market-theme .hall-card:hover{background:#241c17;border-color:#a18753}
  .arirang-market-theme .category-browser{background:#121111;border:1px solid #342e2a;border-radius:12px;padding:18px;box-shadow:none}
  .arirang-market-theme .category-level{border-color:#322b25}
  .arirang-market-theme .category-level>span{color:#e4c872}
  .arirang-market-theme .category-level button{background:#242020;color:#c8bdb1;border-color:#39302b}
  .arirang-market-theme[data-brand] .category-level button[aria-pressed=true]{background:#651d27;border-color:#ab676b;color:#fff}
  .arirang-market-theme .category-level .middle-category-card{background:#1b1715;color:#e4d8c9;border:1px solid #40332c;border-radius:10px;overflow:hidden;box-shadow:none}
  .arirang-market-theme .category-level .middle-category-card[aria-pressed=true]{background:#541a22;border:2px solid #d7b65c;color:#fff}
  .arirang-market-theme :is(.category-image-note,.category-hint,.browse-crumb){color:#b8aea2}
  .arirang-market-theme :is(.catalog-heading h2,.browse-title){color:#f6eee1}
  .arirang-market-theme .catalog-heading{border-bottom:1px solid #3c3026;padding-bottom:14px;margin-top:30px}
  .arirang-market-theme .catalog-heading h2{font-size:26px}
  .arirang-market-theme .catalog-heading h2 small{color:#d7b65c}
  .arirang-market-theme .catalog-section .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:38px 24px}
  .arirang-market-theme .product-card{border:0;background:transparent;border-radius:0;box-shadow:none;padding:0 0 20px;overflow:hidden;border-bottom:1px solid #2e2924}
  .arirang-market-theme .product-detail-trigger{padding:0;background:transparent;border:0;color:#f4f1eb;text-align:left}
  .arirang-market-theme .product-detail-trigger:hover{background:transparent;border:0}
  .arirang-market-theme .product-photo{border-radius:14px;aspect-ratio:1.25;background:#151515}
  .arirang-market-theme .product-photo img{object-fit:contain;background:#fff}
  .arirang-market-theme .product-photo small{background:#171717ed;color:#c7bda9;font-size:10px!important;padding:4px 7px}
  .arirang-market-theme .product-category{color:#d2b978;margin-top:12px}
  .arirang-market-theme .product-card h3{color:#fff;font-size:22px;line-height:1.55;margin:7px 0;font-family:'Pretendard Variable',Pretendard,sans-serif;font-weight:600}
  .arirang-market-theme .product-detail-trigger>p{color:#b6b1ab}
  .arirang-market-theme .product-detail-trigger>strong{color:#fff;font-size:29px;font-weight:800;letter-spacing:-.04em}
  .arirang-market-theme .product-card>small{color:#b6b1ab}
  .arirang-market-theme .product-card [data-add]{background:#251a1c;color:#ffd4d8;border-color:#613139;border-radius:8px;margin-top:12px}
  .arirang-market-theme .catalog-empty{background:#171510;color:#c9c0b0;border-color:#3f3627;border-radius:10px}
  .arirang-market-theme .catalog-empty h3{color:#e4d9c5}
  .arirang-market-theme .leaf-preview-gallery{margin:28px 0}
  .arirang-market-theme .leaf-preview-heading{padding:17px 20px;background:#211d0d;border:1px solid #494022;border-left:3px solid #d7b65c;border-radius:10px;margin-bottom:24px}
  .arirang-market-theme .leaf-preview-heading h3{color:#ecd99c;margin:0 0 8px}
  .arirang-market-theme .leaf-preview-heading h3 small{font-size:14px;font-family:Pretendard,sans-serif}
  .arirang-market-theme .leaf-preview-heading p{color:#c3b997;font-size:13px;line-height:1.7;margin:0}
  .arirang-market-theme .leaf-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}
  .arirang-market-theme .leaf-preview-card{min-width:0;background:transparent;border:0;border-bottom:1px solid #2e2924;padding-bottom:16px}
  .arirang-market-theme .leaf-preview-card button{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;color:#fff;text-align:left}
  .arirang-market-theme .leaf-preview-card button:hover{background:transparent}
  .arirang-market-theme .leaf-preview-card img{display:block;width:100%;height:auto;aspect-ratio:1.25;object-fit:contain;background:#fff;border-radius:14px}
  .arirang-market-theme .leaf-preview-category{display:block;color:#d2b978;font-size:12px;margin-top:15px}
  .arirang-market-theme .leaf-preview-card h3{color:#fff;font-family:'Pretendard Variable',Pretendard,sans-serif;font-size:21px;font-weight:600;margin:6px 0 10px}
  .arirang-market-theme .leaf-preview-card h3 span{font-size:.75em;color:#b8aea2;margin-left:6px;white-space:nowrap}
  .arirang-market-theme .leaf-preview-card small{color:#d7c68c;background:#29230e;padding:4px 8px;border-radius:5px;font-size:11px}
  .arirang-market-theme :is(.store-showcase article,.member-panel,.saved-address,#addressBookForm,.login-panel,.operations-panel,.local-basket,.store-status-form,.credential,.basket-row,.order-card,.data-list li,.duty){background:#181615;color:#e5ded4;border-color:#473930;box-shadow:none}
  .arirang-market-theme :is(.store-showcase h3,.store-showcase p,.store-showcase small){color:#d4c4ad}
  .arirang-market-theme .market-footer{background:#101010;border-top:1px solid #4c3e2a;color:#b8aea2;padding:25px 24px;margin-top:36px}
  .arirang-market-theme .market-footer a{color:#d7c28d}
  .arirang-market-theme .bgm-controls{background:#191714ed;color:#e3d6bc;border-color:#55482d}
  .arirang-market-theme .bgm-controls .bgm-toggle{background:#702b33;color:#fff}
  .arirang-market-theme #productDetail{width:min(760px,calc(100% - 40px));max-width:760px;max-height:92dvh;overflow:auto;margin:auto;padding:0;border:1px solid #493b2e;border-radius:18px;background:#090909;color:#f5f3ef;box-shadow:0 30px 120px #000c;scroll-behavior:smooth;overscroll-behavior:contain}
  .arirang-market-theme #productDetail::backdrop{background:#000c;backdrop-filter:blur(8px)}
  .arirang-market-theme .detail-toolbar{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;padding:8px 20px;background:#0b0b0bf2;border-bottom:1px solid #352c21;backdrop-filter:blur(12px)}
  .arirang-market-theme .detail-toolbar>span{color:#d7b65c;font-size:11px;letter-spacing:.16em}
  .arirang-market-theme .detail-close{position:static;border:0;color:#fff;background:transparent;font-size:23px;padding:3px 10px;min-width:44px}
  .arirang-market-theme .detail-path{margin:15px 24px;color:#b8aea2;font-size:12px}
  .arirang-market-theme .detail-hero{padding:0 20px}
  .arirang-market-theme .detail-hero .product-photo{aspect-ratio:1.3;max-height:500px;border-radius:14px;margin:0}
  .arirang-market-theme .detail-summary{padding:25px 26px 30px}
  .arirang-market-theme #productDetail h2{font-family:'Pretendard Variable',Pretendard,sans-serif;font-size:28px;line-height:1.45;color:#fff;margin:8px 0 10px}
  .arirang-market-theme .detail-summary>p{color:#c8bfb1}
  .arirang-market-theme .detail-kicker{color:#d7b65c;font-size:11px;letter-spacing:.1em}
  .arirang-market-theme .detail-price{font-size:35px;font-weight:800;color:#fff;letter-spacing:-.04em;margin:15px 0 8px}
  .arirang-market-theme .detail-stock{color:#c6b797;font-size:13px}
  .arirang-market-theme .detail-preview-note{padding:13px 15px;background:#241f10;border:1px solid #494022;border-radius:8px;font-size:13px;line-height:1.75}
  .arirang-market-theme .detail-tabs{display:flex;position:sticky;top:61px;z-index:3;background:#420f14;border-block:1px solid #64232c;padding:0 14px;gap:4px}
  .arirang-market-theme .detail-tabs button{flex:1;background:transparent;border:0;border-radius:0;color:#f5e6e7;padding:15px 8px;font-weight:650}
  .arirang-market-theme .detail-tabs button:hover{background:#671e28}
  .arirang-market-theme .detail-section{padding:36px 28px;scroll-margin-top:132px;border-bottom:1px solid #342d21;background:#15130c}
  .arirang-market-theme .detail-section:nth-of-type(even){background:#101010}
  .arirang-market-theme .detail-section h3{color:#f9f4e9;font-size:24px;line-height:1.55;margin:10px 0 22px}
  .arirang-market-theme .detail-section>p:not(.detail-kicker){font-size:15px;color:#c4bba9;line-height:1.9}
  .arirang-market-theme #productDetail dl{font-size:15px;line-height:1.8;border-color:#473c27;grid-template-columns:85px minmax(0,1fr)}
  .arirang-market-theme #productDetail dt{color:#bcae8c}
  .arirang-market-theme #productDetail dd{color:#f1eade}
  .arirang-market-theme .detail-description{white-space:pre-wrap}
  .arirang-market-theme .detail-actions{position:sticky;bottom:0;z-index:4;display:flex;flex-wrap:nowrap;margin:0;padding:14px 20px calc(14px + env(safe-area-inset-bottom));background:#111f;border-top:1px solid #483c2b;gap:8px}
  .arirang-market-theme .detail-actions .primary{margin-left:auto;flex:1;font-size:16px;min-height:48px}
  .arirang-market-theme .detail-actions a{color:#d5c6a7;white-space:nowrap}
  @media(max-width:1000px){
    .arirang-market-theme .catalog-section .product-grid,.arirang-market-theme .leaf-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  }
  @media(max-width:720px){
    .arirang-market-theme main{padding-inline:16px}
    .arirang-market-theme .market-top-inner{padding:12px 16px;gap:10px}
    .arirang-market-theme .market-wordmark{font-size:21px}
    .arirang-market-theme .market-wordmark img{width:35px;height:35px}
    .arirang-market-theme .market-context-chip{font-size:10px;padding:4px 8px}
    .arirang-market-theme .market-customer-nav{padding:5px 10px calc(5px + env(safe-area-inset-bottom));background:#0c0c0cf5;border-top:1px solid #352d23}
    .arirang-market-theme[data-brand] .market-customer-nav a[aria-current=page]{background:#221c14;color:#eed28b;border-color:transparent;border-radius:8px}
    .arirang-market-theme .market-customer-nav a{color:#a59d91}
    .arirang-market-theme .market-intro{min-height:350px;padding:30px 20px;align-items:flex-end;margin:16px 0 22px;border-radius:12px}
    .arirang-market-theme .market-hero-image{width:100%;opacity:.82}
    .arirang-market-theme .market-intro:after{background:linear-gradient(0deg,#080808 4%,#080808bd 36%,#08080810 100%)}
    .arirang-market-theme .market-intro h1{font-size:32px;margin-bottom:12px}
    .arirang-market-theme .market-intro p:not(.eyebrow){font-size:14px}
    .arirang-market-theme .hero-explore{margin-top:15px;font-size:13px}
    .arirang-market-theme .specialty-halls{display:flex;overflow-x:auto;gap:10px;padding-bottom:8px;scroll-snap-type:x proximity}
    .arirang-market-theme .hall-card{min-width:140px;scroll-snap-align:start;padding:9px}
    .arirang-market-theme .hall-card img{height:85px}
    .arirang-market-theme .hall-card strong{font-size:16px}
    .arirang-market-theme .hall-card small{font-size:11px}
    .arirang-market-theme .category-browser{padding:13px 10px}
    .arirang-market-theme .category-level .middle-category-card{min-width:90px}
    .arirang-market-theme .catalog-heading{display:flex;gap:10px}
    .arirang-market-theme .catalog-heading h2{font-size:22px}
    .arirang-market-theme .catalog-section .product-grid,.arirang-market-theme .leaf-preview-grid{grid-template-columns:minmax(0,1fr);gap:30px}
    .arirang-market-theme .product-card h3{font-size:21px}
    .arirang-market-theme .product-detail-trigger>strong{font-size:29px}
    .arirang-market-theme .leaf-preview-card h3{font-size:21px}
    .arirang-market-theme .leaf-preview-heading{padding:14px;margin-bottom:20px}
    .arirang-market-theme .leaf-preview-heading p{font-size:12px}
    .arirang-market-theme .leaf-preview-heading h3{font-size:18px}
    .arirang-market-theme .product-photo,.arirang-market-theme .leaf-preview-card img{aspect-ratio:1.45;border-radius:13px}
    .arirang-market-theme #productDetail{width:100%;height:100dvh;max-height:100dvh;max-width:none;margin:0;border:0;border-radius:0}
    .arirang-market-theme .detail-hero{padding:0 14px}
    .arirang-market-theme .detail-summary{padding:23px 20px}
    .arirang-market-theme #productDetail h2{font-size:25px}
    .arirang-market-theme .detail-section{padding:30px 20px}
    .arirang-market-theme .detail-section h3{font-size:23px}
    .arirang-market-theme .detail-actions{padding-inline:12px}
    .arirang-market-theme .detail-actions button:not(.primary){font-size:12px;padding-inline:8px}
    .arirang-market-theme .detail-actions a{font-size:11px;padding:5px}
  }
  @media(prefers-reduced-motion:reduce){.arirang-market-theme #productDetail{scroll-behavior:auto}}
}
@media screen{
 .arirang-market-theme :is(.product-category,.product-card>small,.category-hint,.detail-path,.muted){color:#bcb2a0!important}
 .arirang-market-theme .product-detail-trigger>strong{font-size:29px!important;color:#fff}
 .arirang-market-theme .product-card h3{font-size:21px!important}
}
/* Override legacy role/readability rules that otherwise tint text too dark. */
@media screen{
 body.arirang-market-theme[data-brand] :is(.partner-link,#memberNavLink){color:#e4c872!important}
 body.arirang-market-theme[data-brand] .market-customer-nav a[aria-current=page]{color:#fff!important}
 body.arirang-market-theme[data-brand] :is(.service-state,.feedback){color:#d8c9ac!important}
 body.arirang-market-theme .delivery-address-link span{color:#d8c9ac}
}
