/* Doobee brand styling for the Dropoil Custom Drawing Necklace product page */

body.single-product.postid-3779 {
  --cream: #F1ECE8;
  --cream-soft: #F8F4F1;
  --ink: #4B1800;
  --ink-soft: #7A4A2E;
  --terracotta: #BE8B6B;
  --terracotta-deep: #A9754F;
  --peach: #FABC97;
  --peach-soft: #F6D8C5;
  --accent: #F04B00;

  background: var(--cream);
  color: var(--ink);
}

body.single-product.postid-3779 .ast-container {
  background: var(--cream);
}

body.single-product.postid-3779,
body.single-product.postid-3779 input,
body.single-product.postid-3779 textarea,
body.single-product.postid-3779 button {
  font-family: 'Noto Sans JP', sans-serif;
}

body.single-product.postid-3779 .product_title,
body.single-product.postid-3779 .doobee-pdp h2,
body.single-product.postid-3779 .doobee-pdp h3,
body.single-product.postid-3779 .doobee-pdp h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}

body.single-product.postid-3779 .product_title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem) !important;
}

/* ---------- price ---------- */
body.single-product.postid-3779 .summary .price,
body.single-product.postid-3779 .summary .price .woocommerce-Price-amount {
  color: var(--ink) !important;
  font-weight: 700;
  font-family: 'Fraunces', serif;
}

body.single-product.postid-3779 .woocommerce-product-rating .star-rating {
  color: var(--terracotta-deep);
}

/* ---------- variation labels ---------- */
body.single-product.postid-3779 .doobee-pdp__swatch-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}

body.single-product.postid-3779 table.variations th.label label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink);
  text-transform: none;
}

body.single-product.postid-3779 table.variations,
body.single-product.postid-3779 table.variations tr,
body.single-product.postid-3779 table.variations td,
body.single-product.postid-3779 table.variations th {
  border: none;
  background: transparent;
}

/* ---------- swatches: shared ---------- */
body.single-product.postid-3779 .cfvsw-swatches-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

body.single-product.postid-3779 .cfvsw-swatches-option {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(75, 24, 0, 0.18);
}

body.single-product.postid-3779 .cfvsw-swatches-option:hover {
  transform: translateY(-2px);
}

/* Metal swatches (color type, circular) */
body.single-product.postid-3779 [swatches-attr="attribute_pa_colour"] .cfvsw-swatches-option.cfvsw-selected-swatch {
  box-shadow: 0 0 0 3px var(--cream-soft), 0 0 0 5px var(--accent);
}

/* Chain length swatches (label type, pill-shaped) */
body.single-product.postid-3779 [swatches-attr="attribute_pa_chain-length"] .cfvsw-swatches-option {
  border-radius: 999px !important;
  padding: 0.55rem 1.15rem !important;
  min-width: auto !important;
  min-height: auto !important;
  background: transparent;
  border: 1.5px solid rgba(75, 24, 0, 0.25);
  box-shadow: none;
}

