/* Small Django-specific fixes that keep the WP theme CSS intact */

/* Keep filter sections closed until a tab activates them (desktop tabs only).
   Mobile uses accordion headers and forces display:block in theme CSS. */
@media screen and (min-width: 1180px) {
  .section-filters .wpc-filters-widget-content .wpc-filters-section:not(.is-active) {
    display: none;
  }
  .section-filters .wpc-filters-widget-content .wpc-filters-section.is-active {
    display: block;
  }
  .section-filters .wpc-filter-header {
    display: none;
  }
}

/* Apply button spacing inside filter widget */
.section-filters .wpc-filters-apply-button {
  margin-top: 1.5rem;
}

/* Price range row layout (Filter Everything markup without plugin CSS) */
.section-filters .wpc-filters-section.wpc-filter-_price .wpc-filters-range-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.section-filters .wpc-filters-section.wpc-filter-_price .wpc-filters-range-column {
  position: relative;
}

/* Generic pill chips for any attribute the theme CSS doesn't name
   (e.g. Size). Mirrors theme rules for product_cat / pa_color / etc. */
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_size .wpc-filters-ul-list,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_bracelet-size .wpc-filters-ul-list,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_name-type .wpc-filters-ul-list,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_diamond-diameter .wpc-filters-ul-list,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_gold-color .wpc-filters-ul-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1875rem;
  overflow: visible !important;
}
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_size .wpc-term-item-content-wrapper,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_bracelet-size .wpc-term-item-content-wrapper,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_name-type .wpc-term-item-content-wrapper,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_diamond-diameter .wpc-term-item-content-wrapper,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_gold-color .wpc-term-item-content-wrapper {
  position: relative;
}
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_size .wpc-term-item-content-wrapper input,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_bracelet-size .wpc-term-item-content-wrapper input,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_name-type .wpc-term-item-content-wrapper input,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_diamond-diameter .wpc-term-item-content-wrapper input,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_gold-color .wpc-term-item-content-wrapper input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_size .wpc-term-item-content-wrapper label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_bracelet-size .wpc-term-item-content-wrapper label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_name-type .wpc-term-item-content-wrapper label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_diamond-diameter .wpc-term-item-content-wrapper label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_gold-color .wpc-term-item-content-wrapper label {
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.5rem;
  min-width: 10.375rem;
  padding: 0 16px;
  cursor: pointer;
}
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_size .wpc-term-item-content-wrapper:hover label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_bracelet-size .wpc-term-item-content-wrapper:hover label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_name-type .wpc-term-item-content-wrapper:hover label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_diamond-diameter .wpc-term-item-content-wrapper:hover label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_gold-color .wpc-term-item-content-wrapper:hover label {
  background-color: #d4d4d4;
}
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_size .wpc-term-item-content-wrapper input:checked + label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_bracelet-size .wpc-term-item-content-wrapper input:checked + label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_name-type .wpc-term-item-content-wrapper input:checked + label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_diamond-diameter .wpc-term-item-content-wrapper input:checked + label,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_gold-color .wpc-term-item-content-wrapper input:checked + label {
  background-color: #000;
}
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_size .wpc-filter-link,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_size .wpc-term-name,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_bracelet-size .wpc-filter-link,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_bracelet-size .wpc-term-name,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_name-type .wpc-filter-link,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_name-type .wpc-term-name,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_diamond-diameter .wpc-filter-link,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_diamond-diameter .wpc-term-name,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_gold-color .wpc-filter-link,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_gold-color .wpc-term-name {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1rem;
  line-height: 100%;
  color: #000;
  text-decoration: none;
  pointer-events: none;
}
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_size .wpc-term-item-content-wrapper input:checked + label .wpc-filter-link,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_size .wpc-term-item-content-wrapper input:checked + label .wpc-term-name,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_bracelet-size .wpc-term-item-content-wrapper input:checked + label .wpc-filter-link,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_bracelet-size .wpc-term-item-content-wrapper input:checked + label .wpc-term-name,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_name-type .wpc-term-item-content-wrapper input:checked + label .wpc-filter-link,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_name-type .wpc-term-item-content-wrapper input:checked + label .wpc-term-name,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_diamond-diameter .wpc-term-item-content-wrapper input:checked + label .wpc-filter-link,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_diamond-diameter .wpc-term-item-content-wrapper input:checked + label .wpc-term-name,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_gold-color .wpc-term-item-content-wrapper input:checked + label .wpc-filter-link,
.section-filters .wpc-filters-widget-content .wpc-filters-section.wpc-filter-pa_gold-color .wpc-term-item-content-wrapper input:checked + label .wpc-term-name {
  color: #fff;
}

