.fh-wa {
  --fh-wa-border: #DADADA;
  --fh-wa-text: #242424;
  --fh-wa-muted: #8b837b;
  --fh-wa-active: #2a2a2a;
  --fh-wa-bg: #ffffff;
}

.fh-wa .product-info__block-list {
  gap: 0;
}

.fh-wa .product-info__block-item + .product-info__block-item {
  margin-top: 0;
}

.fh-wa__head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--fh-wa-border);
}

.fh-wa__sku {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .08em;
  color: #9a9289;
}

.fh-wa__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--fh-wa-text);
}

.fh-wa__collection {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a9289;
}

.fh-wa__panel {
  display: grid;
  gap: 0;
}

.fh-wa__group {
  padding: 18px 0;
  border-bottom: 1px solid var(--fh-wa-border);
}

.fh-wa__group:first-child {
  padding-top: 16px;
}

.fh-wa__label {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--fh-wa-text);
}

.fh-wa__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.fh-wa__group-head .fh-wa__label {
  margin: 0;
}

.fh-wa__size-help {
  font-size: 12px;
  line-height: 1.2;
  color: var(--fh-wa-muted);
}

.fh-wa__type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fh-wa__type-card,
.fh-wa__size-btn,
.fh-wa__frame-card {
  appearance: none;
  background: #fff;
  color: var(--fh-wa-text);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}

.fh-wa__type-card {
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
}

.fh-wa__type-card:hover {
  opacity: .84;
}

.fh-wa__type-card.is-active .fh-wa__type-icon {
  border-color: #7f7972;
}

