/*
Theme Name: Areumdapda Commerce
Theme URI: https://jark.co.kr/
Author: Areumdapda
Description: Premium mobile-first WooCommerce theme for professional beauty supplies.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: areumdapda
*/

:root {
  --ad-ink: #241b17;
  --ad-muted: #766a63;
  --ad-cream: #f7f2ec;
  --ad-paper: #fffdf9;
  --ad-rose: #b26f76;
  --ad-rose-dark: #855057;
  --ad-cocoa: #5e3e32;
  --ad-gold: #b58a57;
  --ad-line: #e8ded4;
  --ad-shadow: 0 18px 50px rgba(66, 45, 36, .10);
  --ad-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ad-ink);
  background: var(--ad-paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 99999; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: #111; }
.ad-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.announcement { background: var(--ad-ink); color: #fff; font-size: 13px; text-align: center; padding: 9px 16px; letter-spacing: .02em; }
.announcement b { color: #ead2b7; }
.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,253,249,.94); border-bottom: 1px solid rgba(232,222,212,.85); backdrop-filter: blur(16px); }
.header-main { display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 28px; min-height: 82px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 700; letter-spacing: -.05em; }
.brand-sub { margin-top: 7px; font-size: 9px; letter-spacing: .26em; color: var(--ad-muted); }
.site-search { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.site-search input[type="search"] { width: 100%; border: 1px solid var(--ad-line); border-radius: 999px; padding: 13px 92px 13px 20px; outline: none; background: #fff; }
.site-search input[type="search"]:focus { border-color: var(--ad-rose); box-shadow: 0 0 0 3px rgba(178,111,118,.12); }
.site-search button { position: absolute; top: 5px; right: 5px; border: 0; border-radius: 999px; background: var(--ad-ink); color: #fff; padding: 8px 18px; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.header-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13px; }
.header-actions a:hover { background: var(--ad-cream); }
.cart-count { display: inline-grid; place-items: center; margin-left: 5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--ad-rose); color: #fff; font-size: 10px; }
.nav-row { border-top: 1px solid rgba(232,222,212,.65); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.main-nav ul { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 15px 0; font-size: 14px; font-weight: 650; }
.main-nav a:hover { color: var(--ad-rose-dark); }
.b2b-nav { display: inline-flex; align-items: center; gap: 8px; color: var(--ad-rose-dark); font-size: 13px; font-weight: 750; }
.b2b-nav::after { content: "→"; transition: transform .2s ease; }
.b2b-nav:hover::after { transform: translateX(4px); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 23px; padding: 8px; cursor: pointer; }

.hero { position: relative; min-height: 620px; overflow: hidden; background: #eadbc9; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(249,242,233,.98) 0%, rgba(249,242,233,.92) 35%, rgba(249,242,233,.22) 64%, rgba(249,242,233,0) 100%), var(--ad-hero) center/cover no-repeat; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: 620px; }
.hero-copy { width: min(570px, 54%); padding: 72px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--ad-rose-dark); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 78px); line-height: 1.06; letter-spacing: -.055em; }
.hero h1 span { display: block; margin-top: 12px; font-family: inherit; color: var(--ad-cocoa); font-size: .52em; font-weight: 500; letter-spacing: -.04em; }
.hero-lead { max-width: 500px; margin: 24px 0 34px; color: #62544d; font-size: 17px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ad-button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px !important; border: 1px solid var(--ad-ink) !important; border-radius: 999px !important; background: var(--ad-ink) !important; color: #fff !important; font-weight: 750 !important; transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important; }
.ad-button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(36,27,23,.18); background: var(--ad-cocoa) !important; }
.ad-button.is-light { border-color: rgba(36,27,23,.3) !important; background: rgba(255,255,255,.62) !important; color: var(--ad-ink) !important; backdrop-filter: blur(7px); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--ad-muted); font-size: 12px; }
.hero-notes span::before { content: "✓"; margin-right: 6px; color: var(--ad-rose-dark); font-weight: 900; }

.trust-strip { position: relative; z-index: 2; margin-top: -34px; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); background: #fff; border: 1px solid var(--ad-line); border-radius: 20px; box-shadow: var(--ad-shadow); }
.trust-item { padding: 23px 26px; border-right: 1px solid var(--ad-line); }
.trust-item:last-child { border-right: 0; }
.trust-item b { display: block; margin-bottom: 3px; font-size: 14px; }
.trust-item span { color: var(--ad-muted); font-size: 12px; }

.section { padding: 96px 0; }
.section.is-soft { background: var(--ad-cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.section-head h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 48px); line-height: 1.15; letter-spacing: -.04em; }
.section-head p { max-width: 500px; margin: 0; color: var(--ad-muted); font-size: 14px; }
.text-link { color: var(--ad-rose-dark); font-size: 13px; font-weight: 750; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.category-card { position: relative; min-height: 310px; overflow: hidden; border-radius: var(--ad-radius); padding: 28px; color: #fff; box-shadow: 0 10px 32px rgba(62,42,33,.08); transition: transform .25s ease, box-shadow .25s ease; }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--ad-shadow); }
.category-card::before, .category-card::after { content: ""; position: absolute; border-radius: 999px; filter: blur(.2px); }
.category-card::before { width: 220px; height: 220px; right: -55px; bottom: -44px; background: rgba(255,255,255,.12); }
.category-card::after { width: 110px; height: 110px; right: 46px; bottom: 34px; border: 1px solid rgba(255,255,255,.3); }
.category-card:nth-child(1) { background: linear-gradient(145deg,#50382f,#936d5c); }
.category-card:nth-child(2) { background: linear-gradient(145deg,#8b5c65,#c79299); }
.category-card:nth-child(3) { background: linear-gradient(145deg,#8b765f,#c6a77f); }
.category-card:nth-child(4) { background: linear-gradient(145deg,#554f53,#91858d); }
.category-card small { position: relative; z-index: 1; letter-spacing: .13em; text-transform: uppercase; opacity: .75; }
.category-card h3 { position: relative; z-index: 1; margin: 12px 0 6px; font-size: 24px; }
.category-card p { position: relative; z-index: 1; margin: 0; font-size: 13px; opacity: .82; }
.category-card .arrow { position: absolute; z-index: 1; left: 28px; bottom: 25px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }

.product-area .woocommerce ul.products { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin: 0; }
.product-area .woocommerce ul.products::before, .product-area .woocommerce ul.products::after { display: none; }
.product-area .woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce ul.products li.product a img { aspect-ratio: 1/1.12; object-fit: cover; margin: 0 0 18px !important; border-radius: 18px; background: #f1ebe4; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 !important; font-size: 15px !important; line-height: 1.45; }
.woocommerce ul.products li.product .price { color: var(--ad-ink) !important; font-size: 15px !important; font-weight: 800; }
.woocommerce span.onsale { min-width: 46px !important; min-height: 30px !important; line-height: 30px !important; border-radius: 999px !important; background: var(--ad-rose) !important; }
.empty-products { grid-column: 1/-1; padding: 64px 28px; text-align: center; border: 1px dashed #d9ccc0; border-radius: var(--ad-radius); background: #fff; color: var(--ad-muted); }
.empty-products b { display: block; margin-bottom: 6px; color: var(--ad-ink); font-size: 18px; }

.b2b-section { overflow: hidden; background: var(--ad-ink); color: #fff; }
.b2b-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.b2b-copy .eyebrow { color: #e0b9a3; }
.b2b-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 60px); line-height: 1.12; letter-spacing: -.045em; }
.b2b-copy p { color: #cfc4bd; }
.b2b-copy .ad-button { border-color: #fff !important; background: #fff !important; color: var(--ad-ink) !important; }
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.055); }
.step-num { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--ad-ink); font-family: Georgia,serif; font-size: 18px; }
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: #c4b8b1; font-size: 13px; }

.editorial-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.editorial-card { min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; padding: 38px; border-radius: var(--ad-radius); background: linear-gradient(145deg,#eadbd1,#f9f3ee); }
.editorial-card:nth-child(2) { background: linear-gradient(145deg,#d8c5bd,#aa7f74); color: #fff; }
.editorial-card h3 { margin: 0 0 10px; font-family: Georgia,serif; font-size: 30px; }
.editorial-card p { max-width: 520px; margin: 0; opacity: .78; }

.site-content { min-height: 55vh; }
.page-hero { padding: 72px 0 40px; background: var(--ad-cream); }
.page-hero h1 { margin: 0; font-family: Georgia,serif; font-size: clamp(38px,5vw,62px); letter-spacing: -.045em; }
.content-wrap { width: min(960px,calc(100% - 40px)); margin: 0 auto; padding: 64px 0 100px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { line-height: 1.3; }
.entry-content input:not([type="submit"]), .entry-content select, .entry-content textarea { width: 100%; border: 1px solid var(--ad-line); border-radius: 12px; padding: 13px 14px; background: #fff; }
.entry-content label { display: block; margin-bottom: 7px; font-weight: 700; }

.areumdapda-b2b-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 30px; border: 1px solid var(--ad-line); border-radius: var(--ad-radius); background: #fff; box-shadow: var(--ad-shadow); }
.areumdapda-b2b-form .form-full { grid-column: 1/-1; }
.areumdapda-b2b-form p { margin: 0; }
.b2b-status { padding: 26px; border-radius: 18px; background: var(--ad-cream); border: 1px solid var(--ad-line); }
.b2b-status.is-pending { border-left: 5px solid var(--ad-gold); }
.b2b-status.is-approved { border-left: 5px solid #69936c; }

.woocommerce .woocommerce-breadcrumb { margin-bottom: 28px; color: var(--ad-muted); font-size: 12px; }
.woocommerce div.product div.images img { border-radius: var(--ad-radius); }
.woocommerce div.product .product_title { font-family: Georgia,serif; font-size: clamp(34px,4vw,48px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ad-ink); font-weight: 800; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ad-rose) !important; background: var(--ad-cream) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ad-rose) !important; }
.woocommerce table.shop_table { border-color: var(--ad-line); border-radius: 16px; }

.site-footer { background: #1d1714; color: #e7ded8; }
.footer-main { display: grid; grid-template-columns: 1.3fr repeat(3,1fr); gap: 48px; padding: 72px 0; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { max-width: 330px; color: #9f938b; font-size: 13px; }
.footer-col h3 { margin: 0 0 16px; color: #fff; font-size: 13px; letter-spacing: .05em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a, .footer-col p { color: #a99d95; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); color: #776d67; font-size: 11px; }

@media (max-width: 960px) {
  body.admin-bar .site-header { top: 46px; }
  .header-main { grid-template-columns: 1fr auto; min-height: 66px; }
  .site-search { grid-column: 1/-1; order: 3; max-width: none; padding-bottom: 12px; }
  .header-actions .account-label { display: none; }
  .menu-toggle { display: block; }
  .nav-inner { align-items: stretch; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0; }
  .main-nav a { padding: 11px 0; }
  .b2b-nav { display: none; }
  .hero, .hero-inner { min-height: 560px; }
  .hero::before { background: linear-gradient(90deg,rgba(249,242,233,.97),rgba(249,242,233,.72)), var(--ad-hero) 67% center/cover no-repeat; }
  .hero-copy { width: 74%; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--ad-line); }
  .category-grid, .product-area .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .b2b-grid, .editorial-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1/-1; }
}

@media (max-width: 640px) {
  .ad-shell { width: min(100% - 28px,1180px); }
  .announcement { font-size: 11px; }
  .brand-name { font-size: 25px; }
  .brand-sub { display: none; }
  .header-actions a { padding: 0 7px; }
  .hero, .hero-inner { min-height: 610px; }
  .hero::before { background: linear-gradient(180deg,rgba(249,242,233,.97) 0%,rgba(249,242,233,.87) 54%,rgba(249,242,233,.30) 100%), var(--ad-hero) 68% center/cover no-repeat; }
  .hero-inner { align-items: flex-start; }
  .hero-copy { width: 100%; padding: 58px 0 190px; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 15px; }
  .hero-notes { gap: 9px 14px; }
  .trust-strip { margin-top: -22px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--ad-line); padding: 17px 20px; }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 72px 0; }
  .section-head { display: block; }
  .section-head .text-link { display: inline-block; margin-top: 15px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card { min-height: 235px; padding: 20px; }
  .category-card h3 { font-size: 19px; }
  .category-card .arrow { left: 20px; bottom: 18px; }
  .product-area .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 16px; }
  .b2b-grid { gap: 36px; }
  .step { grid-template-columns: 42px 1fr; padding: 17px; }
  .step-num { width: 42px; height: 42px; }
  .editorial-card { min-height: 270px; padding: 26px; }
  .areumdapda-b2b-form { grid-template-columns: 1fr; padding: 22px; }
  .areumdapda-b2b-form .form-full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 34px 22px; padding: 56px 0; }
  .footer-brand { grid-column: 1/-1; }
  .footer-col:last-child { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
}
