/*
Theme Name: Aura 7
Theme URI: https://github.com/lucas/aura-7-theme
Description: A WooCommerce-enabled WordPress theme built to match the elegant, serif-heavy style of Aura 7's Shopify Liquid theme.
Version: 1.0.0
Author: Antigravity
Author URI: https://github.com/google-deepmind
Text Domain: aura7
Requires at least: 5.6
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ----------------------------------------------------
   1. Design System & Variables
   ---------------------------------------------------- */
:root {
  --color-background: #fcfcfc;
  --color-foreground: #424242;
  --color-primary: #103948; /* Slate blue / dark navy teal */
  --color-primary-contrast: #fcfcfc;
  --color-secondary-text: #052c46;
  --color-border: rgba(66, 66, 66, 0.1);
  --color-border-hover: rgba(66, 66, 66, 0.25);
  --color-light-bg: #ebeced;
  --color-light-blue: #94e5fc;
  --color-dark-teal: #18566c;
  
  --font-family: 'Cormorant Garamond', serif;
  --font-body-scale: 1.3;
  --font-heading-scale: 1.2;
  
  --page-width: 1000px;
  --buttons-radius: 40px;
  --grid-horizontal-spacing: 40px;
  --grid-vertical-spacing: 40px;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px base for rem sizing */
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-family);
  font-size: calc(1.6rem * var(--font-body-scale));
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05rem;
}

h1 { font-size: calc(3.6rem * var(--font-heading-scale)); }
h2 { font-size: calc(2.8rem * var(--font-heading-scale)); }
h3 { font-size: calc(2.2rem * var(--font-heading-scale)); }
h4 { font-size: calc(1.8rem * var(--font-heading-scale)); }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

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

/* Image Copy Protection */
img.protect-image, 
.woocommerce-product-gallery img,
.product-card-image img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none; /* Prevents callout sheet on iOS */
  pointer-events: auto; /* Allows clicking links but custom JS will handle block contextmenu */
}

/* Page Layout */
.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.site-main {
  flex-grow: 1;
  padding-bottom: 5rem;
}

/* Form Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  font-family: var(--font-family);
  font-size: 1.6rem;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  color: var(--color-foreground);
  border-radius: 2px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 2px 2px 5px rgba(16, 57, 72, 0.05);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 2px 2px 5px rgba(16, 57, 72, 0.1);
}

button,
.button,
input[type="submit"] {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: 1.2rem 3rem;
  border-radius: var(--buttons-radius);
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  box-shadow: 2px 2px 5px rgba(16, 57, 72, 0.1);
}

button:hover,
.button:hover,
input[type="submit"]:hover {
  opacity: 0.9;
}

.button--secondary {
  background-color: transparent;
  color: var(--color-secondary-text);
  border-color: var(--color-primary);
}

.button--secondary:hover {
  background-color: rgba(16, 57, 72, 0.05);
}

/* ----------------------------------------------------
   2. Header & Navigation Styles
   ---------------------------------------------------- */
.announcement-bar {
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-foreground);
  text-align: center;
  padding: 1rem 0;
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
  text-transform: none;
}

.announcement-bar strong {
  font-weight: bold;
}

.header-wrapper {
  background-color: var(--color-background);
  padding: 2rem 0 1rem 0; /* Reduced padding top/bottom */
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

/* Left: Search Toggle */
.header-search-toggle {
  display: flex;
  align-items: center;
}

.header-search-toggle button {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--color-primary);
}

.header-search-toggle button .material-icons {
  font-size: 2.4rem;
}

/* Center: Logo */
.header-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.header-logo-container .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.header-logo-container img.custom-logo {
  max-height: 6rem; /* Constrain logo height */
  width: auto;
  max-width: 20rem; /* Constrain logo width */
  object-fit: contain;
  display: block;
}

.header-logo {
  font-family: var(--font-family);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  color: var(--color-primary);
  text-transform: lowercase;
  display: flex;
  align-items: center;
}

.header-logo span.logo-7 {
  color: #79c9ec;
  font-style: italic;
  margin-left: 2px;
}

/* Right: Icons & Selectors */
.header-right-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
}

