/*
Theme Name: Sparklejoy Custom Theme
Theme URI: https://sparklejoystore.com
Author: Sparklejoy
Author URI: https://sparklejoystore.com
Description: Custom WooCommerce theme converted from Vite prototype. Nature-inspired watercolor stationery.
Version: 1.1.9
Requires at least: 6.0
Tested up to: 6.5
WC requires at least: 8.0
WC tested up to: 8.9
Text Domain: sparklejoy
*/

/* ============================================================
   Base custom properties – mirrors the Vite/Tailwind theme
   ============================================================ */
:root {
  --color-brand-beige: #FAF9F6;
  --color-brand-charcoal: #333333;
  --color-brand-blush: #F3E1E1;
  --color-brand-sage: #E1E8E3;
  --font-serif: "Quicksand", sans-serif;
  --font-sans: "Nunito Sans", sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--color-brand-charcoal);
  overflow-x: hidden;
  margin: 0;
}

/* Deter image saving / dragging site-wide */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* Hide default WordPress toolbar gap */
html body.admin-bar .sticky-nav {
  top: 32px;
}

/* Premium sticky nav link micro-interactions */
.sticky-nav a {
  position: relative;
  transition: color 0.25s ease !important;
}

.sticky-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-brand-charcoal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.sticky-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================================
   WooCommerce Page Overrides
   Tailwind CDN doesn't auto-scan WC PHP templates, so we
   hand-write the key layout rules here.
   ============================================================ */

/* --- Shop / Archive grid --- */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 3 products per row on medium screens, 4 on large (sidebar layout) */
@media (min-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
}

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* Hover image swap in the shop loop */
.sparklejoy-loop-thumb {
  position: relative;
  display: block;
}

.sparklejoy-loop-thumb .sj-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sparklejoy-loop-thumb.has-secondary:hover .sj-secondary {
  opacity: 1;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-brand-charcoal);
  padding: 1rem 1.25rem 0.25rem;
  flex-grow: 1 !important;
}

/* --- Homepage Custom Product Card Alignment --- */
.sparklejoy-product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.sparklejoy-product-card .p-6 {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.sparklejoy-product-card h3 {
  flex-grow: 1 !important;
}

.woocommerce ul.products li.product .price {
  padding: 0 1.25rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: block;
  margin: 0.75rem 1.25rem 1.25rem;
  padding: 0.75rem;
  border: 1px solid var(--color-brand-charcoal);
  border-radius: 9999px;
  background: transparent;
  color: var(--color-brand-charcoal);
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
  font-size: 0.9rem;
}

.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: #FFA7A7;
  border-color: #FFA7A7;
  color: #fff;
}

/* --- Shop / Archive Pagination --- */
.woocommerce nav.woocommerce-pagination {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  display: flex;
}

/* Base style: every page number / prev / next / dots */
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}

/* Hover state */
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers:hover {
  color: var(--color-brand-charcoal);
  border-color: #e5e7eb;
  background: var(--color-brand-beige);
}

/* Active / current page */
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers.current {
  color: #fff;
  background: var(--color-brand-charcoal);
  border-color: var(--color-brand-charcoal);
  box-shadow: 0 2px 8px rgba(51,51,51,0.18);
  font-weight: 600;
}

/* Prev & Next arrows — give them more breathing room */
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers.prev,
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers.next {
  width: auto;
  padding: 0 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-charcoal);
  border-color: #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers.prev:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers li .page-numbers.next:hover {
  background: var(--color-brand-charcoal);
  color: #fff;
  border-color: var(--color-brand-charcoal);
  box-shadow: 0 4px 12px rgba(51,51,51,0.18);
}

/* Dots (…) */
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers.dots {
  border: none;
  background: transparent;
  color: #d1d5db;
  cursor: default;
  width: 1.5rem;
  letter-spacing: 0.05em;
}

/* --- Shop page title & breadcrumbs --- */
.woocommerce-products-header__title,
.woocommerce h1.page-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-brand-charcoal);
  margin-bottom: 0.5rem;
}

.woocommerce-breadcrumb {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}

/* --- Single product page --- */
.woocommerce div.product .product_title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-brand-charcoal);
}

