.product-type-simple {
  margin: 0;
  margin-block-start: 40px;
}

.flex-control-thumbs {
  margin-block-start: 20px;
}

.cart-hero-section {
  background-color: #fdf2e9;
  /* matches your homepage */
  padding: 100px 0 60px;
  text-align: center;
  color: #2c2c2c;
}

.cart-hero-section .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c2c2c;
}

.cart-hero-section .hero-subtitle {
  font-size: 1.25rem;
  color: #555;
  opacity: 0.9;
}

/* Cart Section */
.woocommerce-cart-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.cart-container {
  max-width: 1000px;
  margin: 0 auto;
}

.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.woocommerce-cart .actions .button {
  background-color: #2c3e50;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.woocommerce-cart .actions .button:hover {
  background-color: #1a242f;
}

/* Style the quantity input */
.p-qtn .quantity {
  display: inline-block;
  margin-right: 10px;
}

.p-qtn .quantity input.form-control {
  height: 50px;
  width: 120px;
  font-size: 20px;
  text-align: left;
  padding: 8px 10px;
}

.woocommerce-result-count {
  position: relative;
  right: 180px;
}

.orderby {
  padding: 12px 10px;
  padding-right: 20px;
  border-color: #70707094;
}

/* ========================
 Enhanced Sidebar Styles
 ======================== */

.shop-sidebar {
  padding: 30px;
  position: sticky;
  top: 20px;
  margin-bottom: 40px;
  border: 1px solid #B7B7B7;
}

.sidebar-widget {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #B7B7B7;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget-title {
  color: #2c3e50;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #3C2856;
}

/* Search Widget */
.woocommerce-product-search {
  position: relative;
  margin-bottom: 5px;
}

.woocommerce-product-search input[type="search"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s;
}

.woocommerce-product-search input[type="search"]:focus {
  border-color: #3C2856;
  outline: none;
  box-shadow: 0 0 0 2px rgba(60, 40, 86, 0.1);
}

.woocommerce-product-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #777;
  cursor: pointer;
}

/* Categories Widget */
.product-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-categories li {
  margin-bottom: 12px;
  position: relative;
}

.product-categories li:last-child {
  margin-bottom: 0;
}

.product-categories a {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  transition: all 0.2s ease;
}

.product-categories a:hover {
  color: #3C2856;
  padding-left: 8px;
}

.product-categories .count {
    color: #3c2856;
    font-size: 14px;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    margin-left: 5px;
}

/* Availability Widget */
.availability-filter {
  list-style: none;
  padding: 0;
  margin: 0;
}

.availability-filter li {
  margin-bottom: 10px;
}

.availability-filter a {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  display: block;
  padding: 8px 0;
  transition: all 0.2s ease;
}

.availability-filter a:hover {
  color: #3C2856;
  padding-left: 8px;
}

/* Popular Products Widget */
.popular-products {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-products li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #eee;
}

.popular-products li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-products img {
    height: 55px;
    margin-right: 10px;
    border-radius: 4px;
}

.popular-products .product-info {
  flex: 1;
}

.popular-products .product-title {
  display: block;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  transition: color 0.2s;
}

.popular-products a:hover .product-title {
  color: #3C2856;
}

.popular-products .price {
  display: block;
  font-size: 15px;
  color: #3C2856;
  font-weight: 600;
}

/* Tags Widget */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tagcloud a {
  display: inline-block;
  padding: 6px 12px;
  background: #f5f5f5;
  color: #555;
  font-size: 13px !important;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.tagcloud a:hover {
  background: #3C2856;
  color: #fff;
}

/* See All Link */
.see-all {
  margin-top: 15px;
}

.see-all a {
  display: inline-block;
  color: #3C2856;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.see-all a:hover {
  text-decoration: underline;
}


.attachment-woocommerce_thumbnail {
  width: 75px;
}

/* Sorting Spinner */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* ======================================================================================================================================================
Clean Billing Form Styling
====================================================================================================================================================== */

.checkout-billing-details-wrap {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.checkout-billing-details-wrap h4.title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #2c3e50;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
}

/* Form Field Layout */
.billing-fields-container,
.shipping-fields-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.half-width {
  flex: 1;
  min-width: calc(50% - 10px);
}

.form-field.full-width {
  flex: 1 1 100%;
}

/* Form Elements */
.form-row {
  margin: 0;
}

.woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
  color: #374151;
  line-height: 1.4;
}

