/* ========== General Reset (inside widget only) ========== */
.atc-variation-section .woo-variation-items-wrapper {
    background: none !important;
    padding: 0;
}

.atc-widget .variable-items-wrapper {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
  min-height: 50vh;
}

/*table tbody>tr:nth-child(odd)>td {*/
/*    background-color: none !important;*/
/*}*/

/* =========================================================
   BUTTON‑TYPE VARIATIONS  (vertical / column layout)
   ========================================================= */
.atc-widget .button-variable-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /*padding: 0 !important;*/
  width: 100% !important;
  height: 100%;
  font-family: "Morabba_Eco", Sans-serif;
}

/*variable-item-span */
/*variable-item 
button-variable-item 
button-variable-item-standard*/

.atc-widget .button-variable-items-wrapper .button-variable-item .variable-item-contents {
  width: 100% !important;
  padding: 15px 30px !important;
  font-family: "Morabba_Eco", Sans-serif;
}
.atc-widget .button-variable-items-wrapper .button-variable-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid gray !important;
  cursor: pointer !important;
  font-size: 14px !important;
  padding: 15px 30px !important;
  min-height: 46px !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  font-family: "Morabba_Eco", Sans-serif;
}

/*.atc-widget .button-variable-items-wrapper .button-variable-item:hover {*/
/*  border-color: blue;*/
/*}*/

/*.atc-widget .button-variable-items-wrapper .button-variable-item.selected {*/
/*  color: #8a1538;*/
/*  font-weight: 600;*/
/*}*/

/* =========================================================
   IMAGE‑TYPE VARIATIONS  (flex grid, 5 items per row)
   ========================================================= */
.atc-widget .image-variable-items-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  font-family: "Morabba_Eco", Sans-serif;
}

.atc-widget .image-variable-items-wrapper .image-variable-item {
  flex: 0 1 calc(20% - 12px);
  max-width: calc(20% - 12px);
  border: 1px solid transparent !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-width: 75px;
  min-height: 100px;
}

#atc-image-title {
    font-family: "Morabba_Eco", Sans-serif;
    direction: rtl;
}

#atc-image-description {
    font-family: "Morabba_Eco", Sans-serif;
    direction: rtl;
}

.atc-widget .image-variable-items-wrapper .image-variable-item img {
  display: block;
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: unset;
}

.atc-widget .image-variable-items-wrapper .image-variable-item:hover {
  border-color: #888;
}

.atc-widget .image-variable-items-wrapper .image-variable-item.selected {
  border-color: #8a1538;
}

.atc-widget .image-variable-items-wrapper .image-variable-item.selected > div {
    content: none;
}

/* =========================================================
   Product Layout
   ========================================================= */
.atc-product-layout {
  display: flex;
  gap: 40px;
}

.atc-left-panel {
    width: 60%;
    position: relative;
}

.atc-sticky-wrap {
  position: sticky;
  top: 10px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.atc-main-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

.atc-right-panel {
    position: relative;
    width: 40%;
    min-height: 100vh; 
}

/* =========================================================
   FORM LAYOUT + STICKY BOTTOM FIX
   ========================================================= */

.atc-right-panel .atc-right-panel-context .atc-product-title {
    font-family: "Morabba_Eco", Sans-serif;
    direction: rtl;
}

/* make the form layout vertical */
.atc-right-panel form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
}
.atc-panel-context {
    padding: 8px;
}

/* this grows and pushes sticky button down */
.atc-panel-content {
  order: 1;
  flex-grow: 1;
  margin-bottom: 80px;
  border-left: 1px solid gray;
  padding: 8px;
}

/* sticky add-to-cart wrap */
.atc-right-panel .single_variation_wrap {
  order: 2;
    display: flex !important;
  position: sticky;
  bottom: 20px;
    border-top: 1px solid gray;
  padding-top: 10px;
  min-height: 60px;
  z-index: 20;
  font-family: "Morabba_Eco", Sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.atc-right-panel .single_variation_wrap .variations_button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Morabba_Eco", Sans-serif;
}

/* =========================================================
   CUSTOM QUANTITY (MODERN UI)
   ========================================================= */

.atc-right-panel .single_variation_wrap .variations_button {
    gap: 10px;
    font-family: "Morabba_Eco", Sans-serif;
}

/* wrapper */
.custom-qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.custom-qty-wrapper .quantity {
    width: 50% !important;
    font-family: "Morabba_Eco", Sans-serif;
}

.custom-qty-wrapper .quantity .qty {
    width: 100% !important;
}

/* buttons */
.custom-qty-wrapper .qty-btn {
    width: 25%;
    height: 100%;
    border: none;
    border-radius: 0;
    color: black;
    cursor: pointer;
    /*font-size: 18px;*/
    transition: all 0.2s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;

    padding: 0;
}

.custom-qty-wrapper .qty-btn:hover {
    background: #e0e0e0;
}

/*.custom-qty-wrapper .qty-btn:active {*/
/*    transform: scale(0.95);*/
/*}*/

/* disabled state */
.custom-qty-wrapper .qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* input */
.custom-qty-wrapper input.qty {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
    outline: none;
    background: transparent;
}

/* remove native arrows */
.custom-qty-wrapper input.qty::-webkit-inner-spin-button,
.custom-qty-wrapper input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-qty-wrapper input.qty {
    -moz-appearance: textfield;
}





.atc-right-panel .single_variation_wrap .single_add_to_cart_button {
    background-color: black !important;
    color: white;
    width: 70% !important;
    border-radius: 0;
    padding: 16px;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 900px) {
    .atc-panel-content {
        border: none;
    }
    
    .atc-product-layout {
        flex-direction: column;
        justify-content:center;
        align-items: center;
    }
    
    .atc-left-panel,
    .atc-right-panel {
        width: 100%;
    }
    
    .atc-sticky-wrap {
        position: relative;
        top: unset;
        min-height: auto
    }
    
    .atc-right-panel .single_variation_wrap {
        position: relative;
        bottom: unset;
    }
    
  .atc-widget .image-variable-items-wrapper .image-variable-item {
    flex: 0 1 calc(25% - 10px);
    max-width: calc(25% - 10px);
  }
  
  .atc-widget .variable-items-wrapper {
      min-height: auto;
  }
}

@media (max-width: 600px) {
  .atc-widget .image-variable-items-wrapper .image-variable-item {
    flex: 0 1 calc(33.33% - 10px);
    max-width: calc(33.33% - 10px);
  }
}