/*
Theme Name: nasro-shop
Theme URI: https://prodypanda.com/nasro-shop
Author: Prodypanda (Naserdine Habouria)
Author URI: https://prodypanda.com/nasro-shop
Description: My first responsive HTML5 theme
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/*.group:hover .group-hover\:visible {
  visibility: visible;
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
.invisible {
  visibility: hidden;
}
*/

:root {
  --ring: 0 59% 43%;
}
/* --- Header Dropdown Adjustments --- */

/* Ensure the Mini Cart fits the "Red Header" design */
.widget_shopping_cart_content .woocommerce-mini-cart {
  padding: 0 !important;
  margin: 0 !important;
  max-height: 300px;
  overflow-y: auto;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item {
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.widget_shopping_cart_content .woocommerce-mini-cart-item img {
  width: 40px !important;
  margin: 0 !important;
  border-radius: 4px;
}

.widget_shopping_cart_content .total {
  padding: 12px 16px !important;
  border-top: 2px solid #f3f4f6;
  margin: 0 !important;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.widget_shopping_cart_content .buttons {
  padding: 12px 16px !important;
  margin: 0 !important;
  display: flex;
  gap: 8px;
}

.widget_shopping_cart_content .button {
  width: 100%;
  text-align: center;
  border-radius: 6px !important;
  font-size: 14px !important;
  background-color: #be1e2d !important; /* Primary Color */
  color: white !important;
  padding: 10px !important;
}

/* Hide the default WC remove button style and use simple X if needed, 
   but usually WC provides a circle X. We keep it default or simple. */
.mini_cart_item a.remove {
  background: transparent !important;
  color: #ef4444 !important; /* Tailwind Red-500 */
  font-weight: bold;
}

/* Ensure Wishlist Add to Cart is just an icon */
.mini-wishlist-content .add_to_cart_button {
  font-size: 0 !important; /* Hide default text */
  padding: 8px !important;
  display: inline-flex !important;
}
.mini-wishlist-content .add_to_cart_button svg {
  display: block !important;
}
/* Ensure default WC mini cart styles don't conflict */
.woocommerce-mini-cart-item {
  display: flex !important; /* Force flex for new layout */
}

/* --- Scroll Animations --- */

/* Initial State: Invisible and shifted down */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px); /* Move down 30px */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Active State: Visible and back to original position */
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll-fadeIn {
  opacity: 0;
  transition: opacity 2.5s cubic-bezier(0, 0.61, 0.1, 1);
  will-change: opacity;
}

/* Active State: Visible and back to original position */
.reveal-on-scroll-fadeIn.is-visible {
  opacity: 1;
}

/* Optional: Scale Animation (for images) */
.reveal-scale-up {
  opacity: 0;
  transform: scale(0.99); /* Slightly smaller */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-scale-up.is-visible {
  opacity: 1;
  transform: scale(1);
}
img.reveal-scale-up.is-visible {
  opacity: 0.6;
  transform: scale(1);
}

/* --- 1. New Animation: Left to Right (For Badge) --- */
.reveal-from-left {
  opacity: 0;
  transform: translateX(-50px); /* Start 50px to the left */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.reveal-from-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- 2. Loading Spinner Overlay --- */
.hero-loader {
  position: absolute;
  inset: 0; /* Top/Left/Right/Bottom: 0 */
  background-color: #18181b; /* zinc-900 to match bg */
  z-index: 50; /* Above everything */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out;
}

.hero-loader.loader-hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #fff;
  border-bottom-color: #be1e2d; /* Primary Red */
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- 1. Z-Index Fix --- */
/* Ensure Header is ALWAYS above everything else */
header.sticky {
  z-index: 100 !important;
}

/* Ensure Hero Loader is below the header */
.hero-loader {
  z-index: 40 !important; /* Lower than header (100) but higher than hero content (10) */
}

/* --- 2. Hero Gradient Overlay (Replit Style) --- */
/* Forces a strong gradient: Dark on Left/Bottom, Fading to Right/Top */
.hero-gradient-overlay {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  position: absolute;
  inset: 0;
  z-index: 1; /* Above image, below text */
}

/* --- 3. Spinner Styles --- */

/* Base Loader Container */
.hero-loader {
  position: absolute;
  inset: 0;
  background-color: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out;
}
.hero-loader.loader-hidden {
  opacity: 0;
  pointer-events: none;
}

/* STYLE A: Rotating Circle */
.spinner-circle {
  width: 48px;
  height: 48px;
  border: 5px solid #fff;
  border-bottom-color: #be1e2d;
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* STYLE B: Bouncing Dots */
.spinner-dots {
  display: flex;
  gap: 8px;
}
.spinner-dots div {
  width: 12px;
  height: 12px;
  background: #be1e2d;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}
.spinner-dots div:nth-child(2) {
  animation-delay: 0.2s;
  background: #fff;
}
.spinner-dots div:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes bounce {
  to {
    transform: translateY(-12px);
    opacity: 0.7;
  }
}

/* STYLE C: Pulse Ring */
.spinner-pulse {
  width: 60px;
  height: 60px;
  background: #be1e2d;
  border-radius: 50%;
  animation: pulse-ring 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pulse-ring {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* STYLE D: Dual Ring (Modern) */
.spinner-dual-ring {
  display: inline-block;
  width: 64px;
  height: 64px;
}
.spinner-dual-ring:after {
  content: " ";
  display: block;
  width: 46px;
  height: 46px;
  margin: 8px;
  border-radius: 50%;
  border: 5px solid #fff;
  /* Top and Bottom are Red (#be1e2d), Sides are transparent */
  border-color: #be1e2d transparent #be1e2d transparent;
  animation: dual-ring 1.2s linear infinite;
}
@keyframes dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* STYLE E: Wave Bars */
.spinner-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
.spinner-wave div {
  background-color: #be1e2d; /* Primary Color */
  height: 100%;
  width: 6px;
  margin: 0 3px;
  animation: wave-stretch 1.2s infinite ease-in-out;
}
.spinner-wave div:nth-child(1) {
  animation-delay: -1.2s;
}
.spinner-wave div:nth-child(2) {
  animation-delay: -1.1s;
}
.spinner-wave div:nth-child(3) {
  animation-delay: -1s;
}
.spinner-wave div:nth-child(4) {
  animation-delay: -0.9s;
}
.spinner-wave div:nth-child(5) {
  animation-delay: -0.8s;
}

@keyframes wave-stretch {
  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    background-color: #fff;
  }
  20% {
    transform: scaleY(1);
    background-color: #be1e2d;
  }
}

/* --- THEMATIC SPINNERS --- */

/* 1. THE SCRUBBER (Represents Floor Machines) */
.spinner-scrubber {
  width: 60px;
  height: 60px;
  position: relative;
  border-radius: 50%;
  border: 4px dashed #fff; /* White Bristles */
  border-bottom-color: #be1e2d; /* Red Bristle Segment */
  animation: scrub-spin 0.8s linear infinite;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
/* The inner hub of the machine */
.spinner-scrubber::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #be1e2d;
  border-radius: 50%;
  border: 2px solid #fff;
}
@keyframes scrub-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 2. THE BUBBLES (Represents Detergents) */
.spinner-bubbles {
  position: relative;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  overflow: hidden; /* Keep bubbles inside */
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.soap-bubble {
  position: absolute;
  bottom: -10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: rise-up 2s infinite ease-in;
}
/* Individual Bubble Timing */
.soap-bubble:nth-child(1) {
  width: 10px;
  height: 10px;
  left: 10px;
  animation-duration: 1.5s;
}
.soap-bubble:nth-child(2) {
  width: 15px;
  height: 15px;
  left: 30px;
  animation-duration: 2.2s;
  animation-delay: 0.2s;
  background: #be1e2d;
  opacity: 0.8;
}
.soap-bubble:nth-child(3) {
  width: 8px;
  height: 8px;
  left: 45px;
  animation-duration: 1.8s;
  animation-delay: 0.5s;
}

@keyframes rise-up {
  0% {
    bottom: -10px;
    transform: scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    bottom: 100%;
    transform: scale(1.5);
    opacity: 0;
  }
}

/* 3. THE RIPPLE (Represents Water/Fluids) */
.spinner-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.spinner-ripple div {
  position: absolute;
  border: 4px solid #fff;
  opacity: 1;
  border-radius: 50%;
  animation: ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
/* Second ring is red */
.spinner-ripple div:nth-child(2) {
  animation-delay: -0.5s;
  border-color: #be1e2d;
}
@keyframes ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  4.9% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  5% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

/*












*/
.washer-loader {
  width: 100px;
  height: 120px;
  background: #fff;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The Machine Control Panel */
.washer-loader::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #cc2e2e; /* Green LED */
  border-radius: 50%;
  box-shadow: 0 0 5px #cc2e2e;
  animation: blink 1s infinite;
}

/* The Door Window */
.drum {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid #db3434; /* Detergent Blue */
  position: relative;
  overflow: hidden;
  background: #e6f7ff;
}

/* The Spinning Water/Clothes */
.water {
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, #db3434 0%, #ffa2a2 50%, #db3434 100%);
  opacity: 0.6;
  animation: spin 0.8s linear infinite;
}

/* Glare on the glass */
.drum::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(2px);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/*





*/
.bubble-loader {
  position: relative;
  width: 80px;
  height: 80px;
}

.bubble {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.9),
    rgba(52, 152, 219, 0.4)
  );
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  animation: rise 2s infinite ease-in;
}

/* Varying sizes and speeds for organic feel */
.bubble:nth-child(1) {
  width: 15px;
  height: 15px;
  animation-delay: 0s;
  left: 40%;
}
.bubble:nth-child(2) {
  width: 25px;
  height: 25px;
  animation-delay: 0.4s;
  left: 60%;
}
.bubble:nth-child(3) {
  width: 10px;
  height: 10px;
  animation-delay: 0.8s;
  left: 45%;
}
.bubble:nth-child(4) {
  width: 18px;
  height: 18px;
  animation-delay: 1.2s;
  left: 55%;
}
.bubble:nth-child(5) {
  width: 12px;
  height: 12px;
  animation-delay: 1.5s;
  left: 50%;
}

@keyframes rise {
  0% {
    bottom: 0;
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }
  30% {
    opacity: 1;
  }
  100% {
    bottom: 100px;
    opacity: 0;
    transform: translateX(-50%) scale(1.2);
  }
}

/* Optional Text */
.loading-text {
  position: absolute;
  bottom: -30px;
  width: 100%;
  text-align: center;
  color: white;
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* 1. From Right */
.reveal-from-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.reveal-from-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 2. Simple Fade In */
.reveal-fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.reveal-fade-in.is-visible {
  opacity: 1;
}

/* 3. Bounce In */
.reveal-bounce {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.3s;
}
.reveal-bounce.is-visible {
  opacity: 1;
  transform: scale(1);
  animation: bounce-in 0.8s ease-in-out forwards;
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
    transform: scale3d(1.1, 1.1, 1.1);
  }

  80% {
    opacity: 1;
    transform: scale3d(0.97, 0.97, 0.97);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.border {
  border-style: var(--tw-border-style);
  border-width: 1px;
}
.border {
  border-style: var(--tw-border-style);
  border-width: 1px;
}
.border-0 {
  border-style: var(--tw-border-style);
  border-width: 0px;
}
.border-2 {
  border-style: var(--tw-border-style);
  border-width: 2px;
}
.border-\[1\.5px\] {
  border-style: var(--tw-border-style);
  border-width: 1.5px;
}
.border-y {
  border-block-style: var(--tw-border-style);
  border-block-width: 1px;
}
.border-t {
  border-top-style: var(--tw-border-style);
  border-top-width: 1px;
}
.border-t-4 {
  border-top-style: var(--tw-border-style);
  border-top-width: 4px;
}
.border-r {
  border-right-style: var(--tw-border-style);
  border-right-width: 1px;
}
.border-b {
  border-bottom-style: var(--tw-border-style);
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-style: var(--tw-border-style);
  border-bottom-width: 2px;
}
.border-l {
  border-left-style: var(--tw-border-style);
  border-left-width: 1px;
}
.border-dashed {
  --tw-border-style: dashed;
  border-style: dashed;
}
.border-none {
  --tw-border-style: none;
  border-style: none;
}
.\[border-color\:var\(--badge-outline\)\] {
  border-color: var(--badge-outline);
}
.\[border-color\:var\(--button-outline\)\] {
  border-color: var(--button-outline);
}
.border-\[--color-border\] {
  border-color: --color-border;
}
.border-amber-200 {
  border-color: var(--color-amber-200);
}
.border-amber-600 {
  border-color: var(--color-amber-600);
}
.border-blue-200 {
  border-color: var(--color-blue-200);
}
.border-blue-500 {
  border-color: var(--color-blue-500);
}
.border-border {
  border-color: hsl(var(--border));
}
.border-border\/50 {
  border-color: hsl(var(--border));
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, hsl(var(--border)) 50%, transparent);
  }
}
.border-cyan-200 {
  border-color: var(--color-cyan-200);
}
.border-destructive {
  border-color: hsl(var(--destructive));
}
.border-destructive\/50 {
  border-color: hsl(var(--destructive));
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, hsl(var(--destructive)) 50%, transparent);
  }
}
.border-emerald-100 {
  border-color: var(--color-emerald-100);
}
.border-emerald-200 {
  border-color: var(--color-emerald-200);
}
.border-emerald-300 {
  border-color: var(--color-emerald-300);
}
.border-emerald-400\/30 {
  border-color: color-mix(in srgb, oklch(76.5% 0.177 163.223) 30%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(
      in oklab,
      var(--color-emerald-400) 30%,
      transparent
    );
  }
}
.border-emerald-600 {
  border-color: var(--color-emerald-600);
}
.border-gray-100 {
  border-color: var(--color-gray-100);
}
.border-gray-200 {
  border-color: var(--color-gray-200);
}
.border-gray-300 {
  border-color: var(--color-gray-300);
}
.border-green-200 {
  border-color: var(--color-green-200);
}
.border-green-500 {
  border-color: var(--color-green-500);
}
.border-input {
  border-color: hsl(var(--input));
}
.border-primary {
  border-color: hsl(var(--primary));
}
.border-primary\/10 {
  border-color: hsl(var(--primary));
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, hsl(var(--primary)) 10%, transparent);
  }
}
.border-primary\/20 {
  border-color: hsl(var(--primary));
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, hsl(var(--primary)) 20%, transparent);
  }
}
.border-primary\/50 {
  border-color: hsl(var(--primary));
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, hsl(var(--primary)) 50%, transparent);
  }
}
.border-purple-200 {
  border-color: var(--color-purple-200);
}
.border-red-300 {
  border-color: var(--color-red-300);
}
.border-transparent {
  border-color: transparent;
}
.border-white {
  border-color: var(--color-white);
}
.border-white\/20 {
  border-color: color-mix(in srgb, #fff 20%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, var(--color-white) 20%, transparent);
  }
}
.border-white\/30 {
  border-color: color-mix(in srgb, #fff 30%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, var(--color-white) 30%, transparent);
  }
}
.border-zinc-700 {
  border-color: var(--color-zinc-700);
}
.border-zinc-800 {
  border-color: var(--color-zinc-800);
}
.border-t-transparent {
  border-top-color: transparent;
}
.border-l-transparent {
  border-left-color: transparent;
}
.border-primary\/20 {
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, hsl(var(--primary)) 20%, transparent);
  }
}
.border-zinc-800 {
  border-color: var(--color-zinc-800);
}
.bg-primary\/20 {
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, hsl(var(--primary)) 20%, transparent);
  }
}
.text-primary\/80 {
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in oklab, hsl(var(--primary)) 80%, transparent);
  }
}

