/*
Theme Name: Consentido
Description: E-commerce WordPress theme converted from Astro frontend. Built with Tailwind CSS and WooCommerce integration.
Version: 1.0.0
Author: Converted from Astro Project
Text Domain: consentido
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
Tags: e-commerce, woocommerce, responsive, modern
*/

/* Main theme styles - Tailwind CSS classes are included in the main stylesheet */

/* WordPress specific styles */
.wp-block-group {
  margin-bottom: 2rem;
}

.wp-block-image {
  margin-bottom: 1rem;
}

/* Gutenberg Block Editor Styles */
.entry-content {
  max-width: 100%;
}

.entry-content .wp-block-group,
.entry-content .wp-block-cover,
.entry-content .wp-block-columns {
  margin-bottom: 2rem;
}

.entry-content .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.entry-content .wp-block-column {
  flex: 1;
  min-width: 250px;
}

/* Wide and Full width blocks */
.entry-content .alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Block spacing */
.entry-content > * {
  margin-bottom: 1.5rem;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

/* Typography blocks */
.entry-content .wp-block-paragraph {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.entry-content .wp-block-heading {
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.entry-content .wp-block-heading:first-child {
  margin-top: 0;
}

/* List blocks */
.entry-content .wp-block-list {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.entry-content .wp-block-list li {
  margin-bottom: 0.5rem;
}

/* Quote blocks */
.entry-content .wp-block-quote {
  border-left: 4px solid #FDBF00;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

/* Button blocks */
.entry-content .wp-block-button {
  margin-bottom: 1rem;
}

.entry-content .wp-block-button .wp-block-button__link {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Image blocks */
.entry-content .wp-block-image img {
  height: auto;
  max-width: 100%;
}

.entry-content .wp-block-image.aligncenter {
  text-align: center;
}

.entry-content .wp-block-image.alignleft {
  float: left;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.entry-content .wp-block-image.alignright {
  float: right;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* Gallery blocks */
.entry-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Media & Text blocks - High specificity to override Tailwind */
.entry-content .wp-block-media-text,
.single-page .entry-content .wp-block-media-text {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
  align-items: center !important;
  margin-bottom: 2rem !important;
  width: 100% !important;
  max-width: none !important;
}

.entry-content .wp-block-media-text.has-media-on-the-right,
.single-page .entry-content .wp-block-media-text.has-media-on-the-right {
  grid-template-columns: 1fr 1fr !important;
}

.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media,
.single-page .entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
  order: 2 !important;
}

.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content,
.single-page .entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
  order: 1 !important;
}

.entry-content .wp-block-media-text .wp-block-media-text__media,
.single-page .entry-content .wp-block-media-text .wp-block-media-text__media {
  margin: 0 !important;
  display: block !important;
}

.entry-content .wp-block-media-text .wp-block-media-text__media img,
.single-page .entry-content .wp-block-media-text .wp-block-media-text__media img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
}

.entry-content .wp-block-media-text .wp-block-media-text__content,
.single-page .entry-content .wp-block-media-text .wp-block-media-text__content {
  padding: 1rem !important;
  display: block !important;
}

.entry-content .wp-block-media-text .wp-block-media-text__content p,
.single-page .entry-content .wp-block-media-text .wp-block-media-text__content p {
  margin-bottom: 1rem !important;
  line-height: 1.6 !important;
}

.entry-content .wp-block-media-text .wp-block-media-text__content p:last-child,
.single-page .entry-content .wp-block-media-text .wp-block-media-text__content p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .entry-content .wp-block-media-text,
  .single-page .entry-content .wp-block-media-text {
    grid-template-columns: 1fr !important;
  }
  
  .entry-content .wp-block-columns,
  .single-page .entry-content .wp-block-columns {
    flex-direction: column !important;
  }
  
  .entry-content .alignfull {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
    max-width: calc(100% + 2rem);
  }
}

/* Modern animations and effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Animation classes */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slideInFromLeft {
  animation: slideInFromLeft 0.5s ease-out forwards;
}

.animate-pulse-subtle {
  animation: pulse 3s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Enhanced hover effects for cards */
.post-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.1);
}

/* Gradient text effects */
.gradient-text {
  background: linear-gradient(135deg, #FDBF00 0%, #D92929 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern button styles */
.btn-modern {
  @apply inline-flex items-center px-6 py-3 bg-gradient-to-r from-brand-yellow to-amber-400 text-brand-black font-semibold rounded-full shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1 hover:scale-105;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FDBF00, #D92929);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #D92929, #FDBF00);
}

/* Line clamp utility for text truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Enhanced shadow utilities */
.shadow-brand {
  box-shadow: 0 10px 25px -3px rgba(253, 191, 0, 0.3), 0 4px 6px -2px rgba(253, 191, 0, 0.15);
}

.shadow-brand-lg {
  box-shadow: 0 25px 50px -12px rgba(253, 191, 0, 0.4), 0 10px 20px -5px rgba(253, 191, 0, 0.2);
}

/* Stagger animations for grid items */
.posts-grid > article:nth-child(1) { animation-delay: 0.1s; }
.posts-grid > article:nth-child(2) { animation-delay: 0.2s; }
.posts-grid > article:nth-child(3) { animation-delay: 0.3s; }
.posts-grid > article:nth-child(4) { animation-delay: 0.4s; }
.posts-grid > article:nth-child(5) { animation-delay: 0.5s; }
.posts-grid > article:nth-child(6) { animation-delay: 0.6s; }

/* Modern focus states */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #FDBF00;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Enhanced transitions for interactive elements */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Luminous Dark Theme Effects */
.luminous-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.luminous-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, rgba(253, 191, 0, 0.3), rgba(217, 41, 41, 0.2), rgba(253, 191, 0, 0.3));
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.luminous-card:hover::before {
  opacity: 1;
}

/* Glowing text effects */
.glow-text {
  text-shadow: 0 0 20px rgba(253, 191, 0, 0.3), 0 0 40px rgba(253, 191, 0, 0.2);
}

.glow-text:hover {
  text-shadow: 0 0 20px rgba(253, 191, 0, 0.6), 0 0 40px rgba(253, 191, 0, 0.4), 0 0 60px rgba(253, 191, 0, 0.2);
}

/* Dark hero section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(253, 191, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(217, 41, 41, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Luminous border animations */
@keyframes luminous-border {
  0% {
    box-shadow: 0 0 5px rgba(253, 191, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(253, 191, 0, 0.4), 0 0 30px rgba(253, 191, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 5px rgba(253, 191, 0, 0.2);
  }
}

.luminous-border {
  animation: luminous-border 3s ease-in-out infinite;
}

/* Enhanced card hover effects with luminous glow */
.post-card:hover {
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(253, 191, 0, 0.2);
  transform: translateY(-8px) scale(1.02);
}

/* Dark mode scrollbar */
.dark-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.dark-scrollbar::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.3);
}

.dark-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(253, 191, 0, 0.6), rgba(217, 41, 41, 0.4));
  border-radius: 10px;
}

.dark-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(253, 191, 0, 0.8), rgba(217, 41, 41, 0.6));
}