/* Theme filter pills: stop # links from navigating */
.section-filters .wpc-filter-link {
  text-decoration: none;
  pointer-events: none;
}

/* Absolute inputs need a positioned wrapper (plugin CSS normally provides this) */
.section-filters .wpc-term-item-content-wrapper {
  position: relative;
}

/* Search page: search box full-width above title + sort */
.shop-results .search-header.search-header--has-search {
  flex-direction: column;
  align-items: stretch;
  padding-right: 0;
  padding-left: 0;
}

.shop-results .search-header.search-header--has-search .search-block {
  width: 100%;
  max-width: 100%;
  flex: none;
}

.shop-results .search-header .search-header__main {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding-right: 16.25rem;
}

html[dir="rtl"] .shop-results .search-header .search-header__main {
  padding-right: 0;
  padding-left: 16.25rem;
}

@media screen and (max-width: 1179px) {
  .shop-results .search-header .search-header__main {
    padding-right: 0;
    padding-left: 0;
  }
}

/* Shop/category: unwrap so heading + sort stay direct flex children of .search-header */
.shop-results .search-header:not(.search-header--has-search) .search-header__main {
  display: contents;
  padding: 0;
}

/* Ensure CDN product images fill the photo frame */
.search-products-grid .photo img,
.product-card .photo img,
.item-image img,
.order-item-product .photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Hide empty gallery carousel shell */
.my-gallery-grid:empty {
  display: none !important;
}

/* Parent menu items that only open dropdowns */
.header-wg .main-menu > ul > li > a[href="#"] {
  cursor: default;
}

/* Variation swatches (theme styles target vi-wpvs_*; plugin CSS is not bundled) */
.section-product-view .product-view-block .summary .variations,
.section-product-view .product-view-block .summary .variations tbody,
.section-product-view .product-view-block .summary .variations tr.vi-wpvs-variation-style {
  display: block;
  width: 100%;
  border: 0;
}

.section-product-view .product-view-block .summary .variations th.label,
.section-product-view .product-view-block .summary .variations td.value {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  vertical-align: top;
}

.section-product-view .product-view-block .summary .variations th.label {
  margin-bottom: 0.75rem;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1rem;
}

.section-product-view .product-view-block .summary .variations th.label label {
  font-weight: 500;
}

.variations .vi-wpvs-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.section-product-view .product-view-block .product-view-top .vi-wpvs-variation-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  pointer-events: auto;
}