.currency-selector {
  font-size: 1.3rem;
  color: var(--color-foreground);
  opacity: 0.8;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.currency-selector .material-icons {
  font-size: 1.8rem;
  margin-left: 0.2rem;
}

.header-icon-link {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  position: relative;
}

.header-icon-link .material-icons {
  font-size: 2.4rem;
}

.cart-count-bubble {
  position: absolute;
  top: -0.8rem;
  right: -0.8rem;
  background-color: var(--color-primary);
  color: var(--color-primary-contrast);
  font-size: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Navigation Menu Below Logo */
.header-menu-container {
  grid-column: span 3;
  display: flex;
  justify-content: center;
  margin-top: 0.8rem; /* Reduced spacing below logo */
}

.header-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 3rem;
}

.header-menu > li > a {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-foreground);
  opacity: 0.85;
  padding: 0.5rem 0;
  letter-spacing: 0.08rem;
  position: relative;
}

.header-menu > li > a:hover {
  opacity: 1;
}

.header-menu > li.current-menu-item > a {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mobile responsive navigation details */
@media screen and (max-width: 749px) {
  .header-grid {
    grid-template-columns: auto 1fr auto;
  }
  .header-menu-container {
    display: none; /* In a real product we might use a hamburger, for this visual replica we prioritize matching the screenshots */
  }
  .currency-selector {
    display: none;
  }
}

/* ----------------------------------------------------
   3. Homepage Template Components
   ---------------------------------------------------- */
.home-rich-text-section {
  text-align: center;
  padding: 1.5rem 2rem 4rem 2rem; /* Reduced top padding to tighten layout */
}

.home-rich-text-section h1,
.home-rich-text-section h2 {
  margin-bottom: 1rem;
  font-weight: 500;
}

.home-rich-text-section strong {
  font-weight: 700;
}

.home-rich-text-section p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.8rem;
  color: rgba(66, 66, 66, 0.85);
}

/* Simple JS/CSS Slideshow */
.home-slideshow-container {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  background-color: var(--color-light-bg);
}

.slideshow-wrapper {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 400%; /* For 4 slides */
}

.slide-item {
  width: 25%; /* 1/4 of container */
  position: relative;
}

.slide-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(66, 66, 66, 0.3);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.slideshow-dot.active {
  background-color: var(--color-foreground);
}

@media screen and (max-width: 749px) {
  .slide-item img {
    height: 300px;
  }
}

/* Featured Collection / Product Grid styling */
.products-section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-horizontal-spacing);
  margin-bottom: 5rem;
}

@media screen and (max-width: 749px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--grid-horizontal-spacing) / 2);
  }
}

.product-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

/* Arch mask shape for product images on Home page and Cart page */
.home .product-card.shape-arch .product-card-image-wrapper,
.home .product-card.shape-arch .product-card-image-wrapper img,
.home ul.products li.product img,
.home .wc-block-grid__product-image,
.home .wc-block-grid__product-image img,
.home .wc-block-grid__product-link img,
.woocommerce-cart ul.products li.product img,
.woocommerce-cart .wc-block-grid__product-image,
.woocommerce-cart .wc-block-grid__product-image img,
.woocommerce-cart .wc-block-grid__product-link img {
  border-top-left-radius: 50% 50% !important;
  border-top-right-radius: 50% 50% !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

.product-card-image-wrapper {
  position: relative;
  background-color: transparent;
  margin-bottom: 1.5rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card-image-wrapper img.secondary-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card-image-wrapper:hover img.secondary-image {
  opacity: 1;
}


.product-card-title {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
}

.product-card-price {
  font-size: 1.6rem;
  color: var(--color-foreground);
  opacity: 0.85;
}

/* Image With Text Sections */
.image-with-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin-bottom: 4rem;
  overflow: hidden;
  border-radius: 10px;
}

.image-with-text-section.layout-text-first {
  direction: ltr;
}

.image-with-text-section.layout-image-first {
  /* Nothing, default grid flow */
}

.iwt-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem;
}

.iwt-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* Specific background color variations */
.scheme-teal {
  background-color: var(--color-dark-teal);
  color: var(--color-primary-contrast);
}

.scheme-teal h1, .scheme-teal h2, .scheme-teal h3 {
  color: var(--color-primary-contrast);
}

.scheme-light-blue {
  background-color: var(--color-light-blue);
  color: var(--color-primary);
}

.scheme-light-blue h1, .scheme-light-blue h2, .scheme-light-blue h3 {
  color: var(--color-primary);
}

