/*
Theme Name: YOOX Style (Atelier Child)
Description: YOOX-inspired style - minimalist black & white, 3-channel entry, dense grid, brand wall
Version: 1.0.0
*/

/* ============================================================
   Social Share - Follow Us
   ============================================================ */
.social-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--yk-line);
}
.social-share__label,
.social-follow__label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--yk-gray);
}
.social-share__list,
.social-follow__list { display: flex; flex-wrap: wrap; gap: 8px; }

.social-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--yk-line);
  background: var(--yk-white);
  color: var(--yk-black);
  transition: transform .18s ease, opacity .18s ease;
}
/* Icons keep brand colors (colorful), sizes locked, SVG has inline width/height fallback */
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { transform: translateY(-2px); opacity: .75; }

.social-follow { margin-top: 22px; }
.social-follow__label { display: block; margin-bottom: 12px; color: var(--yk-white); }
.social-follow .social-btn {
  width: 32px; height: 32px;
  border-color: transparent;
  background: transparent;
}
.social-follow .social-btn svg { width: 18px; height: 18px; }

/* Home colorful social bar - small icons in a centered row */
.home-social {
  padding: 36px 0 44px;
  border-top: 1px solid var(--yk-line);
  text-align: center;
}
.home-social__label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--yk-gray);
  margin-bottom: 18px;
}
.home-social__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.home-social__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform .18s ease, opacity .18s ease;
}
.home-social__item svg { width: 24px; height: 24px; display: block; }
.home-social__item:hover { transform: translateY(-3px); opacity: .8; }

@media (max-width: 640px) {
  .social-share { gap: 12px; }
  .social-btn { width: 32px; height: 32px; }
  .social-btn svg { width: 16px; height: 16px; }
  .home-social__list { gap: 16px; }
}

/* ============================================================
   YOOX style design system
   ============================================================ */
:root {
  --yk-black: #000000;
  --yk-white: #ffffff;
  --yk-gray: #666666;
  --yk-light: #f4f4f4;
  --yk-line: #e0e0e0;
  --yk-red: #d0021b;
  --yk-font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--yk-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--yk-black);
  background: var(--yk-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--yk-gray); }
h1, h2, h3, h4 { font-family: var(--yk-font); font-weight: 400; margin: 0 0 0.5em; letter-spacing: -0.3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 1px solid var(--yk-black); outline-offset: 2px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--light { background: var(--yk-light); }

/* Generic eyebrow (YOOX style: uppercase + wide letter spacing) */
.eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--yk-black); }
.eyebrow--gray { color: var(--yk-gray); }

/* ============================================================
   Top bar (black background)
   ============================================================ */
.topbar { background: var(--yk-black); color: #fff; font-size: 11px; letter-spacing: 0.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #aaa; }
.topbar-menu { display: flex; gap: 20px; }
.topbar-menu li a { color: #fff; font-size: 11px; }

/* ============================================================
   Primary nav (white background, centered logo, three-column)
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--yk-black); }
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 62px;
  gap: 20px;
}
.site-branding { text-align: left; }
.site-branding .custom-logo { max-height: 30px; }
.site-title { font-size: 24px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; margin: 0; line-height: 1; }
.site-title a { color: var(--yk-black); }
.site-description { display: none; }

/* Primary nav: left-aligned layout */
.main-nav { justify-self: start; }
.main-nav ul { display: flex; gap: 26px; align-items: center; }
.main-nav a {
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--yk-black); padding: 22px 0; display: inline-block; position: relative;
}
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--yk-black); transition: width .2s; }
.main-nav a:hover { color: var(--yk-black); }
.main-nav a:hover::after { width: 100%; }
.main-nav .current-menu-item > a::after { width: 100%; }

/* Right icon area (search/account) */
.header-actions { justify-self: end; display: flex; gap: 18px; }
.header-actions button, .header-actions a {
  background: none; border: 0; cursor: pointer; font-size: 16px; color: var(--yk-black); padding: 4px;
}

/* Dropdown */
.main-nav ul ul {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--yk-line);
  flex-direction: column; gap: 0; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .2s; z-index: 110;
}
.main-nav ul li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav ul ul li a { padding: 10px 16px; font-size: 11px; white-space: nowrap; }
.main-nav ul ul li a::after { display: none; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--yk-black); margin: 5px 0; }

/* ============================================================
   3-channel entry (WOMAN / MAN / KIDS)
   ============================================================ */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.channel-card {
  position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; background: #eee;
}
.channel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.channel-card:hover img { transform: scale(1.04); }
.channel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.45)); }
.channel-card__label {
  position: absolute; bottom: 24px; left: 0; right: 0; z-index: 2;
  text-align: center; color: #fff; font-size: 22px; font-weight: 700;
  letter-spacing: 6px; text-transform: uppercase;
}

/* ============================================================
   Main banner (full-width image)
   ============================================================ */
