/*
Theme Name: Lisa Chocolate
Theme URI: https://lisachocolate.com
Author: Lisa Chocolate
Author URI: https://lisachocolate.com
Description: A minimalist luxury theme for Lisa's Artisan Chocolate, inspired by premium bean-to-bar aesthetics. Built as a Full Site Editing block theme with WooCommerce support.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lisachocolate
Tags: full-site-editing, block-patterns, e-commerce, woocommerce, custom-colors, custom-fonts
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  --lc-header-height: 80px;
  --lc-announcement-height: 40px;
  --lc-button-height: 48px;
  --lc-button-height-lg: 52px;
  --lc-button-height-sm: 40px;
  --lc-transition: 0.3s ease;
  --lc-shadow-subtle: 0 1px 3px rgba(26, 25, 25, 0.06);
  --lc-shadow-medium: 0 4px 12px rgba(26, 25, 25, 0.08);
}

@media (min-width: 1200px) {
  :root {
    --lc-button-height: 52px;
    --lc-button-height-sm: 44px;
  }
}

/* ==========================================================================
   Base Resets & Global
   ========================================================================== */

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================================================
   Announcement Bar
   ========================================================================== */

.announcement-bar {
  background-color: var(--wp--preset--color--charcoal);
  color: var(--wp--preset--color--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 50;
  min-height: var(--lc-announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-bar a {
  color: var(--wp--preset--color--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-bar a:hover {
  opacity: 0.8;
}

.announcement-bar__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--wp--preset--color--white);
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
}

.announcement-bar__close:hover {
  opacity: 1;
}

/* ==========================================================================
   Header / Sticky Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--wp--preset--color--cream);
  border-bottom: 1px solid var(--wp--preset--color--border);
  transition: box-shadow var(--lc-transition), background-color var(--lc-transition);
}

.site-header.is-scrolled {
  box-shadow: var(--lc-shadow-subtle);
}

.site-header .wp-block-navigation {
  gap: 32px;
}

.site-header .wp-block-navigation a {
  font-family: var(--wp--preset--font-family--epilogue);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--charcoal);
}

.site-header .wp-block-navigation a:hover {
  color: var(--wp--preset--color--charcoal-light);
}

/* Transparent header on front page */
body.home .site-header--transparent {
  position: absolute;
  width: 100%;
  background-color: transparent;
  border-bottom: none;
}

body.home .site-header--transparent .wp-block-navigation a,
body.home .site-header--transparent .wp-block-site-title a {
  color: var(--wp--preset--color--white);
}

body.home .site-header--transparent.is-scrolled {
  position: sticky;
  background-color: var(--wp--preset--color--cream);
}

body.home .site-header--transparent.is-scrolled .wp-block-navigation a,
body.home .site-header--transparent.is-scrolled .wp-block-site-title a {
  color: var(--wp--preset--color--charcoal);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wp-element-button,
.wp-block-button__link,
.woocommerce .button,
.wc-block-components-button {
  min-height: var(--lc-button-height);
  border-radius: 0 !important;
  font-family: var(--wp--preset--font-family--instrument-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: background-color var(--lc-transition), color var(--lc-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid var(--wp--preset--color--charcoal);
  color: var(--wp--preset--color--charcoal);
  background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--charcoal);
  color: var(--wp--preset--color--white);
}

/* ==========================================================================
   Hero / Slideshow
   ========================================================================== */

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section .wp-block-cover {
  min-height: 70vh !important;
}

.hero-section .wp-block-cover__inner-container {
  max-width: 800px;
  text-align: center;
}

.hero-section h1,
.hero-section h2 {
  color: var(--wp--preset--color--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Product Grid / WooCommerce
   ========================================================================== */

.wc-block-grid {
  gap: 24px !important;
}

.wc-block-grid__product {
  text-align: left;
}

.wc-block-grid__product-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--wp--preset--color--cream-alt);
}

.wc-block-grid__product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.03);
}

.wc-block-grid__product-title {
  font-family: var(--wp--preset--font-family--epilogue);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 12px;
  margin-bottom: 4px;
}

.wc-block-grid__product-price {
  font-family: var(--wp--preset--font-family--instrument-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--wp--preset--color--charcoal);
}

.wc-block-grid__product-add-to-cart .wp-element-button {
  width: 100%;
  min-height: var(--lc-button-height-sm);
  font-size: 14px;
}

/* Product badges */
.wc-block-grid__product-onsale {
  background-color: var(--wp--preset--color--sale);
  color: var(--wp--preset--color--white);
  border-radius: 0;
  font-family: var(--wp--preset--font-family--epilogue);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
}

/* Product columns responsive */
.wc-block-grid.has-2-columns { --grid-columns: 2; }
.wc-block-grid.has-3-columns { --grid-columns: 3; }
.wc-block-grid.has-4-columns { --grid-columns: 4; }

@media (max-width: 740px) {
  .wc-block-grid.has-3-columns,
  .wc-block-grid.has-4-columns {
    --grid-columns: 2;
  }
}

@media (min-width: 741px) and (max-width: 999px) {
  .wc-block-grid.has-4-columns {
    --grid-columns: 3;
  }
}

/* WooCommerce single product */
.single-product .product .summary {
  font-family: var(--wp--preset--font-family--instrument-sans);
}

.single-product .product_title {
  font-family: var(--wp--preset--font-family--epilogue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.single-product .price {
  font-size: 24px;
  font-weight: 400;
  color: var(--wp--preset--color--charcoal);
}

.single-product .price del {
  opacity: 0.5;
}

.single-product .price ins {
  text-decoration: none;
  color: var(--wp--preset--color--sale);
}

/* Product gallery */
.woocommerce-product-gallery {
  overflow: hidden;
}

.woocommerce-product-gallery__image img {
  border-radius: 0 !important;
}

/* Product tabs / accordions */
.woocommerce-tabs .wc-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.woocommerce-tabs .wc-tabs li {
  margin: 0;
}

.woocommerce-tabs .wc-tabs li a {
  display: block;
  padding: 16px 24px;
  font-family: var(--wp--preset--font-family--epilogue);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--charcoal-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all var(--lc-transition);
}

.woocommerce-tabs .wc-tabs li.active a {
  color: var(--wp--preset--color--charcoal);
  border-bottom-color: var(--wp--preset--color--charcoal);
}

.woocommerce-tabs .wc-tab {
  padding: 32px 0;
}

/* ==========================================================================
   Featured Collection Sections
   ========================================================================== */

.featured-collection {
  padding: var(--wp--preset--spacing--lg) 0;
}

.featured-collection__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--wp--preset--spacing--md);
}

.featured-collection__title {
  font-family: var(--wp--preset--font-family--epilogue);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
}

.featured-collection__link {
  font-family: var(--wp--preset--font-family--epilogue);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--wp--preset--color--charcoal);
  border-bottom: 1px solid var(--wp--preset--color--charcoal);
  padding-bottom: 2px;
}

.featured-collection__link:hover {
  opacity: 0.7;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-block {
  text-align: center;
  padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--md);
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-block__quote {
  font-family: var(--wp--preset--font-family--epilogue);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.4;
  font-style: normal;
  margin-bottom: 24px;
}

.testimonial-block__author {
  font-family: var(--wp--preset--font-family--instrument-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wp--preset--color--charcoal-light);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */

.newsletter-section {
  background-color: var(--wp--preset--color--cream-warm);
  padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--md);
  text-align: center;
}

.newsletter-section h2,
.newsletter-section h3 {
  margin-bottom: 8px;
}

.newsletter-section p {
  margin-bottom: 24px;
  color: var(--wp--preset--color--charcoal-light);
}

.newsletter-section form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-section input[type="email"] {
  flex: 1;
  min-height: var(--lc-button-height);
  padding: 0 16px;
  border: 1px solid var(--wp--preset--color--border);
  border-right: none;
  background: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--instrument-sans);
  font-size: 15px;
  border-radius: 0;
}

.newsletter-section input[type="email"]:focus {
  outline: none;
  border-color: var(--wp--preset--color--charcoal);
}

.newsletter-section button[type="submit"] {
  min-height: var(--lc-button-height);
  padding: 0 32px;
  background: var(--wp--preset--color--charcoal);
  color: var(--wp--preset--color--white);
  border: none;
  font-family: var(--wp--preset--font-family--instrument-sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border-radius: 0;
  transition: background-color var(--lc-transition);
}

.newsletter-section button[type="submit"]:hover {
  background: var(--wp--preset--color--charcoal-light);
}

/* ==========================================================================
   Info Cards / Benefits Bar
   ========================================================================== */

.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--wp--preset--color--border);
  border-top: 1px solid var(--wp--preset--color--border);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

@media (min-width: 741px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .info-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-card {
  background-color: var(--wp--preset--color--cream);
  padding: 32px 24px;
  text-align: center;
}

.info-card__icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.info-card__title {
  font-family: var(--wp--preset--font-family--epilogue);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.info-card__text {
  font-size: 14px;
  color: var(--wp--preset--color--charcoal-light);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--wp--preset--color--border);
  padding-top: var(--wp--preset--spacing--xl);
  padding-bottom: var(--wp--preset--spacing--lg);
}

.site-footer .wp-block-columns {
  gap: var(--wp--preset--spacing--lg);
}

.site-footer h3,
.site-footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.site-footer .wp-block-navigation-link a {
  font-family: var(--wp--preset--font-family--instrument-sans);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--wp--preset--color--charcoal-light);
}

.site-footer .wp-block-navigation-link a:hover {
  color: var(--wp--preset--color--charcoal);
}

.site-footer__bottom {
  margin-top: var(--wp--preset--spacing--lg);
  padding-top: var(--wp--preset--spacing--sm);
  border-top: 1px solid var(--wp--preset--color--border);
  font-size: 13px;
  color: var(--wp--preset--color--charcoal-light);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ==========================================================================
   WooCommerce Cart & Checkout Overrides
   ========================================================================== */

.wc-block-cart .wc-block-components-product-name {
  font-family: var(--wp--preset--font-family--epilogue);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.wc-block-cart .wc-block-cart__submit-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button {
  min-height: var(--lc-button-height-lg);
  border-radius: 0 !important;
  font-weight: 600;
  font-size: 16px;
}

.wc-block-components-quantity-selector {
  border-radius: 0 !important;
}

.wc-block-components-quantity-selector input {
  border-radius: 0 !important;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 740px) {
  .site-header .wp-block-navigation {
    gap: 20px;
  }

  .hero-section {
    min-height: 50vh;
  }

  .hero-section .wp-block-cover {
    min-height: 50vh !important;
  }
}

@media (min-width: 741px) and (max-width: 999px) {
  .hero-section {
    min-height: 60vh;
  }
}