@media screen and (max-width: 749px) {
  .image-with-text-section {
    grid-template-columns: 1fr;
  }
  .image-with-text-section.layout-text-first {
    display: flex;
    flex-direction: column-reverse;
  }
  .iwt-text-container {
    padding: 3rem;
  }
  .iwt-image-container img {
    min-height: 250px;
  }
}

/* ----------------------------------------------------
   4. Footer & Newsletter Form
   ---------------------------------------------------- */
.newsletter-section {
  text-align: center;
  padding: 6rem 2rem;
  border-top: 1px solid var(--color-border);
}

.newsletter-section h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.newsletter-section p {
  font-size: 1.8rem;
  opacity: 0.85;
  margin-bottom: 3rem;
}

.newsletter-form {
  max-width: 45rem;
  margin: 0 auto;
  position: relative;
}

.newsletter-form input[type="email"] {
  padding-right: 6rem;
}

.newsletter-submit-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  box-shadow: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 1rem;
  display: flex;
  align-items: center;
}

.newsletter-submit-btn svg {
  width: 2.2rem;
  height: 2.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}


.site-footer {
  background-color: #f1f2f3;
  padding: 4rem 0 3rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-bottom-grid {
  display: flex;
  justify-content: center; /* Center footer copyright items */
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-payment-icons {
  display: flex;
  gap: 1rem;
  opacity: 0.8;
}

.footer-payment-icons svg {
  height: 2.4rem;
  width: auto;
}

.footer-copyright {
  font-size: 1.3rem;
  opacity: 0.7;
  text-align: center; /* Center the copyright text alignment */
  width: 100%;
}

@media screen and (max-width: 749px) {
  .footer-bottom-grid {
    flex-direction: column;
    text-align: center;
  }
}

/* ----------------------------------------------------
   5. General WordPress Page Layouts
   ---------------------------------------------------- */
.entry-header {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.entry-title {
  font-size: 3.6rem;
  margin-bottom: 0;
}

.entry-content {
  font-size: 1.8rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Contact Page Template Custom Layout */
.contact-container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-form-grid .form-field-wide {
  grid-column: span 2;
}

@media screen and (max-width: 749px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-grid .form-field-wide {
    grid-column: span 1;
  }
}

.contact-submit-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 3rem;
}

.contact-submit-wrapper input[type="submit"] {
  min-width: 15rem;
}

/* ----------------------------------------------------
   6. WooCommerce Styles & Overrides
   ---------------------------------------------------- */
/* Global Woocommerce settings */
.woocommerce .woocommerce-breadcrumb {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.7;
}

/* WooCommerce Catalog (archive-product) overrides */
.woocommerce-products-header {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.woocommerce-products-header__title {
  font-size: 3.6rem;
  margin-bottom: 0;
}

/* Force hide page/shop title on the Home page only */
.home .woocommerce-products-header,
.home .woocommerce-products-header__title,
.home .entry-header,
.home .entry-title,
.home .page-title {
  display: none !important;
}

.home .woocommerce-result-count,
.archive .woocommerce-result-count {
  display: none !important;
}

/* Force hide the sorting dropdown on the Home page only */
.home .woocommerce-ordering,
.home .woocommerce-ordering-wrapper {
  display: none !important;
}

/* Facets/Filters bar in catalog page */
.woocommerce-ordering-wrapper,
.woocommerce-ordering,
.woocommerce-result-count {
  margin-bottom: 6rem !important; /* Spacing below catalog ordering/filter bars */
}

.woocommerce-ordering-wrapper {
  display: flex;
  justify-content: flex-end; /* Align sorting dropdown to the right when result count is hidden */
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 1.4rem;
}

.woocommerce-ordering-wrapper select {
  font-size: 1.4rem;
  padding: 0.8rem 1.2rem;
  width: auto;
  box-shadow: none;
  border-radius: 4px;
}

.catalog-filter-placeholders {
  display: flex;
  gap: 2.5rem;
}

.catalog-filter-placeholders span {
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--color-foreground);
  opacity: 0.8;
}

.catalog-filter-placeholders span svg {
  margin-left: 0.5rem;
  width: 1.2rem;
  height: 1.2rem;
}

.woocommerce-result-count {
  font-size: 1.4rem;
  opacity: 0.7;
  margin: 0;
}

/* Product list loops */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--grid-horizontal-spacing) !important;
  list-style: none;
  padding: 0;
  margin: 0 0 5rem 0 !important;
  clear: both !important;
}

ul.products::before, ul.products::after {
  display: none !important;
}

ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  text-align: center;
  display: flex;
  flex-direction: column;
}

ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-foreground);
  padding: 0;
  margin: 1.5rem 0 0.5rem 0;
  font-family: var(--font-family);
}

