/*
Theme Name: Varied Cozy Shop Theme
Theme URI: https://variedcozyshop.com/
Author: Varied Cozy Shop Team
Description: Modern lifestyle e-commerce child theme built on Twenty Twenty-Five, featuring editorial typography, magazine-style layouts, and a luxury, cozy color palette. Optimized for Elementor, WooCommerce, YITH, Fluent Forms, and modern block editing.
Version: 0.1.0
Template: twentytwentyfive
*/

/* =========================
   CSS VARIABLES (ROOT)
   ========================= */
:root {
  --warm-white: #fff5e1;
  --orange-accent: #f55b16;
  --peach-accent: #ffc7ad;
  --warm-yellow: #FCD12A;
  --green-accent: #9cc26b;
  --newsletter-bg: #e7e2d9;
  --dark-green: #1c402e;
  --deep-green: #0f3522;

  --heading-font: 'Playfair Display', serif;
  --body-font: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* ensuring backward compatibility */
  --color-cream-primary: var(--warm-white);
  --color-accent-primary: var(--orange-accent);
  --color-accent-secondary: var(--peach-accent);
  --color-success: var(--green-accent);
  --color-text-primary: var(--dark-green);
  --color-text-secondary: #5e5240;
  --color-bg-newsletter: var(--newsletter-bg);
  --color-button-dark: var(--deep-green);
  --color-white: #fff;
  --color-black: #000;
  --color-grey-light: #f5f5f5;
  --color-grey-medium: #cccccc;
  --color-grey-dark: #666666;

  --font-serif: var(--heading-font);
  --font-sans: var(--body-font);
}

/* =========================
   CSS RESET & BASE
   ========================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  background: var(--warm-white);
  color: var(--dark-green);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--orange-accent);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

a:hover, a:focus {
  color: var(--deep-green);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--orange-accent);
  outline-offset: 2px;
}

/* =========================
 TYPOGRAPHY SYSTEM
 ========================= */
h1, h2, h3, h4, h5, h6,
.section-title, .elementor-heading-title, .woocommerce .product-title {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--orange-accent);
  line-height: 1.25;
}

h1 {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.1rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.2rem;
}

.section-title {
  font-size: 2.2rem;
  font-family: var(--heading-font);
  letter-spacing: -0.01em;
  color: var(--dark-green);
  margin-bottom: 1.1em;
}

.section-title {
  margin-bottom: 1.2em;
}

p, li, input, select, textarea,
.woocommerce, .elementor, .wp-block,
.vcs-best-sellers .vcs-product {
  font-family: var(--body-font);
  color: var(--dark-green);
  font-size: 1rem;
}

/* =========================
   FOOTER LAYOUT
   ========================= */
.vcs-site-footer {
  background: var(--color-button-dark);
  color: #fff;
  padding: 2.5em 0 1.5em;
  margin-top: 3rem;
}

.vcs-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.vcs-footer-col {
  min-width: 0;
}

.vcs-footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  color: var(--color-cream-primary);
}

.vcs-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vcs-footer-menu li {
  margin-bottom: 0.45rem;
}

.vcs-footer-menu a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}

.vcs-footer-menu a:hover {
  color: var(--color-accent-primary);
  text-decoration: underline;
}

/* Brand column specifics */
.vcs-footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.vcs-footer-contact a {
  color: #fff;
  text-decoration: none;
}

.vcs-footer-contact a:hover {
  color: var(--color-accent-primary);
}

/* Social icons */
.vcs-footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.vcs-footer-social .vcs-social-link img {
  display: block;
}

/* Bottom credit bar */
.vcs-footer-credit {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.3rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* =========================
   RESPONSIVE FOOTER
   ========================= */
@media (max-width: 900px) {
  .vcs-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .vcs-footer-inner {
    grid-template-columns: 1fr;
  }

  .vcs-footer-brand {
    order: -1;
  }
}

/* =========================
   UTILITY & COMPONENTS
   ========================= */
/* =========================
  WOOCOMMERCE & SHOP COMPONENTS
  ========================= */
.woocommerce,
.yith-wcwl-add-to-wishlist,
.yith_wcwl_wishlistaddedbrowse,
.yith_wcwl_wishlistexistsbrowse {
  font-family: var(--body-font);
}

.woocommerce .product-title,
.woocommerce .woocommerce-loop-product__title {
  color: var(--dark-green);
  font-family: var(--heading-font);
}

.woocommerce .price,
.woocommerce ul.products li.product .price {
  color: var(--orange-accent);
  font-weight: 700;
}

.woocommerce .star-rating span {
  color: var(--green-accent);
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-notice,
.woocommerce .notice {
  background: var(--newsletter-bg);
  color: var(--dark-green);
  border-left: 5px solid var(--orange-accent);
  border-radius: var(--radius-md);
  padding: 1.2em 1.8em;
  font-size: 1.08em;
  margin: 1.2em 0;
  font-family: var(--body-font);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2em;
  margin-bottom: 2em;
  list-style: none;
  padding: 0;
}

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(28, 64, 46, 0.1);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-peach-accent);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product .ajax_add_to_cart,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce div.product .single_add_to_cart_button {
  background: var(--green-accent);
  color: #fff !important;
  border-radius: var(--radius-xl);
  font-size: 1.1em;
  font-weight: 700;
  transition: background 0.2s;
  margin: 1em auto;
}

.woocommerce ul.products li.product .ajax_add_to_cart:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce div.product .single_add_to_cart_button:hover {
  background: var(--deep-green);
}

.woocommerce div.product {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.2em 2em;
  margin-bottom: 2em;
}

/* =========================
   YITH PLUGINS
   ========================= */
.yith-wcwl-add-to-wishlist,
.yith-wcwl-wishlistaddedbrowse,
.yith-wcwl-wishlistexistsbrowse {
  background: var(--warm-yellow) !important;
  color: var(--dark-green) !important;
  font-family: var(--heading-font);
  border-radius: var(--radius-md);
  margin: 0.5em 0.8em !important;
  padding: 0.7em 1.3em !important;
}

.yith-wcwl-add-to-wishlist:hover {
  background: var(--peach-accent) !important;
  color: var(--dark-green) !important;
}

.ywgc_gift_card_container {
  background: var(--newsletter-bg);
  border: 2px solid var(--green-accent);
  border-radius: var(--radius-lg);
  padding: 2em;
  font-family: var(--body-font);
}

/* ===============================
   FADE IN ON SCROLL EFFECT
   =============================== */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .about-collage-section {
    grid-template-columns: 1fr;
  }
  .about-collage-imgs {
    grid-template-areas:
      "main"
      "left"
      "right";
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-collage-imgs .left,
  .about-collage-imgs .right {
    margin-top: 0;
  }
}