.woocommerce div.product .price {
  color: #6b7280;
  font-size: 1.25rem;
  margin: 0.5rem 0 1.5rem;
}

.woocommerce div.product .single_add_to_cart_button {
  background: #FFA7A7 !important;
  color: #fff !important;
  border-radius: 9999px !important;
  padding: 0.85rem 2rem !important;
  border: none !important;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.woocommerce div.product .single_add_to_cart_button:hover {
  background: #FF8080 !important;
}

/* --- Cart & Checkout pages --- */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  text-align: left;
}

.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .wc-block-cart__submit-button,
.woocommerce-cart .wc-block-components-checkout-button,
.woocommerce-cart .wc-block-cart__submit a,
.woocommerce-cart .wc-block-cart__payment-button,
.woocommerce #place_order,
.woocommerce-checkout .wc-block-checkout__actions button,
.woocommerce-checkout .wc-block-components-checkout-button,
.woocommerce-checkout .wc-block-components-checkout-button button,
.woocommerce-checkout .wc-block-checkout__actions-row button {
  display: block !important;
  width: 100% !important;
  background: #FFA7A7 !important;
  color: #fff !important;
  padding: 1rem 2rem !important;
  border-radius: 9999px !important;
  border: none !important;
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  transition: background 0.3s, box-shadow 0.3s !important;
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart .wc-block-cart__submit-button:hover,
.woocommerce-cart .wc-block-components-checkout-button:hover,
.woocommerce-cart .wc-block-cart__submit a:hover,
.woocommerce-cart .wc-block-cart__payment-button:hover,
.woocommerce #place_order:hover,
.woocommerce-checkout .wc-block-checkout__actions button:hover,
.woocommerce-checkout .wc-block-components-checkout-button:hover,
.woocommerce-checkout .wc-block-components-checkout-button button:hover,
.woocommerce-checkout .wc-block-checkout__actions-row button:hover {
  background: #FF8080 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* --- Notices --- */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--color-brand-sage) !important;
  background: var(--color-brand-beige);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* --- Hide "Sale!" badge --- */
.woocommerce span.onsale {
  display: none !important;
}

/* --- Shop toolbar: results count + sorting on same row --- */
.woocommerce .woocommerce-products-header+.woocommerce-result-count,
.woocommerce-result-count {
  float: none;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
  padding: 0;
}

/* Put count + ordering on the same flex row */
.woocommerce .woocommerce-ordering,
.woocommerce-ordering {
  float: none;
  margin: 0;
}

/* Override WooCommerce float layout with flex */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  float: none !important;
}

/* Wrapper that holds both elements — we turn it into a flex row */
.woocommerce nav.woocommerce-ordering,
.woocommerce form.woocommerce-ordering {
  float: right !important;
}

/* Flex row container via the archive wrapper */
.woocommerce .woocommerce-products-header~*,
.woocommerce::before {
  clear: none;
}

/* Simple two-column flex via adjacent sibling trick */
.woocommerce .woocommerce-result-count+form.woocommerce-ordering {
  display: inline-block;
}

/* Proper row: target the div that WooCommerce wraps them in */
.woocommerce .woocommerce-result-count,
.woocommerce form.woocommerce-ordering {
  display: inline-flex !important;
  align-items: center;
  vertical-align: middle;
}

/* Style the select dropdown to look like a real filter pill */
.woocommerce form.woocommerce-ordering select,
.woocommerce .woocommerce-ordering select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  padding: 0.4rem 2.2rem 0.4rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-brand-charcoal);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.woocommerce form.woocommerce-ordering select:hover,
.woocommerce .woocommerce-ordering select:hover {
  border-color: var(--color-brand-charcoal);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.woocommerce form.woocommerce-ordering select:focus,
.woocommerce .woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--color-brand-charcoal);
  box-shadow: 0 0 0 3px rgba(51, 51, 51, .08);
}

/* ============================================================
   Single Product Page — Two-Column Layout
   Mirrors: evergardencandle.com/product/bloominglove/
   ============================================================ */

/* --- Breadcrumbs --- */
.woocommerce .woocommerce-breadcrumb {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.woocommerce .woocommerce-breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--color-brand-charcoal);
}

