/*
Theme Name: Storefront Child
Template: storefront
Version: 1.1
*/

/* ------------------------------------------------------------
   Personalised Glass - "etched glass" look
   Cool frosted tints, bottle-green ink, a touch of champagne.
   ------------------------------------------------------------ */

:root {
  --pg-ink: #1f2a30;        /* text */
  --pg-green: #1e4d45;      /* bottle green - buttons, links */
  --pg-green-dark: #163a34;
  --pg-frost: #eef3f2;      /* frosted glass tint - section backgrounds */
  --pg-line: #d5dedc;       /* borders */
  --pg-muted: #5f6d70;      /* secondary text */
  --pg-gold: #b8955a;       /* champagne accent, used sparingly */
  --pg-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --pg-sans: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- Base type ---------- */
body {
  font-family: var(--pg-sans);
  color: var(--pg-ink);
  background: #fff;
}
h1, h2, h3, h4,
.entry-title,
.product_title,
.section-title,
.woocommerce-loop-category__title {
  font-family: var(--pg-serif);
  font-weight: 600;
  color: var(--pg-ink);
  letter-spacing: 0;
  line-height: 1.15;
}
h1, .entry-title, .product_title { font-size: 2.6rem; }
a { color: var(--pg-green); }
a:hover, a:focus { color: var(--pg-green-dark); }
:focus-visible { outline: 2px solid var(--pg-gold); outline-offset: 2px; }

/* ---------- Header ---------- */
/* Header background, text and link colours come from
   Appearance -> Customize -> Header */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5em;
}
.site-branding .site-title a {
  font-family: var(--pg-serif);
  font-size: 2.1rem;
  font-weight: 600;
}
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
  font-weight: 500;
  padding-top: 1.1em;
  padding-bottom: 1.1em;
}
.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover,
.main-navigation ul.menu > li.current-menu-item > a,
.main-navigation ul.nav-menu > li.current-menu-item > a {
  box-shadow: inset 0 -2px 0 var(--pg-gold);
}
.site-search .widget_product_search input[type="search"] {
  border-radius: 999px;
  box-shadow: none;
}
.storefront-breadcrumb {
  background: transparent;
  border-bottom: 1px solid var(--pg-line);
  margin-bottom: 2.5em;
}

/* ---------- Buttons ---------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.added_to_cart,
.wc-block-components-button:not(.is-link) {
  background: var(--pg-green);
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-family: var(--pg-sans);
  font-weight: 600;
  padding: 0.85em 1.6em;
  transition: background-color 0.15s ease;
}
button:hover,
input[type="submit"]:hover,
.button:hover,
.added_to_cart:hover,
.wc-block-components-button:not(.is-link):hover {
  background: var(--pg-green-dark);
  color: #fff;
}
.single-product div.product form.cart .button,
.single_add_to_cart_button {
  font-size: 1.05rem;
  padding: 1em 2.2em;
}

/* ---------- Product grid ---------- */
ul.products li.product {
  text-align: left;
}
ul.products li.product img {
  border-radius: 6px;
  background: var(--pg-frost);
  margin-bottom: 1em;
  transition: transform 0.25s ease;
}
ul.products li.product a:hover img { transform: translateY(-3px); }
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--pg-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--pg-ink);
  line-height: 1.35;
}
ul.products li.product .price {
  color: var(--pg-green);
  font-weight: 600;
  margin-bottom: 0.8em;
}
ul.products li.product .button {
  padding: 0.6em 1.2em;
  font-size: 0.9rem;
}
.onsale {
  background: var(--pg-gold);
  border: 0;
  border-radius: 3px;
  color: #fff;
}

/* ---------- Single product ---------- */
.single-product div.product .product_title { margin-bottom: 0.3em; }
.single-product div.product p.price {
  color: var(--pg-green);
  font-size: 1.6rem;
  font-weight: 600;
}
.single-product div.product .woocommerce-product-gallery img {
  border-radius: 6px;
}
.woocommerce-tabs ul.tabs li a { color: var(--pg-ink); }
.woocommerce-tabs ul.tabs li.active a { color: var(--pg-green); }

/* Personalisation boxes and preview */
.pg-fields {
  background: var(--pg-frost);
  border: 1px solid var(--pg-line);
  border-radius: 6px;
  padding: 1.25em 1.25em 0.25em;
  margin-bottom: 1.5em;
}
.pg-field label { margin-bottom: 0.3em; }
.pg-field input {
  background: #fff;
  border: 1px solid var(--pg-line);
  border-radius: 4px;
  box-shadow: none;
  padding: 0.7em 0.9em;
}
.pg-field input:focus { border-color: var(--pg-green); }
.pg-preview-img {
  border-radius: 6px;
  border-color: var(--pg-line);
}

/* ---------- Homepage ---------- */
.wp-block-cover {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3em;
}
.wp-block-cover.alignfull {
  border-radius: 0;
}
.wp-block-cover h1,
.wp-block-cover h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.storefront-product-section {
  margin-bottom: 3.5em;
}
.storefront-product-section .section-title {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 1em;
}
.storefront-product-categories {
  background: var(--pg-frost);
  border-radius: 8px;
  padding: 2.5em 2em 1em;
}
.woocommerce-loop-category__title {
  font-size: 1.3rem;
  text-align: center;
}
.woocommerce-loop-category__title mark { display: none; } /* hide product counts */

/* Homepage: hide the page title and tighten the top spacing */
.page-template-template-homepage .entry-header {
  display: none;
}
.page-template-template-homepage .site-main {
  padding-top: 0;
}
.page-template-template-homepage .storefront-breadcrumb {
  margin-bottom: 0;
  border-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pg-green-dark);
  color: #cfdcd9;
}
.site-footer a:not(.button):not(.components-button) { color: #fff; }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
  h1, .entry-title, .product_title { font-size: 2rem; }
  .storefront-product-categories { padding: 1.5em 1em 0.5em; }
}

@media (prefers-reduced-motion: reduce) {
  ul.products li.product img { transition: none; }
  ul.products li.product a:hover img { transform: none; }
}

/* ---------- Category pages ---------- */
.term-description {
  color: var(--pg-muted);
  max-width: 50em;
  margin-bottom: 2em;
}
.pg-category-text {
  border-top: 1px solid var(--pg-line);
  margin-top: 3em;
  padding-top: 2em;
  max-width: 50em;
  color: var(--pg-muted);
}
.pg-category-text h2 { font-size: 1.8rem; }
.pg-category-text h3 { font-size: 1.4rem; }
