/*
Theme Name: Twenty Twenty-One Child
Theme URI: https://wordpress.org/themes/twentytwentyone/
Description: A child theme for Twenty Twenty-One.
Author: Your Name
Template: twentytwentyone
Version: 1.0.0
*/

/* Your custom CSS here */
body {
  background-color: #fff;
}
body * {
  color: #262626;
}
/* Removes the dotted outline from all anchor links when clicked or focused */
/* Target everything globally on click/focus to kill the dotted outline */
*:focus,
*:focus-visible,
*:active,
a:focus,
a:focus-visible,
a:active,
a * {
  outline: none !important;
  outline-style: none !important;
  box-shadow: none !important;
}
.site-main {
  padding-top: 5px !important;
}
.wp-block-cover .wp-block-cover__inner-container {
  margin-top: 0 !important;
}
.splide__arrow svg {
  fill: #fff !important;
}
.home-main-slider-layout button:not(:hover):not(:active):not(.has-background),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button--full-width {
  background-color: #ff5911 !important;
  color: #fff !important;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out !important;
}
.wc-block-cart__submit-button .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button--full-width
  .wc-block-components-checkout-place-order-button__text {
  color: #fff !important;
}
.home-main-slider-layout button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button--full-width:hover {
  background-color: #9b3508 !important; /* The new color when hovering */
  color: #fff !important; /* Keeps the text white on hover */
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out !important;
}

/* Specifically override Twenty Twenty-One's deep theme rules for links and logos */
.site a:focus:not(.wp-block-button__link),
.site-header a:focus,
.custom-logo-link:focus {
  outline: none !important;
  box-shadow: none !important;
}
.wp-block-button__link span {
  color: #fff;
}
.site-header {
  padding: 0 2em !important;
  border-bottom: none !important; /* Removes the orange border */
  box-shadow: 0 6px 8px -4px rgba(0, 0, 0, 0.15); /* Adds a subtle shadow to the bottom only */
  min-width: 100% !important; /* Ensures the header spans the full width of the viewport */
}
.home-latest-product {
  font-size: 2em !important;
  color: #fe5a11 !important;
}
.home-main-slider-layout {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  min-height: 90px;
}
.home-main-slider-layout .wp-block-cover__inner-container {
  margin-bottom: 0px !important;
}
.home-main-slider,
.home-product-list {
  width: 100% !important;
  min-width: 100% !important;
}
.price,
a.reset_variations,
.product_meta {
  display: none !important;
}
.woocommerce-variation-price .price {
  display: block !important;
}
.home-product-template {
  padding-top: 0 !important;
}
.wp-block-button.wc-block-components-product-button {
  flex-direction: row !important;
}
/* Base state for the product items */
.home-product-template li {
  box-shadow: 0px 0px 10px #ccc;
  padding-bottom: 20px;
  /* Smooth transition for the shadow and transform properties */
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
  border-radius: 5px; /* Optional: Rounds the corners of the card */
}

/* Hover state: Makes the shadow deeper and slightly lifts the card */
.home-product-template li:hover {
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px); /* Optional: Gives a nice "floating" effect */
}
.home-product-template .wp-block-post-title {
  padding: 12px;
}

.woocommerce-tabs ul li.active {
  background: transparent;
}

#place_order,
.trigger-popup-checkout,
.view-product-button,
.woocommerce-tabs ul li.active a,
.single_add_to_cart_button,
.order-now-mobile-number,
.wp-block-button:not(.is-style-outline)
  .wp-block-button__link:not(:hover):not(:active):not(.has-background) {
  color: #fff !important;
  background-color: #ff5911 !important;
  font-size: 15px !important;
  padding: 7px 12px !important;
  border-radius: 5px !important;
  /* Invisible placeholder border to prevent button jumping/shifting layout on hover */
  border: 2px solid #142d63 !important;
  /* Smooth transition for both background-color and border-color */
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out !important;
  height: 42px !important;
}
.view-product-button {
  background-color: #007438 !important;
  text-decoration: none !important;
}
#place_order:hover,
.trigger-popup-checkout:hover,
.view-product-button:hover,
.single_add_to_cart_button:hover,
.order-now-mobile-number:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:active {
  background-color: #142d63 !important;
  color: inherit !important;
  font-size: 15px !important;
  padding: 7px 12px !important;
  border-radius: 5px !important;
  /* Defines a solid border on hover/click (Change #ff5911 to any color you prefer) */
  border: 2px solid #ff5911 !important;
  /* Keeps the transition active on hover/active states */
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out !important;
  color: #fff !important;
}
.single-product .single_add_to_cart_button {
  line-height: 15px !important;
}
.trigger-popup-checkout {
  margin-top: 15px !important;
  width: 100% !important;
}