.hover\:border-blue-500 {
  /* <--- Added the dot here */
  &:hover {
    @media (hover: hover) {
      border-color: var(--color-blue-500);
    }
  }
}
/*
hover:!border-blue-500


















*/
/* --- Newsletter CF7 Styling --- */

/* 1. Reset CF7 Structure for this section only */
.my-newsletter-section .wpcf7-form {
  margin: 0;
}

/* 2. Hide standard messages initially (optional, for cleaner look) */
.my-newsletter-section .wpcf7-response-output {
  font-size: 12px;
  margin: 10px 0 0 0 !important;
  padding: 5px !important;
  border-radius: 4px;
}

/* 3. The Flex Container (Requires user to wrap fields in a div, see Step 3) */
.newsletter-flex-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

/* 4. The Input Field */
.my-newsletter-section input[type="email"],
.my-newsletter-section input[type="text"] {
  flex: 1;
  min-width: 0; /* Allow shrinking */
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: #ffffff;
  color: #1f2937; /* Gray-900 */
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.my-newsletter-section input[type="email"]:focus {
  ring: 2px solid #be1e2d; /* Primary Focus Ring */
}

/* 5. The Submit Button */
.my-newsletter-section button[type="submit"],
.my-newsletter-section input[type="submit"] {
  background-color: #be1e2d; /* Primary */
  color: white;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 6px;
  border: 1px solid #be1e2d;
  cursor: pointer;
  transition: background-color 0.2s;
  height: auto; /* Match input height */
}
.my-newsletter-section input[type="submit"]:hover {
  background-color: #9e2a48; /* Secondary */
  border-color: #9e2a48;
}

/* 6. Loader Spinner override */
.my-newsletter-section .ajax-loader {
  position: absolute;
}

/*






*/
/* --- SCROLL TO TOP (Replit Clone) --- */

/* 1. HOVER STATE (Matches whileHover) */

/* 2. ACTIVE CLICK STATE (Matches whileTap) */
.scroll-top-btn:active {
  transform: scale(0.9) !important;
  transition: transform 0.5s ease-in;
}

/* 3. ENTRANCE ANIMATION (Matches initial -> animate) */
/* Using cubic-bezier to mimic Spring: type: "spring", stiffness: 300, damping: 30 */
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: spring-enter 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes spring-enter {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0);
  }
  70% {
    opacity: 0.6;
    transform: translateY(0) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 4. EXIT ANIMATION (Matches exit) */
.scroll-top-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0);
  animation: spring-leave 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes spring-leave {
  0% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
  70% {
    opacity: 0.6;
    transform: translateY(20px) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translateY(0px) scale(0);
  }
}