ul.products li.product .price {
  font-size: 1.6rem;
  color: var(--color-foreground) !important;
  opacity: 0.85;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Remove default WooCommerce loop buttons (Add to cart) because Shopify uses clean hover or card clicks */
ul.products li.product .button.add_to_cart_button {
  display: none !important;
}

ul.products li.product .woocommerce-placeholder,
ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 0 !important;
  border-radius: 0;
}

/* Make related products use the arch shape style */
.related.products ul.products li.product img,
.upsells.products ul.products li.product img {
  border-radius: 50% 50% 0 0 / 50% 50% 0 0;
}

@media screen and (max-width: 749px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: calc(var(--grid-horizontal-spacing) / 2) !important;
  }
}

/* Single Product Page overrides */
.product-single-container {
  margin-top: 4rem;
}

.product-single-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
}

@media screen and (max-width: 749px) {
  .product-single-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* WooCommerce Single Product Gallery Custom Layout */
.woocommerce-product-gallery {
  position: relative;
}

.woocommerce-product-gallery__wrapper {
  border-radius: 8px !important;
  overflow: hidden !important;
  margin-bottom: 2rem !important;
}

.woocommerce-product-gallery__image img {
  border-radius: 8px !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* Flexslider / Control Nav Thumbnails */
ol.flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* 2-column layout */
  gap: 2rem !important; /* Spaced out thumbnails */
  margin: 2rem 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

ol.flex-control-thumbs li {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

ol.flex-control-thumbs li img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important; /* Square thumbnails */
  object-fit: cover !important;
  cursor: pointer !important;
  opacity: 0.7 !important; /* Dimmer inactive thumbnails */
  transition: opacity 0.2s ease !important;
  border-radius: 8px !important; /* Rounded corners */
}

ol.flex-control-thumbs li img.flex-active,
ol.flex-control-thumbs li img:hover {
  opacity: 1 !important; /* Full clarity on active/hover */
}

/* Product Info columns on the right */
.product-info-column {
  position: sticky;
  top: 3rem;
  align-self: start;
}

.product-vendor-badge {
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.15rem;
  opacity: 0.7;
  margin-bottom: 1rem;
  display: inline-block;
}

.product-single-title {
  font-size: calc(3.2rem * var(--font-heading-scale));
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.product-single-price {
  font-size: 2.2rem;
  color: var(--color-foreground);
  margin-bottom: 3rem;
  font-weight: 500;
}

.woocommerce-product-details__short-description {
  font-size: 1.6rem;
  margin-bottom: 3rem;
  opacity: 0.85;
}

/* Variant picker button styling */
.product-variants-wrapper {
  margin-bottom: 2.5rem;
}

.product-variant-option-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.product-variant-pills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.variant-pill {
  padding: 0.8rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.variant-pill:hover {
  border-color: var(--color-foreground);
}

.variant-pill.selected {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-primary-contrast);
}

/* Quantity selector with borders */
.quantity-selector-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 40px;
  height: 4.5rem;
  margin-bottom: 3rem;
}

.quantity-btn {
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  padding: 0 1.5rem;
  font-size: 2rem;
  color: var(--color-foreground);
  height: 100%;
  display: flex;
  align-items: center;
}

.quantity-input-val {
  width: 4rem;
  text-align: center;
  font-family: var(--font-family);
  font-size: 1.6rem;
  font-weight: 600;
  border: none;
  outline: none;
}

/* Remove spin buttons */
.quantity-input-val::-webkit-outer-spin-button,
.quantity-input-val::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Cart Page Overrides */
.cart-free-shipping-notice {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  font-size: 1.5rem;
  margin-bottom: 4rem;
  border-radius: 4px;
}

.cart-free-shipping-notice strong {
  color: var(--color-primary);
}

/* Styled Cart Table */
.cart-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4rem;
}

.cart-items-table th {
  text-align: left;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  opacity: 0.6;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-items-table th.col-quantity {
  text-align: center;
}

.cart-items-table th.col-total {
  text-align: right;
}

.cart-item-row {
  border-bottom: 1px solid var(--color-border);
}

.cart-item-row td {
  padding: 3rem 0;
  vertical-align: middle;
}

.cart-item-details {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.cart-item-thumbnail img {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  background-color: var(--color-light-bg);
}

.cart-item-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-name {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-foreground);
}

.cart-item-price {
  font-size: 1.5rem;
  opacity: 0.8;
}

.cart-item-quantity {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.cart-item-remove-btn {
  color: var(--color-foreground);
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cart-item-remove-btn:hover {
  opacity: 1;
}

.cart-item-total {
  text-align: right;
  font-size: 1.8rem;
  font-weight: 500;
}

/* Cart Summary / Totals */
.cart-summary-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.cart-summary-subtotal {
  display: flex;
  align-items: baseline;
  gap: 2rem;
}

.cart-summary-subtotal .subtotal-label {
  font-size: 1.8rem;
  opacity: 0.8;
}

.cart-summary-subtotal .subtotal-price {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--color-primary);
}

.cart-summary-tax-notice {
  font-size: 1.3rem;
  opacity: 0.6;
  text-align: right;
  max-width: 30rem;
}

.cart-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 35rem;
  margin-top: 1.5rem;
}

.checkout-btn {
  width: 100%;
  padding: 1.5rem 3rem;
  font-size: 1.8rem;
}

/* Express payment styling mock row - Native WooCommerce behavior comments apply, visual mockup row only */
.express-checkouts-mock {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.express-btn {
  flex: 1;
  height: 4rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.express-btn-shop {
  background-color: #5a31f4;
  color: white;
}

.express-btn-paypal {
  background-color: #ffc439;
}

.express-btn-gpay {
  background-color: black;
  color: white;
}

/* Default WooCommerce Message alerts styles overrides */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  font-family: var(--font-family);
  font-size: 1.6rem;
  border: 1px solid var(--color-border) !important;
  background-color: var(--color-background) !important;
  color: var(--color-foreground) !important;
  border-radius: 4px;
  padding: 1.5rem 2rem 1.5rem 6rem !important; /* Left padding expanded to prevent icon overlap */
  margin-bottom: 3rem !important;
  position: relative !important; /* Establish positioning context for absolute icons */
}

.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  left: 2rem !important; /* Position icons nicely inside left padding gutter */
  top: 1.8rem !important;
  position: absolute !important;
}

.woocommerce-message::before, .woocommerce-info::before {
  color: var(--color-primary) !important;
}

.woocommerce-error {
  border-left: 3px solid #ff3333 !important;
}

.woocommerce-message {
  border-left: 3px solid var(--color-primary) !important;
}

.woocommerce-message .button, .woocommerce-info .button {
  border-radius: 40px !important;
  padding: 0.8rem 2rem !important;
  background-color: var(--color-primary) !important;
  color: var(--color-primary-contrast) !important;
  font-size: 1.4rem !important;
}

/* Hide Default WooCommerce Cart elements when we override */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
  display: none;
}

.woocommerce-cart.custom-cart-rendered .woocommerce-cart-form,
.woocommerce-cart.custom-cart-rendered .cart-collaterals {
  display: block; /* If they need default fallback fallback */
}

/* Material Icons styling */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
  vertical-align: middle;
}