/* --- Two-column product layout --- */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "gallery summary"
    "tabs    tabs"
    "related related";
  gap: 0 4rem;
  align-items: start;
  padding: 2rem 0;
}

/* On mobile, stack vertically */
@media (max-width: 768px) {
  .woocommerce div.product {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "summary"
      "tabs"
      "related";
    gap: 2rem 0;
  }
}

/* --- Image Gallery (left column) --- */
.woocommerce div.product .woocommerce-product-gallery {
  grid-area: gallery;
  /* No sticky — image scrolls normally with page */
}

/* Hide the WooCommerce zoom magnifier icon */
.woocommerce div.product .woocommerce-product-gallery__trigger {
  display: none !important;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper {
  border-radius: 1rem;
  overflow: hidden;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
}

/* Thumbnail strip */
.woocommerce div.product .flex-viewport {
  border-radius: 1rem;
  overflow: hidden;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img {
  border-radius: 0.5rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  opacity: 1;
  border-color: var(--color-brand-charcoal);
}

/* --- Product Summary (right column) --- */
.woocommerce div.product .summary {
  grid-area: summary;
  padding-top: 0.5rem;
}

/* Remove WC's own top spacing */
.woocommerce div.product .summary.entry-summary {
  padding: 0;
}

/* Category label above title */
.woocommerce div.product .posted_in {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

/* Product title */
.woocommerce div.product .product_title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-brand-charcoal);
  line-height: 1.2;
  margin: 0 0 1rem;
}

/* Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-brand-charcoal) !important;
  margin-bottom: 1.5rem;
  display: block;
}

/* Short description */
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #6b7280;
  margin-bottom: 2rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 1.5rem;
}

/* Variations / size dropdown */
.woocommerce div.product .variations select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-brand-charcoal);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

/* Quantity + Add to Cart row */
.woocommerce div.product form.cart {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.woocommerce div.product form.cart .qty {
  width: 64px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.65rem 0.5rem;
  font-size: 1rem;
  font-family: var(--font-sans);
}

/* Add to Cart button */
.woocommerce div.product .single_add_to_cart_button {
  flex: 1;
  background: #FFA7A7 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.85rem 2rem !important;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s;
  letter-spacing: 0.02em;
}

.woocommerce div.product .single_add_to_cart_button:hover {
  background: #FF8080 !important;
}

/* Product meta (SKU, categories, tags) */
.woocommerce div.product .product_meta {
  border-top: 1px solid #f3f4f6;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 2;
}

.woocommerce div.product .product_meta a {
  color: var(--color-brand-charcoal);
  text-decoration: none;
}

.woocommerce div.product .product_meta a:hover {
  text-decoration: underline;
}

/* --- Tabs Section (below both columns) --- */
.woocommerce div.product .woocommerce-tabs {
  grid-area: tabs;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  padding-top: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  padding: 0;
  border: none;
  background: none;
  margin-right: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--color-brand-charcoal);
  border-bottom-color: var(--color-brand-charcoal);
}

.woocommerce div.product .woocommerce-tabs .panel {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #4b5563;
  max-width: 720px;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
  display: none;
  /* WC auto-inserts a heading — hide it, the tab label is enough */
}

/* --- Related Products --- */
.woocommerce div.product .related.products {
  grid-area: related;
  border-top: 1px solid #e5e7eb;
  padding-top: 3rem;
  margin-top: 3rem;
}

.woocommerce div.product .related.products>h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-brand-charcoal);
  margin-bottom: 2rem;
}

/* ============================================================
   My Account Page
   ============================================================ */

/* Logged-in: sidebar + content grid */
.woocommerce-account.logged-in .woocommerce {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .woocommerce-account.logged-in .woocommerce {
    grid-template-columns: 1fr;
  }
}

/* Logged-out: no grid, let the login form centre itself */
.woocommerce-account:not(.logged-in) .woocommerce {
  display: block;
  padding: 0;
}

/* Sidebar navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--color-brand-beige);
  border-radius: 1rem;
  padding: 1.5rem 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
  border-left: 3px solid transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  color: var(--color-brand-charcoal);
  background: rgba(0, 0, 0, .03);
  border-left-color: var(--color-brand-sage);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--color-brand-charcoal);
  font-weight: 600;
  border-left-color: var(--color-brand-charcoal);
}

/* Main content area */
.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-content p,
.woocommerce-account .woocommerce-MyAccount-content table {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #4b5563;
}

