/* OpenCart integration helpers for Monsta theme - does not replace Monsta style.css */

.middel_right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Keep #header-cart for OpenCart AJAX, but don't break Monsta flex layout */
#header-cart {
  display: contents;
}

.middel_right .search_btn {
  flex-shrink: 0;
}

.middel_right .cart_link {
  flex-shrink: 0;
}

.header_middel .cart_link > a {
  position: relative;
  display: flex;
  align-items: center;
}

.header_middel .cart_link span.cart_quantity {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
}

.header_middel .cart_link > a i.ion-android-cart {
  top: 0;
  margin-right: 12px;
  padding-right: 12px;
}

/* Slider text white on dark banner images */
.slider_area--light-text .slider_content p,
.slider_area--light-text .slider_content h1,
.slider_area--light-text .active .slider_content p,
.slider_area--light-text .active .slider_content h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.slider_area--light-text .slider_content p.slider_price,
.slider_area--light-text .active .slider_content p.slider_price {
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.slider_area--light-text .slider_content p.slider_price span,
.slider_area--light-text .active .slider_content p.slider_price span {
  color: #c09578 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Latest products slider */
.monsta-latest-slider {
  margin-top: 40px;
  margin-bottom: 40px;
}

.monsta-latest-slider .section_title {
  margin-bottom: 25px;
}

.monsta-latest-products .slick-arrow {
  z-index: 2;
}

/* ===== Cart page polish ===== */
.monsta-cart-page {
  padding: 40px 0 70px;
}

.monsta-cart-page .alert {
  margin-bottom: 20px;
  border-radius: 3px;
}

.monsta-cart-page .table_desc {
  border: 1px solid #ebebeb;
  margin-bottom: 40px;
  background: #fff;
}

.monsta-cart-page .cart_page table {
  width: 100%;
  margin: 0;
}

.monsta-cart-page .cart_page table thead tr th {
  border-bottom: 3px solid #c09578;
  border-right: 1px solid #ebebeb;
  color: #242424;
  font-size: 15px;
  font-weight: 700;
  text-transform: capitalize;
  padding: 14px 10px;
  text-align: center;
  background: #fafafa;
}

.monsta-cart-page .cart_page table tbody tr td {
  border-bottom: 1px solid #ebebeb;
  border-right: 1px solid #ebebeb;
  text-align: center;
  padding: 18px 12px;
  vertical-align: middle;
}

.monsta-cart-page .cart_page table thead tr th:last-child,
.monsta-cart-page .cart_page table tbody tr td:last-child {
  border-right: 0;
}

.monsta-cart-page .product_remove button {
  background: transparent;
  border: 0;
  color: #c09578;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.monsta-cart-page .product_remove button:hover {
  color: #212121;
}

.monsta-cart-page .product_thumb img {
  max-width: 90px;
  height: auto;
  border: 1px solid #f0f0f0;
}

.monsta-cart-page .product_name a {
  color: #242424;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.monsta-cart-page .product_name a:hover {
  color: #c09578;
}

.monsta-cart-page .product_name small {
  color: #888;
}

.monsta-cart-page .product-price,
.monsta-cart-page .product_total {
  color: #242424;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.monsta-cart-page .monsta-qty-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.monsta-cart-page .monsta-qty-form label {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  color: #242424;
}

.monsta-cart-page .monsta-qty-form input[type="number"] {
  width: 64px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid #ebebeb;
  background: #fff;
  text-align: center;
}

.monsta-cart-page .monsta-qty-form button {
  width: 40px;
  height: 40px;
  border: 1px solid #ebebeb;
  background: #fff;
  color: #c09578;
  cursor: pointer;
  transition: all 0.2s;
}

.monsta-cart-page .monsta-qty-form button:hover {
  background: #c09578;
  border-color: #c09578;
  color: #fff;
}

.monsta-cart-empty {
  padding: 50px 20px !important;
  text-align: center;
}

.monsta-cart-empty p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #666;
}

.monsta-cart-empty .button {
  display: inline-block;
  background: #c09578;
  color: #fff !important;
  padding: 12px 28px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  border-radius: 3px;
  text-decoration: none;
}

.monsta-cart-summary {
  margin-bottom: 30px;
}

.monsta-cart-summary .coupon_code.right {
  border: 1px solid #ebebeb;
  background: #fff;
}

.monsta-cart-summary .coupon_code h3 {
  background: #212121;
  color: #fff;
  margin: 0;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}

.monsta-cart-summary .coupon_inner {
  padding: 25px 20px;
}

.monsta-cart-summary .cart_subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.monsta-cart-summary .cart_subtotal p {
  margin: 0;
  color: #212121;
  font-weight: 600;
  font-size: 14px;
}

.monsta-cart-summary .cart_subtotal .cart_amount {
  font-size: 16px;
  font-weight: 500;
}

.monsta-cart-summary .monsta-cart-grand-total {
  border-bottom: 0;
  padding-top: 16px;
  margin-top: 6px;
}

.monsta-cart-summary .monsta-cart-grand-total p,
.monsta-cart-summary .monsta-cart-grand-total .cart_amount {
  font-size: 18px;
  color: #c09578;
}

.monsta-cart-summary .checkout_btn {
  margin-top: 22px;
}

.monsta-cart-summary .checkout_btn a {
  display: block;
  text-align: center;
  background: #c09578;
  color: #fff !important;
  padding: 14px 20px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s;
}

.monsta-cart-summary .checkout_btn a:hover {
  background: #212121;
}

.monsta-cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 0;
  text-align: inherit;
}