/* Footer Widget Styling */
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4rem;
  text-align: left;
}

.footer-widgets .widget {
  font-size: 1.5rem;
}

.footer-widgets .widget-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  text-transform: capitalize;
}

.footer-widgets ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widgets ul li {
  margin-bottom: 1rem;
}

/* ----------------------------------------------------
   7. Single Product Page adjustments
   ---------------------------------------------------- */

/* Single Product: Bigger and styled quantity box */
.woocommerce .quantity .qty {
  width: 8rem !important;
  height: 4.5rem !important;
  padding: 0.5rem 1rem !important;
  text-align: center !important;
  border-radius: 40px !important;
  border: 1px solid var(--color-border) !important;
  font-family: var(--font-family) !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  outline: none !important;
  box-shadow: none !important;
  display: inline-block !important;
}

/* Single Product: Styled add to cart button in neutral slate blue */
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .button.alt,
.woocommerce button.button.alt,
.single_add_to_cart_button {
  background-color: var(--color-primary) !important; /* Neutral slate blue */
  color: var(--color-primary-contrast) !important;
  border-radius: var(--buttons-radius) !important; /* Pill shape */
  height: 4.5rem !important;
  padding: 0 4rem !important;
  font-family: var(--font-family) !important;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  border: 1px solid var(--color-primary) !important;
  transition: opacity 0.2s ease !important;
  box-shadow: 2px 2px 5px rgba(16, 57, 72, 0.1) !important;
  display: inline-block !important;
}