/* Particle effect for backgrounds */
@keyframes float-particles {
  0%, 100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translateY(-10px) translateX(5px) scale(1.1);
    opacity: 0.6;
  }
  66% {
    transform: translateY(5px) translateX(-5px) scale(0.9);
    opacity: 0.4;
  }
}

.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(253, 191, 0, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-particles 6s ease-in-out infinite;
  pointer-events: none;
}

.particle:nth-child(2) { animation-delay: -2s; }
.particle:nth-child(3) { animation-delay: -4s; }

/* Luminous text selection */
::selection {
  background: rgba(253, 191, 0, 0.3);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(253, 191, 0, 0.3);
  color: #ffffff;
}

/* Enhanced shadow effects for luminous theme */
.shadow-luminous {
  box-shadow: 
    0 10px 25px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(253, 191, 0, 0.1);
}

.shadow-luminous-lg {
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 10px 20px -5px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(253, 191, 0, 0.15);
}

/* Glowing buttons */
.btn-luminous {
  background: linear-gradient(135deg, rgba(253, 191, 0, 0.9), rgba(251, 191, 36, 0.9));
  box-shadow: 0 0 20px rgba(253, 191, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-luminous:hover {
  box-shadow: 0 0 30px rgba(253, 191, 0, 0.5), 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Backdrop blur effects */
.backdrop-blur-luminous {
  backdrop-filter: blur(16px) saturate(180%);
  background: rgba(15, 23, 42, 0.8);
}

/* Product Carousels Styling */
.products-carousel-wrapper {
  position: relative;
  margin: 0 -1rem;
  padding: 0 1rem;
}

.products-swiper {
  width: 100%;
  padding: 1rem 0 2rem 0;
}

.products-swiper .swiper-wrapper {
  align-items: stretch;
}

.products-swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

/* Navigation buttons styling */
.products-swiper .swiper-button-next,
.products-swiper .swiper-button-prev {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #374151;
  font-weight: bold;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.products-swiper .swiper-button-next:hover,
.products-swiper .swiper-button-prev:hover {
  background-color: var(--brand-yellow, #FDBF00);
  color: var(--brand-black, #010001);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.products-swiper .swiper-button-next::after,
.products-swiper .swiper-button-prev::after {
  font-size: 18px;
  font-weight: 900;
}

/* Position navigation buttons */
.products-swiper .swiper-button-next {
  right: 10px;
  top: 50%;
  margin-top: -22px;
}

.products-swiper .swiper-button-prev {
  left: 10px;
  top: 50%;
  margin-top: -22px;
}

/* Hide navigation on mobile, show on hover/focus */
@media (max-width: 640px) {
  .products-swiper .swiper-button-next,
  .products-swiper .swiper-button-prev {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .products-carousel-wrapper:hover .swiper-button-next,
  .products-carousel-wrapper:hover .swiper-button-prev,
  .products-swiper:focus-within .swiper-button-next,
  .products-swiper:focus-within .swiper-button-prev {
    opacity: 1;
    visibility: visible;
  }
}

/* Smooth carousel transitions */
.products-swiper.swiper-initialized {
  transition: all 0.3s ease;
}

/* Custom scrollbar for carousel area */
.products-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

/* Fade in animation for carousels */
.products-swiper {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.products-swiper.swiper-initialized {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (min-width: 640px) {
  .products-carousel-wrapper {
    margin: 0 -2rem;
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .products-carousel-wrapper {
    margin: 0 -3rem;
    padding: 0 3rem;
  }
  
  .products-swiper .swiper-button-next {
    right: 20px;
  }
  
  .products-swiper .swiper-button-prev {
    left: 20px;
  }
}

/* WooCommerce compatibility */
.woocommerce-page .entry-title {
  display: none;
}

/* WooCommerce Checkout Styles */
.woocommerce-checkout {
  font-family: var(--font-primary);
}

.woocommerce-checkout .checkout-container {
  background-color: var(--brand-white);
}

.woocommerce-checkout .checkout-grid {
  gap: 2rem;
}

.woocommerce-checkout .customer-details,
.woocommerce-checkout .checkout-payment,
.woocommerce-checkout .order-review {
  background-color: var(--brand-gray);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modern Form field styling */
.woocommerce form.checkout .form-row {
  margin-bottom: 1.5rem;
  position: relative;
}

.woocommerce form.checkout .form-row label {
  font-weight: 600;
  color: var(--brand-black);
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.woocommerce form.checkout input[type="text"],
.woocommerce form.checkout input[type="email"],
.woocommerce form.checkout input[type="tel"],
.woocommerce form.checkout input[type="password"],
.woocommerce form.checkout textarea,
.woocommerce form.checkout select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.woocommerce form.checkout input[type="text"]:focus,
.woocommerce form.checkout input[type="email"]:focus,
.woocommerce form.checkout input[type="tel"]:focus,
.woocommerce form.checkout input[type="password"]:focus,
.woocommerce form.checkout textarea:focus,
.woocommerce form.checkout select:focus {
  outline: none;
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(253, 191, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.woocommerce form.checkout input[type="text"]:hover,
.woocommerce form.checkout input[type="email"]:hover,
.woocommerce form.checkout input[type="tel"]:hover,
.woocommerce form.checkout input[type="password"]:hover,
.woocommerce form.checkout textarea:hover,
.woocommerce form.checkout select:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Required field asterisk */
.woocommerce form.checkout .required {
  color: var(--brand-red);
  font-weight: 700;
}

/* Form row variations */
.woocommerce form.checkout .form-row-first,
.woocommerce form.checkout .form-row-last {
  width: 48%;
  display: inline-block;
  vertical-align: top;
}

.woocommerce form.checkout .form-row-first {
  margin-right: 4%;
}

.woocommerce form.checkout .form-row-wide {
  width: 100%;
}

/* Select dropdown styling */
.woocommerce form.checkout select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 3rem;
  appearance: none;
  cursor: pointer;
}

/* Textarea specific styling */
.woocommerce form.checkout textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-primary);
}

/* Checkbox and radio styling */
.woocommerce form.checkout input[type="checkbox"],
.woocommerce form.checkout input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-right: 0.5rem;
  accent-color: var(--brand-yellow);
  cursor: pointer;
}

.woocommerce form.checkout .checkbox label,
.woocommerce form.checkout .radio label {
  display: flex;
  align-items: center;
  font-weight: 400;
  text-transform: none;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.5;
}

/* Error states */
.woocommerce form.checkout .form-row.woocommerce-invalid input,
.woocommerce form.checkout .form-row.woocommerce-invalid select,
.woocommerce form.checkout .form-row.woocommerce-invalid textarea {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(217, 41, 41, 0.1);
}

.woocommerce form.checkout .form-row.woocommerce-invalid label {
  color: var(--brand-red);
}

/* Success states */
.woocommerce form.checkout .form-row.woocommerce-validated input,
.woocommerce form.checkout .form-row.woocommerce-validated select,
.woocommerce form.checkout .form-row.woocommerce-validated textarea {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Field groups */
.woocommerce form.checkout .customer-details {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.woocommerce form.checkout .customer-details h2 {
  color: var(--brand-black);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-yellow);
  position: relative;
}

.woocommerce form.checkout .customer-details h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 3rem;
  height: 2px;
  background-color: var(--brand-yellow);
  border-radius: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .woocommerce form.checkout .form-row-first,
  .woocommerce form.checkout .form-row-last {
    width: 100%;
    display: block;
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .woocommerce form.checkout .form-row-first {
    margin-bottom: 1.5rem;
  }
}

/* Payment method styling */
.woocommerce-checkout #payment {
  background: white;
  border-radius: 6px;
  padding: 1rem;
}

.woocommerce-checkout #payment .payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-checkout #payment .payment_method {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.woocommerce-checkout #payment .payment_method:hover {
  border-color: var(--brand-yellow);
}

.woocommerce-checkout #payment .payment_method.selected {
  border-color: var(--brand-yellow);
  background-color: rgba(253, 191, 0, 0.05);
}

.woocommerce-checkout #payment .payment_method label {
  font-weight: 600;
  cursor: pointer;
}

.woocommerce-checkout #payment .payment_method input[type="radio"] {
  margin-right: 0.5rem;
  accent-color: var(--brand-yellow);
}

/* Place order button */
.woocommerce-checkout #place_order {
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.woocommerce-checkout #place_order:hover {
  background-color: #e5a800;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.woocommerce-checkout #place_order:active {
  transform: translateY(0);
}

/* Order review table */
.woocommerce-checkout-review-order-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 0.75rem 0.5rem;
  vertical-align: top;
  word-wrap: break-word;
  border-bottom: 1px solid #e5e7eb;
}

.woocommerce-checkout-review-order-table .product-name {
  width: 65%;
}

.woocommerce-checkout-review-order-table .product-total {
  width: 35%;
  white-space: nowrap;
  text-align: right;
  font-weight: 600;
  color: var(--brand-black);
}

/* Product row styling */
.woocommerce-checkout-review-order-table .product-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.woocommerce-checkout-review-order-table .product-image {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.woocommerce-checkout-review-order-table .product-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.woocommerce-checkout-review-order-table .product-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.woocommerce-checkout-review-order-table .product-title {
  font-weight: 500;
  color: var(--brand-black);
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 4px;
  word-break: break-word;
  display: block;
}

.woocommerce-checkout-review-order-table .product-quantity {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.2;
  display: block;
}

.woocommerce-checkout-review-order-table .product-quantity strong {
  font-weight: 600;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
  font-weight: 600;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  font-size: 1.125rem;
  color: var(--brand-black);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .woocommerce-checkout .checkout-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .woocommerce-checkout .order-review {
    position: static;
    margin-top: 1rem;
  }
}

/* Error and validation styling */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border-left: 4px solid;
}

.woocommerce .woocommerce-error {
  background-color: #fef2f2;
  border-left-color: var(--brand-red);
  color: #991b1b;
}

.woocommerce .woocommerce-message {
  background-color: #f0fdf4;
  border-left-color: #16a34a;
  color: #166534;
}

.woocommerce .woocommerce-info {
  background-color: #eff6ff;
  border-left-color: #2563eb;
  color: #1e40af;
}

/* Loading states */
.woocommerce-checkout.processing {
  opacity: 0.8;
  pointer-events: none;
}

.woocommerce-checkout.processing::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
}

/* Brand colors and fonts from original Astro project */
:root {
  --brand-yellow: #FDBF00;
  --brand-red: #D92929;
  --brand-gray: #F2F2F2;
  --brand-white: #FEFFFE;
  --brand-black: #010001;
  
  /* Font families */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* Base typography */
body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
}

/* Headings use Poppins font */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* Navigation and UI elements use primary font */
nav, button, .btn, .menu, .header {
  font-family: var(--font-primary);
}

/* Enhanced Payment Methods Styles */
#payment {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

#payment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--brand-yellow), var(--brand-red));
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.wc_payment_method {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.wc_payment_method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wc_payment_method input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(253, 191, 0, 0.1), rgba(217, 41, 41, 0.05));
    color: #1a202c;
    border-bottom-color: rgba(253, 191, 0, 0.3);
}

.wc_payment_method input[type="radio"]:checked ~ .payment_box {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

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

.wc_payment_method label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #2d3748;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e2e8f0;
    z-index: 2;
    background: transparent;
    font-family: var(--font-primary);
}

.wc_payment_method label:hover {
    background: rgba(248, 250, 252, 0.8);
    border-color: var(--brand-yellow);
    transform: translateX(2px);
}

/* Payment Method Icons */
.wc_payment_method label img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-left: 0.75rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom Radio Button Styling */
.wc_payment_method label::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    background: #fff;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.wc_payment_method input[type="radio"]:checked + label::after {
    border-color: var(--brand-yellow);
    background: var(--brand-yellow);
    box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--brand-yellow);
    transform: scale(1.1);
}

/* Enhanced Payment Box */
.payment_box {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-top: 1px solid rgba(253, 191, 0, 0.2);
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.7;
    display: none;
    position: relative;
    font-family: var(--font-primary);
}

.payment_box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-yellow), var(--brand-red));
}

