/*
 * Theme Name:  Velora & Co. Child
 * Theme URI:   https://veloraandco.com
 * Description: Child theme for Velora & Co. Wedding Invitation Shop — based on Storefront
 * Author:      Velora & Co.
 * Template:    storefront
 * Version:     1.0.0
 * License:     GNU General Public License v2 or later
 * Text Domain: velora-child
*/

/* ============================================================
   VELORA & CO. — DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --cream:       #faf8f3;
  --cream-dark:  #f2ede3;
  --gold:        #b89b6e;
  --gold-light:  #d4ba8a;
  --gold-dark:   #8a7050;
  --charcoal:    #1e1b17;
  --brown-mid:   #5c5040;
  --brown-soft:  #8a7860;
  --text-hint:   #b0a090;
  --border:      #e4d9cc;
  --border-mid:  #cfc0ac;
  --white:       #ffffff;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', system-ui, sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans) !important;
  background-color: var(--cream) !important;
  color: var(--charcoal) !important;
  font-size: 15px !important;
  font-weight: 300 !important;
  line-height: 1.6 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif) !important;
  font-weight: 300 !important;
  color: var(--charcoal) !important;
  line-height: 1.15 !important;
}

a { color: var(--gold-dark); transition: color 0.2s; }
a:hover { color: var(--charcoal); text-decoration: none; }

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

/* ── UTILITY ── */
.velora-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 400; font-family: var(--font-sans);
  margin-bottom: 14px;
}
.velora-eyebrow::before,
.velora-eyebrow::after {
  content: ''; display: block; width: 24px; height: 0.5px; background: var(--gold-light);
}

.velora-section-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(34px, 4vw, 52px) !important;
  font-weight: 300 !important;
  color: var(--charcoal) !important;
}
.velora-section-title em { font-style: italic; color: var(--gold); }

/* ============================================================
   STOREFRONT OVERRIDES — HEADER / NAV
   ============================================================ */

.site-header {
  background: var(--cream) !important;
  border-bottom: 0.5px solid var(--border) !important;
  padding: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  box-shadow: none !important;
  transition: box-shadow 0.3s !important;
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.06) !important;
}

.storefront-primary-navigation {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.site-branding {
  flex-shrink: 0;
}
.site-title {
  font-family: var(--font-serif) !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--charcoal) !important;
  margin: 0 !important;
}
.site-title a { color: var(--charcoal) !important; }
.site-title a:hover { color: var(--gold) !important; }

/* Primary Menu */
.main-navigation ul li a {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  color: var(--brown-mid) !important;
  padding: 8px 0 !important;
  transition: color 0.2s !important;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--gold) !important;
  text-decoration: none !important;
}
.main-navigation ul li + li { margin-left: 36px; }

/* Header cart / search */
.storefront-header-cart a,
.site-search .search-field {
  font-family: var(--font-sans) !important;
  color: var(--brown-soft) !important;
}
.site-search .search-submit { background: var(--charcoal) !important; }

/* ============================================================
   BUTTONS
   ============================================================ */

.button,
button,
input[type="button"],
input[type="submit"],
.wc-block-components-button {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  background: var(--charcoal) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 13px 28px !important;
  transition: background 0.25s !important;
  cursor: pointer !important;
}
.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--gold-dark) !important;
  color: var(--cream) !important;
}

.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--gold) !important;
}
.button.alt:hover { background: var(--gold-dark) !important; }

/* ============================================================
   SHOP PAGE — PRODUCT ARCHIVE
   ============================================================ */

/* Page title area */
.woocommerce-products-header {
  text-align: center;
  padding: 64px 48px 48px;
  border-bottom: 0.5px solid var(--border);
}
.woocommerce-products-header__title {
  font-family: var(--font-serif) !important;
  font-size: clamp(42px, 6vw, 72px) !important;
  font-weight: 300 !important;
  color: var(--charcoal) !important;
}