.required::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}

/* Input Styling */
input.input-text,
textarea.input-text,
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

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

/* Enhanced Select Dropdown Styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 2h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 40px;
  cursor: pointer;
  position: relative;
}

select:hover {
  border-color: #9ca3af;
}

select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom dropdown arrow on focus */
select:focus {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233b82f6' d='M6 8L0 2h12z'/%3E%3C/svg%3E");
}

/* Style for select options */
select option {
  padding: 12px 16px;
  background-color: #fff;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  border: none;
  margin: 0;
}

select option:hover,
select option:focus {
  background-color: #f3f4f6;
  color: #1f2937;
}

select option:checked {
  background-color: #3b82f6;
  color: #fff;
  font-weight: 500;
}

select option:disabled {
  color: #9ca3af;
  background-color: #f9fafb;
  cursor: not-allowed;
}

/* Enhanced styling for country and state dropdowns */
#billing_country_field select,
#billing_state_field select,
#shipping_country_field select,
#shipping_state_field select {
  background-color: #fff;
  border: 2px solid #e5e7eb;
  font-weight: 500;
}

#billing_country_field select:focus,
#billing_state_field select:focus,
#shipping_country_field select:focus,
#shipping_state_field select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom styling for Select2 dropdowns (if WooCommerce uses Select2) */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 48px !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 6px !important;
  padding: 0 !important;
  background-color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 12px 16px !important;
  line-height: 24px !important;
  color: #374151 !important;
  font-size: 14px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #666 transparent transparent transparent !important;
  border-width: 6px 6px 0 6px !important;
  margin-top: -3px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #666 transparent !important;
  border-width: 0 6px 6px 6px !important;
}

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

/* Select2 Dropdown */
.select2-dropdown {
  border: 2px solid #3b82f6 !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  margin-top: 4px !important;
}

.select2-container--default .select2-results__option {
  display: block;
  padding: 12px 16px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #374151 !important;
  background-color: #fff !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

.select2-container--default .select2-results__option:last-child {
  border-bottom: none !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #3b82f6 !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #eff6ff !important;
  color: #1e40af !important;
  font-weight: 500 !important;
}

.select2-container--default .select2-results__option[aria-selected=true]:hover {
  background-color: #3b82f6 !important;
  color: #fff !important;
}

/* Search box in Select2 */
.select2-container--default .select2-search--dropdown .select2-search__field {
  padding: 8px 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  margin: 8px !important;
  width: calc(100% - 16px) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #3b82f6 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
}

/* Loading state */
.select2-container--default .select2-results__option--loading {
  color: #9ca3af !important;
  font-style: italic !important;
}

/* No results message */
.select2-container--default .select2-results__message {
  color: #6b7280 !important;
  font-style: italic !important;
  padding: 12px 16px !important;
}

/* Mobile optimizations for dropdowns */
@media (max-width: 768px) {
  select {
    font-size: 16px;
    /* Prevents zoom on iOS */
    padding: 14px 40px 14px 16px;
    height: 50px;
  }

  .select2-container--default .select2-selection--single {
    height: 50px !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 14px 16px !important;
    font-size: 16px !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
  }

  .select2-container--default .select2-results__option {
    padding: 14px 16px !important;
    font-size: 16px !important;
  }
}

/* Custom styling for specific dropdown types */
.woocommerce-billing-fields select,
.woocommerce-shipping-fields select {
  transition: all 0.15s ease-in-out;
}

/* Enhanced focus ring for better accessibility */
select:focus-visible {
  /* outline: 2px solid #3b82f6; */
  outline-offset: 2px;
}

/* Improved disabled state */
select:disabled {
  background-color: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

select:disabled option {
  color: #9ca3af;
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox Styling */
input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  transform: scale(1.1);
}

.custom-control-label {
  font-weight: 500;
  cursor: pointer;
}

/* Shipping Address Section */
.shipping-address-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e9ecef;
}

.checkout-box {
  margin-bottom: 20px;
}

.shipping_address {
  margin-top: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

/* Order Notes Section */
.order-notes-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

#order_comments_field textarea {
  min-height: 120px;
}

/* Placeholder Styling */
input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  font-size: 14px;
  opacity: 1;
}