.payment_box p {
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.payment_box p:last-child {
    margin-bottom: 0;
}

/* YAPE Specific Styles */
.payment_method_pago_moviles_peru .payment_box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0284c7;
    border-top: 3px solid #0284c7;
    border-radius: 0 0 12px 12px;
}

.wc-credit-card-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

/* QR Code Styling */
.qrcode-image {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(2, 132, 199, 0.3);
    border: 4px solid #fff;
    background: #fff;
    object-fit: contain;
    margin: 1rem auto !important;
    display: block;
}

/* Phone Number Display */
.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin: 1rem 0;
    border: 2px solid rgba(2, 132, 199, 0.2);
    font-family: var(--font-heading);
}

/* File Upload Styling */
.payment_box input[type="file"] {
    width: 100%;
    padding: 1rem;
    border: 2px dashed #0284c7;
    border-radius: 12px;
    background: rgba(240, 249, 255, 0.5);
    color: #0284c7;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-family: var(--font-primary);
}

.payment_box input[type="file"]:hover {
    border-color: #0369a1;
    background: rgba(240, 249, 255, 0.8);
    transform: translateY(-1px);
}

.payment_box input[type="file"]:focus {
    outline: none;
    border-color: #0369a1;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.payment_box label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-family: var(--font-primary);
}

