/* modern_products.css - Redesigned Products Catalog styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --primary-color: #F68B1E;
  --primary-hover: #e07b12;
  --secondary-color: #2E7D32;
  --secondary-hover: #1b5e20;
  --bg-light: #F9FAFB;
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --border-light: #E5E7EB;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

.modern-products-page {
  font-family: var(--font-sans) !important;
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 40px 0;
}

/* Beautiful Hero Banner */
.catalog-hero {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.85) 0%, rgba(27, 94, 32, 0.95) 100%), 
              url('../images/banners/shop-banner.jpeg') no-repeat center center / cover;
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(27, 94, 32, 0.15);
  position: relative;
  overflow: hidden;
}

.catalog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(246, 139, 30, 0.15), transparent);
  pointer-events: none;
}

.catalog-hero h1 {
  font-family: var(--font-serif) !important;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: #ffffff !important;
}

.catalog-hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  color: #f3f4f6;
  line-height: 1.6;
}

/* Modern Breadcrumbs inside Hero */
.catalog-breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.catalog-breadcrumbs a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.catalog-breadcrumbs a:hover {
  opacity: 1;
  text-decoration: underline;
}

.catalog-breadcrumbs span {
  opacity: 0.6;
}

/* Filter Dashboard */
.filter-dashboard {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-tab-btn {
  background: #f3f4f6;
  color: var(--text-dark) !important;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
}

.category-tab-btn:hover {
  background: #e5e7eb;
  color: var(--text-dark) !important;
  transform: translateY(-1px);
}

.category-tab-btn.active {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

/* Search and Sort Controls */
.controls-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
}

.search-box-wrapper {
  position: relative;
  min-width: 240px;
  flex-grow: 1;
  max-width: 320px;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  outline: none;
  background-color: #ffffff;
  color: var(--text-dark);
  transition: all 0.3s;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(246, 139, 30, 0.15);
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.search-btn:hover {
  color: var(--primary-color);
}

.sort-wrapper {
  min-width: 160px;
}

.sort-select {
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  outline: none;
  background-color: #ffffff;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  transition: all 0.3s;
}

.sort-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(246, 139, 30, 0.15);
}

.clear-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px dashed var(--text-muted);
  color: var(--text-muted) !important;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.clear-filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
  background-color: rgba(246, 139, 30, 0.05);
}

/* Results Info */
.results-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Dynamic Grid Layout */
.modern-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 45px;
}

/* Modern Card Design */
.modern-product-card {
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
}

.modern-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(246, 139, 30, 0.2);
}

/* Badges */
.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-color);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 4px 8px rgba(246, 139, 30, 0.2);
  pointer-events: none;
}

.card-badge.sale {
  background: #EF4444;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

.card-wishlist {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: var(--text-muted);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.card-wishlist:hover {
  background: #ffffff;
  color: #EF4444;
  transform: scale(1.1);
}

/* Image section */
.card-image-box {
  position: relative;
  padding-top: 90%; /* Aspect ratio */
  overflow: hidden;
  background-color: #F9FAFB;
}

.card-image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-product-card:hover .card-image-box img {
  transform: scale(1.06);
}

/* Content section */
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-color);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  line-height: 1.4;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--primary-color);
}

/* Rating Stars */
.card-rating {
  display: flex;
  gap: 2px;
  color: #FBBF24;
  font-size: 12px;
  margin-bottom: 12px;
}

.card-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Price & Button wrapper */
.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.card-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
}

.card-price-slashed {
  font-size: 14px;
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Add to Cart button */
.add-to-cart-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-shadow: 0 4px 10px rgba(246, 139, 30, 0.15);
}

.add-to-cart-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(246, 139, 30, 0.25);
  color: #ffffff;
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* No products empty state */
.empty-catalog-state {
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  grid-column: 1 / -1;
}

.empty-catalog-state i {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}