.section-product-view .product-view-block .product-view-top
  .vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design
  .vi-wpvs-option-wrap {
  display: flex;
  cursor: pointer;
  box-sizing: border-box;
  padding: 12px 16px;
  min-width: auto;
  min-height: auto;
  margin: 0 !important;
  background-color: transparent;
  border: 1px solid #adadad;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.section-product-view .product-view-block .product-view-top
  .vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design
  .vi-wpvs-option-wrap:hover:not(.vi-wpvs-option-wrap-selected) {
  background-color: #ececec;
  border-color: #000;
}

.section-product-view .product-view-block .product-view-top
  .vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design
  .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected {
  background-color: #000;
  border-color: #000;
  color: #fff;
  box-shadow: none;
}

.section-product-view .product-view-block .product-view-top
  .vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design
  .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected
  .vi-wpvs-option-tooltip {
  color: #fff;
}

.section-product-view .product-view-block .product-view-top
  .vi-wpvs-option-tooltip {
  display: block;
  position: relative;
  visibility: visible;
  opacity: 1;
  left: unset;
  bottom: unset;
  transform: none;
  margin-top: 0;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  color: #000;
  text-align: center;
  white-space: nowrap;
}

/* Gold / color: circles only, no label text */
.section-product-view .product-view-block .product-view-top
  .vi-wpvs-variation-wrap[data-attribute="attribute_pa_gold-color"]
  .vi-wpvs-option-wrap,
.section-product-view .product-view-block .product-view-top
  .vi-wpvs-variation-wrap[data-attribute="attribute_pa_color"]
  .vi-wpvs-option-wrap,
.section-product-view .product-view-block .product-view-top
  .vi-wpvs-option-wrap--swatch {
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
}

.section-product-view .product-view-block .product-view-top
  .vi-wpvs-variation-wrap[data-attribute="attribute_pa_gold-color"]
  .vi-wpvs-option-wrap:hover:not(.vi-wpvs-option-wrap-selected),
.section-product-view .product-view-block .product-view-top
  .vi-wpvs-variation-wrap[data-attribute="attribute_pa_color"]
  .vi-wpvs-option-wrap:hover:not(.vi-wpvs-option-wrap-selected),
.section-product-view .product-view-block .product-view-top
  .vi-wpvs-option-wrap--swatch:hover:not(.vi-wpvs-option-wrap-selected) {
  background: transparent !important;
  border-color: #adadad;
}

.section-product-view .product-view-block .product-view-top
  .vi-wpvs-variation-wrap[data-attribute="attribute_pa_gold-color"]
  .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected,
.section-product-view .product-view-block .product-view-top
  .vi-wpvs-variation-wrap[data-attribute="attribute_pa_color"]
  .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected,
.section-product-view .product-view-block .product-view-top
  .vi-wpvs-option-wrap--swatch.vi-wpvs-option-wrap-selected {
  background: transparent !important;
  border-color: #000;
  box-shadow: none !important;
}

.section-product-view .product-view-block .product-view-top
  .vi-wpvs-option.vi-wpvs-option-swatch {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  flex-shrink: 0;
  filter: none !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.section-product-view .product-view-block .product-view-top
  .vi-wpvs-option-wrap-selected
  .vi-wpvs-option.vi-wpvs-option-swatch {
  opacity: 1;
  filter: none !important;
}

.vi-wpvs-swatch--18k-rose-gold,
.vi-wpvs-swatch--rose-gold {
  background-color: #e0a090;
}
.vi-wpvs-swatch--18k-white-gold,
.vi-wpvs-swatch--white-gold {
  background-color: #d8d8d8;
}
.vi-wpvs-swatch--18k-yellow-gold,
.vi-wpvs-swatch--yellow-gold {
  background-color: #d4af37;
}

@media screen and (max-width: 1179px) {
  .section-product-view .product-view-block .product-view-top
    .vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design
    .vi-wpvs-option-wrap:not(.vi-wpvs-option-wrap--swatch) {
    min-width: calc(33.333% - 0.375rem);
    min-height: 52px;
    justify-content: center;
  }
}

@media screen and (max-width: 567px) {
  .section-product-view .product-view-block .product-view-top
    .vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design
    .vi-wpvs-option-wrap:not(.vi-wpvs-option-wrap--swatch) {
    min-width: calc(50% - 0.25rem);
  }
}

/* Custom option ring-size buttons */
.custom-fields-wrapper .ring-size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.custom-fields-wrapper .ring-size-button {
  padding: 8px 12px;
  border: 1px solid #adadad;
  background: #fff;
  cursor: pointer;
  min-width: 45px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1rem;
  color: #000;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.custom-fields-wrapper .ring-size-button:hover {
  border-color: #000;
}

.custom-fields-wrapper .ring-size-button.selected,
.custom-fields-wrapper .ring-size-button.active {
  border-color: #000;
  background: #000;
  color: #fff;
}

/* Checkout: shipping methods (theme styles were cart-only) */
.woocommerce:not(body) .checkout.woocommerce-checkout .checkout-shipping-methods {
  margin-top: 3.25rem;
  max-width: 47.5rem;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .woocommerce-shipping-methods li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  padding-left: 0;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .woocommerce-shipping-methods li label {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 1rem;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .woocommerce-shipping-methods .shipping-price {
  white-space: nowrap;
  opacity: 0.7;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .wc_payment_methods li label img {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  height: 1.5rem;
  width: auto;
}

/* Notes + attach in payment step */
.woocommerce:not(body) .checkout.woocommerce-checkout .notes-attach-wrap {
  position: relative;
  margin-bottom: 1.5rem;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .notes-attach-wrap .textarea-controls {
  display: inline-flex;
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  gap: 0.25rem;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .notes-attach-wrap .ctrl-btn.attach-btn {
  width: 4.5rem;
  height: 4.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: all 0.35s ease;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .notes-attach-wrap .ctrl-btn.attach-btn input[type="file"] {
  display: none;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .notes-attach-wrap .ctrl-btn.attach-btn .attach-label {
  font-size: 1.75rem;
  line-height: 1;
  color: #fff;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .notes-attach-wrap .file-status {
  position: absolute;
  left: 0;
  top: -10px;
  transform: translate(0%, -100%);
  font-size: 12px;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .checkout-item .variation {
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .checkout-item .variation dt,
.woocommerce:not(body) .checkout.woocommerce-checkout .checkout-item .variation dd {
  display: inline;
  margin: 0;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .checkout-item .variation dt {
  font-weight: 500;
  margin-right: 0.25rem;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .checkout-item .variation dd {
  margin-right: 0.75rem;
  opacity: 0.7;
}

@media screen and (max-width: 1179px) {
  .woocommerce:not(body) .checkout.woocommerce-checkout .checkout-shipping-methods {
    margin-top: 1.5rem;
    max-width: 100%;
  }

  .woocommerce:not(body) .checkout.woocommerce-checkout .notes-attach-wrap .ctrl-btn.attach-btn {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* Account pages */
body.woocommerce-account .woocommerce {
  width: 100%;
}

.woocommerce:not(body) .woocommerce-block .woocommerce-MyAccount-content .heading.entry-title-account {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 93%;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

@media screen and (max-width: 1179px) {
  .woocommerce:not(body) .woocommerce-block .woocommerce-MyAccount-content .heading.entry-title-account {
    font-size: 40px;
    margin-bottom: 24px;
  }
}

form.woocommerce-EditAccountForm .form-row-first,
form.woocommerce-EditAccountForm .form-row-last,
form.form-edit-address .form-row-first,
form.form-edit-address .form-row-last {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}

form.woocommerce-EditAccountForm .form-row-first,
form.form-edit-address .form-row-first {
  margin-right: 4%;
}

form.woocommerce-EditAccountForm .clear,
form.form-edit-address .clear {
  clear: both;
}

form.woocommerce-EditAccountForm .input-text,
form.form-edit-address .input-text,
.woocommerce-account-forms .input-text {
  width: 100%;
}

form.woocommerce-EditAccountForm #account_display_name_description {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.45);
}

.woocommerce-Addresses.col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0 3rem;
}

@media screen and (max-width: 1179px) {
  .woocommerce-Addresses.col2-set {
    grid-template-columns: 1fr;
  }

  form.woocommerce-EditAccountForm .form-row-first,
  form.woocommerce-EditAccountForm .form-row-last,
  form.form-edit-address .form-row-first,
  form.form-edit-address .form-row-last {
    width: 100%;
    margin-right: 0;
  }
}

/* Fixed header clearance for all non-home pages */
body:not(.home):not(.page-template-about) .content-wg {
  padding-top: 10rem; /* ~160px — clears fixed .header-wg */
}

@media screen and (max-width: 1179px) {
  body:not(.home):not(.page-template-about) .content-wg {
    padding-top: 112px;
  }
}

/*
 * Theme sections bake header clearance into their own margin-top.
 * Reset those so we don't get a double gap under the global offset.
 * About keeps its native .section-about-top margin (page uses no content-wg pad).
 */
body:not(.home) .shop-search-results,
body:not(.home) .section-page-cart,
body:not(.home) .section-product-view,
body:not(.home) .auth--login,
body:not(.home) .auth--register,
body:not(.home) .auth--lost-password,
body:not(.home) .section-contacts-top,
body:not(.home) .section-delivery-option,
body:not(.home) .section-legal,
body:not(.home) .woocommerce:not(body) {
  margin-top: 0 !important;
}

/* Social login icons are <a> tags — keep theme button look */
.reg-block .links a.link {
  text-decoration: none;
  color: inherit;
}

/* Legal pages: keep text column visible beside the flower image */
body:has(.section-legal) .content-wg {
  overflow-y: visible;
}

.section-legal .wrapper-main {
  flex-wrap: wrap;
}

.section-legal .section-legal__block {
  flex: 1 1 20rem;
  min-width: 0;
}

.section-legal .content {
  overflow: visible;
}

/* Custom jewelry request form */
.section-custom-jewelry {
  padding: 1.5rem 0 6rem;
}

.section-custom-jewelry .custom-jewelry-intro {
  max-width: none;
  margin: 1rem 0 2.5rem;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.55);
}

.custom-jewelry-form {
  max-width: none;
  width: 100%;
}

.custom-form-section {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.custom-form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.custom-form-section__title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.custom-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.custom-jewelry-form .form-group {
  margin-bottom: 0;
  min-width: 0;
}

.custom-jewelry-form .form-group--full,
.custom-jewelry-form .form-group--submit {
  grid-column: 1 / -1;
}

.custom-jewelry-form .form-group--submit {
  margin-top: 0.5rem;
}

.custom-jewelry-form label {
  display: block;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: #000;
}

.custom-jewelry-form label .req {
  color: #000;
}

.custom-jewelry-form .input-text,
.custom-jewelry-form select.input-text,
.custom-jewelry-form textarea.input-text {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: #fff;
  font-family: var(--font-family);
  font-size: 1rem;
  color: #000;
  border-radius: 0;
}

.custom-jewelry-form textarea.input-text {
  min-height: 150px;
  resize: vertical;
  height: 150px;
}

.custom-jewelry-form .field-hint {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.4);
}

.custom-jewelry-form .upload-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 500;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.custom-jewelry-form .upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.custom-jewelry-form .upload-file-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.875rem;
}

.custom-jewelry-form .upload-file-list li {
  margin-top: 0.25rem;
  color: rgba(0, 0, 0, 0.55);
}

.custom-jewelry-form .custom-submit-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-jewelry-form .custom-submit-btn span {
  color: #fff;
}

.custom-jewelry-form .iti {
  width: 100%;
  display: block;
}

.custom-jewelry-form .iti .input-text {
  padding-left: 5.5rem;
}

/* PDP: favourites button under Add to cart, matching .btn look */
.section-product-view .product-view-block .product-view-top .single_add_to_wishlist_button {
  width: 100%;
  margin-top: 0.75rem;
  display: inline-flex;
}

.section-product-view .product-view-block .product-view-top .single_add_to_cart_button {
  margin-bottom: 0;
}

@media screen and (max-width: 1179px) {
  .section-custom-jewelry {
    padding: 1rem 0 4rem;
  }

  .custom-form-section__title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .custom-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Footer: match theme subscribe form + social icon sizing */
.footer-wg .top .subscribe-form {
  width: 100%;
  max-width: 32.3125rem;
}

.footer-wg .top .subscribe-form .wpcf7-form-control-wrap {
  position: relative;
  flex-grow: 1;
  display: inline-flex;
  max-width: calc(100% - 14.0625rem);
  align-items: center;
  min-width: 0;
}

.footer-wg .top .subscribe-form .subscribe-input {
  flex-grow: 1;
  min-width: 0;
  width: 100%;
}

.footer-wg .bottom .l .logo img {
  max-width: 10.875rem;
  max-height: 3rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-wg .bottom .social-links {
  gap: 1.5rem;
}

.footer-wg .bottom .social-links__item {
  max-width: 65px;
  flex: 0 0 auto;
}

.footer-wg .bottom .social-links__item img {
  width: 100%;
  height: auto;
  max-width: 65px;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Native country selects — match checkout / address text inputs */
.woocommerce:not(body) .checkout.woocommerce-checkout .form-row select.input-text,
.woocommerce:not(body) .checkout.woocommerce-checkout .form-row select.country-select,
form.form-edit-address select.input-text,
form.form-edit-address select.country-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 47.5rem;
  display: block;
  box-sizing: border-box;
  background-color: #f7f7f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 0.75rem 0.5rem;
  border: 1px solid #adadad;
  border-radius: 0;
  padding: 0.5rem 2.75rem 0.5rem 1.375rem;
  height: 4rem;
  font-weight: 400;
  font-size: 1rem;
  color: #000;
  font-family: var(--font-family);
  line-height: 138%;
  cursor: pointer;
}

html[dir="rtl"] .woocommerce:not(body) .checkout.woocommerce-checkout .form-row select.input-text,
html[dir="rtl"] .woocommerce:not(body) .checkout.woocommerce-checkout .form-row select.country-select,
html[dir="rtl"] form.form-edit-address select.input-text,
html[dir="rtl"] form.form-edit-address select.country-select {
  background-position: left 1.25rem center;
  padding: 0.5rem 1.375rem 0.5rem 2.75rem;
}

.woocommerce:not(body) .checkout.woocommerce-checkout .form-row select.input-text:focus,
.woocommerce:not(body) .checkout.woocommerce-checkout .form-row select.country-select:focus,
form.form-edit-address select.input-text:focus,
form.form-edit-address select.country-select:focus {
  outline: none;
  border-color: #000;
}

@media screen and (max-width: 1179px) {
  .woocommerce:not(body) .checkout.woocommerce-checkout .form-row select.input-text,
  .woocommerce:not(body) .checkout.woocommerce-checkout .form-row select.country-select,
  form.form-edit-address select.input-text,
  form.form-edit-address select.country-select {
    max-width: 100%;
  }
}

@media screen and (max-width: 1179px) {
  .footer-wg .top .subscribe-form .wpcf7-form-control-wrap {
    width: 100%;
    max-width: 100%;
  }

  .footer-wg .bottom .social-links__item {
    width: calc(25% - 16px);
    max-width: none;
  }

  .footer-wg .bottom .social-links__item img {
    max-width: 100px;
    width: 100%;
  }
}

/* Logout as button styled like nav link */
.logout-form {
  display: inline;
  margin: 0;
}
.logout-form .logout-link {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.product-about-heading {
  display: inline;
  margin: 0;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

/* WYSIWYG product HTML — undo site CSS reset (lists/headings look blank otherwise) */
.woocommerce-product-details__short-description,
.full-description .main-product-content,
.section-product-view .accordion .answer {
  line-height: 1.45;
}

.woocommerce-product-details__short-description p,
.full-description .main-product-content p,
.section-product-view .accordion .answer p {
  margin: 0 0 0.85em;
}

.woocommerce-product-details__short-description p:last-child,
.full-description .main-product-content p:last-child,
.section-product-view .accordion .answer p:last-child {
  margin-bottom: 0;
}

.woocommerce-product-details__short-description ul,
.full-description .main-product-content ul,
.section-product-view .accordion .answer ul {
  list-style: disc outside !important;
  margin: 0.5em 0 0.85em !important;
  padding-left: 1.35rem !important;
}

.woocommerce-product-details__short-description ol,
.full-description .main-product-content ol,
.section-product-view .accordion .answer ol {
  list-style: decimal outside !important;
  margin: 0.5em 0 0.85em !important;
  padding-left: 1.35rem !important;
}

html[dir="rtl"] .woocommerce-product-details__short-description ul,
html[dir="rtl"] .woocommerce-product-details__short-description ol,
html[dir="rtl"] .full-description .main-product-content ul,
html[dir="rtl"] .full-description .main-product-content ol,
html[dir="rtl"] .section-product-view .accordion .answer ul,
html[dir="rtl"] .section-product-view .accordion .answer ol {
  padding-left: 0 !important;
  padding-right: 1.35rem !important;
}

.woocommerce-product-details__short-description li,
.full-description .main-product-content li,
.section-product-view .accordion .answer li {
  display: list-item !important;
  list-style: inherit !important;
  margin: 0.2em 0;
}

.woocommerce-product-details__short-description h2,
.woocommerce-product-details__short-description h3,
.woocommerce-product-details__short-description h4,
.full-description .main-product-content h2,
.full-description .main-product-content h3,
.full-description .main-product-content h4,
.section-product-view .accordion .answer h2,
.section-product-view .accordion .answer h3,
.section-product-view .accordion .answer h4 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
  margin: 1em 0 0.4em;
  color: #000;
}

.woocommerce-product-details__short-description h2,
.full-description .main-product-content h2,
.section-product-view .accordion .answer h2 {
  font-size: 1.35em;
}

.woocommerce-product-details__short-description h3,
.full-description .main-product-content h3,
.section-product-view .accordion .answer h3 {
  font-size: 1.2em;
}

.woocommerce-product-details__short-description h4,
.full-description .main-product-content h4,
.section-product-view .accordion .answer h4 {
  font-size: 1.05em;
}

.woocommerce-product-details__short-description strong,
.woocommerce-product-details__short-description b,
.full-description .main-product-content strong,
.full-description .main-product-content b,
.section-product-view .accordion .answer strong,
.section-product-view .accordion .answer b {
  font-weight: 700;
}

.woocommerce-product-details__short-description em,
.woocommerce-product-details__short-description i,
.full-description .main-product-content em,
.full-description .main-product-content i,
.section-product-view .accordion .answer em,
.section-product-view .accordion .answer i {
  font-style: italic;
}

.woocommerce-product-details__short-description a,
.full-description .main-product-content a,
.section-product-view .accordion .answer a {
  text-decoration: underline;
  color: inherit;
}

.woocommerce-product-details__short-description blockquote,
.full-description .main-product-content blockquote,
.section-product-view .accordion .answer blockquote {
  margin: 0.85em 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(0, 0, 0, 0.2);
}

.woocommerce-product-details__short-description table,
.full-description .main-product-content table,
.section-product-view .accordion .answer table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.woocommerce-product-details__short-description th,
.woocommerce-product-details__short-description td,
.full-description .main-product-content th,
.full-description .main-product-content td,
.section-product-view .accordion .answer th,
.section-product-view .accordion .answer td {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0.4em 0.6em;
  vertical-align: top;
}

/* Product 3D viewer */
.woocommerce-product-gallery.images {
  position: relative;
}

.product-3d-open-btn {
  margin: 0;
  padding: 0.55em 1em;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.product-gallery-actions {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.product-gallery-actions .product-3d-open-btn {
  position: static;
  width: 100%;
  white-space: nowrap;
}

.product-tryon-open-btn {
  background: rgba(26, 26, 26, 0.88);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.product-tryon-open-btn:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.product-3d-open-btn:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.35);
}

.product-3d-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-3d-modal[hidden] {
  display: none !important;
}

.product-3d-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.55);
}

.product-3d-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  height: min(80vh, 720px);
  background: #f4f2ef;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.product-3d-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.product-3d-modal__title {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.product-3d-modal__close {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.35em 0.5em;
}

.product-3d-modal__canvas {
  flex: 1;
  min-height: 0;
  width: 100%;
}

.product-3d-modal__canvas canvas,
.product-3d-modal__canvas model-viewer {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.product-3d-modal__status {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #666;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.product-3d-open {
  overflow: hidden;
}

/* Virtual try-on (MediaPipe + camera) */
.product-tryon-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-tryon-modal[hidden] {
  display: none !important;
}

.product-tryon-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.72);
}

.product-tryon-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(92vh, 860px);
  background: #0a0a0c;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.product-tryon-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #111;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-tryon-modal__title {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.product-tryon-modal__close {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.35em 0.5em;
}

.product-tryon-modal__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
}

.product-tryon-modal__video,
.product-tryon-modal__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  max-width: none;
  max-height: none;
}

.product-tryon-modal__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: #111;
  color: #ccc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-tryon-modal__scale {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-tryon-modal__scale input[type="range"] {
  width: 120px;
}

.product-tryon-modal__status {
  margin: 0;
  font-size: 0.75rem;
  color: #999;
  text-align: right;
}

body.product-tryon-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .product-tryon-modal {
    padding: 0;
  }

  .product-tryon-modal__panel {
    width: 100%;
    max-height: 100vh;
    height: 100%;
  }

  .product-tryon-modal__stage {
    aspect-ratio: auto;
    flex: 1;
  }
}

/* Cart: quantity stepper (+ / −) and visible Update cart button */
.section-page-cart .cart-block .woocommerce-cart-form .woocommerce-cart-form__contents tbody td.actions .btn--update-cart {
  display: inline-flex;
}

.section-page-cart .cart-block .woocommerce-cart-form .woocommerce-cart-form__contents tbody td.product-quantity .quantity--stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #e8e8e8;
}

.section-page-cart .cart-block .woocommerce-cart-form .woocommerce-cart-form__contents tbody td.product-quantity .quantity--stepper .qty {
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  margin: 0;
  background: transparent;
}

.section-page-cart .cart-block .woocommerce-cart-form .woocommerce-cart-form__contents tbody td.product-quantity .qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 3rem;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
  color: #000;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.section-page-cart .cart-block .woocommerce-cart-form .woocommerce-cart-form__contents tbody td.product-quantity .qty-btn:hover {
  opacity: 0.55;
}

@media screen and (max-width: 1179px) {
  .section-page-cart .cart-block .woocommerce-cart-form .woocommerce-cart-form__contents tbody td.product-quantity .quantity--stepper {
    margin-left: auto;
  }

  html[dir="rtl"] .section-page-cart .cart-block .woocommerce-cart-form .woocommerce-cart-form__contents tbody td.product-quantity .quantity--stepper {
    margin-left: unset;
    margin-right: auto;
  }
}

/* Wishlist: styled remove control on product grid cards */
.search-products-grid .wishlist-remove-form,
.woosw-list .wishlist-remove-form {
  margin-top: 1rem;
  text-align: center;
}

.search-products-grid .wishlist-remove-btn,
.woosw-list .wishlist-remove-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.search-products-grid .wishlist-remove-btn span,
.woosw-list .wishlist-remove-btn span {
  position: relative;
}