.required {
    color: var(--brand-red);
    font-weight: 700;
}

/* Text Styling in Payment Box */
.text-bold {
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

/* Minimalist Place Order Button */
#place_order {
    background: var(--brand-white);
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    font-family: var(--font-primary) !important;
}

#place_order:hover {
    background: var(--brand-red);
    color: var(--brand-white);
    transform: none;
    box-shadow: 0 2px 4px rgba(217, 41, 41, 0.2);
}

#place_order:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(217, 41, 41, 0.3);
}

/* Terms and Conditions Enhancement */
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border-left: 4px solid var(--brand-yellow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.woocommerce-privacy-policy-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-family: var(--font-primary);
}

.woocommerce-privacy-policy-link {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce-privacy-policy-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* Enhanced Order Received (Thank You) Page Styles */
.woocommerce-order-received {
    width: 100%;
    margin: 0;
    padding: 2rem 5% 2rem 5%;
    font-family: var(--font-primary);
}

/* Thank You Message */
.woocommerce-thankyou-order-received {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #16a34a;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.woocommerce-thankyou-order-received::before {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: #16a34a;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.woocommerce-thankyou-order-received {
    font-size: 1.25rem;
    font-weight: 600;
    color: #166534;
    line-height: 1.6;
    margin: 0;
}

/* Order Details Section */
.woocommerce-order-overview {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.woocommerce-order-overview h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-yellow);
    position: relative;
}