/* Filter bar / ordering */
.woocommerce-ordering,
.woocommerce-result-count {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  color: var(--text-hint) !important;
}
.woocommerce-ordering select {
  border: 0.5px solid var(--border) !important;
  border-radius: 0 !important;
  font-family: var(--font-sans) !important;
  padding: 8px 12px !important;
}

/* Product Grid */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
  border-top: 0.5px solid var(--border) !important;
  margin: 0 !important;
  padding: 0 !important;
}

ul.products li.product {
  border-right: 0.5px solid var(--border) !important;
  border-bottom: 0.5px solid var(--border) !important;
  background: var(--white) !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  position: relative !important;
  overflow: hidden !important;
  transition: box-shadow 0.3s !important;
}
ul.products li.product:nth-child(3n) {
  border-right: none !important;
}
ul.products li.product:hover {
  box-shadow: 0 8px 40px rgba(30,27,23,0.08) !important;
  z-index: 2 !important;
}

/* Product image */
ul.products li.product .woocommerce-loop-product__link {
  display: block !important;
  text-decoration: none !important;
}

ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 3/4 !important;
  object-fit: cover !important;
  transition: transform 0.5s ease !important;
}
ul.products li.product:hover img {
  transform: scale(1.04) !important;
}

/* Product info */
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-serif) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--charcoal) !important;
  padding: 0 !important;
  margin-bottom: 6px !important;
}

ul.products li.product .price {
  color: var(--brown-mid) !important;
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}

ul.products li.product .velora-card-info {
  padding: 18px 22px 22px;
  border-top: 0.5px solid var(--border);
}

ul.products li.product .velora-card-style {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-hint);
  margin-bottom: 4px;
  font-family: var(--font-sans);
}

ul.products li.product .button {
  position: absolute !important;
  bottom: 0; left: 0; right: 0 !important;
  transform: translateY(100%) !important;
  transition: transform 0.3s !important;
  border-radius: 0 !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
}
ul.products li.product:hover .button {
  transform: translateY(0) !important;
}

/* Sale badge */
.onsale {
  background: var(--gold) !important;
  border-radius: 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 10px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  padding: 4px 10px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
  border-radius: 0 !important;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */

.single-product div.product {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  max-width: 1100px !important;
  margin: 64px auto !important;
  border: 0.5px solid var(--border) !important;
  background: var(--white) !important;
}

.single-product .woocommerce-product-gallery {
  border-right: 0.5px solid var(--border) !important;
}

.single-product .summary {
  padding: 48px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: var(--text-hint) !important;
  margin-bottom: 20px !important;
}
.woocommerce-breadcrumb a { color: var(--text-hint) !important; }

/* Product title */
.single-product .product_title {
  font-family: var(--font-serif) !important;
  font-size: clamp(30px, 3.5vw, 48px) !important;
  font-weight: 300 !important;
  color: var(--charcoal) !important;
  margin-bottom: 8px !important;
}

/* Category tag */
.posted_in {
  font-size: 10px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  font-family: var(--font-sans) !important;
  margin-bottom: 20px !important;
  display: block !important;
}
.posted_in a { color: var(--gold) !important; }

/* Price */
.single-product .price {
  font-family: var(--font-serif) !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  color: var(--brown-mid) !important;
  margin-bottom: 24px !important;
}

/* Short description */
.woocommerce-product-details__short-description {
  font-size: 14px !important;
  color: var(--brown-soft) !important;
  line-height: 1.8 !important;
  font-weight: 300 !important;
  margin-bottom: 28px !important;
  padding-bottom: 28px !important;
  border-bottom: 0.5px solid var(--border) !important;
}

/* Add to cart */
.single_add_to_cart_button {
  width: 100% !important;
  text-align: center !important;
  padding: 16px 28px !important;
  font-size: 12px !important;
  letter-spacing: 2.5px !important;
  margin-top: 24px !important;
}

/* Meta */
.product_meta {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  color: var(--text-hint) !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  margin-top: 24px !important;
}

/* Product tabs */
.woocommerce-tabs .tabs {
  border-bottom: 0.5px solid var(--border) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
}
.woocommerce-tabs .tabs li {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  margin: 0 !important;
}
.woocommerce-tabs .tabs li a {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
  color: var(--text-hint) !important;
  padding: 18px 24px !important;
  font-weight: 400 !important;
}
.woocommerce-tabs .tabs li.active {
  border-bottom-color: var(--gold) !important;
}
.woocommerce-tabs .tabs li.active a {
  color: var(--charcoal) !important;
}
.woocommerce-tabs .panel {
  border: 0.5px solid var(--border) !important;
  border-top: none !important;
  padding: 36px !important;
  background: var(--white) !important;
}

/* ============================================================
   CART & CHECKOUT
   ============================================================ */

.woocommerce-cart-form,
.woocommerce-checkout {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 64px 48px !important;
}

/* Checkout fields */
.woocommerce-billing-fields .form-row input,
.woocommerce-billing-fields .form-row textarea,
.woocommerce-shipping-fields .form-row input,
.woocommerce-account-fields .form-row input {
  border: 0.5px solid var(--border) !important;
  border-radius: 0 !important;
  font-family: var(--font-sans) !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  background: var(--white) !important;
  transition: border-color 0.2s !important;
}
.woocommerce-billing-fields .form-row input:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: none !important;
}

