/*
 * WooCommerce Custom Styles for BayurNews Theme
 * Integrates WooCommerce with BayurNews design
 */

/* ===============================================
   MY ACCOUNT RESPONSIVE STYLES
   =============================================== */ /* Force layout to not shrink */
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

/* Mobile Navigation Toggle */
#mobile-nav-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  width: 100% !important;
  display: block !important;
}

/* Sidebar Animation */
#sidebar-nav {
  transition: all 0.3s ease-in-out;
  width: 100% !important;
}

/* Desktop sidebar width */
@media (min-width: 1024px) {
  #sidebar-nav {
    width: 20rem !important;
  }
}

/* Mobile Optimizations */
@media (max-width: 1023px) {
  .woocommerce-MyAccount-navigation {
    margin-bottom: 1rem;
    width: 100% !important;
  }

  .woocommerce-MyAccount-content {
    margin-top: 0;
    width: 100% !important;
  }

  /* Hide sidebar by default on mobile */
  #sidebar-nav {
    display: none !important;
  }

  #sidebar-nav.show {
    display: block !important;
  }
}

/* Touch-friendly buttons */
.woocommerce-MyAccount-navigation ul li a {
  min-height: 48px;
  display: flex;
  align-items: center;
  width: 100% !important;
}

/* Improve readability on small screens */
@media (max-width: 640px) {
  .woocommerce-MyAccount-navigation ul li a {
    padding: 12px 16px;
    font-size: 14px;
  }

  .woocommerce-MyAccount-content {
    padding: 16px;
  }
}

/* Better spacing for statistics section */
@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation .statistics-section {
    margin-top: 1.5rem;
  }

  .woocommerce-MyAccount-navigation .statistics-section .stat-card {
    padding: 12px 16px;
  }
}

/* Container improvements for mobile */
@media (max-width: 640px) {
  .woocommerce-MyAccount-content .woocommerce {
    margin: 0;
    padding: 0;
  }

  .woocommerce-MyAccount-content .entry-content {
    padding: 0;
  }
}

/* Form improvements for mobile */
@media (max-width: 768px) {
  .woocommerce-MyAccount-content form {
    margin: 0;
  }

  .woocommerce-MyAccount-content .form-row {
    margin-bottom: 1rem;
  }

  .woocommerce-MyAccount-content input[type="text"],
  .woocommerce-MyAccount-content input[type="email"],
  .woocommerce-MyAccount-content input[type="password"],
  .woocommerce-MyAccount-content textarea,
  .woocommerce-MyAccount-content select {
    padding: 12px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Button improvements for mobile */
@media (max-width: 768px) {
  .woocommerce-MyAccount-content .button,
  .woocommerce-MyAccount-content button[type="submit"] {
    padding: 12px 24px;
    min-height: 48px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Table improvements for mobile */
@media (max-width: 768px) {
  .woocommerce-MyAccount-content table {
    font-size: 14px;
  }

  .woocommerce-MyAccount-content table th,
  .woocommerce-MyAccount-content table td {
    padding: 8px 4px;
  }
}

/* Address improvements for mobile */
@media (max-width: 768px) {
  .woocommerce-MyAccount-content .woocommerce-address-fields {
    margin-bottom: 2rem;
  }

  .woocommerce-MyAccount-content .woocommerce-address-fields .form-row {
    margin-bottom: 1rem;
  }
}

/* Product Grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products li.product {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Support */
.dark .woocommerce ul.products li.product {
  background: #1f2937;
  border-color: #374151;
}

.dark .woocommerce ul.products li.product:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Product Images */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: block;
  text-decoration: none;
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.05);
}

/* Product Info */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 1rem 1rem 0.5rem 1rem;
  line-height: 1.4;
}

.dark .woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #f9fafb;
}

.woocommerce ul.products li.product .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #dc2626;
  margin: 0 1rem 1rem 1rem;
}

.dark .woocommerce ul.products li.product .price {
  color: #f87171;
}

/* Sale Badge */
.woocommerce span.onsale {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 1rem 1rem 1rem;
  display: inline-block;
  width: calc(100% - 2rem);
  text-align: center;
}

.woocommerce ul.products li.product .button:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-1px);
}

