/*
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;
}
.product-type-variable .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;
}

.virkut-button-primary,
.virkut-button-secondary,
#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,
.virkut-button-secondary {
  background-color: #007438 !important;
  text-decoration: none !important;
}

.virkut-button-primary:hover,
.virkut-button-secondary:hover,
#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: 95vh;
  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;
  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 */
}
.wc-popup-modal-content-sm {
  max-width: 420px !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;
}

.item-added-popup-body {
  text-align: center;
  padding: 20px 15px 15px;
}

.item-added-success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e8f7ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-added-success-icon span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #28a745;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.item-added-popup-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.item-added-popup-message {
  margin: 0 0 25px;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.item-added-popup-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.item-added-popup-buttons .button {
  margin: 0;
  min-width: 145px;
  padding: 12px 20px;
}

@media (max-width: 480px) {
  .item-added-popup-body {
    padding: 30px 20px 25px;
  }

  .item-added-popup-buttons {
    flex-direction: column;
  }

  .item-added-popup-buttons .button {
    width: 100%;
  }
}
.modal-checkout-section #payment .wc_payment_methods {
  display: none !important;
}

.modal-cart-section table.cart tr:has(.actions),
.modal-cart-section table.cart td.actions {
  display: none !important;
}

.modal-checkout-section .woocommerce-billing-fields > h3 {
  display: none !important;
}

.wc-popup-modal-overlay.cart-is-empty .modal-checkout-section,
.wc-popup-modal-overlay.cart-is-empty .virkut-order-info {
  display: none !important;
}

#item-added-popup {
  display: none;
}

#item-added-popup.is-active {
  display: flex;
}

.item-added-popup-content {
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
}

.item-added-popup-content h3 {
  margin: 0 0 25px;
}

.item-added-popup-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.item-added-popup-buttons .button {
  margin: 0;
}

/**
 * Add to Cart Popup Close Button
 */
.item-added-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 30px;
  cursor: pointer;
  z-index: 10;
}
.virkut-delivery-option {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #262626;
  padding: 10px;
}

.virkut-delivery-option input[type="radio"] {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 !important;
  padding: 0;
  flex: 0 0 24px;
}

.virkut-delivery-option-content {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1;
}

.virkut-delivery-option-name,
.virkut-delivery-option-price {
  display: inline-block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

/* #################################################### */
/* Footer Code */

/* =========================================================
   Custom Footer
   ========================================================= */

.custom-site-footer {
  background: #111827;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0 !important;
}

/* Container */

.custom-footer-container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   Main Footer
   ========================================================= */

.custom-footer-main {
  padding: 70px 0 55px;
}

.custom-footer-main .custom-footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
}

/* =========================================================
   About
   ========================================================= */

.custom-footer-logo {
  display: inline-block;

  color: #ffffff !important;

  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;

  text-decoration: none !important;

  margin-bottom: 20px;
}

.custom-footer-logo:hover {
  color: #ffffff !important;
}

.custom-footer-description {
  max-width: 330px;

  margin: 0 0 25px;

  color: #9ca3af;

  font-size: 15px;
  line-height: 1.8;
}

/* =========================================================
   Footer Titles
   ========================================================= */

.custom-footer-title {
  margin: 0 0 22px;

  color: #ffffff;

  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

/* =========================================================
   Footer Links
   ========================================================= */

.custom-footer-links {
  list-style: none;

  margin: 0;
  padding: 0;
}

.custom-footer-links li {
  margin: 0 0 12px;
  padding: 0;
}

.custom-footer-links a {
  position: relative;

  display: inline-block;

  color: #9ca3af !important;

  font-size: 14px;
  line-height: 1.6;

  text-decoration: none !important;

  transition: color 0.25s ease, padding-left 0.25s ease;
}

.custom-footer-links a:hover {
  color: #ffffff !important;
  padding-left: 5px;
}

/* =========================================================
   Social Icons
   ========================================================= */

.custom-footer-social {
  display: flex;

  gap: 10px;

  margin-top: 20px;
}

.custom-footer-social a {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border: 1px solid #374151;
  border-radius: 50%;

  color: #d1d5db !important;

  font-size: 14px;
  font-weight: 600;

  text-decoration: none !important;

  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease;
}

.custom-footer-social a:hover {
  background: #ffffff;

  border-color: #ffffff;

  color: #111827 !important;

  transform: translateY(-3px);
}

/* =========================================================
   Contact
   ========================================================= */

.custom-footer-contact-list {
  list-style: none;

  margin: 0;
  padding: 0;
}

.custom-footer-contact-list li {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  margin-bottom: 17px;

  color: #9ca3af;

  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 30px;
  height: 30px;

  border-radius: 50%;

  background: #1f2937;

  color: #ffffff;

  font-size: 13px;
}

.custom-footer-contact-list a {
  color: #9ca3af !important;

  text-decoration: none !important;

  transition: color 0.25s ease;
}

.custom-footer-contact-list a:hover {
  color: #ffffff !important;
}

/* =========================================================
   Footer Bottom
   ========================================================= */

.custom-footer-bottom {
  border-top: 1px solid #273244;

  padding: 22px 0;
}

.custom-footer-bottom-inner {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.custom-footer-bottom p {
  margin: 0;

  color: #6b7280;

  font-size: 13px;
}

.custom-footer-bottom-links {
  display: flex;

  align-items: center;

  gap: 25px;
}

.custom-footer-bottom-links a {
  color: #6b7280 !important;

  font-size: 13px;

  text-decoration: none !important;

  transition: color 0.25s ease;
}

.custom-footer-bottom-links a:hover {
  color: #ffffff !important;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {
  .custom-footer-main .custom-footer-container {
    grid-template-columns: 1fr 1fr;

    gap: 45px 35px;
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {
  .custom-footer-container {
    width: min(100% - 30px, 1200px);
  }

  .custom-footer-main {
    padding: 50px 0 35px;
  }

  .custom-footer-main .custom-footer-container {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .custom-footer-description {
    max-width: 100%;
  }

  .custom-footer-bottom {
    padding: 20px 0;
  }

  .custom-footer-bottom-inner {
    flex-direction: column;

    align-items: flex-start;

    gap: 12px;
  }

  .custom-footer-bottom-links {
    flex-wrap: wrap;

    gap: 12px 20px;
  }
}
.site-main > * {
  margin-bottom: 0 !important;
}
