/* -----------------------------------------
Shop Area CSS
----------------------------------------- */
.shop-area .product-default {
  transform: none !important;
  padding-bottom: 15px;
  background: #fafafa;
}
.shop-area .product-default .product-title {
  max-width: 100%;
}

.shopping-area .quantity-input {
  max-width: 150px;
  display: flex;
  align-items: center;
}

.shopping-area .quantity-input input {
  width: 30px;
  height: 30px;
  padding: 0 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  border-left: none;
  border-right: none;
}

.shopping-area .quantity-input .quantity-up {
  width: 30px;
  height: 30px;
  padding: 0 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  cursor: pointer;
}

.shopping-area .quantity-input .quantity-down {
  width: 30px;
  height: 30px;
  padding: 0 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  cursor: pointer;
}

.shopping-area.cart tbody td:first-child {
  -webkit-padding-start: 20px;
  padding-inline-start: 20px;
}

.shopping-area.cart .table-heading .first {
  -webkit-padding-start: 20px;
  padding-inline-start: 20px;
}

/* Stock Overlay */
.shop-area .stock-overlay{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--color-primary-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 6;
  pointer-events: none;
}

.shop-area .stock-overlay span{
  padding: 10px 20px;
  color: var(--color-white);
  background-color: var(--color-primary);
  width: fit-content;
}

