/* ============================================================
   UDO SYSTEMS — Custom Styles
   Product page (ID 8184) + Category archive

   File path:
   /wp-content/themes/Avada/assets/css/udo-custom.css

   Enqueued from functions.php — see udo_enqueue_custom_css()
   ============================================================ */


/* ------------------------------------------------------------
   VARIABLES
   ------------------------------------------------------------ */
:root {
  --udo-blue:        #0B3C7D;
  --udo-blue-dark:   #08305F;
  --udo-accent:      #0B4DA2;
  --udo-navy:        #0a2540;
  --udo-ink:         #1A1A1A;
  --udo-body:        #4A4A4A;
  --udo-muted:       #5A5A5A;
  --udo-line:        #D8D8DE;
  --udo-bg-grey:     #F0F0F4;
  --udo-bg-gallery:  #f3f3f3;
  --udo-white:       #FFFFFF;
}


/* ============================================================
   1. CATEGORY ARCHIVE — PRODUCT GRID SWATCHES
   ============================================================ */

.udo-swatches {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 6px;
  flex-wrap: wrap;
}

.udo-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.gallery-svi.woocommerce-product-gallery.woocommerce-product-gallery--with-images.svi-variable.images.avada-product-gallery {
    display: none !important;
}
.fusion-price-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product > div.avada-single-product-images-container /* ya jo bhi common parent hai */ {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.product .summary.entry-summary { margin-left: 680px !important; }
.ltr .product .summary.entry-summary { margin-left: calc(680px) !important; }
/* ============================================================
   2. PRODUCT PAGE — HIDE DEFAULT WOO / PLUGIN ELEMENTS
   ============================================================ */

/* SVI plugin gallery */
.gallery-svi,
.woocommerce-product-gallery { display: none !important; }

/* Cart controls — variation dropdowns stay visible */
.single-product.udo-hide-cart .woocommerce-variation-add-to-cart,
.single-product.udo-hide-cart .quantity,
.single-product.udo-hide-cart button.single_add_to_cart_button,
.single-product.udo-hide-cart .woocommerce-variation-price { display: none !important; }


/* ============================================================
   3. PRODUCT GALLERY (Splide)
   ============================================================ */

.avada-single-product-gallery-wrapper .udo-gallery {
  float: left;
   width: 100%;
  max-width: 650px;
  position: relative;
  background: var(--udo-bg-gallery);
  padding: 16px 16px 20px;
  box-sizing: border-box;
}

.udo-gallery-main .splide__slide {
  background: var(--udo-white);
  border-radius: 4px;
  overflow: hidden;
}

.udo-gallery-main .splide__slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Arrows */
.udo-gallery .splide__arrow {
  background: var(--udo-white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.udo-gallery .splide__arrow svg {
  fill: var(--udo-accent);
  width: 16px;
  height: 16px;
}

.udo-gallery .splide__arrow--next { right: 0.5em; }

.udo-gallery .splide__arrow--prev.is-disabled { display: none !important; }

.udo-gallery .splide__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.udo-gallery-main .splide__track { padding-right: 32% !important; }
.udo-gallery-main .splide__slide { border-radius: 8px; }
/* Pagination off — progress bar used instead */
.udo-gallery .splide__pagination { display: none !important; }

/* Progress bar */
.udo-gallery .splide__progress {
  background: #e0e0e0;
  height: 3px;
  width: 100%;
  margin-top: 20px;
}

.udo-gallery .splide__progress__bar {
  background: var(--udo-navy);
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
}


/* ============================================================
   4. COLOUR SWATCHES (product summary)
   ============================================================ */

.udo-color-block { margin: 22px 0; }

.udo-color-label {
  font-weight: 700;
  color: var(--udo-ink);
  margin: 0 0 12px;
  display: block;
}

.udo-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.udo-color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.udo-color-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #DDD;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  transition: transform .2s ease;
}

.udo-color-item:hover .udo-color-dot { transform: scale(1.08); }

.udo-color-item.is-active .udo-color-dot {
  outline: 2px solid var(--udo-accent);
  outline-offset: 3px;
}

.udo-color-name {
  color: var(--udo-body);
  line-height: 1.2;
  text-align: center;
}

.udo-color-item.is-active .udo-color-name {
  color: var(--udo-ink);
  font-weight: 600;
}


/* ============================================================
   5. CONTACT US BUTTON + MODAL
   ============================================================ */

.udo-contact-wrap { margin: 22px 0 0; }

.udo-contact-btn {
  display: inline-block;
  background: var(--udo-blue);
  color: var(--udo-white);
  padding: 13px 32px;
  border: 0;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}

.udo-contact-btn:hover {
  background: var(--udo-blue-dark);
  color: var(--udo-white);
}

.udo-contact-btn:focus-visible {
  outline: 2px solid var(--udo-accent);
  outline-offset: 2px;
}

/* Modal shell */
.udo-modal[hidden] { display: none; }

.udo-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.udo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.udo-modal-box {
  position: relative;
  background: var(--udo-white);
  border-radius: 6px;
  padding: 34px 32px 28px;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
}

.udo-modal-box h3 {
  font-weight: 700;
  color: var(--udo-ink);
  margin: 0 0 6px;
}

.udo-modal-sub {
  color: var(--udo-muted);
  margin: 0 0 22px;
  line-height: 1.5;
}

.udo-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: 0;
  line-height: 1;
  color: #8A8A92;
  cursor: pointer;
  padding: 2px 8px;
}

.udo-modal-close:hover { color: var(--udo-ink); }

/* Formidable form inside modal */
.udo-modal-form .frm_forms { margin: 0; }
.udo-modal-form .frm_form_field { margin-bottom: 14px; }

.udo-modal-form label.frm_primary_label {
  font-weight: 600;
  color: var(--udo-ink);
  margin-bottom: 5px;
}

.udo-modal-form input[type=text],
.udo-modal-form input[type=email],
.udo-modal-form input[type=tel],
.udo-modal-form textarea {
  width: 100%;
  border: 1px solid #D4D4DA;
  border-radius: 3px;
  padding: 10px 12px;
}

.udo-modal-form input:focus,
.udo-modal-form textarea:focus {
  border-color: var(--udo-accent);
  outline: none;
}

.udo-modal-form .frm_submit button {
  background: var(--udo-blue);
  color: var(--udo-white);
  border: 0;
  border-radius: 3px;
  padding: 12px 30px;
  font-weight: 600;
  cursor: pointer;
}

.udo-modal-form .frm_submit button:hover { background: var(--udo-blue-dark); }


/* ============================================================
   6. PRODUCT DETAIL / MATERIAL / SPECIFICATIONS ACCORDION
   ============================================================ */

.product-accordion-section {
  margin-top: 30px;
  border-top: 1px solid var(--udo-line);
}

.product-accordion-section .accordion-item {
  border-bottom: 1px solid var(--udo-line);
}

.product-accordion-section .accordion-title {
  position: relative;
  margin: 0;
  padding: 18px 34px 18px 0;
  font-weight: 700;
  color: var(--udo-ink);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}

.product-accordion-section .accordion-title::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  color: var(--udo-ink);
  line-height: 1;
}