/* Section headings */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  font-family: var(--font-serif);
  color: var(--color-brand-charcoal);
  margin-bottom: 1rem;
}

/* Orders table */
.woocommerce-account table.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.woocommerce-account table.woocommerce-orders-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  border-bottom: 2px solid #f3f4f6;
}

.woocommerce-account table.woocommerce-orders-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #f3f4f6;
}

/* Form fields */
.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content textarea,
.woocommerce-account .woocommerce-MyAccount-content select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-brand-charcoal);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
  outline: none;
  border-color: var(--color-brand-charcoal);
  box-shadow: 0 0 0 3px rgba(51, 51, 51, .07);
}

/* Action buttons — outlined white pills with spacing */
.woocommerce-account .woocommerce-MyAccount-content .button {
  background: transparent;
  color: var(--color-brand-charcoal);
  border: 1px solid var(--color-brand-charcoal);
  border-radius: 9999px;
  padding: 0.3rem 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  margin: 0.2rem 0.25rem 0.2rem 0;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover {
  background: var(--color-brand-charcoal);
  color: #fff;
}

/* Submit buttons in forms — same outlined pill as action buttons */
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
  background: transparent;
  color: var(--color-brand-charcoal);
  border: 1px solid var(--color-brand-charcoal);
  border-radius: 9999px;
  padding: 0.55rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
  margin: 0.2rem 0.25rem 0.2rem 0;
}

.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover {
  background: var(--color-brand-charcoal);
  color: #fff;
}

/* Remove yellow highlight from order number, date, status in view-order */
.woocommerce-account .woocommerce-MyAccount-content mark {
  background: none;
  color: inherit;
  font-weight: 600;
}

/* Login page */
.woocommerce-page .woocommerce-form-login,
.woocommerce-page .woocommerce-form-register {
  max-width: 460px;
  background: var(--color-brand-beige);
  border-radius: 1rem;
  padding: 2.5rem;
  margin: 2rem auto;
}

.woocommerce-page .woocommerce-form-login h2,
.woocommerce-page .woocommerce-form-register h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-brand-charcoal);
}

.woocommerce-page .woocommerce-form-login .form-row input,
.woocommerce-page .woocommerce-form-register .form-row input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  box-sizing: border-box;
}

/* ============================================================
   Cart Page (native WooCommerce)
   ============================================================ */
.woocommerce-cart .woocommerce-cart-form table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-cart .woocommerce-cart-form table th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #f3f4f6;
  text-align: left;
}

.woocommerce-cart .woocommerce-cart-form table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.woocommerce-cart .cart_totals {
  margin-top: 2rem;
  max-width: 400px;
  margin-left: auto;
}