.fh-wa__type-icon {
  width: 100%;
  max-width: 86px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #6d665f;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fh-wa__type-card:hover,
.fh-wa__type-card:focus,
.fh-wa__type-card.is-active {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.fh-wa__type-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

.fh-wa__type-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fh-wa__type-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.fh-wa__type-text {
  font-size: 13px;
  line-height: 1.25;
  color: var(--fh-wa-text);
}

.fh-wa__type-copy {
  padding-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: #5f5a54;
}

.fh-wa__type-copy ul {
  margin: 0;
  padding-left: 16px;
}

.fh-wa__type-copy li + li {
  margin-top: 2px;
}

.fh-wa__size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* SIZE */
.fh-wa__size-btn {
  min-width: 78px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(17, 17, 17, 0.28) !important;
  border-radius: 0;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  background: #fff !important;
  color: #111111 !important;
  box-shadow: none !important;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease !important;
}

.fh-wa__size-btn:not(.is-active):hover,
.fh-wa__size-btn:not(.is-active):focus-visible {
  background: var(--fh-btn-primary-hover) !important;
  border-color: var(--fh-btn-primary-hover) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
}

.fh-wa__size-btn.is-active,
.fh-wa__size-btn.is-active:hover,
.fh-wa__size-btn.is-active:focus-visible {
  background: var(--fh-btn-primary) !important;
  border-color: var(--fh-btn-primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
}

.fh-wa__frame-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.fh-wa__frame-card {
  border: 0;
  padding: 0;
  border-radius: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.fh-wa__frame-card:hover {
  opacity: .86;
}


.fh-wa__frame-text {
  font-size: 13px;
  line-height: 1.25;
  color: var(--fh-wa-text);
}

.fh-wa__subtotal {
  padding: 14px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  line-height: 1.2;
}

.fh-wa__subtotal-label {
  color: var(--fh-wa-text);
}

.fh-wa__subtotal-value {
  font-size: 22px;
  line-height: 1.1;
  color: var(--fh-wa-text);
}

.fh-wa__buy {
  padding-top: 14px;
}

/* WALL ART – ADD TO CART = same custom CTA as wallpaper */
.fh-wa__buy .button {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  min-height: 0 !important;
  padding: 0 24px !important;
  height: var(--fh-btn-height) !important;

  font: inherit !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;

  border: 1px solid var(--fh-btn-primary) !important;
  background: var(--fh-btn-primary) !important;
  color: #ffffff !important;

  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;

  transition:
    background-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms ease,
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* FabbHome overlay / sliding effect kapat */
.fh-wa__buy .button::before,
.fh-wa__buy .button::after {
  content: none !important;
  display: none !important;
}

/* İç span/text de beyaz kalsın */
.fh-wa__buy .button,
.fh-wa__buy .button span {
  color: #ffffff !important;
}

/* Hover = wallpaper ile aynı gold */
.fh-wa__buy .button:hover,
.fh-wa__buy .button:focus-visible {
  background: var(--fh-btn-primary-hover) !important;
  border-color: var(--fh-btn-primary-hover) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    0 8px 18px rgba(0,0,0,0.14) !important;
  outline: none !important;
}

.fh-wa__buy .button:hover span,
.fh-wa__buy .button:focus-visible span {
  color: #ffffff !important;
}

.fh-wa__trust {
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #4a4743;
}

.fh-wa__native-picker {
  display: none !important;
}

.fh-wa [hidden] {
  display: none !important;
}

@media (min-width: 1000px) {
  #fabbhome-section-{{ section.id }} .product__info,
  .fh-wa {
    position: sticky;
    top: 110px;
  }
}

@media (max-width: 999px) {
  .fh-wa__type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .fh-wa__frame-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .fh-wa__title {
    font-size: 20px;
  }

  .fh-wa__type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fh-wa__frame-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fh-wa__size-grid {
    gap: 10px;
  }

  .fh-wa__size-btn {
    min-width: calc(50% - 5px);
  }
}

/* WALL ART DESKTOP TITLE */
.fh-wa__title {
  font-family: "Sainte Colombe", serif !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}



/* ===== WALL ART FINAL SELECTOR STATES ===== */

.fh-wa {
  --fh-wa-hover-accent: #c4b8aa;
  --fh-wa-selected-accent: #2a2a2a;
}

/* TYPE */
.fh-wa__type-card {
  border: 1px solid transparent !important;
  border-radius: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px !important;
  opacity: 1 !important;
  transition: border-color .18s ease, opacity .18s ease !important;
}

.fh-wa__type-card:hover {
  border-color: var(--fh-wa-hover-accent) !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.fh-wa__type-card.is-active {
  border-color: var(--fh-wa-selected-accent) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fh-wa__type-card:focus,
.fh-wa__type-card:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.fh-wa__type-icon,
.fh-wa__type-icon img,
.fh-wa__type-card.is-active .fh-wa__type-icon,
.fh-wa__type-card.is-active .fh-wa__type-icon img {
  filter: none !important;
  opacity: 1 !important;
}

.fh-wa__type-text,
.fh-wa__type-card.is-active .fh-wa__type-text {
  color: #242424 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  border: 0 !important;
}

.fh-wa__type-text::after,
.fh-wa__type-card.is-active .fh-wa__type-text::after {
  display: none !important;
  content: none !important;
}

/* SIZE */
.fh-wa__size-btn {
  border: 1px solid #8f8981 !important;
  color: #242424 !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}

.fh-wa__size-btn:hover {
  border-color: var(--fh-wa-hover-accent) !important;
  box-shadow: none !important;
}

.fh-wa__size-btn.is-active {
  border-color: var(--fh-wa-selected-accent) !important;
  box-shadow: inset 0 0 0 1px var(--fh-wa-selected-accent) !important;
  color: #242424 !important;
}

.fh-wa__size-btn.is-active,
.fh-wa__size-btn.is-active:hover,
.fh-wa__size-btn.is-active:focus-visible {
  background: var(--fh-btn-primary) !important;
  border-color: var(--fh-btn-primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
}


/* ===== WALL ART FRAME OPTIONS – FINAL ===== */

.fh-wa__frame-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.fh-wa__frame-card {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 6px;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: none;
}

.fh-wa__frame-card:hover {
  border-color: var(--fh-wa-hover-accent: #c4b8aa);
  background: transparent;
  box-shadow: none;
}

.fh-wa__frame-card.is-active {
  border-color: var(--fh-wa-selected-accent, #2a2a2a);
  box-shadow: inset 0 0 0 1px var(--fh-wa-selected-accent, #2a2a2a);
  background: transparent;
}

.fh-wa__frame-card:focus,
.fh-wa__frame-card:focus-visible {
  outline: none;
  box-shadow: none;
}

.fh-wa__frame-thumb {
  display: block;
  width: 100%;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.fh-wa__frame-thumb::before,
.fh-wa__frame-thumb::after {
  display: none !important;
  content: none !important;
}

.fh-wa__frame-text {
  font-size: 13px;
  line-height: 1.25;
  color: var(--fh-wa-text, #242424);
}

/* FRAME IMAGES */
.fh-wa__frame-thumb--oak {
  background-image: url("/wp-content/themes/fabbhome/assets/frame-oak.jpg");
}

.fh-wa__frame-thumb--walnut {
  background-image: url("/wp-content/themes/fabbhome/assets/frame-walnut.jpg");
}

.fh-wa__frame-thumb--black {
  background-image: url("/wp-content/themes/fabbhome/assets/frame-black.jpg");
}

.fh-wa__frame-thumb--white {
  background-image: url("/wp-content/themes/fabbhome/assets/frame-white.jpg");
}

.fh-wa__frame-thumb--gold {
  background-image: url("/wp-content/themes/fabbhome/assets/frame-gold.jpg");
}

@media (max-width: 640px) {
  .fh-wa__frame-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .fh-wa__frame-thumb {
    max-width: 90px;
  }

  .fh-wa__frame-text {
    font-size: 12px;
  }
}


/* ===== WALL ART – GALLERY SECOND SLIDE MOCKUP ===== */

.fh-wa-gallery-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 1152 / 1340;
  overflow: hidden;
}

.fh-wa-gallery-mockup__bg,
.fh-wa-gallery-mockup__base,
.fh-wa-gallery-mockup__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fh-wa-gallery-mockup__bg {
  z-index: 1;
}

.fh-wa-gallery-mockup__base {
  z-index: 2;
}

.fh-wa-gallery-mockup__art {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: var(--fh-wa-art-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  mix-blend-mode: multiply;
  -webkit-mask-image: var(--fh-wa-art-mask);
  mask-image: var(--fh-wa-art-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.fh-wa-gallery-mockup__frame {
  z-index: 4;
  pointer-events: none;
}


@media (max-width: 767px) {
  .fh-wa__size-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .fh-wa__size-btn {
    width: 100%;
    min-width: 0;
    padding: 12px 8px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
  }
}


/* --------------------------------
   FH – PRICE STYLE
-------------------------------- */

.fh-wa__subtotal-value{
  font-family: "Sainte Colombe", serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .02em;
}

.fh-wa__subtotal-value{
  font-family: "Times New Roman", Times, serif;
  font-size: 27px;
  font-weight: 500;
}


/* MOBILE TITLE ABOVE GALLERY */
.fh-wa__mobile-title {
  display: none;
}

@media (max-width: 999px) {
  .fh-wa__mobile-title {
    display: block !important;
    margin: 8px 0 10px !important;
    padding: 0 !important;
  }

  .fh-wa__mobile-title-text {
    display: block !important;
    margin: 0 !important;
    font-family: "Sainte Colombe", serif !important;
    font-size: 20px !important;
    line-height: 1.12 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: left !important;
    color: #242424 !important;
  }

  .fh-wa__head {
    display: none !important;
  }
}

@media (min-width: 1000px) {
  .fh-wa__mobile-title {
    display: none !important;
  }
}

.fh-title {
  font-family: "Sainte Colombe", serif !important;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 400;
  text-transform: none;
}

/* ===== SHOPIFY MATCH FIXES ===== */

/* 1. Art Type card - less rounded border */
.fh-wa__type-card {
  border-radius: 8px !important;
  padding: 10px !important;
}

/* 2. Size buttons - single row, no wrap */
.fh-wa__size-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.fh-wa__size-grid::-webkit-scrollbar { display: none; }
.fh-wa__size-btn {
  flex-shrink: 0 !important;
  min-width: auto !important;
  padding: 10px 16px !important;
}

/* 3. Frame grid - bigger images, less gap */
#opt-frame-wrap .fh-wa__type-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

/* 4. Frame card - less rounded, no inner image border */
#opt-frame-wrap .fh-wa__type-card {
  border-radius: 6px !important;
  padding: 6px !important;
}

#opt-frame-wrap .fh-wa__type-icon {
  border: none !important;
  border-radius: 4px !important;
  max-width: 110px !important;
  background: #f0edea;
}

#opt-frame-wrap .fh-wa__type-card.is-active .fh-wa__type-icon {
  border: none !important;
}

/* 5. Frame images bigger */
#opt-frame-wrap .fh-wa__type-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 6. Mobile size - allow scroll instead of wrap */
@media (max-width: 767px) {
  .fh-wa__size-grid {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
  }
  .fh-wa__size-btn {
    min-width: auto !important;
    width: auto !important;
  }
}

/* Size buttons - fit all in one row */
.fh-wa__size-btn {
  padding: 10px 12px !important;
  font-size: 12px !important;
}
.fh-wa__size-grid {
  gap: 8px !important;
}

/* Size buttons - fill full width, no scroll */
.fh-wa__size-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
  flex-wrap: unset !important;
  overflow-x: visible !important;
  gap: 8px !important;
}
.fh-wa__size-btn {
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px 4px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  flex-shrink: unset !important;
}

/* Size grid - mobile 3 columns, desktop single row */
@media (max-width: 767px) {
  .fh-wa__size-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (min-width: 768px) {
  .fh-wa__size-grid {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
  }
}