.product-accordion-section .accordion-item.is-open .accordion-title::after {
  content: "\2013";
}

.product-accordion-section .accordion-title:focus-visible {
  outline: 2px solid var(--udo-accent);
  outline-offset: 2px;
}

.product-accordion-section .accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
  padding: 0 20px 0 0;
}

.product-accordion-section .accordion-item.is-open .accordion-content {
  max-height: 1000px;
  opacity: 1;
  padding-bottom: 20px;
}

.product-accordion-section .accordion-content p {
  line-height: 1.7;
  color: var(--udo-body);
  margin: 0 0 12px;
}

.product-accordion-section .accordion-content p:last-child { margin-bottom: 0; }

.product-accordion-section .accordion-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.product-accordion-section .accordion-content li {
  line-height: 1.7;
  color: var(--udo-body);
  margin-bottom: 6px;
}


/* ============================================================
   7. FAQ SECTION
   ============================================================ */
.faq-section {
  background: var(--udo-bg-grey);
  padding: 70px 20px;
}

.faq-section .container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.faq-left h2 {
  font-weight: 700;
  color: var(--udo-ink);
  margin: 0 0 28px;
  line-height: 1.2;
}
.faq-section .container::before,
.faq-section .container::after {
  content: none;
  display: none;
}
.faq-accordion { border-top: 1px solid var(--udo-line); }