body.single-product.postid-3779 [swatches-attr="attribute_pa_chain-length"] .cfvsw-swatch-inner {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

body.single-product.postid-3779 [swatches-attr="attribute_pa_chain-length"] .cfvsw-swatches-option.cfvsw-selected-swatch {
  background: var(--ink);
  border-color: var(--ink);
}

body.single-product.postid-3779 [swatches-attr="attribute_pa_chain-length"] .cfvsw-swatches-option.cfvsw-selected-swatch .cfvsw-swatch-inner {
  color: var(--cream);
}

body.single-product.postid-3779 .cfvsw-swatches-option.cfvsw-swatches-disabled,
body.single-product.postid-3779 .cfvsw-swatches-option.cfvsw-swatches-out-of-stock {
  opacity: 0.35;
  pointer-events: none;
}

body.single-product.postid-3779 .cfvsw-tooltip {
  background: var(--ink);
  border-radius: 6px;
}

/* ---------- add to cart button ---------- */
body.single-product.postid-3779 .single_add_to_cart_button,
body.single-product.postid-3779 button.single_add_to_cart_button {
  background: var(--ink) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.9rem 2.5rem !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px -8px rgba(75, 24, 0, 0.55);
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s cubic-bezier(.22,1,.36,1), background-color 0.25s ease;
}

body.single-product.postid-3779 .single_add_to_cart_button:hover {
  background: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(240, 75, 0, 0.55);
}

body.single-product.postid-3779 .single_add_to_cart_button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.single-product.postid-3779 .quantity input.qty {
  border-radius: 999px;
  border: 1.5px solid rgba(75, 24, 0, 0.25);
  text-align: center;
  height: 2.6rem;
}

/* ---------- upload + note fields ---------- */
body.single-product.postid-3779 .doobee-upload-field,
body.single-product.postid-3779 .doobee-note-field {
  margin: 1.25rem 0;
}

body.single-product.postid-3779 .doobee-upload-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

body.single-product.postid-3779 .doobee-required {
  color: var(--accent);
}

body.single-product.postid-3779 .doobee-optional {
  font-weight: 400;
  color: var(--ink-soft);
}

body.single-product.postid-3779 .doobee-dropzone {
  border: 1.5px dashed rgba(75, 24, 0, 0.35);
  border-radius: 1.25rem;
  background: var(--cream-soft);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.single-product.postid-3779 .doobee-dropzone:hover {
  border-color: var(--accent);
  background: var(--peach-soft);
}

body.single-product.postid-3779 .doobee-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  cursor: pointer;
}

body.single-product.postid-3779 .doobee-upload-hint {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

body.single-product.postid-3779 .doobee-note-field textarea {
  width: 100%;
  background: var(--cream-soft);
  border: 1.5px solid rgba(75, 24, 0, 0.2);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--ink);
}

body.single-product.postid-3779 .doobee-note-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 75, 0, 0.15);
}

/* ---------- long description (.doobee-pdp) ---------- */
body.single-product.postid-3779 .doobee-pdp {
  color: var(--ink);
  line-height: 1.7;
  max-width: 760px;
}

body.single-product.postid-3779 .doobee-pdp section {
  margin-bottom: 2.75rem;
}

body.single-product.postid-3779 .doobee-pdp__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--terracotta-deep);
  margin: 0 0 0.4rem;
}

body.single-product.postid-3779 .doobee-pdp p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

body.single-product.postid-3779 .doobee-pdp__about p {
  margin: 0.75rem 0;
}

body.single-product.postid-3779 .doobee-pdp__spec-list {
  margin: 1rem 0 0;
}

body.single-product.postid-3779 .doobee-pdp__spec-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(75, 24, 0, 0.15);
  font-size: 0.9rem;
}

body.single-product.postid-3779 .doobee-pdp__spec-row:last-child {
  border-bottom: 1px solid rgba(75, 24, 0, 0.15);
}

body.single-product.postid-3779 .doobee-pdp__spec-row .doobee-pdp__spec-label {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

body.single-product.postid-3779 .doobee-pdp__spec-row .doobee-pdp__spec-value {
  margin: 0;
  color: var(--ink);
}

body.single-product.postid-3779 .doobee-pdp__steps-grid,
body.single-product.postid-3779 .doobee-pdp__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

body.single-product.postid-3779 .doobee-pdp__step,
body.single-product.postid-3779 .doobee-pdp__guide-card {
  background: var(--cream-soft);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 14px 30px -18px rgba(75, 24, 0, 0.28), 0 2px 6px -2px rgba(75, 24, 0, 0.12);
}

body.single-product.postid-3779 .doobee-pdp__step-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta-deep);
  display: block;
  margin-bottom: 0.6rem;
}

body.single-product.postid-3779 .doobee-pdp__step h4,
body.single-product.postid-3779 .doobee-pdp__guide-card p:first-child {
  margin: 0 0 0.5rem;
}

body.single-product.postid-3779 .doobee-pdp__guide-len {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

body.single-product.postid-3779 .doobee-pdp__guide-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terracotta-deep);
  margin-top: -0.3rem !important;
}

