/*
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 0 0; }
.header-row, .main-nav, .site-main, .footer-row {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}
.header-row { 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; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--green);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex: 0 0 44px;
}
.nav-toggle-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
  display: block; width: 18px; height: 2px; background: var(--green); position: relative;
}
.nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-open .nav-toggle-icon { background: transparent; }
.nav-open .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }
.main-nav { margin-top: 8px; padding-top: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 12px 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 { padding-top: 28px; padding-bottom: 64px; }
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); }
.footer-row { padding-top: 18px; padding-bottom: 18px; 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); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; background: var(--green); color: #fff; font-weight: 600; border: 1px solid var(--green); }
.btn.line { background: transparent; color: var(--green); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; 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 {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 12px;
  padding: 0 14px; background: transparent; color: var(--green); border: 1px solid var(--green); border-radius: 0; font-weight: 600;
}
ul.products li.product .button:hover { background: var(--green); color: #fff; }
.woocommerce span.onsale { background: #fff !important; color: var(--pink) !important; border-radius: 0 !important; font-weight: 700; letter-spacing: .06em; min-height: 0 !important; min-width: 0 !important; line-height: 1.4 !important; padding: 4px 8px !important; }

.woocommerce .woocommerce-result-count { float: left; margin: 10px 0 18px; }
.woocommerce .woocommerce-ordering { float: right; margin: 0 0 18px; }
ul.products { clear: both; }
.woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .coupon input.input-text {
  height: 48px; border: 1px solid var(--green); border-radius: 0; padding: 0 12px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 500;
}
.woocommerce form .form-row textarea { height: 140px; padding: 12px; }
.woocommerce-products-header__title.page-title { color: var(--ink); font-size: 40px; font-weight: 600; margin-top: 0; }
.woocommerce-breadcrumb { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.woocommerce-message, .woocommerce-info { background: #f3efe6; color: var(--ink); border-top: 0; }
.woocommerce-error { background: #fde8f1; color: var(--pink); border-top: 0; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; height: auto;
  padding: 0 18px; background: transparent; color: var(--green); border: 1px solid var(--green); border-radius: 0; font-weight: 600; line-height: 1.2;
}
.woocommerce .select2-container .select2-selection--single { height: 48px; border: 1px solid var(--green); border-radius: 0; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 12px; color: var(--ink); }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.woocommerce .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; width: auto; float: none; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { float: none; width: auto; }
.woocommerce form .form-row { padding: 0; margin: 0 0 14px; }
.woocommerce .coupon, .woocommerce form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.woocommerce .coupon input.input-text { flex: 1; min-width: 160px; width: auto; }
.woocommerce div.product div.images img { width: 100%; height: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: #fff; border: 1px solid var(--line); border-radius: 0; margin: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-color: var(--green); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 14px; font-weight: 600; color: var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
@media (min-width: 801px) {
  .woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
}

.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 table.shop_table { width: 100%; border: 0; border-collapse: collapse; }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border-top: 1px solid var(--line); padding: 14px 8px; }
.woocommerce-cart table.cart img { width: 72px; height: 88px; object-fit: cover; }
.cart_totals, .woocommerce-checkout #order_review { background: #faf7f4; padding: 20px; }
.cart-collaterals { margin-top: 24px; }
.wc-block-components-button.contained,
.wc-block-components-checkout-place-order-button {
  background: var(--green) !important;
  color: #fff !important;
  border: 1px solid var(--green) !important;
  border-radius: 0 !important;
  min-height: 48px;
  font-weight: 600;
}
.wc-block-components-quantity-selector {
  border: 1px solid var(--green) !important;
  border-radius: 0 !important;
  height: 48px;
}
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  font-weight: 600;
  color: var(--ink);
}
.wc-block-components-text-input input,
.wc-block-components-form .wc-block-components-text-input input {
  border: 1px solid var(--green) !important;
  border-radius: 0 !important;
}
.cart_totals, .woocommerce-checkout #order_review { max-width: 100%; }

@media (max-width: 900px) {
  .header-row, .main-nav, .site-main, .footer-row { padding-left: 20px; padding-right: 20px; }
  .header-row { flex-wrap: wrap; align-items: center; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .nav-open .main-nav { display: block; }
  .nav-open .main-nav ul { flex-direction: column; gap: 0; }
  .nav-open .main-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
  .header-tools { flex: 1; justify-content: flex-end; min-width: 0; }
  .search-form { flex: 1; min-width: 0; }
  .search-form input { width: 100%; min-width: 0; }
  .hero, .single-product div.product, .contact-layout, .footer-row, .woocommerce .col2-set { display: block; }
  .hero-copy { padding: 32px 24px 8px; }
  .hero h1, .page-copy h1, .woocommerce-products-header__title.page-title, .single-product div.product .summary .product_title { font-size: 32px; }
  .hero-art { padding: 8px 24px 28px; }
  .hero-art img { width: min(220px, 70%); height: auto; }
  ul.products { grid-template-columns: 1fr 1fr; gap: 20px; }
  ul.products li.product a img, ul.products li.product img { height: 220px; }
  .single-product div.product > .woocommerce-product-gallery,
  .single-product div.product > .summary { width: 100% !important; margin: 0 0 8px; }
  .contact-map { margin-bottom: 28px; }
  .contact-map iframe { height: 280px; }
  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering { float: none; width: 100%; margin: 0 0 12px; text-align: left; }
  .woocommerce .woocommerce-ordering select { width: 100%; }
}

@media (max-width: 640px) {
  .brand-name { font-size: 18px; letter-spacing: .1em; }
  .brand-acc { letter-spacing: .14em; }
  .header-row { align-items: center; }
  .header-tools { display: contents; }
  .brand { order: 1; }
  .nav-toggle { order: 2; margin-left: auto; }
  .bag-link { order: 3; margin-left: 10px; }
  .search-form { order: 4; flex: 1 1 100%; width: 100%; }
  .main-nav a { font-size: 15px; }
  .hero-copy { padding: 28px 20px 4px; }
  .hero h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  ul.products { grid-template-columns: 1fr; }
  ul.products li.product a img, ul.products li.product img { height: auto; aspect-ratio: 4 / 5; }
  ul.products li.product .button { width: 100%; }
  .woocommerce div.product form.cart { flex-wrap: wrap; }
  .woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; min-width: 160px; }
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive,
  .woocommerce table.shop_table_responsive tbody,
  .woocommerce table.shop_table_responsive tr,
  .woocommerce table.shop_table_responsive td { display: block; width: 100%; }
  .woocommerce table.shop_table_responsive tr { margin: 0 0 16px; border: 1px solid var(--line); }
  .woocommerce table.shop_table_responsive td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    text-align: right; border: 0; border-bottom: 1px solid var(--line);
  }
  .woocommerce table.shop_table_responsive td::before {
    content: attr(data-title);
    font-weight: 600;
    color: var(--ink);
    text-align: left;
  }
  .woocommerce table.shop_table_responsive td.product-remove { justify-content: flex-end; }
  .woocommerce table.shop_table_responsive td.actions { display: block; text-align: left; }
  .woocommerce table.shop_table_responsive td.actions .coupon { width: 100%; }
  .footer-row span { display: block; }
  .footer-row { display: grid; gap: 8px; }
}
