/*
Theme Name: Mia Jewelry
Theme URI: https://github.com/MIAFOREVER/shop
Author: Mia Forever
Description: A clean WooCommerce theme for a small jewelry store.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: mia-jewelry
*/

:root {
  --ink: #191612;
  --muted: #6f665d;
  --line: #e6ded3;
  --paper: #fffdf9;
  --porcelain: #f7f2ea;
  --sage: #8c9a84;
  --wine: #7c3f4c;
  --gold: #b58a45;
  --shadow: 0 18px 48px rgba(25, 22, 18, 0.11);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(230, 222, 211, 0.85);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner,
.site-main,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.nav-menu,
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-menu a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-link,
.button,
button.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
  padding: 10px 18px;
  text-decoration: none;
}

.button.secondary,
.woocommerce a.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.site-main {
  padding-block: 38px 72px;
}

.hero {
  display: grid;
  min-height: min(680px, calc(100vh - 110px));
  align-items: end;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(25, 22, 18, 0.78), rgba(25, 22, 18, 0.22) 54%, rgba(25, 22, 18, 0.05)),
    url("https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?auto=format&fit=crop&w=1800&q=88") center/cover;
  color: #fff;
}

.hero-content {
  width: min(680px, calc(100% - 48px));
  margin: 0 0 clamp(32px, 7vw, 88px) clamp(24px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero p {
  max-width: 560px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding-block: clamp(42px, 8vw, 84px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.woocommerce-products-header__title,
.entry-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1.02;
}

.section-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-tile {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--porcelain);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-tile:hover img {
  transform: scale(1.045);
}

.category-tile span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  font-weight: 800;
  padding: 14px 16px;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--porcelain);
  padding: clamp(28px, 6vw, 58px);
}

.feature-band img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-copy h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.feature-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-item {
  background: #fff;
  padding: 26px;
}

.trust-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.03rem;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  margin: 0 0 14px;
  object-fit: cover;
  background: var(--porcelain);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0 14px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 14px 12px;
  color: var(--wine);
  font-weight: 800;
}

.woocommerce ul.products li.product .button {
  margin: 0 14px 16px;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 44px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none;
  width: auto;
}

.woocommerce div.product .product_title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--wine);
  font-size: 1.5rem;
  font-weight: 800;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--gold);
  background: #fff;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--gold);
}

input,
textarea,
select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .category-grid,
  .feature-band,
  .trust-row,
  .woocommerce div.product {
    grid-template-columns: 1fr;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .header-inner,
  .site-main,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 590px;
    background-position: 58% center;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 34px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .section-heading,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

