/*
Theme Name: VXI Hair Accessories
Theme URI: http://localhost:8080
Author: VXI
Description: Storefront-style shop for VXI Hair Accessories.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: vxi
*/

:root {
  --green: #1b5c34;
  --ink: #1a2e22;
  --pink: #d41473;
  --muted: #5c564f;
  --line: #f0ebe6;
  --paper: #f6f2ec;
  --max: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #3a3a3a;
  background: #fff;
}
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; height: auto; }

.site-header { padding: 28px 40px 8px; }
.header-row { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: inherit; }
.brand-name {
  font-size: 22px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.brand-acc { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--pink); font-weight: 700; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.search-form { display: flex; align-items: center; border: 1px solid #e6e0da; border-radius: 999px; padding: 4px 4px 4px 14px; }
.search-form input { border: 0; outline: 0; width: 160px; font: inherit; font-size: 14px; background: transparent; }
.search-form button { background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.bag-link { background: var(--green); color: #fff; border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600; }

.main-nav { max-width: var(--max); margin: 8px auto 0; padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #3a3a3a; font-size: 16px; }
.main-nav .current-menu-item a, .main-nav a:hover { color: var(--green); }

.site-main { max-width: var(--max); margin: 0 auto; padding: 28px 40px 64px; }
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); }
.footer-row { max-width: var(--max); margin: 0 auto; padding: 18px 40px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }

.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; min-height: 320px; margin-bottom: 48px;
  background: linear-gradient(105deg, #f7f3ee 0%, #f3efe6 55%, #f8e7ef 100%);
}
.hero-copy { padding: 56px 48px; }
.eyebrow { letter-spacing: .18em; font-size: 12px; color: var(--pink); font-weight: 700; }
.hero h1 { margin: 12px 0; font-size: 48px; line-height: 1.05; color: var(--ink); font-weight: 600; }
.hero p { margin: 0; font-size: 18px; color: var(--muted); max-width: 460px; line-height: 1.5; }
.hero-art { display: grid; place-items: center; }
.hero-art img { width: 220px; height: 260px; object-fit: cover; background: #fff; box-shadow: 0 16px 30px rgba(27,92,52,.12); }
.btn { display: inline-block; margin-top: 22px; background: var(--green); color: #fff; padding: 12px 18px; font-weight: 600; }
.btn.line { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1px var(--green); margin-left: 10px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 18px; }
.section-head h2 { margin: 0; font-size: 28px; color: var(--ink); font-weight: 600; }

.page-copy { max-width: 680px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.page-copy h1 { color: var(--ink); font-size: 40px; font-weight: 600; margin-top: 0; }
.page-copy.contact-page { max-width: none; }
.contact-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.contact-map iframe { width: 100%; height: 420px; border: 0; background: var(--paper); display: block; }
.contact-details { margin: 16px 0 0; color: var(--muted); line-height: 1.6; }
.contact-form label { display: block; margin: 0 0 14px; color: var(--ink); font-weight: 600; font-size: 14px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  display: block; width: 100%; margin-top: 6px; height: 48px; border: 1px solid var(--green);
  border-radius: 0; padding: 0 12px; font: inherit; font-weight: 500; color: var(--ink); background: #fff;
}
.contact-form textarea { height: 140px; padding: 12px; resize: vertical; }
.contact-form button {
  height: 48px; padding: 0 18px; background: var(--green); color: #fff; border: 1px solid var(--green);
  border-radius: 0; font: inherit; font-weight: 600; cursor: pointer;
}
.contact-note { background: #f3efe6; padding: 12px 14px; margin: 0 0 16px; color: var(--ink); }
.contact-note.error { background: #fde8f1; color: var(--pink); }

ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
  content: none !important;
  display: none !important;
}
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: left; }
ul.products li.product a img, ul.products li.product img { width: 100%; height: 320px; object-fit: cover; background: var(--paper); margin: 0 0 14px; }
ul.products li.product .woocommerce-loop-product__title { font-size: 18px; color: var(--ink); padding: 0; font-weight: 600; }
ul.products li.product .price { color: var(--green); font-size: 16px; }
ul.products li.product .button {
  background: transparent; color: var(--green); border-bottom: 1px solid var(--green); border-radius: 0;
  padding: 0 0 2px; margin-top: 8px; font-weight: 600;
}
ul.products li.product .button:hover { background: transparent; color: var(--pink); }
.onsale { background: #fff !important; color: var(--pink) !important; border-radius: 0; font-weight: 700; letter-spacing: .06em; min-height: 0; line-height: 1.4; padding: 4px 8px; }

.woocommerce-result-count, .woocommerce-ordering { margin-bottom: 18px; }
.woocommerce-ordering select { border: 1px solid #e6e0da; border-radius: 999px; padding: 8px 12px; }

.single-product div.product {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px 56px;
  align-items: start;
}
.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; width: auto !important; float: none; }
.single-product div.product > .summary { grid-column: 2; grid-row: 1; width: auto !important; float: none; }
.woocommerce.single-product div.product > .woocommerce-tabs,
.woocommerce.single-product div.product > section.related,
.woocommerce.single-product div.product > .upsells {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  float: none !important;
  clear: both;
  margin: 8px 0 0;
}
.single-product div.product > .clear { display: none; }
.single-product section.related > h2,
.single-product .upsells > h2 {
  margin: 12px 0 20px;
  font-size: 28px;
  color: var(--ink);
  font-weight: 600;
}
.single-product div.product .summary .product_title { font-size: 40px; color: var(--ink); font-weight: 600; }
.single-product .price { color: var(--green); font-size: 24px; }
.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.woocommerce div.product form.cart .quantity {
  margin: 0 !important;
  float: none !important;
}
.woocommerce div.product form.cart .quantity .qty {
  width: 72px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 1px solid var(--green) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center;
  box-shadow: none !important;
  box-sizing: border-box;
}
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.checkout-button,
#place_order {
  background: var(--green) !important;
  color: #fff !important;
  border: 1px solid var(--green) !important;
  border-radius: 0 !important;
  height: 48px !important;
  padding: 0 18px !important;
  font-weight: 600;
  line-height: 46px !important;
  margin: 0;
  box-sizing: border-box;
}
.woocommerce-cart table.cart img { width: 72px; height: 88px; object-fit: cover; }
.cart_totals, .woocommerce-checkout #order_review { background: #faf7f4; padding: 20px; }

@media (max-width: 800px) {
  .hero, .single-product div.product, .header-row, .footer-row, .contact-layout { display: block; }
  ul.products { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .site-header, .site-main { padding-left: 20px; padding-right: 20px; }
  .search-form { display: none; }
}
