:root {
  --nuve-bg: #fbf7ef;
  --nuve-surface: #fffdf9;
  --nuve-olive: #555834;
  --nuve-olive-dark: #3f4228;
  --nuve-text: #343226;
  --nuve-muted: #777264;
  --nuve-line: #e5dccd;
  --nuve-gold: #b69542;
}

body.nuve-product-template-active { background: var(--nuve-bg); color: var(--nuve-text); }
.nuve-product-page { padding: 24px 0 0; background: var(--nuve-bg); }
.nuve-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.nuve-breadcrumbs { margin-bottom: 24px; font-size: 13px; color: var(--nuve-muted); }
.nuve-breadcrumbs a { color: inherit; text-decoration: none; }

.nuve-product-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 56px; align-items: start; }
.nuve-gallery-wrap { min-width: 0; }
.nuve-gallery-wrap .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.nuve-gallery-wrap .woocommerce-product-gallery__wrapper { border-radius: 12px; overflow: hidden; background: #f5eee4; }
.nuve-gallery-wrap .woocommerce-product-gallery__image img { width: 100%; display: block; }
.nuve-gallery-wrap .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(4, 92px); gap: 12px; margin: 14px 0 0 !important; padding: 0 !important; }
.nuve-gallery-wrap .flex-control-thumbs li { width: auto !important; float: none !important; list-style: none; }
.nuve-gallery-wrap .flex-control-thumbs img { border-radius: 8px; border: 1px solid transparent; opacity: .75; }
.nuve-gallery-wrap .flex-control-thumbs img.flex-active { border-color: var(--nuve-olive); opacity: 1; }

