/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/*------------------------------
    Config Color
------------------------------*/
:root {
  --color-button-text: #FFFFFF;
  --color-bg: #043284;
  --color-button-background-gradient-one: #B10707;
  --color-button-background-gradient-two: #810707;
  --color-button-box-shadow: #DE7171;
  --color-border-box: #F6F6F6;
  --color-bg-card: #E5E7F0;
  --color-bg-card-hover: #69B5F8;
  --color-bg-card-hover-two: #2B2EEE;
  /* Màu nền mặc định */
}


/* ------------------------------
  Custom Gradient Button
------------------------------ */
.btn-main {
  font-family: "UTM Daxline";
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
  color: #FFFFFF;
  background: linear-gradient(to right,
      var(--color-button-background-gradient-one),
      var(--color-button-background-gradient-two));
  border-radius: 10px;
  box-shadow: 7px 8px 11.8px 0px var(--color-button-box-shadow) !important;
  padding: 10px 20px;
}

/* .process-step {
  position: relative;
  padding-bottom: 20px;
}

.process-step::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 15px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--color-bg);
  border-radius: 50%;
  z-index: 2;
}

.process-line-top {
  position: relative;
}

.process-line-top::before {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 40px;
  right: 395px;
  height: 2px;
  background: var(--color-bg);
  z-index: 1;
}

.process-line-bot {
  position: relative;
}

.process-line-bot::before {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 230px;
  right: 580px;
  height: 2px;
  background: var(--color-bg);
  z-index: 1;
} */

/* ------------------------------
  Custom Line Process
------------------------------ */

/* Section-wide line */
.process-section {
  position: relative;
}

.process-section::before {
  content: "";
  position: absolute;
  bottom: 4px;
  /* Align with bottom of content area where dots sit */
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--color-bg);
  z-index: 0;
}

.process-step {
  position: relative;
  padding-bottom: 36px;
}

.process-step::before {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: var(--color-bg);
  z-index: 1;
}

.process-step::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--color-bg);
  border-radius: 50%;
  z-index: 2;
}

.process-line-top,
.process-line-bot {
  position: relative;
}

/* Responsive Process Steps */
@media (max-width: 768px) {
  .process-step {
    padding-bottom: 40px !important;
    margin-bottom: 20px !important;
    overflow: visible !important;
  }

  .process-step::before {
    bottom: 10px !important;
    z-index: 5 !important;
  }

  .process-step::after {
    bottom: 5px !important;
    z-index: 6 !important;
  }

  .process-section::before {
    display: none !important;
  }
}

/* ------------------------------`
  Custom Category
------------------------------ */

/* Card mặc định */
.product-category {
  margin: 10px !important;
  cursor: pointer !important;
  background: var(--color-bg-card) !important;
  border-radius: 25px !important;
  transition: all 0.4s ease !important;
  overflow: hidden !important;
}

/* Hover card */
.product-category:hover {
  background: linear-gradient(to right, var(--color-bg-card-hover), var(--color-bg-card-hover-two)) !important;
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 50px rgba(59, 59, 255, 0.35) !important;
}

/* Ảnh */
.product-category .attachment-full {
  border-radius: 20px !important;
  transition: transform .4s ease !important;
}

.product-category:hover .attachment-full {
  transform: scale(1.03) !important;
}

/* Số 01 / 02 */
.product-category .elementor-heading-title {
  color: var(--color-bg) !important;
  transition: color .3s ease !important;
}

.product-category:hover .elementor-heading-title {
  color: #ffffff !important;
  transition: color .3s ease !important;
}

.product-category:hover .elementor-widget-container {
  border-color: #ffffff !important;
}

.product-category .hover-logo {
  opacity: 0 !important;
  z-index: 0 !important;
}

.product-category:hover .hover-logo {
  opacity: 1 !important;
  z-index: 0 !important;
}

#product-category-01:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ------------------------------
  Custom Popup
------------------------------ */

/* Popup Overlay */
.wpcf7-form {
  border-radius: 0;
}

.cf7-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  border-radius: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.vango-popup {
  background: var(--color-button-text);
  padding: 0;
  border-radius: 0;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
  /* Remove overflow hidden to allow arrows outside the box */
}


@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cf7-popup-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  z-index: 10;
  line-height: 1;
  transition: color 0.3s;
}

.cf7-popup-close:hover {
  color: #000;
}

.wpcf7 .hidden-fields-container {
  display: none !important;
}


/* Form Wrapper */
.vango-form-wrapper {
  padding: 25px 45px;
  background: var(--color-button-text);
  border-radius: 0;
}

.vango-form-title {
  font-family: 'UTM Daxline';
  color: var(--color-bg);
  font-size: 28px;
  font-weight: 700;
  text-align: start;
  line-height: 1.4;
}


.vango-form-fields .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 20px;
}

.vango-form-fields .wpcf7-form-control-wrap:last-child {
  margin-bottom: 0;
}