.woocommerce div.product form.cart .button:hover,
.single_add_to_cart_button:hover {
  opacity: 0.9 !important;
}

/* Product single: Change price color to dark gray */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product .price .amount,
.product-single-price {
  color: #424242 !important; /* Dark gray */
}

/* Product single: More space above related products section */
.woocommerce .related.products,
.woocommerce section.related,
.woocommerce .related,
.woocommerce .upsells.products,
.woocommerce section.upsells {
  clear: both !important;
  margin-top: 12rem !important; /* Spacing above section */
  border-top: 1px solid rgba(66,66,66,0.08) !important;
  padding-top: 6rem !important;
}

/* Product single: Hide related products header */
.woocommerce .related.products > h2,
.woocommerce .related > h2,
.woocommerce section.related > h2 {
  display: none !important;
}

/* ----------------------------------------------------
   8. Cart Page Adjustments
   ---------------------------------------------------- */

/* Hide standard "New in store" block grids and titles on Cart page */
.woocommerce-cart .wc-block-grid,
.woocommerce-cart .wc-block-grid__products,
.woocommerce-cart .wp-block-woocommerce-newest-products,
.woocommerce-cart .wp-block-woocommerce-products,
.woocommerce-cart h2.wp-block-heading,
.woocommerce-cart h2:has(+ .wc-block-grid),
.woocommerce-cart h2:has(+ .wp-block-woocommerce-products) {
  display: none !important;
}

/* 8.1 Cart and Checkout Base Text Scaling (Slightly smaller, elegant sizing) */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-cart,
.woocommerce-checkout,
.woocommerce-order-received {
  font-size: 1.5rem !important; /* Scaled down base text size (15px) */
}

/* Ensure all core text-containing elements use a consistent, legible base size */
.woocommerce-cart .site-main p,
.woocommerce-checkout .site-main p,
.woocommerce-cart .site-main label,
.woocommerce-checkout .site-main label,
.woocommerce-cart .site-main span,
.woocommerce-checkout .site-main span,
.woocommerce-cart .site-main input:not([type="submit"]):not([type="button"]),
.woocommerce-checkout .site-main input:not([type="submit"]):not([type="button"]),
.woocommerce-cart .site-main select,
.woocommerce-checkout .site-main select,
.woocommerce-cart .site-main textarea,
.woocommerce-checkout .site-main textarea,
.woocommerce-cart .site-main th,
.woocommerce-checkout .site-main th,
.woocommerce-cart .site-main td,
.woocommerce-checkout .site-main td,
.woocommerce-cart .site-main li,
.woocommerce-checkout .site-main li,
.wc-block-components-text-input input,
.wc-block-components-combobox input,
.wc-block-components-select select,
.wc-block-components-checkbox label,
.wc-block-components-radio-control label,
.wc-block-components-radio-control__label,
.wc-block-components-radio-control__description,
.wc-block-checkout__contact-fields label,
.wc-block-checkout__shipping-fields label,
.wc-block-checkout__billing-fields label,
.wc-block-components-shipping-rates-control *,
.wc-block-checkout__payment-method *,
.wc-block-components-text-input *,
.wc-block-components-checkbox *,
.wc-block-components-panel *,
.wc-block-components-totals-item * {
  font-size: 1.5rem !important; /* Force a consistent 15px base */
}

/* 8.1.1 Checkout & Order Received Page Font Overrides (Highly legible sans-serif for functional fields) */
.woocommerce-checkout .site-main,
.woocommerce-checkout .site-main *,
.woocommerce-order-received .site-main,
.woocommerce-order-received .site-main * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Keep the main title at the top as the elegant serif to match theme branding */
.woocommerce-checkout h1,
.woocommerce-checkout .entry-title,
.woocommerce-checkout .site-title,
.woocommerce-checkout .site-logo,
.woocommerce-order-received h1,
.woocommerce-order-received .entry-title {
  font-family: var(--font-family) !important;
}