.empty-catalog-state h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.empty-catalog-state p {
  color: var(--text-muted);
  margin-bottom: 25px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Redesigned Pagination */
.modern-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.modern-pagination ul {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.modern-pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text-dark) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.modern-pagination li a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
  background: rgba(246, 139, 30, 0.05);
  transform: translateY(-2px);
}

.modern-pagination li.present_page a {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 10px rgba(246, 139, 30, 0.25);
}

.modern-pagination li.present_page a:hover {
  color: #ffffff !important;
  transform: none;
}

.modern-pagination li.next_prev a {
  font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .controls-group {
    justify-content: flex-start;
  }
  .search-box-wrapper {
    max-width: none;
  }
  .catalog-hero {
    padding: 40px 20px;
  }
  .catalog-hero h1 {
    font-size: 32px;
  }
}

/* Single Product Detail Page Styling */
.single-product-content {
  font-family: var(--font-sans) !important;
  background-color: var(--bg-light);
  padding: 40px 0;
}

.single-product-content-container {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.easyzoom img {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
  transition: transform 0.3s;
}

.easyzoom img:hover {
  transform: scale(1.02);
}

.product-feature-details .product-title {
  font-family: var(--font-sans) !important;
  font-weight: 800;
  font-size: 32px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.product-rating h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 125, 50, 0.1);
  color: var(--secondary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.rating-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 10px;
  transition: color 0.2s;
}

.rating-link:hover {
  color: var(--primary-color);
}

.product-price {
  margin-bottom: 25px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.product-price .discounted-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
}

.product-price .main-price {
  font-size: 18px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.cart-buttons .buy {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 40px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(246, 139, 30, 0.15);
  text-transform: uppercase;
}

.cart-buttons .buy:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(246, 139, 30, 0.25);
}

.single-product-action-btn .add-wishlist {
  background: none !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-dark) !important;
  padding: 10px 24px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.single-product-action-btn .add-wishlist:hover {
  border-color: #EF4444 !important;
  color: #EF4444 !important;
  background-color: rgba(239, 68, 68, 0.02) !important;
}

/* Related products / Tabs styling overrides */
.single-product-tab-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-tabs .nav-link {
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 24px;
  transition: all 0.2s;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color) !important;
  border-bottom-color: var(--primary-color) !important;
}

/* Custom Related Products Carousel Layout */
.related-product-carousel-section {
  padding: 60px 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
}

.carousel-section-header {
  margin-bottom: 24px;
}

.carousel-section-header h3 {
  font-family: var(--font-sans) !important;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px 0;
  text-align: left;
}

.carousel-divider {
  border: 0;
  height: 1px;
  background: var(--border-light);
  margin: 0;
}

.carousel-container-relative {
  position: relative;
  margin: 0 -10px;
}

/* Products Row */
.carousel-products-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 15px 10px;
  margin-bottom: 0;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-products-row::-webkit-scrollbar {
  display: none;
}

/* Individual Product Card */
.carousel-product-card-wrapper {
  display: block;
  width: 230px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.carousel-product-card {
  width: 230px;
  height: 340px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
  text-align: left;
}

.carousel-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(246, 139, 30, 0.2);
}

/* Card Image Area (55-60% of card height) */
.carousel-card-image {
  position: relative;
  height: 190px; /* ~56% of 340px */
  overflow: hidden;
  background-color: #F9FAFB;
}

.carousel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-product-card:hover .carousel-card-image img {
  transform: scale(1.05);
}

/* Card Content Area */
.carousel-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.carousel-product-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-color);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.carousel-product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 8px 0;
  line-height: 1.3;
  height: 36px; /* max 2 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.carousel-product-name a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.carousel-product-name a:hover {
  color: var(--primary-color);
}

/* Price Block (two lines) */
.carousel-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.carousel-price-current {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.carousel-price-original-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-price-original {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--text-muted);
}

.carousel-discount-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

