/*
Theme Name: Lo Castro Child
Template: twentytwentyfive
Description: Child theme for shop.gioiellerialocastro.com — restyles WooCommerce
  templates (My Account, Cart, Checkout) to match the Next.js storefront's
  brand: warm cream/white surfaces, dark brown text, serif display typography,
  uppercase letter-spaced labels.
Version: 2.5.1
Author: Gioielleria Lo Castro
*/

/* ─────────────────────────────
   BRAND TOKENS
   (mirrors the Next.js site's tokens.css / theme.ts)
   ───────────────────────────── */

:root {
  --lc-bg: #ffffff;
  --lc-surface: #F2F0EF;
  --lc-text: #4A2F1B;
  --lc-border: rgba(74, 47, 27, 0.18);
  --lc-border-subtle: rgba(74, 47, 27, 0.10);
  --lc-font-display: "Cinzel", serif;
  --lc-font-serif: "Playfair Display", serif;
}

/* ─────────────────────────────
   GLOBAL — applies across My Account, Cart, Checkout
   ───────────────────────────── */
.woocommerce-account main .woocommerce{
  margin: 1rem;
  max-width: 100%;
}
.woocommerce-account .wp-block-post-title{
  max-width: 100%;
}

/* Prevents a horizontal scrollbar (and the few-pixel off-center drift
   it causes) on any full-bleed section built with the width:100vw +
   negative-margin breakout trick — e.g. .lc-category in category.css,
   .lc-mobile-menu in mobile-menu.css. 100vw includes the vertical
   scrollbar's own width, so without this, a tall/scrollable page makes
   those sections a few pixels wider than the visible viewport. */
html {
  overflow-x: hidden;
}

.woocommerce,
.woocommerce-page {
  color: var(--lc-text);
  font-family: var(--lc-font-serif);
  font-size: 15px;
  line-height: 1.7;
}


.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3,
.entry-title,
h1.wp-block-post-title {
  font-family: var(--lc-font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lc-text);
}

.woocommerce a {
  color: var(--lc-text);
}

/* ─────────────────────────────
   FORMS (Login, Register, Addresses, Account details)
   ───────────────────────────── */

.woocommerce form .form-row label {
  font-family: var(--lc-font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-text);
  opacity: 0.75;
  margin-bottom: 8px;
  display: inline-block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce table.shop_table input.input-text {
  border: 1px solid var(--lc-border);
  border-radius: 0;
  background: var(--lc-bg);
  color: var(--lc-text);
  font-family: var(--lc-font-serif);
  font-size: 14px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--lc-text);
}

.woocommerce-form-login,
.woocommerce-form-register {
  background: var(--lc-surface);
  border: 1px solid var(--lc-border-subtle);
  padding: 32px;
}

.woocommerce-form-login-toggle,
.woocommerce-form-register-toggle {
  display: none;
}

/* ─────────────────────────────
   BUTTONS
   ───────────────────────────── */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-Button,
.woocommerce form .form-row .button {
  background: var(--lc-text);
  color: #ffffff;
  border: 1px solid var(--lc-text);
  border-radius: 0;
  font-family: var(--lc-font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: opacity 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-Button:hover {
  background: var(--lc-text);
  color: #ffffff;
  opacity: 0.85;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--lc-text);
  color: #ffffff;
}

/* ─────────────────────────────
   ORDERS TABLE, CART, CHECKOUT
   ───────────────────────────── */

.woocommerce table.shop_table {
  border: none;
  border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border: none;
  border-bottom: 1px solid var(--lc-border-subtle);
  font-size: 13px;
}

.woocommerce table.shop_table th {
  font-family: var(--lc-font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.7;
}

.woocommerce-order-details,
.woocommerce-customer-details {
  background: var(--lc-surface);
  padding: 24px;
  margin-top: 24px;
}

/* ─────────────────────────────
   NOTICES / ALERTS — site-wide default (cart, checkout, anywhere a
   WooCommerce notice can appear outside the account area). The account
   page overrides this with its own Alert-style version in account.css,
   which loads after this file only on /my-account/*.
   ───────────────────────────── */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  background: var(--lc-surface);
  border: 1px solid var(--lc-border);
  border-top: 3px solid var(--lc-text);
  color: var(--lc-text);
  padding: 16px 20px;
  font-size: 13px;
  border-radius: 0;
  list-style: none;
}

.woocommerce-error li {
  list-style: none;
}

/* ─────────────────────────────
   HEADER — replicates Next.js Header.tsx
   (rendered via the [lc_header] shortcode in the Header template part)
   ───────────────────────────── */

.lc-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #f4f4f2;
  color: #111;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  font-family: var(--lc-font-serif);
  letter-spacing: 0.08em;
  padding: 0.1rem 0;
}