/* Product title in cart / checkout */
.wc-block-cart-item__title,
.wc-block-components-product-name,
.wc-block-components-checkout-order-summary-item__title,
.cart-item-name {
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  color: var(--color-primary) !important;
}

/* Product metadata / variations / description / duplicate price in cart and checkout: 
   Hidden completely as requested to show ONLY the product titles */
.wc-block-cart-item__metadata,
.wc-block-components-product-metadata,
.wc-block-components-product-details,
.wc-block-components-checkout-order-summary-item__details .wc-block-components-product-metadata,
.wc-block-components-checkout-order-summary-item__details .wc-block-components-product-details,
.wc-block-components-checkout-order-summary-item__details dl.wc-block-components-product-metadata,
.product-details,
.variation,
.woocommerce-cart .product-name .variation,
.woocommerce-checkout .product-name .variation,
.wc-block-components-product-details__description,
.wc-block-components-product-details__short-description,
.wc-block-components-product-metadata__description,
.wc-block-components-product-metadata__description *,
/* Hide duplicate individual unit prices shown below product name in cart table and order summary */
.wc-block-components-checkout-order-summary-item__details .wc-block-components-product-price,
.wc-block-components-checkout-order-summary-item__details .wc-block-components-product-price-quantity,
.wc-block-components-checkout-order-summary-item__details .wc-block-components-cart-item__price,
.wc-block-components-checkout-order-summary-item__details .price,
.woocommerce-checkout .wc-block-components-checkout-order-summary-item .wc-block-components-product-price,
.woocommerce-checkout .wc-block-components-checkout-order-summary-item .wc-block-components-product-price-quantity,
.woocommerce-checkout .wc-block-components-checkout-order-summary-item__details .wc-block-components-product-price,
.woocommerce-checkout .wc-block-components-checkout-order-summary-item__details .wc-block-components-product-price-quantity,
.woocommerce-cart .wc-block-cart-item__price,
.wc-block-cart-item__price,
.wc-block-components-cart-item__price,
.wc-block-components-product-price,
.wc-block-components-product-price-quantity,
.wc-block-components-checkout-order-summary-item__details + .wc-block-components-product-price {
  display: none !important;
}

/* Totals and prices styling */
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-components-totals-item,
.woocommerce-cart .cart-item-price,
.woocommerce-cart .cart-item-total {
  font-size: 1.5rem !important;
}

.wc-block-components-totals-footer-item__label,
.wc-block-components-totals-footer-item__value,
.wc-block-components-totals-footer-item,
.woocommerce-cart .subtotal-price,
.woocommerce-cart .cart-summary-subtotal .subtotal-price,
.woocommerce-checkout .wc-block-components-totals-footer-item__value {
  font-size: 1.9rem !important;
  font-weight: 600 !important;
}

/* Primary buttons CTA */
.wc-block-components-button,
.wc-block-components-checkout-button,
.wc-block-cart__submit-button,
.checkout-btn,
.woocommerce-cart .checkout-button,
.woocommerce-checkout #place_order {
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  padding: 1.5rem 3rem !important;
  border-radius: var(--buttons-radius) !important;
}

/* Keep headings properly scaled */
.woocommerce-cart .site-main h1,
.woocommerce-checkout .site-main h1,
.woocommerce-cart h1,
.woocommerce-checkout h1 {
  font-size: 3.6rem !important;
}
.woocommerce-cart .site-main h2,
.woocommerce-checkout .site-main h2,
.woocommerce-cart h2,
.woocommerce-checkout h2,
.woocommerce-order-received h2,
.wc-block-components-checkout-order-summary__title,
.wc-block-cart__title,
.wc-block-checkout__title,
.woocommerce-checkout .site-main h2,
.woocommerce-checkout .site-main h3 {
  font-size: 2.3rem !important;
  font-weight: 600 !important;
}
.woocommerce-cart .site-main h3,
.woocommerce-checkout .site-main h3,
.woocommerce-cart h3,
.woocommerce-checkout h3 {
  font-size: 1.8rem !important;
}