.vango-form-fields input[type="text"],
.vango-form-fields input[type="tel"] {
  font-family: 'UTM Daxline';
  font-weight: 400;
  width: 100%;
  padding: 15px 18px;
  border-radius: 15px;
  border: none;
  background: #f9f9f9 !important;
  font-size: 20px;
  color: #A9A9A9 !important;
  transition: border-color 0.3s;
}

.vango-form-fields input::placeholder {
  color: #A9A9A9 !important;
}

.vango-form-fields input:focus {
  outline: none;
  border-bottom-color: #1e5a9e;
}

/* Custom Checkboxes - Premium Pill Style */
.vango-form-checkbox {
  display: inline-block;
  font-family: 'UTM Daxline';
  color: var(--color-bg);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  margin-top: 15px;
  border-bottom: 2.5px solid var(--color-button-background-gradient-one);
  padding-bottom: 6px;
  line-height: 1.2;
}

.wpcf7-checkbox {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 10px !important;
  margin-bottom: 20px;
  padding: 0;
}

.wpcf7-list-item {
  margin: 0 !important;
  display: inline-block !important;
}

.wpcf7-list-item label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px 22px !important;
  background: #F4F6F8 !important;
  /* Neutral light background */
  border-radius: 50px !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1.5px solid transparent !important;
  user-select: none;
}

.wpcf7-list-item label:hover {
  background: #E8EAED !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Checkbox visual effects using :has */
.wpcf7-list-item input[type="checkbox"] {
  display: none !important;
  /* Hide original box */
}

.wpcf7-list-item label:has(input:checked) {
  background: var(--color-bg) !important;
  color: #FFFFFF !important;
  border-color: var(--color-bg) !important;
  box-shadow: 0 8px 18px rgba(4, 50, 132, 0.25) !important;
  transform: translateY(-2px);
}

.wpcf7-list-item label span {
  font-family: 'UTM Daxline';
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

/* Submit Button */
.vango-submit-btn {
  font-family: "UTM Daxline";
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
  color: #FFFFFF;
  background: linear-gradient(to right,
      var(--color-button-background-gradient-one),
      var(--color-button-background-gradient-two));
  border-radius: 10px;
  box-shadow: 7px 8px 11.8px 0px var(--color-button-box-shadow) !important;
  padding: 10px 20px;
}

/* CF7 Messages - Modern Style */
.vango-popup .wpcf7-response-output {
  display: none;
  /* Hide by default */
  border: none !important;
  padding: 15px 25px 15px 45px !important;
  /* Extra left padding for icon */
  margin: 20px auto !important;
  text-align: left;
  /* Better for icon alignment */
  border-radius: 10px !important;
  font-family: 'UTM Daxline';
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  box-sizing: border-box;
  max-width: calc(100% - 40px);
  position: relative;
}

/* Ensure the icon doesn't overlap text */
.vango-popup .wpcf7-response-output::before {
  position: absolute !important;
  left: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  font-size: 18px !important;
}

.vango-popup .wpcf7-response-output.wpcf7-mail-sent-ok,
.vango-popup .wpcf7-response-output.wpcf7-validation-errors,
.vango-popup .wpcf7-response-output.wpcf7-mail-sent-ng,
.vango-popup .wpcf7-response-output.wpcf7-acceptance-missing {
  display: block !important;
}

.vango-popup .wpcf7-mail-sent-ok {
  background: #E8F5E9 !important;
  color: #2E7D32 !important;
  border: 1px solid #C8E6C9 !important;
}

.vango-popup .wpcf7-validation-errors,
.vango-popup .wpcf7-mail-sent-ng,
.vango-popup .wpcf7-acceptance-missing {
  background: #FFF3EB !important;
  /* Soft premium orange/red */
  color: #D35400 !important;
  border: 1px solid #F5CBA7 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .vango-popup {
    width: 95%;
  }

  .vango-form-wrapper {
    padding: 40px 25px;
  }

  .vango-form-title {
    font-size: 22px;
  }

  .wpcf7-checkbox {
    gap: 8px 6px !important;
  }

  .wpcf7-list-item label {
    padding: 8px 14px !important;
  }

  .wpcf7-list-item label span {
    font-size: 14px;
  }

  .vango-form-fields {
    padding: 20px;
  }

  .vango-submit-btn {
    padding: 15px 40px !important;
    font-size: 16px !important;
  }
}

/* ------------------------------
  Single Project Page
------------------------------ */

.vango-project-single {
  font-family: 'UTM Daxline';
  background: #FFFFFF;
  padding: 80px 0 40px 0;
  margin: 0;
}

.vango-project-header .vango-project-title {
  font-family: 'UTM Daxline';
  color: var(--color-bg);
  font-size: 48px;
  font-weight: 700;
  text-align: start;
  line-height: 1.4;
}

.vango-project-content-wrapper .vango-project-content {
  font-family: 'UTM Daxline';
  color: #000000;
  font-size: 20px;
  font-weight: 400;
  text-align: start;
  line-height: 1.4;
}

.vango-project-content-wrapper .vango-project-content p {
  margin-bottom: 20px;
}

/* ------------------------------
  Custom Popup
------------------------------ */

#productPopup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);

  display: none;
  align-items: center !important;
  justify-content: center !important;

  z-index: 99999;
}