.woocommerce-order-overview h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--brand-red);
}

/* Order Overview List */
.woocommerce-order-overview__order,
.woocommerce-order-overview__date,
.woocommerce-order-overview__email,
.woocommerce-order-overview__total,
.woocommerce-order-overview__payment-method {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.woocommerce-order-overview__order:last-child,
.woocommerce-order-overview__date:last-child,
.woocommerce-order-overview__email:last-child,
.woocommerce-order-overview__total:last-child,
.woocommerce-order-overview__payment-method:last-child {
    border-bottom: none;
}

.woocommerce-order-overview li strong {
    font-weight: 600;
    color: #374151;
    font-family: var(--font-heading);
}

.woocommerce-order-overview li span,
.woocommerce-order-overview li time,
.woocommerce-order-overview li a {
    color: #1f2937;
    font-weight: 500;
}

.woocommerce-order-overview__total .woocommerce-Price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-red);
}

/* Order Details Table */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.woocommerce-table--order-details thead {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.woocommerce-table--order-details th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-family: var(--font-heading);
    border-bottom: 2px solid #e2e8f0;
}

.woocommerce-table--order-details td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.woocommerce-table--order-details tbody tr:hover {
    background: #f8fafc;
}

.woocommerce-table--order-details .product-name {
    font-weight: 600;
    color: #1f2937;
}

