/*
Theme Name: BIGOKA
Theme URI: https://bigoka.com/
Author: BIGOKA
Description: Cửa hàng nước hoa BIGOKA cho học sinh, sinh viên và người đi làm dưới 40 tuổi.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: bigoka
*/

:root {
  --ink: #141311;
  --ink-soft: #2c2824;
  --ivory: #f4efe6;
  --paper: #fbf8f3;
  --champagne: #b08958;
  --champagne-deep: #7c6240;
  --beige: #e6dccb;
  --line: #ddd2c2;
  --muted: #6e665c;
  --on-ink: #f6f1e7;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-soft);
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Newsreader, Georgia, serif; color: var(--ink); line-height: 1.15; font-weight: 500; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-row, .nav-row, .footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-row { min-height: 72px; }
.brand { font-family: Newsreader, Georgia, serif; font-size: 28px; letter-spacing: 0.14em; text-decoration: none; color: var(--ink); }
.nav-row { display: none; gap: 22px; }
.nav-row a, .footer-links a { text-decoration: none; font-size: 14px; }
.nav-row a:hover, .footer-links a:hover { color: var(--champagne-deep); }
.cart-link { text-decoration: none; font-size: 14px; border: 1px solid var(--ink); padding: 8px 12px; }
.menu-toggle { background: none; border: 1px solid var(--ink); height: 40px; padding: 0 12px; }
.nav-panel { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.nav-panel a { display: block; padding: 10px 0; text-decoration: none; }
.nav-panel.is-open { display: block; }

.ticker { overflow: hidden; background: var(--ink); color: var(--on-ink); font-size: 13px; letter-spacing: 0.04em; }
.ticker-track { display: flex; gap: 32px; width: max-content; padding: 8px 0; animation: ticker 22s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero { display: grid; gap: 28px; padding: 48px 0; align-items: center; }
.kicker { letter-spacing: 0.16em; color: var(--champagne-deep); font-size: 13px; margin: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 8px 0; }
.lede { max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; text-decoration: none; background: var(--ink); color: var(--on-ink); font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn:hover { background: var(--champagne-deep); color: var(--on-ink); }
.hero img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.section { padding: 24px 0 48px; }
.section h2 { font-size: 36px; margin: 0 0 16px; }
.collections, .product-grid { display: grid; gap: 16px; }
.collection { text-decoration: none; background: var(--paper); }
.collection img { aspect-ratio: 1; object-fit: cover; }
.collection div, .card-body { padding: 14px; }
.collection h3, .card-body h3 { margin: 4px 0; font-size: 28px; }

.product-grid { grid-template-columns: 1fr; }
.product-card { background: var(--paper); text-decoration: none; display: block; }
.product-card img { aspect-ratio: 1; object-fit: contain; background: #fff; }
.house { letter-spacing: 0.16em; color: var(--champagne-deep); font-size: 12px; margin: 0; }
.meta { color: var(--muted); font-size: 13px; }
.price { margin: 8px 0 0; }

.page, .entry { padding: 40px 0 64px; }
.page h1, .product h1 { font-size: clamp(36px, 5vw, 52px); }
.notice, .woocommerce-info, .woocommerce-message { background: var(--paper); border: 1px solid var(--line); padding: 12px; }

.site-footer { background: var(--ink); color: var(--beige); margin-top: 24px; }
.footer-grid { align-items: flex-start; padding: 36px 0; display: grid; }
.footer-links { display: grid; gap: 8px; }
.site-footer a { color: var(--beige); }

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  content: none !important;
  display: none !important;
}
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
  padding: 0;
  clear: both;
}
.woocommerce ul.products li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
}
.woocommerce ul.products li.product a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  text-decoration: none;
}
.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  margin: 0;
}
.woocommerce div.product { display: grid; gap: 20px; }
.woocommerce div.product div.images,
.woocommerce-product-gallery {
  opacity: 1 !important;
}
.woocommerce div.product div.images img {
  width: 100%;
  height: auto;
}
.woocommerce .quantity .qty, .woocommerce input, .woocommerce select, .woocommerce textarea {
  min-height: 44px; border: 1px solid var(--line); background: #fff; padding: 8px;
}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--ink); color: var(--on-ink); border-radius: 0; min-height: 44px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--champagne-deep); color: var(--on-ink); }

@media (min-width: 640px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 800px) {
  .menu-toggle { display: none; }
  .nav-row { display: flex; }
  .nav-panel { display: none !important; }
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .collections { grid-template-columns: repeat(3, 1fr); }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .woocommerce div.product { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