#productPopup .popup-box {
  position: relative !important;
  width: 1000px;
  max-width: 90vw;
  background: #fff;
  border-radius: 16px;
  padding: 50px;

  left: auto !important;
  transform: none !important;
  margin: 0 !important;
}


.close-popup {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  z-index: 10;
  line-height: 1;
  transition: color 0.3s;
}

.close-popup:hover {
  color: #000;
}

.vango-popup-product-layout {
  display: flex;
  gap: 30px;
  align-items: center;
  /* Center vertically */
  position: relative;
  padding: 0;
  min-height: 400px;
}


.vango-popup-left {
  position: relative;
  width: 60%;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 0;
}


.vango-popup-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.vango-main-image-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fdfdfd;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}


.main-image {
  width: 100%;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image img {
  max-width: 100%;
  max-height: 500px;
  height: auto;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

/* Gallery Nav (Inner) */
.vango-gallery-nav {
  padding: 0 !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  color: var(--color-bg);
}

.vango-gallery-nav:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-bg-card-hover);
  color: #fff;
}

.vango-gallery-nav.prev {
  left: 10px;
}

.vango-gallery-nav.next {
  right: 10px;
}

.vango-gallery-nav svg {
  width: 18px !important;
  height: 18px !important;
  stroke: var(--color-bg) !important;
  transition: all 0.25s ease !important;
}

.vango-gallery-nav svg path {
  stroke: var(--color-bg) !important;
  transition: stroke 0.25s ease !important;
}

.vango-gallery-nav:hover svg,
.vango-gallery-nav:hover svg path {
  stroke: #fff !important;
}




.vango-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  padding: 0 5px;
}

.thumb-item {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-item:hover,
.thumb-item.active {
  border-color: var(--color-bg);
  transform: translateY(-2px);
}


.vango-popup-right {
  width: 40%;
}


.product-title {
  font-family: 'UTM Daxline';
  color: var(--color-bg);
  font-size: 32px;
  font-weight: 700;
  text-align: start;
  line-height: 1.4;
  margin-bottom: 10px;
}

.product-meta {
  padding-left: 18px;
  margin-bottom: 15px;
}

.product-meta p {
  font-family: 'UTM Daxline';
  color: #000000;
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 5px;
}

.product-sku {
  font-family: 'UTM Daxline';
  color: #000000;
  font-weight: 400;
  font-size: 20px;
  padding-left: 18px;
  margin-bottom: 15px;
}

.product-price {
  font-family: 'UTM Daxline';
  color: var(--color-bg);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.popup-cta {
  display: inline-block;
  background: #8b0000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
}

/* Product Nav (Outside the White Box) */
#productPopup {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.75) !important;
  z-index: 9999999 !important;
  display: none;
  /* JS will set to flex */
  justify-content: center !important;
  align-items: center !important;
  backdrop-filter: blur(5px);
}

.popup-box {
  margin: auto;
}

.vango-product-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 60px !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  z-index: 99999 !important;
}

.vango-product-nav svg {
  width: 28px !important;
  height: 28px !important;
  stroke: #fff !important;
  stroke-width: 2;
}

.vango-product-nav.prev {
  left: -140px !important;
}

.vango-product-nav.next {
  right: -140px !important;
}

.vango-product-nav:hover {
  background: #fff !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.vango-product-nav:hover svg {
  stroke: var(--color-bg) !important;
}

.vango-product-nav.vango-disabled {
  opacity: 0.15 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  filter: grayscale(1) !important;
}


@media (max-width: 1200px) {
  .product-nav {
    width: 44px !important;
    height: 44px !important;
  }

  .product-nav.prev {
    left: -50px !important;
  }

  .product-nav.next {
    right: -50px !important;
  }
}

@media (max-width: 1024px) {

  /* On smaller screens, keep them near the edge or overlaid slightly */
  .product-nav.prev {
    left: 10px !important;
  }

  .product-nav.next {
    right: 10px !important;
  }

  .product-nav {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: transparent !important;
  }
}


.popup-left .nav {
  padding: 0px !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  background: #fff !important;
  border: 1.5px solid var(--color-bg) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  z-index: 100 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.popup-left .nav.prev {
  left: 0px !important;
  right: auto !important;
}

.popup-left .nav.next {
  right: 0px !important;
  left: auto !important;
}

.popup-left .nav svg {
  width: 18px !important;
  height: 18px !important;
  stroke: var(--color-bg) !important;
  transition: all 0.25s ease !important;
}

.popup-left .nav svg path {
  stroke: var(--color-bg) !important;
  transition: stroke 0.25s ease !important;
}

.popup-left .nav:hover:not(:disabled) {
  background: var(--color-bg-card-hover) !important;
}


.popup-left .nav:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}