.hero {
  position: relative; min-height: 480px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center; background-color: #000;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); }
.hero__content { position: relative; z-index: 2; padding: 0 0 56px 6%; max-width: 620px; color: #fff; }
.hero__eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.hero__title { font-size: 52px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; margin-bottom: 14px; color: #fff; text-transform: uppercase; }
.hero__desc { font-size: 15px; color: #eee; margin-bottom: 24px; }
.hero__actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border: 1px solid var(--yk-black);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  background: var(--yk-black); color: #fff; cursor: pointer; transition: all .2s;
}
.btn:hover { background: #fff; color: var(--yk-black); }
.btn--white { background: #fff; color: var(--yk-black); border-color: #fff; }
.btn--white:hover { background: var(--yk-black); color: #fff; }

/* ============================================================
   Category grid (YOOX dense cards)
   ============================================================ */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; border-bottom: 1px solid var(--yk-black); padding-bottom: 12px; }
.section-head__title { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.section-head__eyebrow { font-size: 11px; letter-spacing: 2px; color: var(--yk-gray); text-transform: uppercase; }
.section-head__desc { color: var(--yk-gray); font-size: 13px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--yk-line); }
.cat-card { position: relative; aspect-ratio: 4/5; overflow: hidden; display: block; background: #f0f0f0; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card__body {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: rgba(255,255,255,.94); padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.cat-card__name { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin: 0; }
.cat-card__count { font-size: 10px; color: var(--yk-gray); }

/* ============================================================
   Product grid (compact 4 columns)
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.product-card { display: flex; flex-direction: column; }
.product-card__thumb { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--yk-light); }
.product-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card__thumb img { transform: scale(1.04); }
.product-card__badge {
  position: absolute; top: 10px; left: 10px; background: var(--yk-red); color: #fff;
  font-size: 9px; font-weight: 600; letter-spacing: 1px; padding: 4px 8px; text-transform: uppercase;
}
.product-card__title { font-size: 12px; font-weight: 600; margin: 12px 0 4px; text-transform: uppercase; letter-spacing: .3px; }
.product-card__title a { color: var(--yk-black); }
.product-card__meta { font-size: 11px; color: var(--yk-gray); }
.product-card__price { font-size: 13px; font-weight: 600; }

/* ============================================================
   Brand wall (text-only grid)
   ============================================================ */
.brand-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--yk-line); border: 1px solid var(--yk-line); }
.brand-wall a {
  display: flex; align-items: center; justify-content: center; min-height: 62px;
  background: #fff; font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; text-align: center; padding: 10px;
}
.brand-wall a:hover { background: var(--yk-black); color: #fff; }

/* ============================================================
   Image + text columns
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.split__media img { width: 100%; }
.split__title { font-size: 34px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.5px; }
.split__text { color: var(--yk-gray); margin: 20px 0 28px; font-size: 14px; line-height: 1.8; }
.split--reverse .split__media { order: 2; }

/* Promo counter bar */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--yk-line); }
.stats__item { background: #fff; text-align: center; padding: 32px 20px; }
.stats__num { font-size: 36px; font-weight: 700; }
.stats__label { font-size: 10px; letter-spacing: 2px; color: var(--yk-gray); text-transform: uppercase; margin-top: 6px; }

/* ============================================================
   Generic content page
   ============================================================ */
.page-header { padding: 56px 0 32px; border-bottom: 1px solid var(--yk-line); }
.page-header__title { font-size: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.page-header__crumb { font-size: 11px; color: var(--yk-gray); text-transform: uppercase; letter-spacing: 1px; }
.page-header__crumb a { color: var(--yk-gray); }

.entry { max-width: 820px; margin: 0 auto; }
.entry__title { font-size: 34px; font-weight: 700; text-transform: uppercase; }
.entry__meta { color: var(--yk-gray); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 28px; }
.entry__thumb { margin-bottom: 28px; }
.entry__content { font-size: 14px; color: #333; line-height: 1.9; }
.entry__content h2 { font-size: 22px; text-transform: uppercase; margin-top: 2em; }
.entry__content h3 { font-size: 18px; margin-top: 1.5em; }
.entry__content img { margin: 20px 0; }
.entry__content blockquote { border-left: 3px solid var(--yk-black); padding-left: 20px; margin: 24px 0; font-style: italic; }

.archive-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.archive-bar a { padding: 8px 16px; border: 1px solid var(--yk-line); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.archive-bar a.active, .archive-bar a:hover { background: var(--yk-black); color: #fff; border-color: var(--yk-black); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--yk-line); font-size: 12px; }
.pagination .current { background: var(--yk-black); color: #fff; border-color: var(--yk-black); }

/* ============================================================
   Footer (black background)
   ============================================================ */
.site-footer { background: var(--yk-black); color: #999; padding: 56px 0 0; font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .site-title { color: #fff; font-size: 20px; }
.footer-brand p { color: #777; margin-top: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { color: #999; display: block; padding: 4px 0; font-size: 12px; }
.footer-col a:hover { color: #fff; }
.footer-widget p { color: #777; }
.footer-bottom { border-top: 1px solid #222; padding: 20px 0; text-align: center; font-size: 11px; color: #666; letter-spacing: .5px; }

/* Search & 404 */
.search-form { display: flex; max-width: 500px; }
.search-form input[type="search"] { flex: 1; padding: 12px 14px; border: 1px solid var(--yk-black); background: #fff; }
.search-form button { padding: 12px 20px; background: var(--yk-black); color: #fff; border: 1px solid var(--yk-black); cursor: pointer; }
.not-found { text-align: center; padding: 100px 0; }
.not-found__code { font-size: 100px; font-weight: 700; line-height: 1; }

#to-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; background: var(--yk-black); color: #fff; border: 0; cursor: pointer; opacity: 0; pointer-events: none; transition: .2s; z-index: 200; font-size: 16px; }
#to-top.show { opacity: 1; pointer-events: auto; }
#to-top:hover { background: #333; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-wall { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 44px 0; }
  .site-header__inner { grid-template-columns: 1fr auto; min-height: 54px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--yk-black); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px 18px; }
  .main-nav li a { padding: 12px 0; display: block; }
  .menu-toggle { display: block; }
  .header-actions { display: none; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; order: 0; }
  .stats { grid-template-columns: 1fr; }
  .hero__title { font-size: 34px; }
  .hero { min-height: 360px; }
  .section-head__title { font-size: 17px; }
  .page-header__title, .entry__title { font-size: 26px; }
}
@media (max-width: 480px) {
  .channel-grid, .cat-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
}