/* Product Overlay */
.shop-area .product-default .product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5%;
  background-color: rgba(var(--color-primary-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
  z-index: 5;
}

.shop-area .product-default .product-overlay a:nth-child(1) {
  margin-right: 10px;
}

.shop-area .product-default .product-overlay a:nth-child(2) {
  margin-right: 10px;
}

.shop-area .product-default .product-overlay a:nth-child(3) {
  margin-right: 10px;
}

.shop-area .product-default:hover .product-overlay {
  visibility: visible;
  opacity: 1;
  height: 100%;
}

.shop-area .product-default:hover .product-overlay a {
  transform: translateY(0);
  opacity: 1;
}

/* Enhanced Product Cards */
.product-default {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-default:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-default .product-img {
  position: relative;
  overflow: hidden;
}

.product-default .product-img img {
  transition: transform 0.3s ease;
}

.product-default:hover .product-img img {
  transform: scale(1.05);
}

/* Product Badges - Improved Layout */
.product-badge {
  position: absolute;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  z-index: 10;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  pointer-events: none; /* Prevent interference with product interactions */
}

/* First badge (highest priority) - Top Left */
.product-badge:first-child {
  top: 8px;
  left: 8px;
}

/* Second badge (lower priority) - Top Right */
.product-badge:nth-child(2) {
  top: 8px;
  right: 8px;
  left: auto;
}

/* Specific badge styles */
.product-badge.sale {
  background: linear-gradient(45deg, #ff4757, #ff3742);
}

.product-badge.new {
  background: linear-gradient(45deg, #2ed573, #1e90ff);
}

.product-badge.featured {
  background: linear-gradient(45deg, #ffa502, #ff6348);
}

.product-badge.digital {
  background: linear-gradient(45deg, #3742fa, #5f27cd);
}

/* Alternative: Single badge with combined info */
.product-badge.combined {
  background: linear-gradient(45deg, #ff4757, #ff3742);
  top: 8px;
  left: 8px;
  font-size: 9px;
  padding: 4px 8px;
  max-width: 80px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover effect for badges */
.product-badge:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Badge animations */
@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.product-badge.sale {
  animation: badgePulse 2s infinite;
}

.product-badge.new {
  animation: badgePulse 2s infinite 0.5s;
}


/* Product Stats */
.product-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
  justify-content: center;
}

.product-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Filter Tags */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.filter-tag {
  background: var(--color-primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
}

.filter-tag:hover {
  background: #0056b3;
}

.filter-tag .remove {
  cursor: pointer;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  transition: all 0.3s;
}

.filter-tag .remove:hover {
  background: rgba(255,255,255,0.2);
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
}

.view-toggle .btn {
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  background: white;
  color: #666;
  transition: all 0.3s;
  border-radius: 8px;
}

.view-toggle .btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.view-toggle .btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* Product List View */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-list .product-item {
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.product-list .product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-list .product-img {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  position: relative;
}

.product-list .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-list .product-details {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-list .product-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-list .product-description {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.product-list .product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-list .product-actions {
  display: flex;
  gap: 10px;
}

/* Quick View Modal */
.quick-view-modal .modal-body {
  padding: 30px;
}

.quick-view-gallery {
  position: relative;
  margin-bottom: 20px;
}

.quick-view-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.quick-view-details .product-title {
  color: var(--color-primary);
  font-weight: bold;
}

.quick-view-details .product-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

/* Enhanced Sidebar */
.widget-area .widget {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.widget-area .widget .title {
  background: #f8f9fa;
  padding: 15px 20px;
  margin: 0;
  border-bottom: 1px solid #e9ecef;
}

.widget-area .accordion-button {
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 600;
  color: #333;
}

.widget-area .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--color-primary);
}

.widget-area .accordion-body {
  padding: 20px;
}

/* Custom Radio Buttons */
.custom-radio li {
  margin-bottom: 10px;
}

.custom-radio .input-radio {
  display: none;
}

.custom-radio .form-radio-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.custom-radio .form-radio-label:hover {
  background: #f8f9fa;
  border-color: #e9ecef;
}

.custom-radio .input-radio:checked + .form-radio-label {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.custom-radio .qty {
  font-size: 12px;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-list .product-item {
    flex-direction: column;
  }

  .product-list .product-img {
    width: 100%;
    height: 200px;
  }

  .view-toggle {
    justify-content: center;
    margin-bottom: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .filter-tags {
    padding: 10px;
  }

  .product-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-list .product-actions {
    flex-direction: column;
  }

  .quick-view-details .product-actions .row {
    flex-direction: column;
  }
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Enhanced Pagination */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 2px;
  border: 1px solid #e9ecef;
  color: var(--color-primary);
}

.pagination .page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.pagination .page-link:hover {
  background-color: #f8f9fa;
  border-color: var(--color-primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #666;
  margin-bottom: 10px;
}

.empty-state p {
  color: #999;
  margin-bottom: 30px;
}

/* Shop Single Area Styles */
.shop-single-area .btn-groups {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.shop-single-area .shop-single-gallery {
  position: relative;
}

.shop-single-area .shop-single-gallery .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.shop-single-area .shop-single-gallery .slider-btn:hover {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shop-single-area .shop-single-gallery .slider-btn.slider-btn-prev {
  left: 10px;
}

.shop-single-area .shop-single-gallery .slider-btn.slider-btn-next {
  right: 10px;
}

.shop-single-area .quantity-input {
  display: flex;
  align-items: center;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
}

.shop-single-area .quantity-input input {
  width: 60px;
  height: 40px;
  padding: 0 10px;
  text-align: center;
  border: none;
  outline: none;
}

.shop-single-area .quantity-input .quantity-up,
.shop-single-area .quantity-input .quantity-down {
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.shop-single-area .quantity-input .quantity-up:hover,
.shop-single-area .quantity-input .quantity-down:hover {
  background: var(--color-primary);
  color: white;
}

.shop-single-area .shop-thumb {
  margin-top: 20px;
}

.shop-single-area .shop-thumbnails .thumbnail-img {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s;
}

.shop-single-area .shop-thumbnails .thumbnail-img:hover,
.shop-single-area .shop-thumbnails .thumbnail-img.active {
  border-color: var(--color-primary);
}

.shop-single-area .shop-thumbnails .thumbnail-img img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.shop-single-area .product-single-details .product-desc p:last-child {
  margin-bottom: 0;
}

.shop-single-area .product-single-details .progress {
  height: 8px;
  border-radius: 4px;
  background: #f8f9fa;
}

.shop-single-area .product-single-details .progress .progress-bar {
  background: var(--color-primary);
  border-radius: 4px;
}

.shop-single-area .quantity-input {
  max-width: 150px;
}

.shop-single-area .quantity-input input {
  width: 50px;
  height: 40px;
  padding: 0 10px;
  text-align: center;
  border: 1px solid #e5e5e5;
  border-left: none;
  border-right: none;
}

.shop-single-area .quantity-input .quantity-up,
.shop-single-area .quantity-input .quantity-down {
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-single-area .quantity-input .quantity-up {
  border-radius: 6px 0 0 6px;
}

.shop-single-area .quantity-input .quantity-down {
  border-radius: 0 6px 6px 0;
}

.shop-single-area .quantity-input input {
  border-radius: 0;
}

.shop-single-area .author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.shop-single-area .reviews .author:not(:last-child) {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 20px;
}

.shop-single-area .author .image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.shop-single-area .author .image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-single-area .shop-review-form .form-group ul.rating li {
  display: inline-block;
  margin-right: 5px;
}

.shop-single-area .shop-review-form .form-group ul.rating li:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #ffc107;
  margin: 0 auto;
}

.shop-single-area .shop-review-form .form-group ul.rating li:last-child:after {
  border-bottom-color: #e9ecef;
}

.shop-single-area .shop-review-form .form-group ul.rating li:hover span {
  color: #ffc107;
}

.shop-single-area .product-desc ul {
  list-style: none;
  padding-left: 0;
}

.shop-single-area .product-desc ul li {
  padding: 5px 0;
  border-bottom: 1px solid #f8f9fa;
}

.shop-single-area .product-desc ul li:before {
  content: '✓';
  color: var(--color-primary);
  font-weight: bold;
  margin-right: 10px;
}

/* Hide badges when using combined mode */
.product-badge.hidden {
  display: none !important;
}