/* 5. ICON BOUNCE ANIMATION (Matches inner motion.div) */
/* animate={{ y: [0, -6, 0] }} transition={{ duration: 1.5, repeat: Infinity }} */
.scroll-icon-bouncer {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: icon-bounce 1.5s ease-in-out infinite;
}

@keyframes icon-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* --- Blog Content Typography (Mimic Tailwind Prose) --- */
.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #111827;
}
.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: #111827;
}
.prose p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}
.prose ul {
  list-style-type: disc;
  padding-left: 1.625em;
  margin-bottom: 1.25em;
}
.prose li {
  margin-bottom: 0.5em;
}
.prose strong {
  font-weight: 600;
  color: #111827;
}
.prose a {
  color: #be1e2d;
  text-decoration: underline;
  font-weight: 500;
}
.prose a:hover {
  color: #9e2a48;
}
.prose img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 2em 0;
}

/* --- Contact Page Form Styling (Vertical) --- */
.contact-page-form input:not([type="submit"]),
.contact-page-form textarea,
.contact-page-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 8px;
  margin-bottom: 0; /* Spacing handled by grid/space-y */
  font-size: 14px;
  background-color: transparent;
  transition: all 0.2s;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
  border-color: #be1e2d;
  box-shadow: 0 0 0 3px rgba(190, 30, 45, 0.1);
  outline: none;
}

.contact-page-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151; /* gray-700 */
  font-size: 0.875rem; /* text-sm */
}

/* Submit Button */
.contact-page-form input[type="submit"] {
  background-color: #be1e2d;
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 12px 24px;
  border-radius: 6px;
  width: 100%;
  cursor: pointer;
  border: 1px solid #be1e2d;
  transition: all 0.2s;
  margin-top: 10px;
}

.contact-page-form input[type="submit"]:hover {
  background-color: #9e2a48;
  border-color: #9e2a48;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* CF7 Error/Success Messages */
.contact-page-form .wpcf7-response-output {
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 15px !important;
  margin-top: 20px !important;
}

/*






*/
/* Single Product Add to Cart Styling */
.single_add_to_cart_button {
  background-color: #be1e2d !important; /* Primary Red */
  color: white !important;
  padding: 12px 32px !important;
  border-radius: 8px !important;
  font-weight: bold !important;
  transition: all 0.2s !important;
}
.single_add_to_cart_button:hover {
  background-color: #9e2a48 !important;
  transform: translateY(-1px);
}

/* Quantity Input */
.quantity .qty {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 10px !important;
  width: 80px !important;
  text-align: center !important;
  font-weight: bold !important;
  color: #1f2937 !important;
}

/*







body {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
body.loaded {
  opacity: 1;
}






*/
/* Fallback: If JS is disabled, show everything */
@media (scripting: none) {
  .reveal-on-scroll,
  .reveal-scale-up,
  .reveal-from-left,
  .reveal-from-right {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* style.css */

/*
* {
  opacity: 1 !important;
}
*/
/* --- WPBakery Layout Fixes --- */

/* 
   Ensure columns inside the row still have padding 
   so content doesn't touch the edges if margins are removed.
*/
.vc_column_container {
  padding-left: 15px; /* Optional: Adjust based on preference */
  padding-right: 15px;
}

/* 
   Fix for "Full Width" rows (if you use "Stretch Row" in WPBakery)
   This ensures the JS calculation doesn't push it too far.
*/
body {
  overflow-x: hidden; /* Ultimate safety net */
}

/* 2. Fix WPBakery Stretch Logic alignment */
.vc_row[data-vc-full-width] {
  left: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  /* Reset margins logic that WP Bakery sometimes messes up */
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 3. Ensure our Custom Elements handle their own width */
/* This ensures that if they are inside a row, they take up all space */
.my-about-section,
.my-cta-section,
.my-newsletter-section,
.my-catalogue-carousel {
  width: 100%;
}

/* --- GLOBAL SITE PRELOADER --- */
#site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* Better than height: 100% for mobile */
  width: 100%;
  height: 100%; /* Fallback */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;

  /* Ensure it captures clicks */
  cursor: pointer;
  pointer-events: auto;

  /* Hardware acceleration for smoother animation on mobile */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* State: Hidden */
#site-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  /* Allow clicking on elements underneath once hidden */
  pointer-events: none;
}

/* Optional: Scale effect for the spinner when finishing */
#site-preloader.loaded .preloader-content {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.3s;
}

/* --- WooCommerce Pagination --- */
.woocommerce-pagination {
  margin-top: 40px;
  text-align: center;
}
.woocommerce-pagination ul {
  display: inline-flex;
  gap: 8px;
  border: none !important;
}
.woocommerce-pagination ul li {
  border: none !important;
  overflow: visible !important;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-weight: 600;
  color: #4b5563; /* gray-600 */
  background: #f3f4f6; /* gray-100 */
  transition: all 0.2s;
  text-decoration: none;
  border: none !important;
}
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
  background: #be1e2d; /* Primary */
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Shop Header Sorting */
.woocommerce-ordering select {
  padding: 10px 36px 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: white;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}

.woocommerce-result-count {
  margin: 0 !important;
  font-size: 14px;
  color: #6b7280;
}

/* --- WooCommerce Layout Reset --- */

/* Ensure the grid takes up space */
ul.products {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Ensure list items reset */
ul.products li {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Fix Images */
ul.products li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fix "Result Count" alignment */
.woocommerce-result-count {
  margin-bottom: 1rem;
  color: #6b7280;
}

/* Fix Sorting Dropdown */
.woocommerce-ordering {
  margin-bottom: 2rem;
  text-align: right;
}

/* --- NEW ANIMATION TYPES --- */

/* 1. Reveal Blur (Starts blurry and fades in) */
.reveal-blur {
  opacity: 0;
  filter: blur(20px);
  transform: scale(0.95);
  transition: opacity 0.4s ease-out, filter 0.4s ease-out,
    transform 0.4s ease-out;
  will-change: opacity, filter, transform;
}
.reveal-blur.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* 2. Reveal Rotate (3D Rotate from bottom) */
.reveal-rotate {
  opacity: 0;
  transform: perspective(1000px) rotateX(20deg) translateY(40px);
  transform-origin: center top;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform;
}
.reveal-rotate.is-visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0) translateY(0);
}

/* 3. Reveal Flip Up (3D Spring Effect) */
.reveal-flip-up {
  opacity: 0;
  transform: perspective(1000px) rotateX(90deg) translateY(50px);
  transform-origin: center bottom;
  /* Spring Bezier: slightly overshoots then settles */
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.reveal-flip-up.is-visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0) translateY(0);
}

/* 4. Reveal Skew Slide (Modern/Speedy) */
.reveal-skew-slide {
  opacity: 0;
  transform: translateY(40px) skewY(8deg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-skew-slide.is-visible {
  opacity: 1;
  transform: translateY(0) skewY(0);
}

/* 5. Reveal Bounce In (Mimics spring bounce) */
.reveal-bounce {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease-out;
  will-change: opacity, transform;
}
.reveal-bounce.is-visible {
  opacity: 1;
  animation: bounce-in 0.7s ease-in-out forwards;
}
@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale3d(0.5, 0.5, 0.5);
  }

  50% {
    opacity: 0.7;
    transform: scale3d(1.02, 1.02, 1.02);
  }

  80% {
    opacity: 1;
    transform: scale3d(0.98, 0.98, 0.98);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.border-blue-500 {
  border-color: var(--color-blue-500);
}

#qr-code-target img {
  margin: 0 auto;
  display: block;
}
/* Base Container Reset */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 1rem 1rem 1rem 3rem !important; /* Left padding for icon */
  margin-bottom: 1.5rem !important;
  border-radius: 0.5rem !important; /* Rounded-lg */
  border: 1px solid transparent !important;
  position: relative !important;
  font-size: 0.875rem !important; /* Text-sm */
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  list-style: none !important;
  width: 100% !important;
}

/* Base Icon (Pseudo-element) */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
  content: "" !important;
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

/* 1. SUCCESS (Green) - e.g. Added to cart */
.woocommerce-message {
  background-color: #ecfdf5 !important; /* bg-emerald-50 */
  border-color: #a7f3d0 !important; /* border-emerald-200 */
  color: #065f46 !important; /* text-emerald-800 */
}
/* Icon: Check Circle */
.woocommerce-message::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23059669' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* 2. ERROR (Red) - e.g. Validation fail */
.woocommerce-error {
  background-color: #fef2f2 !important; /* bg-red-50 */
  border-color: #fecaca !important; /* border-red-200 */
  color: #991b1b !important; /* text-red-800 */
}
/* Icon: X Circle */
.woocommerce-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23dc2626' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z'%3E%3C/path%3E%3C/svg%3E") !important;
}
/* Error List Reset */
.woocommerce-error li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* 3. INFO (Blue) - e.g. Coupon info */
.woocommerce-info {
  background-color: #eff6ff !important; /* bg-blue-50 */
  border-color: #bfdbfe !important; /* border-blue-200 */
  color: #1e40af !important; /* text-blue-800 */
}
/* Icon: Info Circle */
.woocommerce-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* BUTTONS inside Alerts (e.g. "View Cart") */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
  float: right !important;
  background-color: white !important;
  border: 1px solid currentColor !important;
  color: inherit !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 0.375rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  margin-left: 1rem !important;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
  background-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px);
}


    @keyframes searchSlideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .search-item-anim {
        opacity: 0; /* Start invisible */
        animation: searchSlideDown 0.3s ease-out forwards;
    }