.monsta-cart-actions .button {
  display: inline-block;
  padding: 12px 28px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s;
}

.monsta-cart-actions .button-continue {
  background: #fff;
  color: #212121 !important;
  border: 1px solid #ebebeb;
}

.monsta-cart-actions .button-continue:hover {
  border-color: #c09578;
  color: #c09578 !important;
}

.monsta-cart-actions .button-checkout {
  background: #c09578;
  color: #fff !important;
  border: 1px solid #c09578;
}

.monsta-cart-actions .button-checkout:hover {
  background: #212121;
  border-color: #212121;
}

.monsta-cart-modules {
  margin-bottom: 30px;
}

.monsta-cart-modules .coupon_code {
  margin-bottom: 20px;
  border: 1px solid #ebebeb;
  min-height: 100%;
}

.monsta-cart-modules .coupon_code h3,
.monsta-cart-modules .card-header,
.monsta-cart-modules .accordion-button {
  background: #212121 !important;
  color: #fff !important;
  border: 0;
  border-radius: 0 !important;
  font-size: 15px;
  text-transform: uppercase;
}

.monsta-cart-modules .card,
.monsta-cart-modules .accordion-item {
  border: 0;
  border-radius: 0;
}

.monsta-cart-modules .card-body,
.monsta-cart-modules .accordion-body,
.monsta-cart-modules .coupon_inner {
  padding: 20px;
}

@media only screen and (max-width: 767px) {
  .monsta-cart-page {
    padding: 25px 0 50px;
  }

  .monsta-cart-page .cart_page {
    overflow-x: auto;
  }

  .monsta-cart-page .cart_page table {
    min-width: 640px;
  }

  .monsta-cart-actions {
    flex-direction: column;
  }

  .monsta-cart-actions .button {
    width: 100%;
    text-align: center;
  }
}

/* ===== 404 / empty page ===== */
.monsta-error-page {
  padding: 60px 0 90px;
  min-height: 55vh;
  display: flex;
  align-items: center;
}

.monsta-error-page .error_form {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
}

.monsta-error-page .monsta-error-icon {
  font-size: 48px;
  color: #c09578;
  margin-bottom: 10px;
  line-height: 1;
}

.monsta-error-page .error_form h1 {
  font-size: 140px;
  font-weight: 700;
  color: #c09578;
  letter-spacing: 8px;
  line-height: 1;
  margin: 0 0 24px;
}