/* Error States */
.woocommerce-invalid input.input-text,
.woocommerce-invalid textarea.input-text,
.woocommerce-invalid select {
  border-color: #dc3545;
}

.woocommerce-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
}

/* Order Details Styling */
.checkout-order-details-wrap {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.checkout-order-details-wrap h4.title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #2c3e50;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
}

/* Table Styling */
.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.shop_table th,
.shop_table td {
  padding: 15px 10px;
  border-bottom: 1px solid #e9ecef;
  text-align: left;
}

.shop_table th {
  font-weight: 600;
  color: #374151;
  background-color: #f8f9fa;
}

.text-right {
  text-align: right !important;
}

/* Payment Methods */
.shop-payment-method .card {
  border: 1px solid #e9ecef;
  border-radius: 6px;
  margin-bottom: 10px;
}

.shop-payment-method .card-header {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
}

.shop-payment-method .card-body {
  padding: 20px;
}

/* Place Order Button */
.btn-place-order {
  width: 100%;
  padding: 15px 30px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.btn-place-order:hover {
  background-color: #2563eb;
}

/* Privacy Policy Text */
.p-text {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.5;
}

.p-text a {
  color: #3b82f6;
  text-decoration: none;
}

.p-text a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {

  .checkout-billing-details-wrap,
  .checkout-order-details-wrap {
    padding: 20px;
    margin-bottom: 30px;
  }

  .form-field.half-width {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .billing-fields-container,
  .shipping-fields-container {
    gap: 15px;
  }

  .checkout-order-details-wrap {
    position: static;
  }
}

@media (max-width: 480px) {

  .checkout-billing-details-wrap h4.title,
  .checkout-order-details-wrap h4.title {
    font-size: 20px;
  }

  input.input-text,
  textarea.input-text,
  select {
    padding: 10px 14px;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }
}

/* Remove problematic absolute positioning */
#billing_last_name_field,
#billing_country_field {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
}

/* Ensure proper form flow */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: contents;
}


/* ======================================================================================================================================================
Single Product Page Styling
====================================================================================================================================================== */

/* Product Image Zoom Styles */
.product-image-container {
  position: relative;
}

.main-product-image {
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 8px;
}

