/*
Theme Name: Claue Child
Theme URI: http://www.janstudio.net/claue
Author: JanStudio
Author URI: http://www.janstudio.net
Description: Claue child theme for custom styles and overrides.
Template: claue
Version: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: claue
Tags: woocommerce, responsive, child-theme
*/

/* ----------------------------------
   General Overrides
---------------------------------- */
.page-head:before {
  background: unset;
}
.page-head h1 {
  font-size: 30px;
  font-weight: 600;
}
.cw,
.bghp:hover {
  color: #000;
}

/* ----------------------------------
   Stepper Tabs (Product Navs)
---------------------------------- */
.product-navs-stepper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  max-width: 400px;
  margin: 0 auto 30px;
  position: relative;
}

.product-navs-stepper .step-item {
  flex: 1 1 0;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.product-navs-stepper .stepsIcon {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  border-radius: 50%;
  border: 2px solid #e2e2e2;
  background: #fff;
  display: inline-block;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s;
}

.stepsIcon.active {
  border-color: #f04e98;
  color: #f04e98;
}

.stepsIcon.done {
  background: #f04e98;
  border-color: #f04e98;
}

.stepsIcon.done::before {
  content: "\2713";
  color: #fff;
  font-size: 16px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.step-label {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  text-align: center;
  line-height: 1.2;
  margin-top: 2px;
  transition: color 0.2s, font-weight 0.2s;
}

.stepsIcon.active + .step-label,
.stepsIcon.done + .step-label {
  color: #f04e98;
  font-weight: 500;
}

.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e2e2e2;
  z-index: 0;
}

.step-item:last-child::after {
  display: none;
}

/* ----------------------------------
   Responsive: Stepper Tabs
---------------------------------- */
@media (max-width: 600px) {
  /* Future optional vertical layout */
  /*
  .product-navs-stepper {
    flex-direction: column;
    align-items: stretch;
  }

  .step-item:not(:last-child)::after {
    top: 50%;
    left: 50%;
    width: 2px;
    height: 40px;
    transform: translateX(-50%);
  }
  */
}

/* ----------------------------------
   Video Overlay and Customize Button
---------------------------------- */
.video-container {
  position: relative;
}

#choose-video {
  max-width: 400px;
  margin: auto;
  text-align: center;
}

#start-customize,
button#start-customize {
  display: inline-block;
  margin: 16px 0 24px;
  padding: 12px 32px;
  min-width: 280px;
  background: #f04e98;
  color: #fff !important;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
  pointer-events: auto;
  line-height: 1;
}

#start-customize:hover {
  background: #d13c7a;
}

@media (max-width: 600px) {
  #start-customize {
    width: 100%;
    margin: 12px 0 0;
  }
}

button {
  background: #f04e98;
  border-color: #f04e98;
  color: #fff !important;
}

/* Sticky Customize Button on Scroll (add/remove via JS) */
.video-overlay.sticky {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: 414px;
  margin-left: -207px;
  max-height: 129px;
  background: #fff;
  z-index: 3;
}

/* ----------------------------------
   Step Form
---------------------------------- */
.form-steps {
  display: none;
}
.form-steps.active {
  display: block;
}
#enter-details {
  max-width: 800px;
  margin: auto;
}
#loading-overlay {
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background:rgba(255,255,255,0.7); 
  z-index:9999; 
  justify-content:center;
  align-items:center;
}
.loading-content {
  text-align:center;
  position: absolute;
  right: 0;
  left: 0;
  top: 35%;
  bottom: 0;
}
.loading-icon {
  display:inline-block; 
  width:48px; 
  height:48px; 
  border:6px solid #ccc;
  border-top:6px solid #333; 
  border-radius:50%; 
  animation:spin 1s linear infinite;
}
.loading-text {
  margin-top:10px;
  font-size:18px;
  color:#333;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#enter-details .form-group input[type="text"],
#enter-details .form-group input[type="date"],
#enter-details .form-group input[type="email"],
#enter-details .form-group input[type="tel"],
#enter-details .form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
#enter-details .form-group textarea {
    width: 100%;
    margin-bottom: 5px;
}
.ui-widget.ui-widget-content {
    border: 1px solid #f04e98 !important;
}
.ui-widget-header {
    border: 1px solid #aaaaaa;
    background: #f04e98 !important;
    color: #fff;
    font-weight: bold;
}
.ui-state-default, .ui-widget-content .ui-state-default, 
.ui-widget-header .ui-state-default, .ui-button, 
html .ui-button.ui-state-disabled:hover, 
html .ui-button.ui-state-disabled:active {
    border: 1px solid  #f04e98 !important;
    background:  #f04e98 !important;
    font-weight: normal;
    color: #fff !important;
}
.ui-datepicker-title input:not([type="submit"]):not([type="checkbox"]), 
.ui-datepicker-title textarea, 
.ui-datepicker-title select {
  padding: 0 5px !important;
}
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}
.woocommerce-Button,
#place_order,
a.prev-step, 
a.next-step {
    background: #f04e98 !important;
    border-color: #f04e98 !important;
    color: #fff !important;
    cursor: pointer;
    border: 2px solid;
    padding: 10px 35px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}
a.prev-step.disabled {
    cursor: no-drop;
    opacity: 0.5;
}
body.woocommerce-checkout .page-head{
  display: none;
}

a.view-item-details,
body.woocommerce-checkout a.update-item-link {
    color: #ec3e85;
    font-weight: 900;
}
/* ----------------------------------
   Modal (Confirmation / Alert)
---------------------------------- */
.custom-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-window {
  background: #fff;
  border-radius: 8px;
  padding: 32px 24px 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 90vw;
  min-width: 320px;
  text-align: center;
}

.custom-modal-message {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 24px;
}

.custom-modal-buttons button {
  margin: 0 8px;
  padding: 8px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background: #f04e98;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}

.custom-modal-buttons button:hover {
  background: #f04e98;
}
#updateItemModal label {
  font-weight: 600;
}
#updateItemModal input,
#updateItemModal select,
#updateItemModal textarea {
  width: 100%;
  margin-bottom: 10px;
}
ul.card-navs-stepper{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    list-style: none;
    gap: 20px;
    margin-bottom: 20px;
}
ul.card-navs-stepper li.card-step {
    background: #fff;
    color: #000;
    padding: 5px 10px;
    min-width: 80px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #f04e98;
  }
  ul.card-navs-stepper li.card-step.active {
    background: #f04e98;
    color: #fff;
  }
  ul.card-navs-stepper li.card-step.done {
    background: #f04e979e;
    color: #fff;
    border: 1px solid #f04e98;
  }
  #updateItemModal .modal-body h5,
  #viewItemModal .modal-body h5 {
    background: #f04e98;
    border-radius: 10px;
    padding: 5px;
    color: #fff;
}
/* Modal popup */
/* Modal Overlay */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
}

/* Modal Content Box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close Button */
.close-btn {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.close-btn:hover {
  color: #333;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}