/* ===============================================
   SINGLE PRODUCT PAGE
   =============================================== */

.woocommerce div.product {
  margin: 2rem 0;
}

.woocommerce div.product .product_title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.dark .woocommerce div.product .product_title {
  color: #f9fafb;
}

.woocommerce div.product p.price {
  font-size: 2rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 1.5rem;
}

.dark .woocommerce div.product p.price {
  color: #f87171;
}

/* Product Description */
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 2rem;
}

.dark .woocommerce div.product .woocommerce-product-details__short-description {
  color: #d1d5db;
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 2rem;
}

.dark .woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom-color: #374151;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin-right: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: #6b7280;
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #dc2626;
  border-bottom-color: #dc2626;
}

.dark .woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: #9ca3af;
}

.dark .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #f87171;
  border-bottom-color: #f87171;
}

/* ===============================================
   CART & CHECKOUT
   =============================================== */

.woocommerce table.shop_table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 2rem;
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .woocommerce table.shop_table {
  background: #1f2937;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.dark .woocommerce table.shop_table th,
.dark .woocommerce table.shop_table td {
  border-bottom-color: #374151;
}

.woocommerce table.shop_table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.dark .woocommerce table.shop_table th {
  background: #374151;
  color: #f9fafb;
}

/* Form Elements */
.woocommerce .form-row input[type="text"],
.woocommerce .form-row input[type="email"],
.woocommerce .form-row input[type="tel"],
.woocommerce .form-row select,
.woocommerce .form-row textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.woocommerce .form-row input:focus,
.woocommerce .form-row select:focus,
.woocommerce .form-row textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.dark .woocommerce .form-row input,
.dark .woocommerce .form-row select,
.dark .woocommerce .form-row textarea {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

/* Buttons */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-1px);
}

.woocommerce .button.alt {
  background: linear-gradient(135deg, #059669, #047857);
}

.woocommerce .button.alt:hover {
  background: linear-gradient(135deg, #047857, #065f46);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .woocommerce div.product .product_title {
    font-size: 1.875rem;
  }

  .woocommerce div.product p.price {
    font-size: 1.5rem;
  }

  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===============================================
   WOOCOMMERCE MESSAGES
   =============================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid;
}

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

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

.woocommerce-error {
  background: #fef2f2;
  border-left-color: #dc2626;
  color: #991b1b;
}

.dark .woocommerce-message {
  background: #064e3b;
  color: #86efac;
}

.dark .woocommerce-info {
  background: #1e3a8a;
  color: #93c5fd;
}

.dark .woocommerce-error {
  background: #7f1d1d;
  color: #fca5a5;
}

/* ===============================================
   PRODUCT GALLERY
   =============================================== */

.woocommerce div.product div.images {
  margin-bottom: 2rem;
}

.woocommerce div.product div.images img {
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product div.images .thumbnails {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.woocommerce div.product div.images .thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.woocommerce div.product div.images .thumbnails img:hover,
.woocommerce div.product div.images .thumbnails img.active {
  opacity: 1;
}

/* ===============================================
   SINGLE PRODUCT PAGE STYLES
   =============================================== */

/* Product Images Section */
.single-product .product-images-section .aspect-square {
  position: relative;
  overflow: hidden;
}

.single-product .product-images-section img {
  transition: transform 0.3s ease;
}

.single-product .product-images-section img:hover {
  transform: scale(1.05);
}

.single-product .product-thumbnails {
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.single-product .product-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.single-product .product-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.single-product .product-thumbnails::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.5);
  border-radius: 2px;
}

.single-product .thumbnail-btn {
  transition: all 0.3s ease;
}

.single-product .thumbnail-btn:hover {
  transform: scale(1.05);
}

/* Product Info Styling */
.single-product .product-info-section h1 {
  line-height: 1.2;
}

.single-product .star-rating {
  color: #f59e0b;
}

.single-product .star-rating::before {
  color: #e5e7eb;
}

/* Add to Cart Form */
.single-product .cart {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.single-product .cart .quantity {
  position: relative;
}

.single-product .cart .quantity input[type="number"] {
  width: 100px;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  text-align: center;
  font-weight: 600;
  background: white;
  transition: all 0.3s ease;
}

.single-product .cart .quantity input[type="number"]:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.dark .single-product .cart .quantity input[type="number"] {
  background-color: #374151;
  border-color: #4b5563;
  color: #ffffff;
}

.dark .single-product .cart .quantity input[type="number"]:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.single-product .single_add_to_cart_button {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: white !important;
  padding: 0.875rem 2.5rem !important;
  border-radius: 1rem !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
}

.single-product .single_add_to_cart_button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.single-product .single_add_to_cart_button:hover::before {
  left: 100%;
}

.single-product .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.4) !important;
}

.single-product .single_add_to_cart_button:active {
  transform: translateY(0) !important;
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3) !important;
}