.zoom-container {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  /* height: 500px; */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.zoom-image {
  max-width: 100%;
  /* max-height: 100%; */
  object-fit: contain;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

/* Thumbnail Styles */
.color-select {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnail-link {
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.thumbnail-link:hover,
.thumbnail-link.active {
  border-color: #007cba;
}

.single-item-color {
  width: 80px;
  height: 80px;
  overflow: hidden;
}

.single-item-color img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reviews Summary Styles */
.reviews-summary {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.rating-overview {
  text-align: center;
}

.average-rating .rating-number {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  display: block;
}

.average-rating .rating-stars {
  margin: 10px 0;
}

.rating-text {
  color: #666;
  margin: 10px 0 0 0;
}

.rating-breakdown {
  padding-left: 20px;
}

.rating-bar {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 15px;
}

.rating-label {
  min-width: 50px;
  font-size: 14px;
  color: #666;
}

.progress {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #ffc107;
  transition: width 0.3s ease;
}

.rating-count {
  min-width: 30px;
  text-align: right;
  font-size: 14px;
  color: #666;
}

/* Custom Review Styles */
.custom-reviews-wrapper {
  max-width: 100%;
}

.reviews-title {
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: bold;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

.reviews-list {
  margin-bottom: 40px;
}

.single-review {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  background: #fff;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reviewer-avatar img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.reviewer-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reviewer-name {
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-rating .star {
  color: #ddd;
  font-size: 16px;
}

.review-rating .star.filled {
  color: #ffc107;
}

.review-date {
  color: #666;
  font-size: 14px;
}

.review-content {
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

.no-reviews {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-style: italic;
}

/* Review Form Styles */
#add-review-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #eee;
}

#add-review-section h3 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: bold;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007cba;
}

.custom-star-rating {
  margin: 10px 0;
}

.star-input-wrapper {
  display: flex;
  gap: 5px;
}

.rating-star {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.rating-star:hover,
.rating-star.active {
  color: #ffc107;
}

#submit-review-btn {
  background: #007cba;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease;
}

#submit-review-btn:hover {
  background: #005a87;
}

#submit-review-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.required {
  color: red;
}

/* Message Styles */
#review-messages {
  margin-bottom: 20px;
}

.review-message {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.review-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.review-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Add to Cart Success Message */
.cart-message {
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 4px;
  display: none;
}

.cart-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.cart-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .zoom-container {
    height: 300px;
  }

  .review-header {
    flex-direction: column;
    gap: 15px;
  }

  .reviewer-info {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .rating-breakdown {
    padding-left: 0;
    margin-top: 20px;
  }
}

.verified-badge {
  background: #28a745;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: normal;
}

.rating-text {
  margin-left: 5px;
  color: #666;
  font-size: 14px;
}

/* Reviews Slider Styles */
.reviews-slider-container {
  position: relative;
  margin-bottom: 40px;
}

.reviews-swiper {
  height: 400px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.reviews-swiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
  width: 50% !important;
  /* Two slides per view */
  padding: 0 10px;
}

.reviews-swiper .single-review {
  width: 100%;
  height: 100%;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 25px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reviews-swiper .single-review:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
  .reviews-swiper {
    height: 350px;
  }

  .reviews-swiper .swiper-slide {
    width: 100% !important;
    /* One slide per view on mobile */
    padding: 0 5px;
  }

  .reviews-swiper .single-review {
    padding: 20px;
  }

  .woocommerce-result-count {
    right: 58px;
  }
}

@media (max-width: 480px) {
  .reviews-swiper {
    height: 320px;
  }

  .reviews-swiper .single-review {
    padding: 15px;
  }

  .woocommerce-result-count {
    right: -5px;
    margin-block-end: 20px;
  }
}

/* Animation for slide transitions */
.reviews-swiper .swiper-slide-active .single-review {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state for slider */
.reviews-swiper.swiper-loading {
  opacity: 0.5;
}

.reviews-swiper.swiper-loading::after {
  content: 'Loading reviews...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: #666;
  z-index: 10;
}

/* Additional Custom Styles for Enhanced User Experience */

/* Form Validation Styles */
.form-control.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-control.success {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.success-message {
  color: #10b981;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
  .dolce-vitale-auth-container {
    padding: 0.5rem;
  }

  .auth-form-container {
    padding: 1rem;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .form-control {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
  }

  .input-icon {
    left: 0.75rem;
  }

  .password-toggle {
    right: 0.75rem;
  }
}



/* Print Styles */
@media print {

  .dolce-vitale-auth-container,
  .dolce-vitale-hero,
  .dolce-vitale-account-wrapper {
    box-shadow: none;
    background: white !important;
    color: black !important;
  }

  .btn,
  .auth-tab,
  .password-toggle {
    display: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .form-control {
    border-width: 3px;
  }

  .btn {
    border: 2px solid currentColor;
  }

  .auth-tab.active::after {
    height: 4px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ======================================================================================================================================================
Cart Page Styling
====================================================================================================================================================== */

/* Add to your theme's CSS */
button[name="update_cart"] {
  position: relative;
  transition: opacity 0.3s ease;
}

button[name="update_cart"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading-icon {
  display: none;
}

button[name="update_cart"].loading .button-text {
  display: none;
}

button[name="update_cart"].loading .loading-icon {
  display: inline-block;
}

button[name="update_cart"].loading .loading-icon::after {
  content: "⋯";
  display: inline-block;
  animation: dotAnimation 1.5s infinite steps(1);
}

@keyframes dotAnimation {
  0% {
    content: "⋯";
  }

  25% {
    content: "·⋯";
  }

  50% {
    content: "··⋮";
  }

  75% {
    content: "···";
  }
}

/* === Quantity pill control (applies to cart and single) === */
.woocommerce .product-quantity .quantity,
.woocommerce-cart .quantity,
.product-modal .quantity,
.quantity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Remove native number spinners */
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity input.qty[type=number] {
  -moz-appearance: textfield;
}

/* Capsule */
.quantity.qty-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 6px;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #fff;
}

/* Buttons */
.quantity.qty-enhanced .qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.quantity.qty-enhanced .qty-btn:hover {
  background: #f7f7f9;
  color: #111827;
}

.quantity.qty-enhanced .qty-btn:active {
  transform: translateY(1px);
}

.quantity.qty-enhanced .qty-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Value input */
.quantity.qty-enhanced .qty {
  width: 56px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
}

/* Vertical dividers */
.quantity.qty-enhanced .divider {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
}

/* Scope cart layout tweaks to cart only to avoid conflicts */
.woocommerce-cart .quantity.qty-enhanced {
  height: 40px;
}

.woocommerce-cart .quantity.qty-enhanced .qty-btn {
  width: 32px;
  height: 32px;
}

.quantity.qty-enhanced:focus-within {
  outline: 3px solid rgba(60, 40, 86, .15);
  outline-offset: 0;
}

/* Table alignment */
.woocommerce .shop_table td.product-quantity .quantity.qty-enhanced {
  margin: 0 auto;
}

@media (max-width: 480px) {
  .quantity.qty-enhanced {
    height: 40px;
  }

  .quantity.qty-enhanced .qty-btn {
    width: 34px;
    height: 34px;
  }

  .quantity.qty-enhanced .divider {
    height: 20px;
  }
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  min-width: 120px;
  justify-content: center;
}

.share-btn i {
  font-size: 16px;
}

.copy-link-container {
  max-width: 400px;
  margin: 0 auto;
}

#productLink {
  background-color: #f8f9fa;
  border-right: none;
}

#copyLinkBtn {
  white-space: nowrap;
}

#copyMessage {
  text-align: center;
  font-size: 14px;
}

/* Add this CSS to fix any styling issues with Razorpay popup */

/* Ensure Razorpay modal appears above everything */
.razorpay-container {
  z-index: 999999 !important;
}

/* Fix any overlay issues */
#razorpay-overlay {
  z-index: 999998 !important;
}

/* Ensure checkout form doesn't interfere */
.woocommerce-checkout-custom-theme .checkout.woocommerce-checkout {
  position: relative;
  z-index: 1;
}

/* Fix payment method selection */
.shop-payment-method .card {
  margin-bottom: 10px;
}

.shop-payment-method input[type="radio"] {
  margin-right: 10px;
}

/* Ensure place order button is clickable */
.btn-place-order {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Enhanced validation styles for WooCommerce Razorpay checkout */

.woocommerce-invalid {
  border-color: #e2401c !important;
  box-shadow: 0 0 0 1px #e2401c !important;
}

.woocommerce-invalid-required-field {
  background-color: #fef7f7 !important;
}

.woocommerce-error-message {
  color: #e2401c;
  font-size: 0.875em;
  margin-top: 5px;
  display: block;
  font-weight: 500;
}

.woocommerce-notices-wrapper {
  margin-bottom: 20px;
}

.woocommerce-error {
  background-color: #fef7f7;
  border: 1px solid #e2401c;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 20px;
  color: #e2401c;
}

.woocommerce-error ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-error li {
  margin-bottom: 5px;
}

.woocommerce-error li:last-child {
  margin-bottom: 0;
}

/* Loading state styles */
.checkout.processing {
  opacity: 0.7;
  pointer-events: none;
}

#place_order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form field validation indicators */
.form-field.woocommerce-invalid label {
  color: #e2401c;
}

.form-field.woocommerce-invalid input,
.form-field.woocommerce-invalid select,
.form-field.woocommerce-invalid textarea {
  border-color: #e2401c;
  box-shadow: 0 0 0 1px #e2401c;
}

/* Success state */
.woocommerce-valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 1px #28a745 !important;
}

/* Focus states for better accessibility */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.form-field.woocommerce-invalid input:focus,
.form-field.woocommerce-invalid select:focus,
.form-field.woocommerce-invalid textarea:focus {
  border-color: #e2401c;
  box-shadow: 0 0 0 2px rgba(226, 64, 28, 0.2);
}


/* ********* 8/01/2026 ********* */
.woocommerce-info {
	border-top-color: #411911;
}
.woocommerce-info::before {
    color: #411911;
}