label {
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  color: var(--brown-mid) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Order summary */
.woocommerce-checkout #order_review {
  background: var(--cream-dark) !important;
  padding: 36px !important;
  border: 0.5px solid var(--border) !important;
}
#order_review h3,
.woocommerce-checkout h3 {
  font-family: var(--font-serif) !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  margin-bottom: 20px !important;
  padding-bottom: 16px !important;
  border-bottom: 0.5px solid var(--border) !important;
}

/* ============================================================
   NOTICES
   ============================================================ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 3px solid var(--gold) !important;
  background: var(--cream-dark) !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  border-radius: 0 !important;
}
.woocommerce-error { border-top-color: #c0392b !important; }

/* ============================================================
   SIDEBAR / WIDGETS
   ============================================================ */

.widget-title {
  font-family: var(--font-serif) !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  color: var(--charcoal) !important;
  padding-bottom: 12px !important;
  border-bottom: 0.5px solid var(--border) !important;
  margin-bottom: 20px !important;
}

.widget_product_categories ul li a {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: var(--brown-mid) !important;
  letter-spacing: 0.5px !important;
}
.widget_product_categories ul li a:hover { color: var(--gold) !important; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--charcoal) !important;
  color: rgba(250,248,243,0.5) !important;
  border-top: none !important;
}

.site-footer a { color: rgba(250,248,243,0.5) !important; }
.site-footer a:hover { color: var(--cream) !important; }

.velora-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 48px 40px;
}
.velora-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.velora-footer-brand .site-title {
  color: var(--cream) !important;
  font-size: 20px !important;
  letter-spacing: 3px !important;
  margin-bottom: 12px !important;
  display: block !important;
}
.velora-footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(250,248,243,0.4);
  font-weight: 300;
}
.velora-footer-col h4 {
  font-family: var(--font-sans) !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin-bottom: 20px !important;
  font-weight: 400 !important;
}
.velora-footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.velora-footer-col ul a {
  font-size: 13px !important;
  font-weight: 300 !important;
}
.velora-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(250,248,243,0.2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  ul.products li.product:nth-child(3n) { border-right: 0.5px solid var(--border) !important; }
  ul.products li.product:nth-child(2n) { border-right: none !important; }
  .velora-footer-grid { grid-template-columns: 1fr 1fr; }
  .single-product div.product { grid-template-columns: 1fr !important; margin: 32px 24px !important; }
  .single-product .woocommerce-product-gallery { border-right: none !important; border-bottom: 0.5px solid var(--border) !important; }
}

@media (max-width: 768px) {
  ul.products { grid-template-columns: 1fr !important; }
  ul.products li.product { border-right: none !important; }
  .storefront-primary-navigation { padding: 0 24px; }
  .woocommerce-cart-form, .woocommerce-checkout { padding: 40px 24px !important; }
  .velora-footer-inner { padding: 48px 24px 32px; }
  .velora-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .velora-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