/* Force Tailwind style on all Woo Inputs in Checkout */
.woocommerce-input-wrapper input, 
.woocommerce-input-wrapper textarea,
.select2-selection {
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important; /* gray-300 */
    border-radius: 0.5rem !important; /* rounded-lg */
    width: 100%;
}
.woocommerce-input-wrapper input:focus, 
.woocommerce-input-wrapper textarea:focus {
    border-color: #be1e2d !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(190, 30, 45, 0.2) !important;
}




/* --- WOOCOMMERCE CHECKOUT FIXES --- */

/* 1. Form Row Layout & Spacing */
.woocommerce form .form-row {
    display: block;
    margin: 0 0 1.5rem 0; /* Space between fields */
    width: 100%;
}

/* 2. Labels */
.woocommerce form .form-row label {
    display: block;
    margin-bottom: 0rem;
    font-weight: 600;
    color: #374151; /* text-gray-700 */
    line-height: 1.2;
}

/* 3. Input Fields & Textareas */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem; /* px-4 py-3 */
    background-color: #ffffff;
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.5rem; /* rounded-lg */
    color: #111827;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; /* Crucial for width: 100% */
}

/* Focus State */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #be1e2d; /* Primary Red */
    box-shadow: 0 0 0 3px rgba(190, 30, 45, 0.1);
}

/* 4. Fix Select2 Dropdowns (Country/State Selection) */
.woocommerce .select2-container .select2-selection--single {
    height: 48px; /* Match input height */
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    top: 1px;
    right: 10px;
}
/* Dropdown Focus */
.woocommerce .select2-container.select2-container--open .select2-selection--single {
    border-color: #be1e2d;
}



/* 5. "Place Order" Button */
#place_order {
    display: block;
    width: 100%;
    background-color: #be1e2d !important;
    color: #ffffff !important;
    font-size: 1.125rem; /* text-lg */
    font-weight: 700;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem; /* rounded-xl */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#place_order:hover {
    background-color: #9e2a48 !important; /* Darker Red */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 6. Payment Methods Box */
#payment {
    background: #f9fafb; /* bg-gray-50 */
    border-radius: 0.5rem;
}
#payment ul.payment_methods {
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0 1rem 0 !important;
    list-style: none !important;
    margin: 0 0 1rem 0;
}


/* 7. Checkboxes */
.woocommerce form .form-row .woocommerce-form__input-checkbox {
    width: auto !important; /* Override the 100% width from inputs */
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}
.woocommerce form .form-row.create-account label.checkbox {
    display: inline-block;
    margin-bottom: 0;
}


/* --- ORDER REVIEW TABLE STYLING --- */

/* 1. Main Table Structure */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    border: none;
}

/* 2. Headers (Product / Subtotal) */
.woocommerce-checkout-review-order-table thead th {
    text-transform: uppercase;
    font-size: 0.75rem; /* text-xs */
    font-weight: 700;
    color: #6b7280; /* text-gray-500 */
    padding: 0 0 1rem 0;
    border-bottom: 2px solid #f3f4f6; /* gray-100 */
    text-align: left;
}
.woocommerce-checkout-review-order-table thead th.product-total {
    text-align: right;
}

/* 3. Product Rows */
.woocommerce-checkout-review-order-table tbody td {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151; /* text-gray-700 */
    font-size: 0.9rem;
}
.woocommerce-checkout-review-order-table tbody td.product-name {
    padding-right: 1rem;
    font-weight: 500;
}
.woocommerce-checkout-review-order-table tbody td.product-total {
    text-align: right;
    font-weight: 600;
}
/* Quantity badge style "x 2" */
.woocommerce-checkout-review-order-table .product-quantity {
    font-weight: 400;
    color: #9ca3af; /* text-gray-400 */
    margin-left: 4px;
}

/* 4. Footer Rows (Subtotal, Shipping) */
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding: 0.75rem 0;
    border-top: 1px solid #f3f4f6;
    color: #4b5563; /* text-gray-600 */
    font-size: 0.9rem;
}
.woocommerce-checkout-review-order-table tfoot th {
    text-align: left;
    width: 50%;
    font-weight: 600;
}
.woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
}

/* 5. Final Total Row (Highlight) */
.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    border-top: 2px dashed #d1d5db; /* thicker separator */
    padding-top: 1.25rem;
    padding-bottom: 0;
    font-size: 1.1rem;
    color: #111827; /* text-gray-900 */
}
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    color: #be1e2d; /* Primary Red */
    font-weight: 800;
}


/* --- PAYMENT METHODS STYLING --- */

/* 1. Reset List Styles */
#payment ul.payment_methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #e5e7eb;
}

/* 2. Individual Payment Item */
#payment ul.payment_methods li {
    margin: 0;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6; /* Light separator */
}
#payment ul.payment_methods li:last-child {
    border-bottom: none;
}

/* 3. Label Layout */
#payment ul.payment_methods li > label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #1f2937; /* Gray-900 */
    margin-bottom: 0;
    width: 100%;
}

/* 4. Custom Radio Button */
#payment ul.payment_methods li input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db; /* Gray-300 */
    border-radius: 50%;
    margin-right: 0.75rem;
    position: relative;
    outline: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    float: none; /* Fix WC float issues */
}

/* Checked State */
#payment ul.payment_methods li input[type="radio"]:checked {
    border-color: #be1e2d; /* Primary Red */
    background-color: #fff;
}