/* ---------- Product Input Fields plugin (drawing upload) ---------- */
body.single-product.postid-3779 .alg-product-input-fields-table{ width:100%; border-collapse:collapse; margin:1.25rem 0; }
body.single-product.postid-3779 .alg-product-input-fields-table tr{ display:block; margin-bottom:0.6rem; }
body.single-product.postid-3779 .alg-product-input-fields-table td{ display:block; padding:0; border:none; }
body.single-product.postid-3779 .alg-product-input-fields-table label{ display:block; font-size:0.78rem; font-weight:700; color:var(--ink); margin-bottom:0.6rem; }
body.single-product.postid-3779 .alg-product-input-fields-table label abbr.required{ color:var(--accent); text-decoration:none; }
body.single-product.postid-3779 input.doobee-pif-file{
  display:block;
  width:100%;
  padding:1.25rem;
  border:1.5px dashed rgba(75,24,0,0.35);
  border-radius:1.25rem;
  background:var(--cream-soft);
  font-size:0.82rem;
  color:var(--ink-soft);
  transition:border-color 0.2s ease, background-color 0.2s ease;
}
body.single-product.postid-3779 input.doobee-pif-file:hover{ border-color:var(--accent); background:var(--peach-soft); }
body.single-product.postid-3779 input.doobee-pif-file::file-selector-button{
  display:inline-flex; align-items:center; gap:0.4rem;
  font-size:0.82rem; font-weight:700; color:var(--ink);
  background:var(--cream); border:1.5px solid var(--accent); border-radius:999px;
  padding:0.5rem 1.1rem; margin-right:0.75rem; cursor:pointer;
}

/* ---------- soften the PIF blocks-JS required-field notice ---------- */
body.single-product.postid-3779 .alg-pif-blocks-error{
  background: var(--peach-soft) !important;
  border: 1.5px solid var(--accent) !important;
  color: var(--ink) !important;
  border-radius: 1rem !important;
  padding: 0.9rem 1.15rem !important;
  font-size: 0.85rem !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  line-height: 1.5 !important;
}
body.single-product.postid-3779 .alg-pif-blocks-error::before{ display:none !important; content:none !important; }

/* ---------- force explicit pixel sizing for metal swatches (avoid % height ambiguity) ---------- */
body.single-product.postid-3779 [swatches-attr="attribute_pa_colour"] .cfvsw-swatches-option{
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  flex: 0 0 auto !important;
  padding: 2px !important;
  background: var(--cream-soft) !important;
  box-sizing: border-box !important;
}
body.single-product.postid-3779 [swatches-attr="attribute_pa_colour"] .cfvsw-swatch-inner{
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  display: block !important;
}

/* ---------- gray-band var (reviews section bg) ---------- */
body.single-product.postid-3779 {
  --gray-band: #B2B2B2;
}

/* ---------- single tab, always open, nav hidden ---------- */
body.single-product.postid-3779 .woocommerce-tabs.wc-tabs-wrapper ul.tabs {
  display: none !important;
}

body.single-product.postid-3779 .woocommerce-tabs.wc-tabs-wrapper {
  border: none;
  padding: 0;
  margin: 2.75rem 0 0;
}

body.single-product.postid-3779 .woocommerce-tabs.wc-tabs-wrapper .woocommerce-Tabs-panel {
  display: block !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---------- trust row (3 checkmark items under add to cart) ---------- */
body.single-product.postid-3779 .doobee-pdp-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid rgba(75, 24, 0, 0.15);
  list-style: none;
}

body.single-product.postid-3779 .doobee-pdp-trust li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

body.single-product.postid-3779 .doobee-pdp-trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1rem;
  height: 1rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12l5 5L20 6' stroke='%23A9754F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 700px) {
  body.single-product.postid-3779 .doobee-pdp-trust {
    grid-template-columns: 1fr;
  }
}

/* ---------- steps "see full process" link ---------- */
body.single-product.postid-3779 .doobee-pdp__steps-link {
  margin-top: 1.25rem !important;
}

body.single-product.postid-3779 .doobee-pdp__steps-link a {
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 1.5px solid var(--terracotta);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.single-product.postid-3779 .doobee-pdp__steps-link a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- FAQ section ---------- */
body.single-product.postid-3779 .doobee-pdp-faq {
  border-top: 1px solid rgba(75, 24, 0, 0.12);
  padding: 4rem 0;
}

body.single-product.postid-3779 .doobee-pdp-faq__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

body.single-product.postid-3779 .doobee-pdp-faq h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0.2rem 0 2.5rem;
}