/* Buy Button */
.carousel-buy-btn {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.carousel-buy-btn:hover {
  background: var(--primary-hover) !important;
}

/* Navigation Buttons (centered vertically) */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-light) !important;
  border-radius: 50% !important;
  color: var(--text-dark) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.8;
}

.carousel-nav-btn:hover {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  opacity: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn.btn-prev {
  left: -22px;
}

.carousel-nav-btn.btn-next {
  right: -22px;
}

/* Mobile Dimensions Overrides */
@media (max-width: 768px) {
  .carousel-product-card-wrapper {
    width: 170px;
  }
  
  .carousel-product-card {
    width: 170px;
    height: 270px;
    border-radius: 12px;
  }
  
  .carousel-card-image {
    height: 150px; /* ~55% of 270px */
  }
  
  .carousel-card-content {
    padding: 10px;
  }
  
  .carousel-product-name {
    font-size: 12px;
    height: 32px;
  }
  
  .carousel-price-current {
    font-size: 15px;
  }
  
  .carousel-price-original {
    font-size: 11px;
  }
  
  .carousel-nav-btn {
    width: 36px;
    height: 36px;
  }
  
  .carousel-nav-btn.btn-prev {
    left: -10px;
  }
  
  .carousel-nav-btn.btn-next {
    right: -10px;
  }
}



/* Shopping Cart Page Design Overrides */
.cart-page-wrapper {
  font-family: var(--font-sans) !important;
  background-color: var(--bg-light);
  padding: 50px 0;
}

.cart-table-container {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 40px;
}

.cart-table-container h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin: 40px 0;
}

.cart-table-wrapper table {
  border-collapse: separate;
  border-spacing: 0 12px;
  width: 100%;
}

.cart-table-wrapper th {
  background: #f8f9fa;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  border: none;
  padding: 16px 20px;
}

.cart-table-wrapper th:first-child {
  border-radius: 12px 0 0 12px;
}

.cart-table-wrapper th:last-child {
  border-radius: 0 12px 12px 0;
}

.cart-table-wrapper td {
  padding: 20px;
  vertical-align: middle;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.cart-table-wrapper td:first-child {
  border-left: 1px solid var(--border-light);
  border-radius: 16px 0 0 16px;
}

.cart-table-wrapper td:last-child {
  border-right: 1px solid var(--border-light);
  border-radius: 0 16px 16px 0;
}

.cart-table-wrapper tr:hover td {
  background-color: #fafbfc;
  border-color: rgba(246, 139, 30, 0.2);
}

.cart-table-wrapper .pro-thumbnail a {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.cart-table-wrapper .pro-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-table-wrapper .pro-title a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
}

.cart-table-wrapper .pro-title a:hover {
  color: var(--primary-color);
}

.cart-table-wrapper .pro-price span {
  font-weight: 700;
  color: var(--text-dark);
}

.cart-table-wrapper .pro-quantity input {
  max-width: 80px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border 0.2s;
}

.cart-table-wrapper .pro-quantity input:focus {
  border-color: var(--primary-color);
}

.cart-table-wrapper .pro-subtotal span {
  font-weight: 800;
  color: var(--secondary-color);
  font-size: 16px;
}

.cart-table-wrapper button[type="submit"] {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-table-wrapper button[type="submit"]:hover {
  background: #EF4444;
  color: #ffffff;
  transform: scale(1.1);
}

/* Cart Summary block styling */
.cart-summary-wrapper {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cart-total-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.cart-total-info h2 span {
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-left: 8px;
}

.cart-action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cart-action-buttons a {
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-continue-shop {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-dark) !important;
}

.btn-continue-shop:hover {
  background: rgba(0,0,0,0.02);
  border-color: var(--text-dark);
}

.btn-checkout {
  background: var(--primary-color);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(246, 139, 30, 0.2);
}

.btn-checkout:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(246, 139, 30, 0.3);
}

@media (max-width: 768px) {
  .cart-summary-wrapper {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cart-action-buttons {
    justify-content: center;
  }
}