/* Inner Dot for Checked State */
#payment ul.payment_methods li input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.625rem;
    height: 0.625rem;
    background-color: #be1e2d;
    border-radius: 50%;
}






/* --- PROMO CODE FORM STYLING --- */

/* 1. Form Container */
form.checkout_coupon {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    background: #f9fafb; /* Gray-50 */
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

/* 2. Paragraph Wrappers (Reset) */
form.checkout_coupon p {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1; /* Allow input to grow */
    width: auto !important;
    float: none !important;
}

/* 3. Input Field */
form.checkout_coupon input.input-text {
    width: 100% !important;
    height: 48px;
    padding: 0 1rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
}

/* 4. Apply Button wrapper */
form.checkout_coupon .form-row-last {
    flex: 0 0 auto; /* Button doesn't stretch */
    width: auto !important;
}

/* 5. The Actual Button */
form.checkout_coupon button[name="apply_coupon"] {
    height: 48px;
    padding: 0 2rem !important;
    background-color: #1f2937 !important; /* Dark Gray */
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

form.checkout_coupon button[name="apply_coupon"]:hover {
    background-color: #000000 !important;
}

/* --- THANK YOU PAGE: ORDER DETAILS --- */

/* 1. Main Container */
.woocommerce-order-details {
    margin-top: 3rem;
    background: #ffffff;
    border: 1px solid #f3f4f6; /* gray-100 */
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 2. Section Title */
.woocommerce-order-details__title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    color: #111827; /* gray-900 */
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

/* 3. Table Structure */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
}

/* 4. Table Headers */
.woocommerce-table--order-details thead th {
    text-align: left;
    text-transform: uppercase;
    font-size: 0.75rem; /* text-xs */
    font-weight: 700;
    color: #6b7280; /* text-gray-500 */
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.woocommerce-table--order-details thead th.woocommerce-table__product-table-product-total {
    text-align: right;
}

/* 5. Product Rows */
.woocommerce-table--order-details tbody td {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151; /* text-gray-700 */
    vertical-align: middle;
}
.woocommerce-table--order-details tbody td.woocommerce-table__product-name a {
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}
.woocommerce-table--order-details tbody td.woocommerce-table__product-name strong {
    color: #6b7280;
    margin-left: 5px;
    font-weight: 400;
}
.woocommerce-table--order-details tbody td.woocommerce-table__product-total {
    text-align: right;
    font-weight: 600;
}

/* 6. Footer Rows (Subtotal, Shipping, Total) */
.woocommerce-table--order-details tfoot th {
    text-align: left;
    padding: 0.75rem 0;
    color: #4b5563;
    font-weight: 600;
    border-top: 1px solid #f3f4f6;
    width: 60%;
}
.woocommerce-table--order-details tfoot td {
    text-align: right;
    padding: 0.75rem 0;
    border-top: 1px solid #f3f4f6;
    color: #111827;
}

/* Highlight Final Total */
.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    border-top: 2px dashed #d1d5db;
    padding-top: 1.5rem;
    font-size: 1.1rem;
}
.woocommerce-table--order-details tfoot tr:last-child td {
    color: #be1e2d; /* Primary Red */
    font-weight: 800;
}










/* --- THANK YOU PAGE: CUSTOMER DETAILS --- */

/* 1. Address Section Wrapper */
.woocommerce-customer-details {
    margin-top: 3rem;
}

/* 2. Grid Layout for Addresses */
.woocommerce-customer-details address {
    font-style: normal;
    color: #4b5563;
}

.woocommerce-column__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



/* 3. Bank Transfer (BACS) Details Styling */
.woocommerce-bacs-bank-details {
    background: #eff6ff; /* blue-50 */
    border: 1px solid #dbeafe; /* blue-100 */
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.woocommerce-bacs-bank-details h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a; /* blue-900 */
    margin-bottom: 1rem;
}
.woocommerce-bacs-bank-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-bacs-bank-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dbeafe;
    color: #1e40af; /* blue-800 */
}
.woocommerce-bacs-bank-details li:last-child {
    border-bottom: none;
}
.woocommerce-bacs-bank-details strong {
    color: #1e3a8a;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* --- THANK YOU PAGE: BANK & PAYMENT INSTRUCTIONS --- */

/* 1. Bank Details Section (BACS) */
.woocommerce-bacs-bank-details {
    background: #eff6ff; /* blue-50 */
    border: 1px solid #dbeafe; /* blue-100 */
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    clear: both;
}

/* 2. Bank Details Title */
.woocommerce-bacs-bank-details h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a; /* blue-900 */
    margin-bottom: 1.5rem;
    margin-top: 0;
}

/* 3. Account List (The numbers) */
.woocommerce-bacs-bank-details ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive Grid */
    gap: 1.5rem;
}

/* 4. Individual Account Item */
.woocommerce-bacs-bank-details li {
    background: #ffffff;
    border: 1px solid #bfdbfe; /* blue-200 */
    padding: 1rem;
    border-radius: 0.5rem;
    color: #1e40af; /* blue-800 */
}

/* 5. Labels (Bank Name, IBAN, etc) */
.woocommerce-bacs-bank-details li strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #60a5fa; /* blue-400 */
    margin-bottom: 0.25rem;
}

/* 6. General Payment Instructions Text */
.woocommerce-order > p {
    font-size: 1rem;
    color: #4b5563;
    background: #fff7ed; /* orange-50 */
    border-left: 4px solid #f97316; /* orange-500 */
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 0.25rem;
}






/* =========================================
   1. FINAL ADDRESS LAYOUT FIX
   ========================================= */

/* Target the container that holds the two columns directly */
.woocommerce-customer-details .woocommerce-columns--addresses {
    display: grid !important;
    /* Force 2 columns of equal width */
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: 20px;
}

/* On Mobile: Switch to 1 column */
@media (max-width: 768px) {
    .woocommerce-customer-details .woocommerce-columns--addresses {
        grid-template-columns: 1fr !important;
    }
}

/* Style the individual Address Cards (Billing & Shipping) */
.woocommerce-customer-details .woocommerce-column--billing-address,
.woocommerce-customer-details .woocommerce-column--shipping-address {
    background-color: #f9fafb; /* Gray-50 */
    border: 1px solid #e5e7eb; /* Gray-200 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 2rem;
    height: 100%; /* Make them equal height */
}

/* Style the Title inside the card */
.woocommerce-column__title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 800;
    color: #111827; /* Gray-900 */
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #d1d5db;
}



/* =========================================
   2. CLEAN BANK DETAILS STYLE
   ========================================= */

/* Main Container Card */
.woocommerce-bacs-bank-details {
    background-color: #ffffff;
    border: 1px solid #e5e7eb; /* Gray-200 */
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Title "Nos coordonnées bancaires" */
.woocommerce-bacs-bank-details h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e3a8a; /* Dark Blue */
    margin-top: 0;
    margin-bottom: 1rem;
    text-transform: none;
}

/* Account Name "PULIRE TUNISIE..." */
.woocommerce-bacs-bank-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280; /* Gray-500 */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Grid for the details list */
.woocommerce-bacs-bank-details ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    /* Responsive grid for bank items */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Individual Detail Box (IBAN, BIC, etc) */
.woocommerce-bacs-bank-details li {
    background-color: #f8fafc; /* Slate-50 */
    border: 1px solid #e2e8f0; /* Slate-200 */
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.95rem;
    color: #334155;
    display: flex;
    flex-direction: column;
}

/* Labels (Banque:, IBAN:) inside the box */
.woocommerce-bacs-bank-details li strong {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748b; /* Slate-500 */
    margin-bottom: 0.25rem;
}

/* --- FIX: PAYMENT INSTRUCTIONS TEXT STYLE --- */