.order-now-mobile-number {
  width: 100% !important;
  margin-top: 15px;
  display: block !important;
  text-decoration: none !important;
  text-align: center !important;
  background-color: #007438 !important;
}

.product-price ins {
  text-decoration: none !important;
}

/* Removes the background color when clicking or focusing on the product title link */
.home-product-template li a:active,
.home-product-template li a:focus,
.home-product-template li .woocommerce-loop-product__title:active,
.home-product-template li .woocommerce-loop-product__title:focus {
  background-color: transparent !important;
  color: inherit !important; /* Keeps your text its original color */
}
.single-product form.cart input[type="number"] {
  height: 42px !important;
  border: 2px solid #ff5911 !important;
  text-align: center !important;
  width: 4em !important;
}
.woocommerce div.product span.price {
  color: #ff5911 !important;
}
.woocommerce-js div.product p.price,
.woocommerce-js div.product span.price {
  color: #77a464 !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.2em;
}
.woocommerce-js div.product p.price del,
.woocommerce-js div.product span.price del {
  opacity: 0.5;
  font-weight: 400;
  display: initial;
}
.vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design
  .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected,
.vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_button_design
  .vi-wpvs-option-wrap.vi-wpvs-option-wrap-hover {
  background-color: #ff5911 !important;
}
.virkut-order-info {
  background-color: #ff5911 !important;
  color: #fff !important;
  font-size: 1em !important;
  border-radius: 5px !important;
  padding: 10px 15px !important;
  text-align: center;
}
/* 
###############################################
CSS for Checkout page popup
###############################################
/* Lock main page scrolling when modal is active */
body.modal-open {
  overflow: hidden !important;
}

/* Modal Background Overlay (with Fade effect) */
.wc-popup-modal-overlay {
  display: flex; /* Kept flex but opacity/visibility handles show/hide */
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 999999 !important; /* Ensure it is over top elements */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px); /* Modern blur effect behind modal */
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Activated Modal Overlay State */
.wc-popup-modal-overlay.is-active {
  visibility: visible;
  opacity: 1;
}

/* Modal Content Box (with Zoom-In effect) */
.wc-popup-modal-content {
  background-color: #fff;
  padding: 35px 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.4);

  /* Initial Scale state for animation */
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animated Scale when Modal becomes active */
.wc-popup-modal-overlay.is-active .wc-popup-modal-content {
  transform: scale(1);
}

/* Fixed Close Sticky Header Button (X) */
.wc-popup-modal-close {
  color: #333;
  background-color: #f1f1f1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  z-index: 10;
}

.wc-popup-modal-close:hover {
  background-color: #ff5911;
  color: #fff;
}

/* Inner header details */
.wc-popup-modal-body h3 {
  margin-top: 0;
  margin-bottom: 25px;
  border-bottom: 2px solid #ff5911;
  padding-bottom: 12px;
  font-size: 22px;
}

/* Responsive Structural Fixes inside Popups */
.wc-popup-modal-body .col2-set .col-1,
.wc-popup-modal-body .col2-set .col-2 {
  width: 100% !important;
  float: none !important;
  margin-bottom: 20px;
}

/* Hide redundant layout items from the modal cart layout */
.wc-popup-modal-body .cart-collaterals,
.wc-popup-modal-body .cross-sells,
.wc-popup-modal-body .wc-proceed-to-checkout,
.wc-popup-modal-body .woocommerce-shipping-calculator {
  display: none !important;
}

/* Give headers spacing inside the modal body */
.modal-cart-section,
.modal-checkout-section {
  margin-bottom: 35px;
}

.wc-popup-modal-body h3 {
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid #ff5911;
  padding-bottom: 8px;
  font-size: 20px;
}

/* Make cart table modern and compact inside the popup modal */
.wc-popup-modal-body table.shop_table {
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
}

.wc-popup-modal-body table.shop_table td {
  padding: 10px 8px !important;
}

/* Make sure modal stays scrollable if the form becomes tall */
.wc-popup-modal-content {
  max-width: 900px !important; /* Slightly widened to fit the table structure */
}
/* Clean up the modal layout by hiding the native manual Update Button */
.wc-popup-modal-body button[name="update_cart"] {
  display: none !important;
}
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
  border: 1px solid #142d63 !important;
  font-size: 0.8em !important;
  padding: 0.8em !important;
}

.wp-block-cover {
  padding-left: 0px !important;
  padding-right: 0px !important;
}