.faq-item { border-bottom: 1px solid var(--udo-line); }

.faq-question {
  position: relative;
  margin: 0;
  padding: 18px 34px 18px 0;
  font-weight: 700;
  color: var(--udo-ink);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  color: var(--udo-ink);
  line-height: 1;
}

.faq-item.is-open .faq-question::after { content: "\2013"; }

.faq-question:focus-visible {
  outline: 2px solid var(--udo-accent);
  outline-offset: 2px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
  padding: 0 40px 0 0;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 20px;
}

.faq-answer p {
  line-height: 1.7;
  color: var(--udo-body);
  margin: 0 0 10px;
}

.faq-answer p:last-child { margin-bottom: 0; }

.faq-right img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}


/* ============================================================
   8. BREADCRUMB
   ============================================================ */

.udo-breadcrumb-wrap {
  background: var(--udo-white);
  padding: 18px 20px 0;
}

.udo-breadcrumb-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.udo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  color: var(--udo-ink);
}

.udo-breadcrumb a {
  color: var(--udo-accent);
  text-decoration: none;
}

.udo-breadcrumb a:hover { text-decoration: underline; }

.udo-breadcrumb span[aria-current] {
  color: var(--udo-ink);
  font-weight: 500;
}

.udo-breadcrumb > *:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 10px;
  border-right: 1.5px solid #9A9AA2;
  border-bottom: 1.5px solid #9A9AA2;
  transform: rotate(-45deg) translateY(-1px);
  vertical-align: middle;
}


/* ============================================================
   9. RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .faq-section {
    padding: 48px 18px;
  }

  .faq-section .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq-right { order: -1; }

}

@media only screen and (max-width: 800px) {
  .avada-single-product-gallery-wrapper .udo-gallery {
    float: none;
    width: 100% !important;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .udo-gallery { padding: 18px; }
  .udo-gallery .splide__arrow--prev { left: 8px; }
  .udo-gallery .splide__arrow--next { right: 8px; }
}

@media (max-width: 640px) {
  .udo-modal-box { padding: 28px 20px 22px; }

  .udo-breadcrumb-wrap { padding: 14px 18px 0; }
  .udo-breadcrumb {  gap: 6px; }

  .udo-color-swatches { gap: 18px; }
  .udo-color-dot { width: 30px; height: 30px; }
}


/* ============================================================
   10. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .product-accordion-section .accordion-content,
  .udo-color-dot,
  .udo-contact-btn,
  .udo-gallery .splide__progress__bar { transition: none; }
}

/* ============================================================
   11. WHY CHOOSE SECTION
   ============================================================ */

.udo-why {
  background: var(--udo-white);
  padding: 80px 20px;
}

.udo-why-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: start;
}

.udo-why-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--udo-ink);
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 20ch;
}

/* Thin rule under the heading — echoes the rail itself */
.udo-why-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--udo-navy);
  margin-top: 18px;
}

.udo-why-intro {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--udo-ink);
  margin: 0 0 22px;
  max-width: 52ch;
}

.udo-why-body p {
  line-height: 1.75;
  color: var(--udo-body);
  margin: 0 0 18px;
  max-width: 60ch;
}

.udo-why-body p:last-child { margin-bottom: 0; }

.udo-why-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 1000px) {
  .udo-why-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .udo-why-media { order: -1; }
  .udo-why-heading { max-width: none; }
}

@media (max-width: 640px) {
  .udo-why { padding: 52px 18px; }
}