/*
Theme Name: Oviya Bakery
Theme URI: https://wvw.waarkbq.com/
Author: OVIYA LIMITED
Description: Hong Kong bakery e-commerce theme for Oviya.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: oviya-bakery
*/

:root {
  --oviya-burgundy: #7a1f2b;
  --oviya-burgundy-dark: #5c151e;
  --oviya-gold: #c4a574;
  --oviya-cream: #f6efe4;
  --oviya-ink: #2b1a16;
  --oviya-muted: #6d5c56;
  --oviya-line: #eadfce;
  --oviya-white: #fff;
  --oviya-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--oviya-ink);
  background: var(--oviya-white);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.oviya-wrap { width: min(var(--oviya-max), calc(100% - 40px)); margin: 0 auto; }

.oviya-promo {
  background: var(--oviya-burgundy);
  color: #fff;
  text-align: center;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 10px 16px;
}
.oviya-promo a { color: var(--oviya-gold); }

.oviya-header {
  background: #fff;
  border-bottom: 1px solid var(--oviya-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.oviya-header-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
}
.oviya-logo { display: flex; flex-direction: column; gap: 2px; }
.oviya-logo-mark {
  font-size: 28px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--oviya-burgundy);
}
.oviya-logo-sub {
  font-size: 12px;
  color: var(--oviya-gold);
  letter-spacing: .28em;
}
.oviya-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.oviya-nav ul { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.oviya-nav a {
  font-size: 15px;
  color: var(--oviya-ink);
}
.oviya-nav a:hover, .oviya-nav .current-menu-item > a { color: var(--oviya-burgundy); }
.oviya-tools { display: flex; align-items: center; gap: 14px; }
.oviya-tools a, .oviya-tools button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--oviya-ink);
}
.oviya-cart-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--oviya-burgundy);
  color: #fff;
  font-size: 11px;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.oviya-search {
  display: none;
  border-top: 1px solid var(--oviya-line);
  padding: 12px 0 16px;
}
.oviya-search.is-open { display: block; }
.oviya-search form { display: flex; gap: 8px; }
.oviya-search input {
  flex: 1;
  border: 1px solid var(--oviya-line);
  padding: 10px 12px;
}
.oviya-search button {
  background: var(--oviya-burgundy);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  cursor: pointer;
}

.oviya-hero {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(43,26,22,.55) 0%, rgba(43,26,22,.12) 48%, rgba(43,26,22,.05) 100%),
    var(--hero, var(--oviya-cream)) center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
}
.oviya-hero-copy { max-width: 560px; padding: 72px 0; }
.oviya-kicker {
  letter-spacing: .32em;
  color: var(--oviya-gold);
  font-size: 13px;
  margin-bottom: 14px;
}
.oviya-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 600;
}
.oviya-hero p { font-size: 18px; max-width: 440px; }
.oviya-btn {
  display: inline-block;
  background: var(--oviya-burgundy);
  color: #fff !important;
  padding: 12px 22px;
  margin-top: 18px;
  letter-spacing: .08em;
}
.oviya-btn.ghost {
  background: transparent;
  border: 1px solid currentColor;
}

.oviya-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 48px 0 12px;
}
.oviya-cat {
  background: var(--oviya-cream);
  min-height: 160px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.oviya-cat strong { font-size: 20px; }
.oviya-cat span { color: var(--oviya-muted); font-size: 13px; }

.oviya-section { padding: 48px 0; }
.oviya-section h2 {
  text-align: center;
  font-size: 32px;
  margin: 0 0 8px;
}
.oviya-lead { text-align: center; color: var(--oviya-muted); margin: 0 0 32px; }

.oviya-grid, .products, ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.oviya-card, .products li.product {
  border: 1px solid var(--oviya-line);
  padding: 0 0 16px;
  background: #fff;
  text-align: center;
}
.oviya-card img, .products li.product img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.oviya-card h3, .products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  margin: 14px 16px 6px;
  font-weight: 600;
}
.price { color: var(--oviya-burgundy); font-weight: 600; }
.products .button, .single_add_to_cart_button, .checkout-button, .woocommerce-Button, .wp-element-button {
  background: var(--oviya-burgundy) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.added_to_cart { display: inline-block; margin-left: 8px; }

.oviya-about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  background: var(--oviya-cream);
  padding: 56px 0;
}
.oviya-about h2 { text-align: left; }
.oviya-about p { color: var(--oviya-muted); }

.oviya-page { padding: 40px 0 72px; }
.oviya-page h1 { font-size: 36px; margin-top: 0; }
.oviya-content a { color: var(--oviya-burgundy); text-decoration: underline; }

.oviya-footer {
  background: #241512;
  color: #efe6db;
  padding: 48px 0 24px;
}
.oviya-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.oviya-footer h3 { color: var(--oviya-gold); font-size: 15px; letter-spacing: .12em; }
.oviya-footer a { color: #efe6db; }
.oviya-footer a:hover { color: var(--oviya-gold); }
.oviya-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 12px;
  color: #cbbfb4;
}

.woocommerce-notices-wrapper, .woocommerce-message, .woocommerce-info {
  border-top-color: var(--oviya-burgundy) !important;
}
.woocommerce div.product .summary { padding-top: 8px; }
.woocommerce div.product p.price { color: var(--oviya-burgundy); font-size: 24px; }
.woocommerce-checkout .form-row input, .woocommerce-checkout .form-row textarea, .woocommerce-checkout .form-row select {
  border-radius: 0;
}

.oviya-form { display: grid; gap: 12px; max-width: 560px; }
.oviya-form input, .oviya-form textarea, .oviya-form select {
  border: 1px solid var(--oviya-line);
  padding: 10px 12px;
  width: 100%;
}
.oviya-form button {
  width: fit-content;
  background: var(--oviya-burgundy);
  color: #fff;
  border: 0;
  padding: 12px 20px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .oviya-header-inner, .oviya-cats, .oviya-about, .oviya-footer-grid, .oviya-grid, .products, ul.products {
    grid-template-columns: 1fr 1fr;
  }
  .oviya-header-inner { grid-template-columns: 1fr auto; }
  .oviya-nav { display: none; }
}
@media (max-width: 640px) {
  .oviya-cats, .oviya-grid, .products, ul.products, .oviya-footer-grid { grid-template-columns: 1fr; }
  .oviya-hero { min-height: 420px; }
}
