/*
Theme Name: AYAI Hakupian Test Theme
Author: Local Test Harness
Version: 1.0.0
Text Domain: ayai-hakupian-test-theme
Requires PHP: 8.0
*/

:root {
  --ink: #171717;
  --muted: #64615b;
  --line: #dedbd2;
  --paper: #faf8f3;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #0b514c;
  --gold: #ad8432;
}

* { box-sizing: border-box; }
html { direction: rtl; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header, .site-footer { background: rgba(250, 248, 243, 0.96); border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); }
.header-inner, .footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 800; letter-spacing: 0; }
.nav-link { color: var(--muted); font-size: 14px; }

.hero {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.12), transparent 45%), var(--paper);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 32px; align-items: end; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 700; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
.hero h1 { font-size: clamp(32px, 5vw, 58px); max-width: 760px; }
.hero p { margin: 18px 0 0; color: var(--muted); max-width: 720px; }
.hero-panel { border: 1px solid var(--line); background: var(--panel); padding: 22px; }
.hero-panel strong { display: block; font-size: 28px; color: var(--accent-strong); }

.products-section { padding: 36px 0 56px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.section-heading p { margin: 6px 0 0; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--line); background: var(--panel); transition: transform 160ms ease, border-color 160ms ease; }
.product-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.product-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #eee9dd; }
.product-card-body { display: flex; flex-direction: column; gap: 9px; padding: 16px; flex: 1; }
.product-card h3 { font-size: 17px; }
.meta-row, .sku-row, .stock { color: var(--muted); font-size: 13px; }
.price { color: var(--accent-strong); font-weight: 800; }
.excerpt { color: #404040; font-size: 14px; margin: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 10px 14px;
  font-weight: 700;
  line-height: 1.4;
}
.button.secondary { background: transparent; color: var(--accent-strong); }

.woocommerce div.product { padding: 36px 0; }
.woocommerce div.product div.images img { border: 1px solid var(--line); background: #eee9dd; }
.woocommerce div.product .product_title { font-size: clamp(28px, 4vw, 44px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--accent-strong); font-size: 24px; }
.single-product-summary-extra { border: 1px solid var(--line); background: #fff; padding: 18px; margin: 22px 0; }
.single-product-summary-extra dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 0; }
.single-product-summary-extra dt { color: var(--muted); }
.single-product-summary-extra dd { margin: 0; }
.shipping-returns { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 20px 0; }
.woocommerce-tabs, .related.products { clear: both; }

@media (max-width: 980px) {
  .hero-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .header-inner, .footer-inner, .section-heading { align-items: flex-start; flex-direction: column; }
  .hero-grid, .product-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}