/* 8.2 Add space above PayPal Pay-in-4 elements below totals card box */
.wc-block-components-totals-wrapper,
.wc-block-components-checkout-order-summary,
.wc-block-checkout__totals,
.wc-block-cart__totals {
  margin-bottom: 3.5rem !important; /* Pushes outer PayPal message down from the totals card bottom border */
}

/* Ensure the outer wrapper/panel pushes the PayPal message down instead of internal elements */
.wc-block-components-checkout-order-summary + *,
.wc-block-components-totals-wrapper + *,
.wc-block-checkout__sidebar .wc-block-checkout__totals + *,
.wc-block-checkout__sidebar .wc-block-components-panel + :not(.wc-block-components-panel),
.wc-block-components-sidebar .wc-block-components-panel + :not(.wc-block-components-panel) {
  margin-top: 3.0rem !important;
}

/* Style the PayPal installments label element or its wrapper container to add a consistent spacing gap */
.woocommerce-cart [data-pp-message],
.woocommerce-checkout [data-pp-message],
.woocommerce-cart .paypal-button-messaging,
.woocommerce-checkout .paypal-button-messaging,
.woocommerce-cart .paypal-messaging-container,
.woocommerce-checkout .paypal-messaging-container,
.woocommerce-cart .woocommerce-paypal-payments-pay-in-4,
.woocommerce-checkout .woocommerce-paypal-payments-pay-in-4,
.woocommerce-cart .payment-method-messaging,
.woocommerce-checkout .payment-method-messaging,
.wc-block-components-sidebar div[data-pp-message],
.wc-block-components-sidebar .paypal-messaging-container,
.wc-block-components-sidebar .payment-method-messaging,
.wc-block-checkout__sidebar div[data-pp-message],
.wc-block-checkout__sidebar .paypal-messaging-container,
.wc-block-checkout__sidebar .payment-method-messaging {
  margin-top: 3.0rem !important;
  padding-top: 1.0rem !important; /* Visual padding spacer */
  margin-bottom: 2.0rem !important;
  display: block !important;
  clear: both !important;
}

/* 8.4 Fix order received overview alignment issues using a clean, responsive card-based grid */
ul.woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 2rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 3rem 0 !important;
  border: none !important;
  clear: both !important;
}

/* Hide generated clearfix pseudo-elements which otherwise render as empty grid blocks */
ul.woocommerce-order-overview::before,
ul.woocommerce-order-overview::after {
  display: none !important;
}

ul.woocommerce-order-overview li {
  background: var(--color-background) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  padding: 1.5rem 2rem !important;
  margin: 0 !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-shadow: 2px 2px 5px rgba(16, 57, 72, 0.03);
}

ul.woocommerce-order-overview li strong {
  display: block !important;
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  margin-top: 0.5rem !important;
  word-break: break-all !important;
  overflow-wrap: break-word !important;
}

@media screen and (max-width: 749px) {
  ul.woocommerce-order-overview {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* 8.3 Target product thumbnail images inside cart and checkout containers and round corners */
.woocommerce-cart .cart-item-thumbnail img,
.woocommerce-cart .wc-block-cart-item__image img,
.woocommerce-cart .wc-block-components-product-image img,
.woocommerce-cart .wc-block-components-cart-item__image img,
.woocommerce-cart .product-thumbnail img,
.woocommerce-checkout .wc-block-components-product-image img,
.woocommerce-checkout .wc-block-components-checkout-order-summary-item__image img,
.woocommerce-checkout .product-thumbnail img,
.wc-block-components-product-image img,
.wc-block-components-cart-item__image img,
.wc-block-components-checkout-order-summary-item__image img,
.wc-block-cart-item__image img,
.wc-block-components-checkout-order-summary-item img,
.woocommerce-mini-cart-item img {
  border-radius: 8px !important;
}

/* ----------------------------------------------------
   9. Secondary Product Image Hover crossfade styles
   ---------------------------------------------------- */
.product-card-image-wrapper {
  position: relative;
  background-color: transparent !important;
  margin-bottom: 1.5rem;
  aspect-ratio: 1 / 1;
  overflow: hidden !important;
}

.product-card-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: opacity 0.4s ease !important;
}

.product-card-image-wrapper img.secondary-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  opacity: 0 !important;
  z-index: 2 !important;
}

.product-card-image-wrapper:hover img.secondary-image {
  opacity: 1 !important;
}

.product-card-image-wrapper:hover img.primary-image {
  opacity: 0 !important;
}
