/**
 * Verymarts Modern Product Detail Page (PDP) Reskin
 */

/* ==========================================================
   1. PRODUCT TITLE, PRICE & BREADCRUMBS
   ========================================================== */
.product-info .product-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}

@media (min-width: 850px) {
  .product-info .product-title {
    font-size: 28px !important;
  }
}

.product-info .price {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #18181b !important;
  margin-bottom: 16px !important;
}

.product-info .price del {
  color: #9ca3af !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  margin-right: 8px !important;
}

.product-info .price ins {
  text-decoration: none !important;
  color: #18181b !important;
}

/* Size Guide link / button */
.size-guide-btn,
a.size-guide,
.size-guide {
  color: #c89a3f !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  margin-left: 10px !important;
}

/* ==========================================================
   2. VARIANT PILL BUTTONS (WCPA RADIO GROUP)
   ========================================================== */
.wcpa_form_item.wcpa_type_radio-group > label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-bottom: 10px !important;
  display: block !important;
}

.wcpa_form_item .radio-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
}

.wcpa_form_item .wcpa_radio {
  margin: 0 !important;
  position: relative !important;
}

.wcpa_form_item .wcpa_radio input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.wcpa_form_item .wcpa_radio label {
  min-width: 48px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  background-color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.wcpa_form_item .wcpa_radio label:hover {
  border-color: #18181b !important;
  background-color: #f9fafb !important;
}

/* Active / Checked State */
.wcpa_form_item .wcpa_radio input[type="radio"]:checked + label {
  background-color: #18181b !important;
  color: #ffffff !important;
  border-color: #18181b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Hide default square checkbox marker from WCPA */
.wcpa_form_item .wcpa_radio label .wcpa_check {
  display: none !important;
}

/* ==========================================================
   3. PERSONALIZATION TEXT FIELD (WCPA CUSTOM INPUT)
   ========================================================== */
.wcpa_form_item.wcpa_type_text > label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.wcpa_form_item.wcpa_type_text input[type="text"],
.wcpa_form_item input.wcpa_text {
  width: 100% !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: #1f2937 !important;
  background-color: #ffffff !important;
  height: 46px !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.wcpa_form_item.wcpa_type_text input[type="text"]:focus,
.wcpa_form_item input.wcpa_text:focus {
  border-color: #18181b !important;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08) !important;
  outline: none !important;
}

/* ==========================================================
   4. QUANTITY STEPPER & ADD TO CART BUTTON
   ========================================================== */
.product-info .cart {
  margin-top: 20px !important;
  margin-bottom: 24px !important;
}

/* Quantity input */
.product-info .quantity {
  margin-right: 12px !important;
}

.product-info .quantity .button.minus,
.product-info .quantity .button.plus {
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #1f2937 !important;
  width: 40px !important;
  height: 48px !important;
  line-height: 46px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.product-info .quantity input.qty {
  border: 1px solid #e5e7eb !important;
  border-left: none !important;
  border-right: none !important;
  height: 48px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  max-width: 50px !important;
}

/* Main Add To Cart Button */
.single_add_to_cart_button.button.alt,
button.single_add_to_cart_button {
  background-color: #18181b !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.15) !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.single_add_to_cart_button.button.alt:hover,
button.single_add_to_cart_button:hover {
  background-color: #27272a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(24, 24, 27, 0.2) !important;
}

/* ==========================================================
   5. PDP TRUST BADGES BOX
   ========================================================== */
.vm-pdp-trust-box {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.vm-pdp-trust-item {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.vm-pdp-trust-item:last-child {
  margin-bottom: 0;
}

.vm-pdp-trust-item .vm-trust-icon {
  margin-right: 10px;
  font-size: 16px;
}

/* ==========================================================
   6. MOBILE STICKY ADD TO CART BAR
   ========================================================== */
.vm-sticky-atc-bar {
  display: none;
}

@media (max-width: 849px) {
  .vm-sticky-atc-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    padding: 10px 16px;
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateY(120%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .vm-sticky-atc-bar.is-visible {
    transform: translateY(0);
  }

  .vm-sticky-atc-prod {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .vm-sticky-atc-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
  }

  .vm-sticky-atc-meta {
    min-width: 0;
  }

  .vm-sticky-atc-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .vm-sticky-atc-price {
    font-size: 14px;
    font-weight: 700;
    color: #18181b;
    display: block;
  }

  .vm-sticky-atc-btn {
    background-color: #18181b !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 18px !important;
    white-space: nowrap !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    flex-shrink: 0;
  }
}

/* ==========================================================
   PRODUCT TABS - clean underline style
   Flatsome draws a full-width top line (ul::before) + active bar at TOP (a::before).
   We keep ONE bottom divider and move the active bar to the bottom.
   ========================================================== */
/* Flatsome: .product-footer .woocommerce-tabs { border-top:1px solid #ececec } -> the full-width top line */
.product-footer .woocommerce-tabs,
.woocommerce-tabs {
  border-top: 0 !important;
}

.woocommerce-tabs ul.tabs,
.woocommerce-tabs .product-tabs {
  border-top: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  margin-bottom: 24px !important;
  box-shadow: none !important;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs .product-tabs::before {
  display: none !important;
}

.woocommerce-tabs ul.tabs > li {
  border: 0 !important;
  margin-bottom: -1px !important;
}

.woocommerce-tabs ul.tabs li a {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #6b7280 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 14px 20px !important;
  transition: color 0.15s ease !important;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: #18181b !important;
}

/* Active indicator: bottom bar aligned on the divider */
.woocommerce-tabs ul.tabs li a::before {
  top: auto !important;
  bottom: 0 !important;
  height: 2px !important;
  background-color: #18181b !important;
}

/* ==========================================================
   GALLERY – rounded corners to match cards/buttons
   ========================================================== */
.product-gallery .woocommerce-product-gallery__wrapper,
.product-gallery .product-gallery-slider,
.product-gallery .flickity-viewport {
  border-radius: 16px;
  overflow: hidden;
}
.product-gallery .woocommerce-product-gallery__image img { border-radius: 0; }
.product-thumbnails .col a,
.product-thumbnails .col img {
  border-radius: 10px !important;
  overflow: hidden;
}
.product-thumbnails .col a {
  border: 1.5px solid transparent !important;
  transition: border-color .2s, opacity .2s;
}
.product-thumbnails .col img { opacity: .65; transition: opacity .2s; }
.product-thumbnails .is-nav-selected a { border-color: #18181b !important; }
.product-thumbnails .is-nav-selected img,
.product-thumbnails .col:hover img { opacity: 1 !important; }
.product-gallery .zoom-button {
  background: rgba(255,255,255,.9) !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
/* options panel (WCPA) – same radius */
.single-product form.cart .wcpa_form_outer { border-radius: 14px; }