.single-product .single_add_to_cart_button.loading {
  opacity: 0.8 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.single-product .single_add_to_cart_button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.single-product .single_add_to_cart_button.added {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3) !important;
}

.single-product .single_add_to_cart_button.added:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
  box-shadow: 0 15px 35px rgba(22, 163, 74, 0.4) !important;
}

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

/* Product Meta Styling */
.single-product .product_meta {
  font-size: 0.875rem;
}

.single-product .product_meta > span {
  display: block;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.dark .single-product .product_meta > span {
  color: #9ca3af;
}

.single-product .product_meta a {
  color: #dc2626;
  text-decoration: none;
}

.single-product .product_meta a:hover {
  color: #b91c1c;
  text-decoration: underline;
}

/* Product Tabs */
.single-product .woocommerce-tabs {
  margin-top: 3rem;
}

.single-product .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.dark .single-product .woocommerce-tabs ul.tabs {
  border-bottom-color: #4b5563;
}

.single-product .woocommerce-tabs ul.tabs li {
  margin: 0;
  background: none;
  border: none;
}

.single-product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 1rem 2rem;
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.dark .single-product .woocommerce-tabs ul.tabs li a {
  color: #9ca3af;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: #dc2626;
  border-bottom-color: #dc2626;
}

.single-product .woocommerce-tabs .panel {
  margin: 0;
  padding: 2rem 0;
}

.single-product .woocommerce-tabs .panel h2 {
  margin-top: 0;
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.dark .single-product .woocommerce-tabs .panel h2 {
  color: #ffffff;
}

/* Reviews Styling */
.single-product #reviews .commentlist {
  list-style: none;
  padding: 0;
}

.single-product #reviews .comment {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.dark .single-product #reviews .comment {
  border-bottom-color: #4b5563;
}

.single-product #reviews .comment:last-child {
  border-bottom: none;
}

.single-product #reviews .comment .meta {
  margin-bottom: 1rem;
}

.single-product #reviews .comment .meta strong {
  color: #111827;
  font-weight: 600;
}

.dark .single-product #reviews .comment .meta strong {
  color: #ffffff;
}

.single-product #reviews .comment .description {
  color: #6b7280;
  line-height: 1.6;
}

.dark .single-product #reviews .comment .description {
  color: #9ca3af;
}

/* Related Products */
.single-product .related.products,
.single-product .upsells.products {
  margin-top: 4rem;
}

.single-product .related.products h2,
.single-product .upsells.products h2 {
  color: #111827;
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.dark .single-product .related.products h2,
.dark .single-product .upsells.products h2 {
  color: #ffffff;
}

.single-product .related.products h2::before,
.single-product .upsells.products h2::before {
  content: "🔗";
  margin-right: 0.75rem;
}

.single-product .products.columns-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Image Modal Styling */
#image-modal {
  backdrop-filter: blur(4px);
}

#image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .single-product .product-images-section {
    margin-bottom: 2rem;
  }

  .single-product .product-info-section h1 {
    font-size: 1.875rem;
  }

  .single-product .woocommerce-tabs ul.tabs {
    flex-direction: column;
  }

  .single-product .woocommerce-tabs ul.tabs li a {
    padding: 0.75rem 1rem;
  }

  .single-product .products.columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .single-product .product-thumbnails .flex {
    gap: 0.5rem;
  }

  .single-product .thumbnail-btn {
    width: 60px;
    height: 60px;
  }
}