/* Turn the plain text into a nice Info Box */
.nasro-bank-details-wrapper > p {
    background-color: #eff6ff;   /* Light Blue Background */
    color: #1e3a8a;             /* Dark Blue Text */
    border: 1px solid #dbeafe;   /* Subtle Border */
    border-left: 5px solid #3b82f6; /* Strong Left Accent */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;         /* Space between text and bank details */
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Optional: Add an icon before the text */
.nasro-bank-details-wrapper > p::before {
    content: "ⓘ ";
    font-weight: bold;
    color: #3b82f6;
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}


/* Style for the new order thumbnail */
img.order-thumb {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb !important;
}



/* --- PRINT STYLES --- */
@media print {
    /* Hide navigation, footer, buttons */
    header, footer, .wc-proceed-to-checkout, .return-to-shop, a.button, #scroll-to-top {
        display: none !important;
    }

    /* Reset background and text colors for ink saving */
    body, .woocommerce-order {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }

    /* Flatten cards */
    .max-w-3xl, .p-8, .woocommerce-order-details, .woocommerce-customer-details .col-1, .woocommerce-customer-details .col-2 {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    
    /* Ensure columns print side-by-side */
    .woocommerce-customer-details .col2-set {
        display: flex !important;
        flex-direction: row !important;
    }
    
    /* Hide the green success gradient background */
    .bg-gradient-to-br {
        background: none !important;
        color: black !important;
        border-bottom: 2px solid black !important;
    }
}



/* Hide default WooCommerce quantity in Order Table to prevent duplicates */
.woocommerce-table__product-name .product-quantity {
    display: none !important;
}

/* Ensure the thumbnail looks good */
img.order-thumb {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb !important;
    flex-shrink: 0;
}



/* --- CHECKMARK DRAWING ANIMATION --- */
.success-checkmark-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheck 1.5s 0.3s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Optional: Smooth entry for the whole green header */
.bg-gradient-to-br.from-emerald-500 {
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center top;
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}






/* --- THANK YOU PAGE: WATERFALL ENTRANCE ANIMATION --- */

/* 1. Define the Slide Up Fade animation */
@keyframes fadeInUpSmooth {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Target the main sections to animate */

/* --- TIMELINE ANIMATION --- */
.woocommerce-order-received .max-w-3xl > .py-8 {
    opacity: 0;
    animation: fadeInUpSmooth 0.6s ease-out forwards;
    animation-delay: 1.1s; /* Appears right after header */
}

/* Order Summary Grid (Date, Total, etc) */
.woocommerce-order-received .max-w-3xl > .grid {
    opacity: 0; /* Start hidden */
    animation: fadeInUpSmooth 0.6s ease-out forwards;
    animation-delay: 1.2s; /* Wait for green header */
}

/* Bank Details Card */
.nasro-bank-details-wrapper {
    opacity: 0;
    animation: fadeInUpSmooth 0.6s ease-out forwards;
    animation-delay: 1.4s;
}

/* Payment Instructions Text (if present) */
.nasro-bank-details-wrapper > p {
    opacity: 0;
    animation: fadeInUpSmooth 0.6s ease-out forwards;
    animation-delay: 1.5s;
}

/* Order Details Table */
.woocommerce-order-details {
    opacity: 0;
    animation: fadeInUpSmooth 0.6s ease-out forwards;
    animation-delay: 1.6s;
}

/* Address Section */
.woocommerce-customer-details {
    opacity: 0;
    animation: fadeInUpSmooth 0.6s ease-out forwards;
    animation-delay: 1.8s;
}

/* 3. Bonus: Gentle Pulse on the Order Number */
.woocommerce-order-received .p-8 ul li:first-child span.font-bold {
    display: inline-block;
    color: #111827;
    animation: textPulse 2s infinite;
}

@keyframes textPulse {
    0% { text-shadow: 0 0 0 rgba(190, 30, 45, 0); }
    50% { text-shadow: 0 0 10px rgba(190, 30, 45, 0.2); color: #be1e2d; }
    100% { text-shadow: 0 0 0 rgba(190, 30, 45, 0); }
}





/* --- MY ACCOUNT TABLES (Orders, Downloads) --- */
.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.woocommerce-account table.my_account_orders thead th {
    background-color: #f9fafb; /* gray-50 */
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-account table.my_account_orders tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    font-size: 0.95rem;
}

/* Action Button in Table (View Order) */
.woocommerce-account table.my_account_orders .woocommerce-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s;
}
.woocommerce-account table.my_account_orders .woocommerce-button:hover {
    background-color: #be1e2d;
    color: white;
    border-color: #be1e2d;
}

/* --- ADDRESSES GRID (My Account > Addresses) --- */
.woocommerce-account .u-columns.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.woocommerce-account .u-column1, 
.woocommerce-account .u-column2 {
    width: 100% !important;
    float: none !important;
    background: #f9fafb;
}

.woocommerce-account address {
    font-style: normal;
    color: #6b7280;
    margin-top: 14px;
}

/* Edit Address Link */
.woocommerce-account header.title a.edit {
    font-size: 0.875rem;
    color: #be1e2d;
    text-decoration: underline;
    float: right;
}




/* --- MY ACCOUNT: ORDERS TABLE --- */
.woocommerce-account table.my_account_orders {
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    border-collapse: separate; /* Allow border radius */
    border-spacing: 0;
    overflow: hidden;
    width: 100%;
}

/* Header */
.woocommerce-account table.my_account_orders thead th {
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

/* Rows */
.woocommerce-account table.my_account_orders tbody td {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    vertical-align: middle;
}
.woocommerce-account table.my_account_orders tbody tr:last-child td {
    border-bottom: none;
}
.woocommerce-account table.my_account_orders tbody tr:hover td {
    background-color: #fcfcfc;
}

/* "View" Button */
.woocommerce-account table.my_account_orders .woocommerce-button {
    background-color: white !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.woocommerce-account table.my_account_orders .woocommerce-button:hover {
    border-color: #be1e2d !important;
    color: #be1e2d !important;
    transform: translateY(-1px);
}





/* --- MY ACCOUNT: ADDRESSES --- */

/* 1. Layout Grid */
.woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 20px;
}
.u-column1, .u-column2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* 2. Address Card Style */
.woocommerce-Address {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    height: 100%;
    transition: all 0.2s;
}
.woocommerce-Address:hover {
    border-color: #be1e2d;
    box-shadow: 0 4px 12px rgba(190, 30, 45, 0.05);
}

/* 3. Title */
.woocommerce-Address-title h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 4. Edit Button (Top Right) */
.woocommerce-Address-title a.edit {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 12px;
    font-weight: 600;
    color: #be1e2d;
    background: #fff1f2;
    padding: 6px 12px;
    border-radius: 99px;
    text-decoration: none;
}
.woocommerce-Address-title a.edit:hover {
    background: #be1e2d;
    color: white !important;
}



/* --- EDIT ADDRESS FORM GRID --- */

/* 1. Ensure WooCommerce form rows don't break the grid */
.address-fields-grid .form-row {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* 2. Spanning Logic */
/* These specific fields should take full width (2 columns) */
.address-fields-grid #billing_address_1_field,
.address-fields-grid #shipping_address_1_field,
.address-fields-grid #billing_address_2_field,
.address-fields-grid #shipping_address_2_field,
.address-fields-grid #billing_company_field,
.address-fields-grid #shipping_company_field,
.address-fields-grid #order_comments_field {
    grid-column: span 2;
}

/* Mobile: Everything creates 1 column stack */
@media (max-width: 768px) {
    .address-fields-grid {
        grid-template-columns: 1fr !important;
    }
    .address-fields-grid .form-row {
        grid-column: span 1 !important;
    }
}

/* --- MY ACCOUNT: EDIT ADDRESS FORM --- */

/* 1. Grid Layout for Fields */
.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columns */
    gap: 20px;
}

/* 2. Full Width Elements (Company, Address, Email) */
#billing_company_field, 
#shipping_company_field,
#billing_address_1_field, 
#shipping_address_1_field,
#billing_address_2_field, 
#shipping_address_2_field,
#billing_email_field {
    grid-column: span 2; /* Stretch across both columns */
}

/* 3. Input Styling (Match Theme) */
.woocommerce-address-fields input.input-text,
.woocommerce-address-fields select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb; /* Gray-200 */
    border-radius: 8px;
    background-color: #f9fafb; /* Gray-50 */
    font-size: 14px;
    transition: all 0.2s;
}

.woocommerce-address-fields input.input-text:focus,
.woocommerce-address-fields select:focus {
    background-color: white;
    border-color: #be1e2d;
    box-shadow: 0 0 0 3px rgba(190, 30, 45, 0.1);
    outline: none;
}

/* 4. Labels */
.woocommerce-address-fields label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151; /* Gray-700 */
}

/* 5. Mobile Fallback (Stack everything) */
@media (max-width: 768px) {
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr; /* 1 Column */
    }
    #billing_company_field, 
    #shipping_company_field,
    #billing_address_1_field, 
    #shipping_address_1_field,
    #billing_address_2_field, 
    #shipping_address_2_field,
    #billing_email_field {
        grid-column: span 1;
    }
}