.nuve-summary-wrap { position: sticky; top: 24px; padding-top: 8px; }
.nuve-category { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--nuve-muted); margin-bottom: 10px; }
.nuve-category a { color: inherit; text-decoration: none; }
.nuve-product-title { margin: 0 0 12px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 4vw, 58px); line-height: 1.08; font-weight: 400; color: var(--nuve-olive-dark); }
.nuve-short-description { color: var(--nuve-muted); font-size: 17px; line-height: 1.65; }
.nuve-short-description p { margin: 0; }
.nuve-rating-row { margin: 18px 0 10px; }
.nuve-rating-row .star-rating, .nuve-product-card .star-rating { color: var(--nuve-gold); }
.nuve-price-row .price { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; color: var(--nuve-text); }
.nuve-price-row del { opacity: .5; font-size: .65em; }
.nuve-price-row ins { text-decoration: none; }
.nuve-stock-row { display: flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 14px; color: var(--nuve-olive); }
.nuve-stock-row .stock { margin: 0; }
.nuve-stock-dot { width: 8px; height: 8px; border-radius: 99px; background: #5f8a42; display: inline-block; }
.nuve-divider { border-top: 1px solid var(--nuve-line); margin: 22px 0; }

.nuve-cart-wrap form.cart { margin: 0 !important; }
.nuve-cart-wrap .variations { width: 100%; margin-bottom: 16px !important; }
.nuve-cart-wrap .variations th, .nuve-cart-wrap .variations td { display: block; text-align: left; padding: 0 0 8px !important; }
.nuve-cart-wrap .variations label { font-weight: 500; }
.nuve-cart-wrap select { width: 100%; min-height: 48px; border: 1px solid var(--nuve-line); border-radius: 6px; background: var(--nuve-surface); padding: 0 14px; color: var(--nuve-text); }
.nuve-cart-wrap .quantity { float: none !important; margin: 0 10px 12px 0 !important; }
.nuve-cart-wrap .qty { min-height: 50px; width: 80px; border: 1px solid var(--nuve-line); border-radius: 6px; background: var(--nuve-surface); }
.nuve-cart-wrap .single_add_to_cart_button { width: 100%; min-height: 52px; border: 0 !important; border-radius: 5px !important; background: var(--nuve-olive) !important; color: #fff !important; font-family: Georgia, 'Times New Roman', serif; font-size: 18px !important; font-weight: 400 !important; letter-spacing: .02em; transition: .2s ease; }
.nuve-cart-wrap .single_add_to_cart_button:hover { background: var(--nuve-olive-dark) !important; transform: translateY(-1px); }
.nuve-cart-wrap .reset_variations { color: var(--nuve-muted); font-size: 13px; }
.nuve-service-list { margin: 22px 0 16px; display: grid; gap: 12px; }
.nuve-service-item { display: flex; align-items: center; gap: 12px; color: var(--nuve-muted); font-size: 14px; }
.nuve-service-item > span:first-child { width: 25px; text-align: center; font-size: 18px; }
.nuve-meta { font-size: 12px; color: var(--nuve-muted); border-top: 1px solid var(--nuve-line); padding-top: 14px; }
.nuve-meta a { color: inherit; }

.nuve-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0 28px; }
.nuve-benefit { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 70px; border: 1px solid var(--nuve-line); border-radius: 8px; background: rgba(255,255,255,.45); text-align: center; padding: 12px; }
.nuve-benefit span { font-size: 21px; }
.nuve-benefit strong { font-size: 13px; font-weight: 500; }

.nuve-accordions { border: 1px solid var(--nuve-line); border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.38); }
.nuve-accordion + .nuve-accordion { border-top: 1px solid var(--nuve-line); }
.nuve-accordion-trigger { width: 100%; border: 0; background: transparent; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; color: var(--nuve-text); }
.nuve-accordion-content { padding: 0 24px 22px; color: #555147; line-height: 1.75; }
.nuve-accordion-content p:first-child { margin-top: 0; }
.nuve-accordion-icon { font-family: Arial, sans-serif; font-size: 22px; }

.nuve-related-products { padding: 64px 0 30px; }
.nuve-section-heading { text-align: center; margin-bottom: 26px; }
.nuve-section-heading span { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; color: var(--nuve-muted); }
.nuve-section-heading h2 { margin: 6px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 36px; font-weight: 400; color: var(--nuve-olive-dark); }
.nuve-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.nuve-product-card { background: var(--nuve-surface); border: 1px solid #eee5d8; border-radius: 10px; overflow: hidden; transition: .2s ease; }
.nuve-product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(56,49,36,.08); }
.nuve-product-card-image { display: block; background: #f1e9df; aspect-ratio: 1/1.05; overflow: hidden; }
.nuve-product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: .35s ease; }
.nuve-product-card:hover img { transform: scale(1.03); }
.nuve-product-card-body { padding: 16px; }
.nuve-product-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 500; }
.nuve-product-card h3 a { color: var(--nuve-text); text-decoration: none; }
.nuve-product-card-bottom { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.nuve-product-card .price { color: var(--nuve-text); }

.nuve-values { margin-top: 42px; padding: 30px 0 36px; border-top: 1px solid var(--nuve-line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nuve-values > div { display: flex; justify-content: center; align-items: center; gap: 13px; color: var(--nuve-muted); }
.nuve-values span { font-size: 28px; color: var(--nuve-olive); }
.nuve-values p { margin: 0; line-height: 1.4; font-size: 13px; }

/* Hide theme's duplicate WooCommerce sections if present */
.nuve-product-template-active .woocommerce-tabs,
.nuve-product-template-active .related.products,
.nuve-product-template-active .upsells.products { display: none !important; }

@media (max-width: 900px) {
  .nuve-product-hero { grid-template-columns: 1fr; gap: 28px; }
  .nuve-summary-wrap { position: static; }
  .nuve-benefits { grid-template-columns: repeat(2, 1fr); }
  .nuve-product-grid { gap: 16px; }
  .nuve-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nuve-container { width: min(100% - 24px, 1180px); }
  .nuve-product-page { padding-top: 12px; }
  .nuve-product-title { font-size: 38px; }
  .nuve-gallery-wrap .flex-control-thumbs { grid-template-columns: repeat(4, 1fr); }
  .nuve-benefits { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nuve-benefit { min-height: 82px; flex-direction: column; gap: 6px; }
  .nuve-product-grid { grid-template-columns: 1fr; }
  .nuve-values { grid-template-columns: 1fr 1fr; }
  .nuve-values > div { justify-content: flex-start; }
}