/* ===============================================
   CUSTOM PRICE & GRADIENT STYLING
   =============================================== */

/* Custom Gradient Text */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Product Price Styling */
.single-product .price {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #dc2626 0%, #ec4899 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
  line-height: 1.2 !important;
}

.single-product .price .amount {
  background: linear-gradient(135deg, #dc2626 0%, #ec4899 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.single-product .price del {
  text-decoration: line-through !important;
  opacity: 0.6 !important;
  font-size: 1.5rem !important;
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.single-product .price ins {
  text-decoration: none !important;
  font-weight: 900 !important;
}

/* Product Meta Enhancements */
.single-product .product_meta span {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0.75rem !important;
  font-size: 0.875rem !important;
  color: #6b7280 !important;
}

.dark .single-product .product_meta span {
  color: #9ca3af !important;
}

.single-product .product_meta span::before {
  content: "📋";
  margin-right: 0.5rem;
  font-size: 1rem;
}

.single-product .product_meta .posted_in::before {
  content: "📂";
}

.single-product .product_meta .tagged_as::before {
  content: "🏷️";
}

.single-product .product_meta .sku_wrapper::before {
  content: "🔖";
}

/* Star Rating Enhancements */
.star-rating {
  color: #fbbf24 !important;
  font-size: 1.2rem !important;
}

.star-rating::before {
  color: #e5e7eb !important;
}

/* Custom Woo Tabs Styling */
.single-product .woocommerce-tabs ul.tabs li.active {
  background: linear-gradient(135deg, #dc2626, #ec4899) !important;
  border-radius: 1rem !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  color: white !important;
  border-bottom: none !important;
}

/* Related Products Styling */
.single-product .related.products h2::before,
.single-product .upsells.products h2::before {
  content: "✨";
  margin-right: 0.75rem;
  background: linear-gradient(135deg, #dc2626, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Quantity Input Styling */
.single-product .quantity .qty {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 1rem !important;
  padding: 0.75rem 1rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  width: 100px !important;
  transition: all 0.3s ease !important;
}

.single-product .quantity .qty:focus {
  outline: none !important;
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.dark .single-product .quantity .qty {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%) !important;
  border-color: #6b7280 !important;
  color: white !important;
}

/* Hover Effects for Social Icons */
.product-social-share a:hover,
.product-social-share button:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Additional Mobile Responsive */
@media (max-width: 640px) {
  .single-product .price {
    font-size: 2rem !important;
  }

  .single-product .product-info-section h1 {
    font-size: 1.75rem !important;
  }

  .single-product .product-social-share .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
}

/* ===============================================
   CHECKOUT PAGE STYLES
   =============================================== */

/* Modern TailwindCSS styling for WooCommerce Checkout with Dark Mode */
.woocommerce-checkout .woocommerce-form-row {
  margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce-form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.dark .woocommerce-checkout .woocommerce-form-row label {
  color: #d1d5db;
}

.woocommerce-checkout .woocommerce-input-wrapper {
  position: relative;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  background-color: #ffffff;
  color: #111827;
  font-size: 0.875rem;
}

.dark .woocommerce-checkout input[type="text"],
.dark .woocommerce-checkout input[type="email"],
.dark .woocommerce-checkout input[type="tel"],
.dark .woocommerce-checkout input[type="password"],
.dark .woocommerce-checkout textarea,
.dark .woocommerce-checkout select {
  background-color: #374151;
  border-color: #4b5563;
  color: #ffffff;
}

.dark .woocommerce-checkout input::placeholder,
.dark .woocommerce-checkout textarea::placeholder {
  color: #9ca3af;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark .woocommerce-checkout input:focus,
.dark .woocommerce-checkout textarea:focus,
.dark .woocommerce-checkout select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.woocommerce-checkout .woocommerce-form-row.validate-required label::after {
  content: "*";
  color: #ef4444;
  margin-left: 0.25rem;
}

/* Modern button styling with dark mode */
.woocommerce-checkout .button,
.woocommerce-checkout #place_order {
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
  border: none;
  cursor: pointer;
}

.dark .woocommerce-checkout .button,
.dark .woocommerce-checkout #place_order {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
}

.woocommerce-checkout .button:hover,
.woocommerce-checkout #place_order:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.dark .woocommerce-checkout .button:hover,
.dark .woocommerce-checkout #place_order:hover {
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.5);
}

.woocommerce-checkout .button:disabled,
.woocommerce-checkout #place_order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Payment methods styling with dark mode */
.woocommerce-checkout #payment {
  background: linear-gradient(135deg, #f9fafb 0%, #e0f2fe 100%);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.dark .woocommerce-checkout #payment {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-color: #4b5563;
}

.woocommerce-checkout .wc_payment_methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.woocommerce-checkout .wc_payment_method {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.dark .woocommerce-checkout .wc_payment_method {
  border-color: #4b5563;
  background-color: #374151;
}

.woocommerce-checkout .wc_payment_method:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.dark .woocommerce-checkout .wc_payment_method:hover {
  border-color: #3b82f6;
  background-color: #1e3a8a;
}

.woocommerce-checkout .wc_payment_method input[type="radio"] {
  color: #2563eb;
}

.dark .woocommerce-checkout .wc_payment_method input[type="radio"] {
  color: #3b82f6;
}

.woocommerce-checkout .payment_method_bacs,
.woocommerce-checkout .payment_method_cheque,
.woocommerce-checkout .payment_method_cod {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #2563eb;
}

.dark .woocommerce-checkout .payment_method_bacs,
.dark .woocommerce-checkout .payment_method_cheque,
.dark .woocommerce-checkout .payment_method_cod {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-left-color: #3b82f6;
}

.woocommerce-checkout .payment_box {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  color: #1e40af;
}

.dark .woocommerce-checkout .payment_box {
  background-color: #1e3a8a;
  border-color: #3b82f6;
  color: #dbeafe;
}

/* Order Review Table with dark mode */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.dark .woocommerce-checkout-review-order-table th,
.dark .woocommerce-checkout-review-order-table td {
  border-bottom-color: #4b5563;
}

.woocommerce-checkout-review-order-table th {
  font-weight: 600;
  color: #111827;
  background: linear-gradient(135deg, #f9fafb 0%, #e0f2fe 100%);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .woocommerce-checkout-review-order-table th {
  color: #ffffff;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.woocommerce-checkout-review-order-table .order-total {
  font-weight: 700;
  font-size: 1.125rem;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
}

.dark .woocommerce-checkout-review-order-table .order-total {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.woocommerce-checkout-review-order-table .order-total td {
  color: #1e40af;
  font-weight: 700;
}

.dark .woocommerce-checkout-review-order-table .order-total td {
  color: #dbeafe;
}

.woocommerce-checkout-review-order-table .product-name {
  font-weight: 500;
  color: #111827;
}

.dark .woocommerce-checkout-review-order-table .product-name {
  color: #ffffff;
}

.woocommerce-checkout-review-order-table .product-total {
  font-weight: 600;
  color: #111827;
}

.dark .woocommerce-checkout-review-order-table .product-total {
  color: #ffffff;
}

/* Error and success messages with dark mode */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.woocommerce-checkout .woocommerce-error {
  background-color: #fef2f2;
  border-left-color: #ef4444;
  color: #dc2626;
}

.dark .woocommerce-checkout .woocommerce-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

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

.dark .woocommerce-checkout .woocommerce-message {
  background-color: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.woocommerce-checkout .woocommerce-info {
  background-color: #eff6ff;
  border-left-color: #3b82f6;
  color: #2563eb;
}

.dark .woocommerce-checkout .woocommerce-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

/* Select2 dropdown styling with dark mode */
.woocommerce-checkout .select2-container--default .select2-selection--single {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background-color: #ffffff;
  height: 3rem;
}

.dark
  .woocommerce-checkout
  .select2-container--default
  .select2-selection--single {
  border-color: #4b5563;
  background-color: #374151;
}

.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #111827;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.dark
  .woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #ffffff;
}

.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.woocommerce-checkout
  .select2-container--default.select2-container--focus
  .select2-selection--single {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark
  .woocommerce-checkout
  .select2-container--default.select2-container--focus
  .select2-selection--single {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Shipping toggles with dark mode */
.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.woocommerce-checkout .woocommerce-form__input-checkbox {
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  color: #2563eb;
  background-color: #ffffff;
}

.dark .woocommerce-checkout .woocommerce-form__input-checkbox {
  border-color: #4b5563;
  background-color: #374151;
}

.woocommerce-checkout .woocommerce-form__input-checkbox:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark .woocommerce-checkout .woocommerce-form__input-checkbox:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Loading states with dark mode */
.woocommerce-checkout .blockUI.blockOverlay {
  background-color: #ffffff;
  opacity: 0.7;
}

.dark .woocommerce-checkout .blockUI.blockOverlay {
  background-color: #111827;
}

.woocommerce-checkout .blockUI .blockUI {
  background-color: #2563eb;
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark .woocommerce-checkout .blockUI .blockUI {
  background-color: #1d4ed8;
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
  .woocommerce-checkout .sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .woocommerce-checkout .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .woocommerce-checkout h1 {
    font-size: 1.5rem;
  }

  .woocommerce-checkout .p-6 {
    padding: 1rem;
  }
}

/* Enhanced form field animations */
.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

/* Enhanced card hover effects */
.woocommerce-checkout .group:hover {
  transform: scale(1.01);
  transition: all 0.3s ease;
}

/* Additional dark mode enhancements */
.woocommerce-checkout .woocommerce-form__input-checkbox:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

.dark .woocommerce-checkout .woocommerce-form__input-checkbox:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.woocommerce-checkout .woocommerce-form__input-checkbox:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dark .woocommerce-checkout .woocommerce-form__input-checkbox:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Custom scrollbar for dark mode */
.woocommerce-checkout ::-webkit-scrollbar {
  width: 0.5rem;
}

.woocommerce-checkout ::-webkit-scrollbar-track {
  background-color: #f3f4f6;
}

.dark .woocommerce-checkout ::-webkit-scrollbar-track {
  background-color: #374151;
}

.woocommerce-checkout ::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 0.25rem;
}

.dark .woocommerce-checkout ::-webkit-scrollbar-thumb {
  background-color: #4b5563;
}

.woocommerce-checkout ::-webkit-scrollbar-thumb:hover {
  background-color: #9ca3af;
}

.dark .woocommerce-checkout ::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}

/* Loading animation for buttons */
.woocommerce-checkout .button.loading,
.woocommerce-checkout #place_order.loading {
  position: relative;
  overflow: hidden;
}

.woocommerce-checkout .button.loading::after,
.woocommerce-checkout #place_order.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Enhanced focus states for accessibility */
.woocommerce-checkout input:focus-visible,
.woocommerce-checkout textarea:focus-visible,
.woocommerce-checkout select:focus-visible {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark .woocommerce-checkout input:focus-visible,
.dark .woocommerce-checkout textarea:focus-visible,
.dark .woocommerce-checkout select:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Smooth transitions for all interactive elements */
.woocommerce-checkout button,
.woocommerce-checkout input,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  transition: all 0.2s ease-in-out;
}

/* Enhanced mobile experience */
@media (max-width: 640px) {
  .woocommerce-checkout .text-4xl {
    font-size: 1.875rem;
  }

  .woocommerce-checkout .py-4 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .woocommerce-checkout .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Main checkout container styling */
.woocommerce-checkout {
  background: linear-gradient(135deg, #f9fafb 0%, #e0f2fe 100%);
  min-height: 100vh;
  padding: 2rem 0;
  transition: background-color 0.3s ease;
}

.dark .woocommerce-checkout {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.woocommerce-checkout .max-w-7xl {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .woocommerce-checkout .max-w-7xl {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .woocommerce-checkout .max-w-7xl {
    padding: 0 2rem;
  }
}

/* Checkout header styling */
.woocommerce-checkout .text-center {
  text-align: center;
  margin-bottom: 2rem;
}

.woocommerce-checkout h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .woocommerce-checkout h1 {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.woocommerce-checkout .text-center p {
  color: #6b7280;
  font-size: 1.125rem;
}

.dark .woocommerce-checkout .text-center p {
  color: #9ca3af;
}

/* Form container styling */
.woocommerce-checkout form {
  margin-bottom: 2rem;
}

.woocommerce-checkout .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .woocommerce-checkout .grid {
    grid-template-columns: 2fr 1fr;
  }
}

.woocommerce-checkout .lg\:col-span-2 {
  grid-column: span 2;
}

@media (max-width: 1023px) {
  .woocommerce-checkout .lg\:col-span-2 {
    grid-column: span 1;
  }
}

.woocommerce-checkout .lg\:col-span-1 {
  grid-column: span 1;
}

/* Card styling */
.woocommerce-checkout .bg-white {
  background-color: #ffffff;
}

.dark .woocommerce-checkout .bg-white {
  background-color: #1f2937;
}

.woocommerce-checkout .rounded-2xl {
  border-radius: 1rem;
}

.woocommerce-checkout .shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .woocommerce-checkout .shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.woocommerce-checkout .border {
  border-width: 1px;
  border-color: #e5e7eb;
}

.dark .woocommerce-checkout .border {
  border-color: #374151;
}

.woocommerce-checkout .p-6 {
  padding: 1.5rem;
}

.woocommerce-checkout .hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .woocommerce-checkout .hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.woocommerce-checkout .transition-all {
  transition: all 0.3s ease;
}

.woocommerce-checkout .group {
  position: relative;
}

.woocommerce-checkout .group:hover .group-hover\:text-blue-600 {
  color: #2563eb;
}

.dark .woocommerce-checkout .group:hover .group-hover\:text-blue-600 {
  color: #3b82f6;
}

.woocommerce-checkout .group:hover .group-hover\:text-green-600 {
  color: #16a34a;
}

.dark .woocommerce-checkout .group:hover .group-hover\:text-green-600 {
  color: #22c55e;
}

.woocommerce-checkout .group:hover .group-hover\:text-purple-600 {
  color: #9333ea;
}

.dark .woocommerce-checkout .group:hover .group-hover\:text-purple-600 {
  color: #a855f7;
}

.woocommerce-checkout .group:hover .group-hover\:text-orange-600 {
  color: #ea580c;
}

.dark .woocommerce-checkout .group:hover .group-hover\:text-orange-600 {
  color: #f97316;
}

/* Icon styling */
.woocommerce-checkout .w-6 {
  width: 1.5rem;
}

.woocommerce-checkout .h-6 {
  height: 1.5rem;
}

.woocommerce-checkout .mr-3 {
  margin-right: 0.75rem;
}

.woocommerce-checkout .text-blue-600 {
  color: #2563eb;
}

.dark .woocommerce-checkout .text-blue-600 {
  color: #3b82f6;
}

.woocommerce-checkout .text-green-600 {
  color: #16a34a;
}

.dark .woocommerce-checkout .text-green-600 {
  color: #22c55e;
}

.woocommerce-checkout .text-purple-600 {
  color: #9333ea;
}

.dark .woocommerce-checkout .text-purple-600 {
  color: #a855f7;
}

.woocommerce-checkout .text-orange-600 {
  color: #ea580c;
}

.dark .woocommerce-checkout .text-orange-600 {
  color: #f97316;
}

/* Heading styling */
.woocommerce-checkout .text-xl {
  font-size: 1.25rem;
}

.woocommerce-checkout .font-semibold {
  font-weight: 600;
}

.woocommerce-checkout .text-gray-900 {
  color: #111827;
}

.dark .woocommerce-checkout .text-gray-900 {
  color: #ffffff;
}

.woocommerce-checkout .mb-6 {
  margin-bottom: 1.5rem;
}

.woocommerce-checkout .flex {
  display: flex;
}

.woocommerce-checkout .items-center {
  align-items: center;
}

/* Space styling */
.woocommerce-checkout .space-y-6 > * + * {
  margin-top: 1.5rem;
}

.woocommerce-checkout .space-y-4 > * + * {
  margin-top: 1rem;
}

/* Sticky positioning */
.woocommerce-checkout .sticky {
  position: sticky;
  top: 1.5rem;
}

/* Order review card styling */
.woocommerce-checkout .text-center h2 {
  text-align: center;
}

.woocommerce-checkout .text-center .flex {
  justify-content: center;
}