.woocommerce-table--order-details .product-name a {
    color: var(--brand-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-table--order-details .product-name a:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.woocommerce-table--order-details .product-quantity {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
}

.woocommerce-table--order-details .product-total {
    text-align: right;
    font-weight: 700;
    color: var(--brand-red);
}

/* Order Total Section */
.woocommerce-table--order-details tfoot {
    background: #f8fafc;
}

.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td {
    padding: 1rem;
    font-weight: 600;
    border-top: 2px solid #e2e8f0;
}

.woocommerce-table--order-details .order-total th,
.woocommerce-table--order-details .order-total td {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-red);
    background: rgba(217, 41, 41, 0.05);
}

/* Customer Details Section */
.woocommerce-customer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.woocommerce-column--billing-address,
.woocommerce-column--shipping-address {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.woocommerce-column--billing-address h2,
.woocommerce-column--shipping-address h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-yellow);
}

.woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.6;
    color: #4b5563;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--brand-yellow);
}

/* Order Actions */
.woocommerce-order-details__actions {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.woocommerce-order-details__actions .button,
.woocommerce-order-details__actions .woocommerce-button {
    background: var(--brand-white);
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    margin: 0 0.5rem;
}

.woocommerce-order-details__actions .button:hover,
.woocommerce-order-details__actions .woocommerce-button:hover {
    background: var(--brand-red);
    color: var(--brand-white);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(217, 41, 41, 0.2);
}

/* Payment Instructions */
.woocommerce-bacs-bank-details {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.woocommerce-bacs-bank-details h2 {
    font-family: var(--font-heading);
    color: #92400e;
    margin-bottom: 1rem;
}

.woocommerce-bacs-bank-details ul {
    list-style: none;
    padding: 0;
}

.woocommerce-bacs-bank-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #fde68a;
}

.woocommerce-bacs-bank-details li:last-child {
    border-bottom: none;
}

.woocommerce-bacs-bank-details strong {
    color: #92400e;
    font-weight: 600;
}

/* Success Icons and Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-order-received > * {
    animation: fadeInUp 0.6s ease-out;
}

.woocommerce-order-received > *:nth-child(2) {
    animation-delay: 0.1s;
}

.woocommerce-order-received > *:nth-child(3) {
    animation-delay: 0.2s;
}

.woocommerce-order-received > *:nth-child(4) {
    animation-delay: 0.3s;
}

/* Responsive Design for Order Received Page */
@media (max-width: 768px) {
    .woocommerce-order-received {
        padding: 1rem;
    }
    
    .woocommerce-thankyou-order-received {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
    
    .woocommerce-thankyou-order-received::before {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        top: -8px;
        right: -8px;
    }
    
    .woocommerce-order-overview,
    .woocommerce-column--billing-address,
    .woocommerce-column--shipping-address {
        padding: 1.5rem;
    }
    
    .woocommerce-customer-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .woocommerce-order-overview__order,
    .woocommerce-order-overview__date,
    .woocommerce-order-overview__email,
    .woocommerce-order-overview__total,
    .woocommerce-order-overview__payment-method {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .woocommerce-table--order-details {
        font-size: 0.9rem;
    }
    
    .woocommerce-table--order-details th,
    .woocommerce-table--order-details td {
        padding: 0.75rem 0.5rem;
    }
    
    .woocommerce-order-details__actions .button,
    .woocommerce-order-details__actions .woocommerce-button {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Responsive Design for Payment Methods */
@media (max-width: 768px) {
    #payment {
        padding: 1.5rem;
    }
    
    .wc_payment_method label {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .wc_payment_method label::after {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
    
    .wc_payment_method label img {
        margin-left: 0;
        order: -1;
    }
    
    .qrcode-image {
        width: 150px !important;
        height: 150px !important;
        max-width: 150px !important;
        max-height: 150px !important;
    }
    
    .phone-number {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }
    
    #place_order {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .payment_box {
        padding: 1.5rem 1rem;
    }
}