body.single-product.postid-3779 .doobee-pdp-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

body.single-product.postid-3779 .doobee-pdp-faq__item {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(75, 24, 0, 0.15);
}

body.single-product.postid-3779 .doobee-pdp-faq__item h3 {
  font-family: 'Noto Sans JP', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem;
  margin: 0 0 0.3rem;
  color: var(--ink);
}

body.single-product.postid-3779 .doobee-pdp-faq__item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  body.single-product.postid-3779 .doobee-pdp-faq__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- reviews/testimonials section ---------- */
body.single-product.postid-3779 .doobee-pdp-reviews {
  background: var(--gray-band);
  padding: 3.5rem 0 5rem;
  margin-top: 2rem;
}

body.single-product.postid-3779 .doobee-pdp-reviews__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

body.single-product.postid-3779 .doobee-pdp-reviews h2 {
  text-align: center;
  color: var(--cream);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 2.5rem;
}

body.single-product.postid-3779 .doobee-pdp-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

body.single-product.postid-3779 .doobee-pdp-reviews__card {
  background: var(--cream-soft);
  border-radius: 1rem;
  padding: 1.5rem;
}

body.single-product.postid-3779 .doobee-pdp-reviews__card p:first-child {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}

body.single-product.postid-3779 .doobee-pdp-reviews__author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1rem 0 0 !important;
}

body.single-product.postid-3779 .doobee-pdp-reviews__cta {
  text-align: center;
  margin-top: 2.5rem;
}

body.single-product.postid-3779 .doobee-pdp-reviews__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(.22,1,.36,1);
}

body.single-product.postid-3779 .doobee-pdp-reviews__back:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  body.single-product.postid-3779 .doobee-pdp-reviews__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- product gallery restyle ---------- */
body.single-product.postid-3779 .woocommerce-product-gallery {
  max-width: 100%;
}

body.single-product.postid-3779 .woocommerce-product-gallery .flex-viewport {
  border-radius: 1.75rem;
  overflow: hidden;
  border: 6px solid var(--cream-soft);
  box-shadow: 0 24px 48px -20px rgba(75, 24, 0, 0.35), 0 4px 14px -6px rgba(75, 24, 0, 0.2);
  background: var(--peach-soft);
}

body.single-product.postid-3779 .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 0.75rem;
  gap: 0.6rem;
}

body.single-product.postid-3779 .woocommerce-product-gallery .flex-control-thumbs li img {
  border-radius: 0.85rem;
  box-shadow: 0 6px 14px -8px rgba(75, 24, 0, 0.35);
  transition: transform 0.2s ease;
}

body.single-product.postid-3779 .woocommerce-product-gallery .flex-control-thumbs li img:hover {
  transform: translateY(-2px);
}

body.single-product.postid-3779 .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0.85rem;
}

/* ---------- remove SKU / category line ---------- */
body.single-product.postid-3779 .product_meta {
  display: none !important;
}

/* ---------- remove any residual express-checkout button markup ---------- */
body.single-product.postid-3779 .wcpay-express-checkout-wrapper,
body.single-product.postid-3779 #wc-stripe-express-checkout-element,
body.single-product.postid-3779 #wcpay-express-checkout-element {
  display: none !important;
}

/* ---------- Afterpay / BNPL message, repositioned below Add to Cart ---------- */
body.single-product.postid-3779 #payment-method-message {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- square-crop every gallery image/thumb to a consistent 1:1 ratio (matches the uploaded 1000×1000 set) ---------- */
body.single-product.postid-3779 .woocommerce-product-gallery .woocommerce-product-gallery__image,
body.single-product.postid-3779 .woocommerce-product-gallery .woocommerce-product-gallery__image a,
body.single-product.postid-3779 .woocommerce-product-gallery .flex-viewport {
  aspect-ratio: 1 / 1;
}

body.single-product.postid-3779 .woocommerce-product-gallery .woocommerce-product-gallery__image img,
body.single-product.postid-3779 .woocommerce-product-gallery .flex-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

body.single-product.postid-3779 .woocommerce-product-gallery .flex-control-thumbs li {
  aspect-ratio: 1 / 1;
}

body.single-product.postid-3779 .woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