/* 6. Save Button Container */
.woocommerce-address-fields p.button {
    margin-top: 20px;
}


/* --- MY ACCOUNT: SIDEBAR ACTIVE INDICATOR --- */
.woocommerce-MyAccount-navigation a {
    position: relative;
    overflow: hidden;
}

/* Add a red strip on the left of the active item */
.woocommerce-MyAccount-navigation a.bg-red-50::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #be1e2d;
    border-radius: 0 4px 4px 0;
}








/* =========================================
   PRINT / PDF MODE STYLES (Final Polish)
   ========================================= */

@media print {
    /* 1. Global Reset & Settings */
    @page { margin: 1cm; size: A4; }
    body { background: white !important; font-size: 11pt; -webkit-print-color-adjust: exact; font-family: sans-serif; }

    /* 2. Hide ALL Non-Essential UI Elements */
    header, footer, #account-sidebar, .no-print, 
    .woocommerce-breadcrumb, #scroll-to-top,
    .page-title-section,
    /* Hide Wishlist Page Header (Title Banner) */
    div.bg-gray-50.border-b.border-gray-200.py-12,
    /* Hide Wishlist Page Footer (Black Promo Bar) */
    div.bg-gradient-to-r.from-gray-900,
    /* Hide Actions inside cards */
    .add_to_cart_button, 
    .my-wishlist-btn, 
    .sku-copy-btn,
    button,
    /* Hide Badges */
    .absolute.top-3.left-3, .absolute.top-3.right-3,
    /* Hide Cluttered Categories text */
    #wishlist-grid .text-xs.uppercase.text-gray-500
    {
        display: none !important;
    }

    /* 3. Reset Layout Container */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 4. The Grid (2 Columns) */
    #wishlist-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        margin-top: 10px !important;
    }

    /* 5. Product Card Box */
    #wishlist-grid li.product {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Inner Flex Layout (Horizontal) */
    #wishlist-grid li.product > div {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important; /* Vertically Center */
        height: auto !important;
        min-height: 110px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        padding: 10px !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    /* 6. Image Fixes */
    /* Target the image container div */
    #wishlist-grid li.product > div > div:first-child {
        width: 100px !important;
        height: 100px !important;
        flex: 0 0 100px !important; /* Fixed width */
        margin-right: 15px !important;
        background: none !important;
        border: 1px solid #eee !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    /* Target the img tag */
    #wishlist-grid li.product img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important; /* Shows full product without cropping */
        transform: none !important;
    }

    /* 7. Text Content Fixes */
    /* Target the content container div */
    #wishlist-grid li.product > div > div:last-child {
        flex: 1 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    /* Title */
    #wishlist-grid h3, 
    #wishlist-grid h3 a {
        font-size: 12pt !important;
        font-weight: bold !important;
        color: #000 !important;
        margin: 0 0 4px 0 !important;
        text-decoration: none !important;
        line-height: 1.2 !important;
    }
    
    /* SKU/Ref */
    #wishlist-grid .text-\[10px\] {
        font-size: 9pt !important;
        color: #555 !important;
        font-family: monospace;
        display: block !important;
        margin-bottom: 4px !important;
    }

    /* Price */
    .price, .amount {
        font-size: 12pt !important;
        font-weight: bold !important;
        color: #be1e2d !important;
        margin-top: 4px !important;
        display: block !important;
    }

    /* 8. Description (Clean up if visible) */
    .text-sm.text-gray-600 {
        font-size: 9pt !important;
        color: #666 !important;
        line-height: 1.3 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 9. Document Header */
    body::before {
        content: "Liste de Souhaits - Pulire Tunisie";
        display: block;
        font-size: 18pt;
        font-weight: bold;
        text-align: center;
        text-transform: uppercase;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #000;
        color: black;
    }
}