.lc-header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.lc-header-inner {
  position: relative;
  height: 6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.lc-header-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border-radius: 2px;
}

.lc-header-logo:focus-visible {
  outline: 1px solid rgba(74, 47, 27, 0.4);
  outline-offset: 4px;
}

.lc-header-logo img {
  height: 42px;
  width: auto;
}

.lc-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lc-header-menu-btn {
  appearance: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  outline: none;
  border-radius: 4px;
}

.lc-header-menu-btn:hover {
  opacity: 1;
}

.lc-header-menu-btn:focus-visible {
  outline: 1px solid rgba(74, 47, 27, 0.4);
  outline-offset: 3px;
}

.lc-header-desktop-nav {
  display: flex;
  gap: 24px;
}

@media (max-width: 900px) {
  .lc-header-desktop-nav {
    display: none;
  }
}

.lc-header-navlink {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  font-family: var(--lc-font-serif);
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  outline: none;
  border-radius: 2px;
}

.lc-header-navlink:hover {
  opacity: 1;
}

.lc-header-navlink:focus-visible {
  outline: 1px solid rgba(74, 47, 27, 0.4);
  outline-offset: 3px;
}

.lc-header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .lc-header-right {
    gap: 0;
  }
}

.lc-header-desktop-only {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .lc-header-desktop-only {
    display: none;
  }
}

.lc-header-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: inherit;
  opacity: 0.9;
  text-decoration: none;
  transition: opacity 0.2s ease;
  outline: none;
}

.lc-header-iconbtn:hover {
  opacity: 1;
}

.lc-header-iconbtn:focus-visible {
  outline: 1px solid rgba(74, 47, 27, 0.4);
  outline-offset: 3px;
}

.lc-header-iconbtn img {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .lc-header-iconbtn {
    width: 28px;
    height: 28px;
  }
}

.lc-header-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 14px;
  padding: 0;
  border-radius: 999px;
  background: #C2A46D;
  color: #0b0b0c;
  font-size: 10px;
  font-weight: 400;
  font-family: arial;
  text-align: center;
}

/* ─────────────────────────────
   FOOTER — replicates Next.js Footer.tsx
   (rendered via the [lc_footer] shortcode in the Footer template part)
   ───────────────────────────── */

.lc-footer {
  background: var(--lc-surface);
  color: var(--lc-text);
  border-top: 1px solid var(--lc-border);
  margin-top: 3rem;
}

.lc-footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 20px 34px;
}

.lc-footer-brand {
  font-family: var(--lc-font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 56px;
}

.lc-footer-grid {
  display: grid;
  grid-template-columns: 0.95fr 0.95fr 0.95fr 0.95fr;
  gap: 54px;
}

@media (max-width: 1180px) {
  .lc-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .lc-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.lc-footer-coltitle {
  font-family: var(--lc-font-serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.lc-footer-links {
  display: grid;
  gap: 10px;
}

.lc-footer-links a {
  text-decoration: none;
  color: inherit;
  font-family: var(--lc-font-serif);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.lc-footer-links a:hover {
  opacity: 1;
}

.lc-footer-divider {
  height: 1px;
  background: var(--lc-border);
  margin: 60px 0 40px;
}

.lc-footer-newsletter-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 60px;
}

@media (max-width: 700px) {
  .lc-footer-newsletter-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.lc-footer-logo-wrap img {
  width: 90px;
  height: auto;
  opacity: 0.9;
}

.lc-footer-newsletter {
  max-width: 520px;
}

.lc-footer-newsletter-title {
  font-family: var(--lc-font-display);
  font-size: 18px;
  margin-bottom: 18px;
}

.lc-footer-form {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--lc-border);
  padding-bottom: 10px;
}

.lc-footer-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--lc-font-serif);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--lc-text);
}

.lc-footer-submit {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--lc-font-serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  color: var(--lc-text);
  transition: opacity 0.2s ease;
}

.lc-footer-submit:hover {
  opacity: 1;
}

.lc-footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--lc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 800px) {
  .lc-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.lc-footer-copyright {
  font-family: var(--lc-font-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.78;
}

.lc-footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lc-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lc-footer-social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* ── Focus states ──
   Same treatment as the header and mobile menu: remove the browser's
   heavy default outline, replace with a subtle branded one that only
   shows on keyboard focus, not on mouse click. */
.lc-footer-links a,
.lc-footer-input,
.lc-footer-submit,
.lc-footer-social-link {
  outline: none;
  border-radius: 2px;
}

.lc-footer-links a:focus-visible,
.lc-footer-input:focus-visible,
.lc-footer-submit:focus-visible,
.lc-footer-social-link:focus-visible {
  outline: 1px solid rgba(74, 47, 27, 0.4);
  outline-offset: 3px;
}