.monsta-error-page .error_form h1.monsta-error-code {
  font-size: 64px;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.monsta-error-page .error_form h2 {
  color: #212121;
  font-size: 26px;
  text-transform: none;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 16px;
}

.monsta-error-page .error_form p {
  color: #666;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.monsta-error-page .monsta-error-search {
  position: relative;
  max-width: 420px;
  margin: 0 auto 28px;
}

.monsta-error-page .monsta-error-search input {
  width: 100%;
  height: 50px;
  border: 1px solid #ebebeb;
  padding: 0 56px 0 18px;
  background: #fff;
}

.monsta-error-page .monsta-error-search button {
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 50px;
  border: 0;
  background: #c09578;
  color: #fff;
  cursor: pointer;
}

.monsta-error-page .monsta-error-search button:hover {
  background: #212121;
}

.monsta-error-page .error_form > a {
  display: inline-block;
  background: #c09578;
  color: #fff !important;
  padding: 14px 32px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s;
}

.monsta-error-page .error_form > a:hover {
  background: #212121;
}

@media only screen and (max-width: 767px) {
  .monsta-error-page {
    padding: 40px 0 60px;
  }

  .monsta-error-page .error_form h1 {
    font-size: 96px;
    letter-spacing: 4px;
  }

  .monsta-error-page .error_form h1.monsta-error-code {
    font-size: 42px;
  }

  .monsta-error-page .error_form h2 {
    font-size: 20px;
  }
}

/* Footer legal links */
.monsta-legal-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.monsta-legal-links ul li a {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  text-transform: none;
}

.monsta-legal-links ul li a:hover {
  color: #c09578;
}

.footer_bottom .copyright_area {
  text-align: right;
}

.footer_bottom .copyright_area p {
  margin: 0;
}

@media only screen and (max-width: 991px) {
  .monsta-legal-links {
    margin-bottom: 12px;
    text-align: center;
  }

  .monsta-legal-links ul {
    justify-content: center;
  }

  .footer_bottom .copyright_area {
    text-align: center;
  }
}

/* Desktop menu: keep Monsta hover dropdown behavior */
@media only screen and (min-width: 992px) {
  .main_menu nav > ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
  }

  .main_menu nav > ul > li {
    position: relative;
  }
}

/* Mobile offcanvas menu list */
.Offcanvas_menu_wrapper #menu > ul,
.Offcanvas_menu_wrapper .offcanvas_main_menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.Offcanvas_menu_wrapper #menu > ul > li > a,
.Offcanvas_menu_wrapper .offcanvas_main_menu > li > a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.Offcanvas_menu_wrapper #menu > ul ul,
.Offcanvas_menu_wrapper .offcanvas_main_menu ul {
  padding-left: 15px;
}

/* Forms / tables full width on all devices */
.Checkout_section .checkout_info,
.customer_login .account_form,
.contact_message form,
.Cart_table table {
  width: 100%;
}

.Checkout_section input,
.Checkout_section select,
.Checkout_section textarea,
.customer_login input,
.contact_message input,
.contact_message textarea,
.product_details .form-select,
.product_details .form-control,
.customer_login .form-control,
.checkout_area .form-control,
.checkout_area .form-select {
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.single_product .action_links button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: inherit;
  font: inherit;
}

.single_product .action_links .add_to_cart button {
  text-transform: uppercase;
}

.cart_remove button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.mini_cart .cart_total + .cart_total {
  border-top: 0;
}

#alert {
  z-index: 99999;
}

.shop_area #column-left,
.shop_area #column-right {
  margin-bottom: 30px;
}

/* Mobile / tablet safety for OC dynamic blocks */
@media only screen and (max-width: 991px) {
  .main_menu nav > ul {
    /* Do not force desktop flex menu on tablet/mobile; Monsta hides header_bottom */
    display: block;
  }

  .Cart_table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .Cart_table table {
    min-width: 560px;
  }

  .product_container .custom-col-5,
  #product-list .col-lg-4 {
    width: 50%;
    float: left;
    padding: 0 10px;
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 575px) {
  .product_container .custom-col-5,
  #product-list .col-lg-4 {
    width: 100%;
  }

  .slider_content h1 {
    font-size: 28px !important;
  }

  .banner_section .single_banner {
    margin-bottom: 15px;
  }

  .home_contact {
    display: none;
  }
}