.woocommerce-cart .cart_totals h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.woocommerce-cart .cart_totals table {
  width: 100%;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.woocommerce-cart .cart_totals table td,
.woocommerce-cart .cart_totals table th {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f3f4f6;
}

/* --- Checkout Place Order Reposition Wrappers --- */
.block-place-order-wrapper,
.place-order-wrapper {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
}

/* Gutenberg block place order row container: vertical centered stack */
.block-place-order-wrapper {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  gap: 0.75rem !important;
}

/* Force ALL inner wrappers, divs, forms, and actions blocks inside the wrapper to stack vertically and reverse order */
.block-place-order-wrapper .wc-block-checkout__actions,
.block-place-order-wrapper .wc-block-components-checkout-step__actions,
.block-place-order-wrapper [class*="actions"],
.block-place-order-wrapper div:not(.wc-block-components-checkout-button) {
  display: flex !important;
  flex-direction: column-reverse !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0.75rem !important;
  grid-template-columns: none !important;
  /* Disable any WooCommerce CSS grid layouts */
  grid-template-rows: none !important;
  float: none !important;
}

/* Ensure the button wrapper behaves as a full-width block to force Return to Cart onto the next line */
.block-place-order-wrapper .wc-block-components-checkout-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Return to cart button layout: prevent wrapping to 2 lines, align perfectly center */
.block-place-order-wrapper .wc-block-components-checkout-return-to-cart-button,
.block-place-order-wrapper a.wc-block-components-checkout-return-to-cart-button {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  color: var(--color-brand-charcoal) !important;
  text-decoration: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  position: relative !important;
  transition: opacity 0.2s ease !important;
}

.block-place-order-wrapper .wc-block-components-checkout-return-to-cart-button:hover,
.block-place-order-wrapper a.wc-block-components-checkout-return-to-cart-button:hover {
  opacity: 0.8 !important;
  text-decoration: underline !important;
}

/* Remove/hide the SVG arrow inside the Return to Cart button completely */
.block-place-order-wrapper .wc-block-components-checkout-return-to-cart-button svg {
  display: none !important;
}

/* Place order button layout: centered, auto-width, premium proportions */
.block-place-order-wrapper .wc-block-components-checkout-place-order-button,
.block-place-order-wrapper button.wc-block-components-checkout-place-order-button,
.block-place-order-wrapper .wc-block-checkout__actions button {
  width: auto !important;
  min-width: 180px !important;
  display: inline-block !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  padding: 0.85rem 2.5rem !important;
  margin: 0 auto !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  border-radius: 9999px !important;
  background-color: #FFA7A7 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: var(--shadow-md) !important;
  transition: all 0.2s ease-in-out !important;
}

.block-place-order-wrapper .wc-block-components-checkout-place-order-button:hover,
.block-place-order-wrapper button.wc-block-components-checkout-place-order-button:hover,
.block-place-order-wrapper .wc-block-checkout__actions button:hover {
  background-color: #FF8080 !important;
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-1px) !important;
}

/* Hide empty cart icon, emoji, or image on the main Cart page */
.woocommerce-cart .wc-block-cart__empty-cart__title::before,
.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
.woocommerce-cart .wc-block-cart__empty-image,
.woocommerce-cart .wc-block-cart__empty-icon,
.woocommerce-cart .wc-block-cart__empty-icon-svg,
.woocommerce-cart .wc-block-cart__empty-container svg,
.woocommerce-cart .wc-block-cart__empty-container img,
.woocommerce-cart .cart-empty::before,
.woocommerce-cart .woocommerce-info::before,
.woocommerce-cart .wc-block-components-error__image,
.woocommerce-cart .wc-block-components-error__icon {
  display: none !important;
  content: none !important;
  background-image: none !important;
}

/* Push the suggestions below the empty cart message down with a larger line break */
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
  margin-bottom: 4rem !important;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-separator,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block hr {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-heading {
  margin-top: 2rem !important;
}

/* ============================================================
   11. WP Custom Menu Dropdown support
   ============================================================ */
/* Target sub-menu containers within primary menu */
nav .flex .menu-item-has-children {
  position: relative;
}

nav .flex .menu-item-has-children > ul.sub-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  margin-top: 0.375rem;
  width: 11rem;
  background-color: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 50;
  list-style: none;
}

nav .flex .menu-item-has-children:hover > ul.sub-menu {
  opacity: 1;
  visibility: visible;
}

/* Sub-menu link styles */
nav .flex .menu-item-has-children > ul.sub-menu a {
  display: block;
  padding: 0.625rem 1rem;
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  transition: color 0.15s, background-color 0.15s;
  text-decoration: none;
}

nav .flex .menu-item-has-children > ul.sub-menu a:hover {
  color: var(--color-brand-charcoal);
  background-color: #f9fafb;
}

/* Hide WooCommerce "View cart" link injected after AJAX add-to-cart */
a.added_to_cart {
  display: none !important;
}

/* ============================================================
   Super Socializer – Google / Social Login button
   Overrides the plugin's float-based layout so the circular
   icon button centres correctly inside our Tailwind card.
   ============================================================ */

/* "or" divider row */
.sj-social-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.25rem 0;
}
.sj-social-divider::before,
.sj-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.sj-social-divider span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Button wrapper – undo float-based layout from plugin */
.sj-social-login-wrap .the_champ_outer_login_container,
.sj-social-login-wrap .the_champ_login_container {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: auto !important;
  margin: 0 !important;
}
.sj-social-login-wrap ul.the_champ_login_ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center;
  gap: 0.625rem;
  width: auto !important;
}
.sj-social-login-wrap ul.the_champ_login_ul li {
  display: flex !important;
  align-items: center;
  float: none !important;
}
/* The <i> icon button itself */
.sj-social-login-wrap .theChampLogin {
  float: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  margin: 0 !important;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sj-social-login-wrap .theChampLogin:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}
