/*
Theme Name: Xan Vita
Theme URI: https://xanvita.pl
Description: Dedykowany motyw WooCommerce dla Xan Vita. Czysta typografia, responsywność i koszyk AJAX.
Author: Xan Vita
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: xan-vita
*/

:root {
  --color-surface: #f6fbf1;
  --color-surface-dim: #d6dcd2;
  --color-surface-bright: #f6fbf1;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f0f5eb;
  --color-surface-container: #eaf0e6;
  --color-surface-container-high: #e4eae0;
  --color-surface-container-highest: #dfe4da;
  --color-on-surface: #171d17;
  --color-on-surface-variant: #424844;
  --color-primary: #00140a;
  --color-primary-container: #0f2a1d;
  --color-midgreen: #1e4632;
  --color-secondary: #3f6751;
  --color-tertiary: #755b00;
  --color-tertiary-container: #c9a227;
  --color-gold: #c9a227;
  --color-gold-hover: #b89220;
  --color-hairline: #e2e7df;
  --color-sage: #edf1ea;
  --color-grey: #6b7169;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
}

.font-smallcaps {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.link-tertiary {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-gold);
  transition: opacity 0.2s ease;
}
.link-tertiary:hover {
  opacity: 0.8;
}

.btn-primary-dark {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 52px;
  border-radius: 2px;
  background-color: var(--color-primary-container);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.btn-primary-dark:hover {
  background-color: var(--color-midgreen);
  color: #ffffff;
}

.btn-primary-gold {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 52px;
  border-radius: 2px;
  background-color: var(--color-gold);
  color: #111111;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.btn-primary-gold:hover {
  background-color: var(--color-gold-hover);
  color: #111111;
}

/* Explicit Utility Classes for Backgrounds, Borders and Text */
.bg-brand-forest {
  background-color: #0F2A1D !important;
}
.bg-brand-midgreen {
  background-color: #1E4632 !important;
}
.bg-brand-sage {
  background-color: #EDF1EA !important;
}
.bg-brand-gold {
  background-color: #C9A227 !important;
}
.text-brand-forest {
  color: #0F2A1D !important;
}
.text-brand-gold {
  color: #C9A227 !important;
}
.text-brand-dark {
  color: #111111 !important;
}
.text-brand-grey {
  color: #6B7169 !important;
}
.border-brand-midgreen {
  border-color: #1E4632 !important;
}
.border-brand-hairline {
  border-color: #E2E7DF !important;
}
.border-brand-gold {
  border-color: #C9A227 !important;
}

/* Cart Drawer Transitions */
#xv-cart-drawer-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#xv-cart-drawer-panel {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* WooCommerce Forms, Cart & Checkout Polishing */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--color-hairline);
  padding: 10px 14px;
  border-radius: 2px;
  background-color: #ffffff;
  color: #111111;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
}
.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(--color-gold);
  box-shadow: 0 0 0 1px var(--color-gold);
}
.woocommerce form .form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary-container);
  margin-bottom: 4px;
  display: block;
}
.woocommerce #payment #place_order,
.woocommerce .cart .button,
.woocommerce .checkout_coupon .button {
  background-color: var(--color-gold) !important;
  color: #111111 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 14px 28px !important;
  border-radius: 2px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}
.woocommerce #payment #place_order:hover,
.woocommerce .cart .button:hover,
.woocommerce .checkout_coupon .button:hover {
  background-color: var(--color-gold-hover) !important;
}
.woocommerce table.shop_table {
  border: 1px solid var(--color-hairline) !important;
  border-radius: 2px !important;
  background-color: #ffffff !important;
}
.woocommerce table.shop_table th {
  background-color: var(--color-sage) !important;
  color: var(--color-primary-container) !important;
  font-family: 'Playfair Display', serif !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
}
.woocommerce table.shop_table td {
  border-top: 1px solid var(--color-hairline) !important;
  padding: 12px 16px !important;
}
.woocommerce-message,
.woocommerce-info {
  background-color: var(--color-sage) !important;
  border-top: 3px solid var(--color-gold) !important;
  color: var(--color-primary-container) !important;
  border-radius: 2px !important;
}
.woocommerce-error {
  background-color: #fdf2f2 !important;
  border-top: 3px solid #dc2626 !important;
  color: #991b1b !important;
}