/* Service Colors Fallback */
.bg-blue-50 { background-color: #eff6ff; }
.text-blue-600 { color: #2563eb; }
.hover\:border-blue-200:hover { border-color: #bfdbfe; }

.bg-emerald-50 { background-color: #ecfdf5; }
.text-emerald-600 { color: #059669; }
.hover\:border-emerald-200:hover { border-color: #a7f3d0; }

.bg-amber-50 { background-color: #fffbeb; }
.text-amber-600 { color: #d97706; }
.hover\:border-amber-200:hover { border-color: #fde68a; }





/* --- SHOP SIDEBAR WIDGETS --- */

/* 1. Price Slider */
.widget_price_filter .price_slider {
    background: #e5e7eb; /* gray-200 */
    margin-bottom: 20px;
    height: 6px;
    border-radius: 99px;
}
.widget_price_filter .price_slider_bar {
    background: #be1e2d; /* Primary */
    height: 6px;
    border-radius: 99px;
}
.widget_price_filter .price_slider_amount .button {
    background: #111827; /* Dark */
    color: white;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    float: right;
}
.widget_price_filter .price_label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    line-height: 2.4;
}

/* 2. Product Categories / Layered Nav */
.widget_product_categories ul, 
.widget_layered_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget_product_categories ul li, 
.widget_layered_nav ul li {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget_product_categories ul li a, 
.widget_layered_nav ul li a {
    color: #4b5563;
    font-size: 14px;
    transition: color 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget_product_categories ul li a:hover, 
.widget_layered_nav ul li a:hover,
.widget_product_categories ul li.current-cat > a {
    color: #be1e2d;
    font-weight: 600;
}

/* Custom Checkbox Look for Categories */
.widget_product_categories ul li a::before,
.widget_layered_nav ul li a::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s;
}
.widget_product_categories ul li.current-cat > a::before,
.widget_layered_nav ul li.chosen a::before {
    background-color: #be1e2d;
    border-color: #be1e2d;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Count Badge */
.widget_product_categories ul li .count, 
.widget_layered_nav ul li .count {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
}

/* 3. Active Filters (Widget Layered Nav Filters) */
.widget_layered_nav_filters ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget_layered_nav_filters ul li {
    margin: 0;
}
.widget_layered_nav_filters ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff1f2; /* red-50 */
    color: #be1e2d;
    border: 1px solid #fecaca;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
/* The "X" icon is usually added by WC via ::before, we adjust it */
.widget_layered_nav_filters ul li a::before {
    content: '✕';
    font-size: 10px;
}





/* --- SHOP LIST VIEW TRANSFORMATION --- */

/* 1. Force the Card to Horizontal Flex */
.shop-list-view-active ul.products li.product > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    height: auto !important;
    min-height: 220px;
}

/* 2. Image Wrapper: Fixed Width on Left */
.shop-list-view-active ul.products li.product > div > div:first-child {
    width: 250px !important;
    flex: 0 0 250px !important;
    height: 100% !important;
    min-height: 220px;
    border-bottom: none !important;
    border-right: 1px solid #f3f4f6;
}

/* 3. Content Wrapper: Flex Grow */
.shop-list-view-active ul.products li.product > div > div:last-child {
    padding: 20px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* 4. Description Visibility */
/* In list view, show the short description properly */
.shop-list-view-active .text-sm.text-gray-600.line-clamp-2 {
    -webkit-line-clamp: 4 !important; /* Show more lines */
    margin-bottom: 1rem;
}

/* 5. Mobile Adjustments for List View */
@media (max-width: 768px) {
    .shop-list-view-active ul.products li.product > div {
        flex-direction: column !important;
    }
    .shop-list-view-active ul.products li.product > div > div:first-child {
        width: 100% !important;
        height: 200px !important;
        border-right: none !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }
}

.nasro-shop-toolbar .woocommerce-ordering{
  margin-bottom: 0 !important;
}




/* --- CATALOGUE 3D TILT EFFECT --- */

/* 1. Perspective container */
.catalogue-item {
    perspective: 1000px; /* Creates the 3D space */
}

/* 2. The Inner Card */
.catalogue-item > div:first-child {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

/* 3. Hover State (Tilt Up) */
.catalogue-item:hover > div:first-child {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0,0,0,0.05); /* Subtle border ring */
}

/* 4. Hide Scrollbar on Mobile Filters */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}




/* --- GAMMES 3D TILT --- */

/* 1. Perspective */
.gamme-tilt-card {
    perspective: 1000px;
}

/* 2. Visual Layer Transition */
.gamme-tilt-card > a:first-child {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center bottom;
    z-index: 20; /* Keep visual on top */
}

/* 3. Hover Effect */
.gamme-tilt-card:hover > a:first-child {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-radius: 16px 16px 0 0;
}




/* --- LEGAL PAGE TYPOGRAPHY --- */

.legal-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Headings */
.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6; /* Subtle separator */
}

.legal-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #374151; /* Gray-700 */
}

/* Paragraphs & Lists */
.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content ul, 
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Links */
.legal-content a {
    color: #be1e2d;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content a:hover {
    color: #9e2a48;
}




/* --- FAQ ACCORDION ANIMATION --- */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Simple fade in for content */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

details[open] div {
    animation: fadeInSlide 0.3s ease-in-out;
}







/* --- CHECKOUT STEPPER: PAYMENT GRID --- */

/* 1. Reset & Grid Layout */
#payment ul.payment_methods {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 20px !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. The Card Box */
.checkout-layout-classic #payment ul.payment_methods li.wc_payment_method {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important; /* Gray-200 */
    border-radius: 12px !important;
    padding: 5px 5px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 140px !important;
    position: relative !important;
}

/* 3. Hide Radio Button (Visually) */
#payment ul.payment_methods li input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* 4. Main Label (Title) */
.checkout-layout-stepper #payment ul.payment_methods li label {
    display: block !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #111827 !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.checkout-layout-classic #payment ul.payment_methods li label {
    display: block !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #111827 !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

/* 5. Icons via CSS (Before) */
/* 1. Base Icon Settings */
.checkout-layout-stepper #payment ul.payment_methods li label::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 4px auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}
.checkout-layout-classic #payment ul.payment_methods li label::before {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    margin: 0 auto 4px auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
}

/* --- STATE: DEFAULT (GREY ICONS) --- */

/* A. Virement (BACS) - Bank Building Icon */
.payment_method_bacs label::before {
    /* Color: #6b7280 (Gray) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' x2='21' y1='22' y2='22'/%3E%3Cline x1='6' x2='6' y1='18' y2='11'/%3E%3Cline x1='10' x2='10' y1='18' y2='11'/%3E%3Cline x1='14' x2='14' y1='18' y2='11'/%3E%3Cline x1='18' x2='18' y1='18' y2='11'/%3E%3Cpolygon points='12 2 20 7 4 7'/%3E%3C/svg%3E");
}

/* B. Cheque - Cheque Paper Icon */
.payment_method_cheque label::before {
    /* Color: #6b7280 (Gray) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='12' x='2' y='6' rx='2'/%3E%3Cpath d='M16 14h2'/%3E%3Cpath d='M6 10h10'/%3E%3Cpath d='M6 14h6'/%3E%3C/svg%3E");
}

/* C. COD (Cash on Delivery) - Money Icon */
.payment_method_cod label::before {
    /* Color: #6b7280 (Gray) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='12' x='2' y='6' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E");
}

/* D. Card (Stripe/Others) - Credit Card Icon */
.payment_method_stripe label::before,
.payment_method_cc label::before {
    /* Color: #6b7280 (Gray) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3Cline x1='2' x2='22' y1='10' y2='10'/%3E%3C/svg%3E");
}

/* --- STATE: SELECTED (RED ICONS) --- */
/* We use :has(input:checked) to detect selection and switch the SVG color to #be1e2d */

/* A. Virement (Active) */
#payment ul.payment_methods li.payment_method_bacs:has(input:checked) label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be1e2d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' x2='21' y1='22' y2='22'/%3E%3Cline x1='6' x2='6' y1='18' y2='11'/%3E%3Cline x1='10' x2='10' y1='18' y2='11'/%3E%3Cline x1='14' x2='14' y1='18' y2='11'/%3E%3Cline x1='18' x2='18' y1='18' y2='11'/%3E%3Cpolygon points='12 2 20 7 4 7'/%3E%3C/svg%3E");
    transform: scale(1.1); /* Subtle pop effect */
}

/* B. Cheque (Active) */
#payment ul.payment_methods li.payment_method_cheque:has(input:checked) label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be1e2d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='12' x='2' y='6' rx='2'/%3E%3Cpath d='M16 14h2'/%3E%3Cpath d='M6 10h10'/%3E%3Cpath d='M6 14h6'/%3E%3C/svg%3E");
    transform: scale(1.1);
}

/* C. COD (Active) */
#payment ul.payment_methods li.payment_method_cod:has(input:checked) label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be1e2d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='12' x='2' y='6' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E");
    transform: scale(1.1);
}

/* D. Card (Active) */
#payment ul.payment_methods li.payment_method_stripe:has(input:checked) label::before,
#payment ul.payment_methods li.payment_method_cc:has(input:checked) label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be1e2d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='5' rx='2'/%3E%3Cline x1='2' x2='22' y1='10' y2='10'/%3E%3C/svg%3E");
    transform: scale(1.1);
}

/* 7. Ensure Title Text also changes color on selection */
#payment ul.payment_methods li:has(input:checked) label {
    color: #be1e2d !important;
}

/* 6. BADGES (The "Sécurisé", "Économique" tags) */
/* We inject these using ::after on the LABEL */
.checkout-layout-stepper #payment ul.payment_methods li label::after {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
    display: block; /* Force new line */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Badge Content & Color per Method */
.checkout-layout-stepper .payment_method_bacs label::after {
    content: "Économique";
    background-color: #fff1f2;
    color: #be1e2d;
    border: 1px solid #fecaca;
}

.checkout-layout-stepper .payment_method_cod label::after {
    content: "Flexible";
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.checkout-layout-stepper .payment_method_cheque label::after, .payment_method_stripe label::after {
    content: "Sécurisé";
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* 7. Hide the text description box initially or style it */
/* In this card layout, the text box often breaks the grid. We hide the arrow and style text minimally below. */
#payment div.payment_box {
    position: absolute !important;
    bottom: 10px;
    left: 0;
    right: 0;
    background: transparent !important;
    font-size: 10px !important;
    color: #6b7280 !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border: none !important;
    opacity: 0; /* Hide by default to keep grid clean */
    pointer-events: none;
}
#payment div.payment_box::before { display: none !important; }

/* Show description only on hover/active if you want (Optional) */
/* #payment ul.payment_methods li.wc_payment_method:hover div.payment_box { opacity: 1; } */

/* --- STEPPER ANIMATION FIX --- */
.animate-step-in {
    animation: fadeInSlide 0.4s ease-out forwards;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* --- 2. PAYMENT SECTION POLISH --- */

/* Wrapper adjustment */
#payment.woocommerce-checkout-payment {
    background: transparent !important;
    border-radius: 0 !important;
}

/* The Payment Grid (Ensuring cards look like the example) */
#payment ul.payment_methods {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Force 3 columns like screenshot */
    gap: 15px !important;
    border-bottom: none !important;
    padding: 0 !important;
}

/* Mobile Payment Grid */
@media (max-width: 768px) {
    #payment ul.payment_methods {
        grid-template-columns: 1fr !important; /* Stack on phone */
    }
}

/* Individual Payment Card Styling */
#payment ul.payment_methods li.wc_payment_method {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 20px 10px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 140px !important;
    transition: all 0.2s !important;
}

/* Selected Payment Styling */
#payment ul.payment_methods li.wc_payment_method:has(input:checked) {
    border: 2px solid #be1e2d !important;
    background-color: #fff1f2 !important;
    box-shadow: 0 4px 12px rgba(190, 30, 45, 0.15) !important;
}



/* Hide default WC payment box inside the card to keep grid clean */
#payment ul.payment_methods li .payment_box {
    display: none !important;
}

/* Animation for the new container */
@keyframes fadeInBox {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeInBox 0.3s ease-out forwards;
}





@keyframes fadeInDesc {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. Ensure BACS/Bank Details (if in description) look good */
#payment-description-container table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}
#payment-description-container th, 
#payment-description-container td {
    padding: 5px;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
}

.checkout-layout-classic #payment-description-container{
    max-height: 125px;
    overflow: auto;
}

/* --- CHECKOUT FIXES --- */

/* 1. Hide the "Place Order" button in the LEFT column */
/* We only want the button in the Right Summary column */
.checkout-layout-stepper #payment #place_order {
    display: none !important;
}

/* 2. Ensure Privacy/Terms text has spacing */
#payment .place-order {
    padding: 0 !important;
    margin-top: 20px !important;
    background: transparent !important;
}
.woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 0 !important;
}