/* Ensure the <ss> SVG fills the button */
.sj-social-login-wrap .theChampLoginSvg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
/* Title text (if set in plugin settings) */
.sj-social-login-wrap .the_champ_social_login_title {
  display: none;
}

/* Sign in with Google button */
.sj-google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.sj-google-signin-btn:hover {
  background: #f8faff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}
.sj-google-signin-btn svg {
  flex-shrink: 0;
}

/* ============================================================
   2FA (Simba TFA) – styled OTP prompt inside the login card
   tfa.js prepends label + input + submit into .woocommerce-form-login.
   ============================================================ */

/* Label above the OTP input */
.woocommerce-form-login label[for="simba_two_factor_auth"] {
  display: block !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #6b7280 !important;
  text-align: center;
  margin-bottom: 0.5rem !important;
}

/* The OTP text input */
.woocommerce-form-login #simba_two_factor_auth {
  width: 100% !important;
  border: 1px solid #d1d5db !important;
  border-radius: 9999px !important;
  padding: 0.8rem 1.5rem !important;
  font-family: var(--font-sans) !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.3em !important;
  text-align: center !important;
  color: var(--color-brand-charcoal) !important;
  background: #fff !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-sizing: border-box !important;
}
.woocommerce-form-login #simba_two_factor_auth:focus {
  outline: none !important;
  border-color: var(--color-brand-charcoal) !important;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.08) !important;
}

/* Help text below the input */
.woocommerce-form-login p.forgetmenot {
  max-width: 100% !important;
  text-align: center !important;
  margin: 0.4rem 0 0 !important;
}
.woocommerce-form-login .simba_tfa_otp_login_help {
  display: block;
  font-size: 0.72rem !important;
  color: #9ca3af !important;
  line-height: 1.6 !important;
  text-align: center;
}

/* "Trust this device" checkbox row */
.woocommerce-form-login #simba_tfa_mark_as_trusted {
  accent-color: var(--color-brand-charcoal);
  margin-right: 0.35rem;
}
.woocommerce-form-login label[for="simba_tfa_mark_as_trusted"] {
  font-size: 0.78rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #6b7280 !important;
}

/* Submit button that replaces the normal login button */
.woocommerce-form-login p.submit {
  margin: 0.75rem 0 0 !important;
}
.woocommerce-form-login #tfa_login_btn {
  display: block !important;
  width: 100% !important;
  background: var(--color-brand-charcoal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.875rem 1rem !important;
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  letter-spacing: 0.02em !important;
  transition: background 0.2s !important;
}
.woocommerce-form-login #tfa_login_btn:hover {
  background: #111 !important;
}

/* Card visual hint when 2FA mode is active */
.sj-tfa-active {
  border-color: var(--color-brand-charcoal) !important;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.06) !important;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* "Already trusted" device message */
.woocommerce-form-login .simbaotp_is_trusted {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  padding: 0.5rem 0;
}

/* AIOS simple-math captcha input */
input[name="aiowps-captcha-answer"],
.aiowps-captcha-answer {
  display: inline-block !important;
  -webkit-appearance: textfield !important;
  appearance: textfield !important;
  border: 1px solid #9ca3af !important;
  border-radius: 0.375rem !important;
  padding: 0.35rem 0.5rem !important;
  font-family: inherit !important;
  font-size: 0.875rem !important;
  color: #333 !important;
  background-color: #ffffff !important;
  width: 3.5rem !important;
  text-align: center !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}
input[name="aiowps-captcha-answer"]:focus,
.aiowps-captcha-answer:focus {
  outline: none !important;
  border-color: #9ca3af !important;
}

/* ============================================================
   Hide product short descriptions in Cart & Checkout blocks
   Keeps the "Discount: ..." line and variation/meta details,
   which render in a separate .wc-block-components-product-details list.
   ============================================================ */
.wc-block-components-product-metadata__description {
  display: none !important;
}