/* N.honest Supermarket Styles */

/* Navbar Profile Styles */
.navbar-profile {
    position: relative;
    cursor: pointer;
}

.navbar-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bs-primary);
}

.navbar-profile .profile-name {
    display: none;
    margin-left: 8px;
    font-weight: 500;
}

.navbar-profile:hover .profile-name {
    display: inline-block;
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 8px 0;
    margin-top: 8px;
    z-index: 1000;
    display: none;
}

.navbar-profile:hover .profile-dropdown {
    display: block;
}

.profile-dropdown .profile-header {
    padding: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.profile-dropdown .profile-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bs-primary);
}

.profile-dropdown .profile-header .profile-info {
    margin-left: 12px;
}

.profile-dropdown .profile-header h6 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.profile-dropdown .profile-header small {
    color: #666;
    font-size: 12px;
}

.profile-dropdown .dropdown-item {
    padding: 8px 12px;
    color: #333;
    transition: background-color 0.2s;
}

.profile-dropdown .dropdown-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
}

.profile-dropdown .dropdown-item i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.profile-dropdown .dropdown-divider {
    margin: 4px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Cart styles */
#offcanvasCart {
  width: 400px;
  max-width: 100%;
}

.cart-item {
  transition: all 0.3s ease;
}

.cart-item:hover {
  background-color: rgba(0,0,0,0.02);
}

.remove-item {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.remove-item:hover {
  opacity: 1;
}

.quantity-control button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Payment method selection */
.payment-method-option {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.payment-method-option:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.payment-method-option.selected {
  border-color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Product Grid Styles */
.product-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.08) !important;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.product-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

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

.product-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
  max-height: 2.5rem;
}

.product-category {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-price {
  font-weight: 700;
  color: #212529;
  font-size: 1.1rem;
}

/* Product Variants Display */
.product-variants {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(0,0,0,0.1);
}

.variant-item {
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.variant-item:hover {
  border-color: #6c757d;
  background-color: #f8f9fa;
}

.variant-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.variant-price {
  font-weight: 600;
  color: #212529;
}

/* Quick View Modal Enhancements */
.modal-dialog.modal-lg {
  max-width: 900px;
}

.product-image-container {
  height: 400px;
  background-color: #f8f9fa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px solid #e9ecef;
}

.product-image-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-thumbnails {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}

.product-thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnail-item {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  margin: 0 0.5rem;
}

.thumbnail-item:hover {
  border-color: var(--bs-primary);
  transform: translateY(-2px);
}

.thumbnail-item.active {
  border-color: var(--bs-primary);
}

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

/* Variant Selection Styles */
.variant-group {
  margin-bottom: 1.5rem;
}

.variant-group label {
  font-weight: 600;
  color: #344767;
  margin-bottom: 0.75rem;
}

.variant-group .btn-group {
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.variant-group .btn {
  border-radius: 8px !important;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid #dee2e6;
  background-color: white;
  color: #344767;
  transition: all 0.2s ease;
}

.variant-group .btn:hover {
  background-color: #f8f9fa;
  border-color: #cbd3da;
  transform: translateY(-1px);
}

.variant-group .btn.active {
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
  box-shadow: 0 4px 6px rgba(var(--bs-primary-rgb), 0.2);
}

/* Enhanced Quantity Selector */
.quantity-selector {
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
  display: flex;
  align-items: center;
}

.btn-quantity {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  color: #344767;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-quantity:hover {
  background-color: #e9ecef;
  color: var(--bs-primary);
}

.btn-quantity:disabled {
  color: #adb5bd;
  cursor: not-allowed;
}

.product-quantity {
  width: 64px;
  height: 48px;
  border: none;
  background-color: white;
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: #344767;
  -moz-appearance: textfield;
}

.product-quantity::-webkit-outer-spin-button,
.product-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-quantity:focus {
  outline: none;
  box-shadow: none;
}

/* Variant Price Table */
.variant-price-table {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.variant-price-table h6 {
  color: #344767;
  margin-bottom: 1rem;
}

.variant-price-table .table {
  margin-bottom: 0;
}

.variant-price-table .table th {
  font-weight: 600;
  color: #344767;
  border-bottom-width: 2px;
}

.variant-price-table .table td {
  vertical-align: middle;
  color: #495057;
}

.variant-price-table .table td:last-child {
  font-weight: 600;
  color: var(--bs-primary);
}

/* Quick View Product Info */
.product-info {
  padding: 1rem;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #344767;
  margin-bottom: 1rem;
}

.product-category {
  font-size: 0.875rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 1.5rem;
}

.product-description {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Add to Cart Button */
#quickview-add-to-cart {
  height: 48px;
  font-weight: 600;
  border-radius: 12px;
  padding: 0 2rem;
  transition: all 0.2s ease;
}

#quickview-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(var(--bs-primary-rgb), 0.2);
}

#quickview-add-to-cart:disabled {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #adb5bd;
  transform: none;
  box-shadow: none;
}

/* Additional Info Section */
.additional-info {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.additional-info .text-muted {
  color: #6c757d !important;
}

.additional-info i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  border-radius: 6px;
  margin-right: 0.75rem;
}

/* Rating Stars */
.stars-outer {
  position: relative;
  display: inline-block;
}

.stars-outer::before {
  content: "★★★★★";
  color: #ddd;
}

.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #ffc107;
}

.stars-inner::before {
  content: "★★★★★";
}

/* Responsive Styles */
@media (max-width: 768px) {
  .product-image-container {
    height: 300px;
  }
  
  .thumbnail-item {
    width: 60px;
    height: 60px;
  }
  
  .variant-group .btn {
    padding: 0.375rem 0.75rem;
  }
}

/* Pagination Styles */
.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.pagination .page-link {
  color: #0d6efd;
  padding: 0.5rem 0.75rem;
}

.pagination .page-link:hover {
  background-color: #e9ecef;
}

/* Checkout steps */
.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}

/* Toast notifications */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  background: #333;
  color: white;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-notification.success {
  background: #28a745;
}

.toast-notification.error {
  background: #dc3545;
}

.toast-message {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Checkout Styles */
.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}

.payment-method-option {
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-option:hover {
  border-color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.payment-method-option .form-check-input {
  margin-top: 0;
}

.payment-icon {
  max-height: 40px;
  object-fit: contain;
}

.order-summary {
  background-color: #f9f9f9;
}

/* Cart Styles */
.cart-item {
  transition: all 0.2s ease;
}

.cart-item:hover {
  background-color: rgba(0,0,0,0.02);
}

.quantity-control button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#empty-cart-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

#empty-cart-message i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 1rem;
}

/* Payment processing animation */
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.payment-processing {
  animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .payment-method-option label {
    flex-direction: column;
    text-align: center;
  }
  
  .payment-icon {
    margin-bottom: 10px;
    margin-right: 0;
  }
}

/* Rwanda themed color scheme */
body {
  --heading-font        : "Nunito", sans-serif;
  --bs-link-color: #333;
  --bs-link-hover-color:#333;

  --bs-link-color-rgb: 40,40,40;
  --bs-link-hover-color-rgb: 0,0,0;

  --bs-light-rgb: 248, 248, 248;

  --bs-font-sans-serif: "Nunito", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 2;
  --bs-body-color: #747474;

  /* Rwanda supermarket-themed red and green colors */
  --bs-primary: #A61C35; /* Dark Red */
  --bs-primary-rgb: 166, 28, 53;
  
  --bs-secondary: #1E6C41; /* Green */
  --bs-secondary-rgb: 30, 108, 65;
  
  --bs-danger: #A61C35; /* Red for danger */
  --bs-danger-rgb: 166, 28, 53;

  --bs-success: #1E6C41; /* Green for success */
  --bs-success-rgb: 30, 108, 65;
  
  --bs-primary-bg-subtle: #f9eff1;
  --bs-success-bg-subtle: #eef5e5;
  
  --bs-border-color: #F7F7F7;

  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Navbar styling with the color scheme */
.navbar {
  border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}

.navbar-light .navbar-nav .nav-link {
  color: #333;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--bs-primary);
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.border-primary {
  color: var(--bs-primary);
}

.navbar-light .navbar-nav .nav-item .dropdown-item:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
  color: var(--bs-primary);
}

.dropdown-menu {
  border-top: 3px solid var(--bs-primary);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #8c1a2e; /* Darker red */
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 166, 28, 53;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #8c1a2e;
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #d3d7dd;
  --bs-btn-disabled-border-color: transparent;
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-focus-shadow-rgb: 166, 28, 53;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--bs-primary);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--bs-primary);
  --bs-gradient: none;
}

.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-success);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #195a36; /* Darker green */
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 30, 108, 65;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #195a36;
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #d3d7dd;
  --bs-btn-disabled-border-color: transparent;
}

.btn-outline-success {
  --bs-btn-color: var(--bs-success);
  --bs-btn-border-color: var(--bs-success);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-success);
  --bs-btn-hover-border-color: var(--bs-success);
  --bs-btn-focus-shadow-rgb: 30, 108, 65;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-success);
  --bs-btn-active-border-color: var(--bs-success);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--bs-success);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--bs-success);
  --bs-gradient: none;
}

/* Enhanced product card styles */
.product-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-thumbnail {
  overflow: hidden;
  height: 200px;
  position: relative;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumbnail img {
  object-fit: contain;
  max-height: 100%;
  max-width: 100%;
  transition: transform 0.5s ease;
}

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

.product-title {
  font-weight: 600;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.product-category {
  font-size: 0.75rem;
  color: var(--bs-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bs-primary);
  margin-bottom: 0.5rem;
}

.product-original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem;
}

.product-card .card-footer {
  background-color: transparent;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 0.75rem 1rem;
}

.product-meta {
  margin-top: auto;
}

/* ===== ENHANCED CATEGORY CAROUSEL ===== */
.category-carousel .swiper-slide {
  height: auto;
}
/* cat-circle-card styles defined in fire section below */

/* ===== PROMOTIONS / FLASH DEALS SECTION ===== */
.promo-section {
  background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
}

.promo-card {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
  position: relative;
}

.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.promo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.promo-img-wrap {
  height: 180px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.promo-card:hover .promo-img-wrap img {
  transform: scale(1.06);
}

/* ===== ENHANCED PRODUCT CARDS ===== */
.product-card-v2 {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  background: #fff;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  border-color: rgba(166,28,53,0.15);
}

.product-card-v2 .product-img-wrap {
  height: 190px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-v2 .product-img-wrap img {
  max-height: 160px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card-v2:hover .product-img-wrap img {
  transform: scale(1.07);
}

.product-card-v2 .product-badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.product-card-v2 .wishlist-btn-v2 {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
  z-index: 2;
  color: #aaa;
}

.product-card-v2 .wishlist-btn-v2:hover,
.product-card-v2 .wishlist-btn-v2.active {
  background: var(--bs-danger);
  color: white;
  transform: scale(1.1);
}

.product-card-v2 .product-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-v2 .product-cat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--bs-secondary);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card-v2 .product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4rem;
  margin-bottom: 6px;
}

.product-card-v2 .product-rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.product-card-v2 .stars {
  color: #ffc107;
  font-size: 0.72rem;
  letter-spacing: 1px;
}

.product-card-v2 .rating-count {
  font-size: 0.68rem;
  color: #999;
}

.product-card-v2 .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.product-card-v2 .price-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.product-card-v2 .price-original {
  font-size: 0.8rem;
  color: #bbb;
  text-decoration: line-through;
}

.product-card-v2 .product-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.product-card-v2 .qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-card-v2 .qty-btn {
  width: 28px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-v2 .qty-btn:hover {
  background: #e9ecef;
  color: var(--bs-primary);
}

.product-card-v2 .qty-input {
  width: 32px;
  height: 30px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  -moz-appearance: textfield;
}

.product-card-v2 .qty-input::-webkit-outer-spin-button,
.product-card-v2 .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.product-card-v2 .add-cart-btn {
  flex: 1;
  height: 34px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: var(--bs-primary);
  color: white;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.product-card-v2 .add-cart-btn:hover {
  background: #8c1a2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(166,28,53,0.3);
}

.product-card-v2 .add-cart-btn.added {
  background: var(--bs-success);
}

.product-card-v2 .add-cart-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== TRUST SIGNALS BAR ===== */
.trust-bar {
  background: linear-gradient(135deg, #1E6C41 0%, #2d9e5f 100%);
  color: white;
  padding: 14px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.trust-item i {
  font-size: 1.3rem;
  opacity: 0.9;
}

.trust-item .trust-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.trust-item .trust-text small {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* ===== SECTION HEADER STYLE ===== */
.section-header-line {
  width: 48px;
  height: 4px;
  background: var(--bs-primary);
  border-radius: 2px;
  margin-bottom: 6px;
}

/* ===== MOBILE SEARCH ENHANCEMENT ===== */
@media (max-width: 767px) {
  .cat-circle-img-wrap {
    width: 72px;
    height: 72px;
  }
  .cat-circle-name {
    font-size: 0.72rem;
    max-width: 72px;
  }
  .product-card-v2 .product-img-wrap {
    height: 155px;
  }
}

/* Enhanced products grid layout */
#products-container {
  margin-bottom: 2rem;
}

.product-grid-item {
  margin-bottom: 1.5rem;
}

/* Improved empty state */
#empty-products .empty-state-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

#empty-products .empty-state-icon i {
  color: var(--bs-primary);
}

/* Enhanced active filters */
#active-filters-container {
  margin-bottom: 1.5rem;
}

#active-filters .badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

#active-filters .badge .btn-close {
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.5rem;
}

/* Loading animation enhancement */
#loading-products .spinner-grow {
  color: var(--bs-primary) !important;
}

/* Product quick view enhancements */
.quick-view-modal .modal-content {
  border-radius: 1rem;
  overflow: hidden;
}

.quick-view-image {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
}

.quick-view-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.quick-view-details {
  padding: 1.5rem;
}

.quick-view-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.quick-view-original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1.1rem;
  margin-left: 0.5rem;
}

/* Star rating system */
.stars-outer {
  position: relative;
  display: inline-block;
  font-size: 0.9rem;
}

.stars-outer::before {
  content: "\f005 \f005 \f005 \f005 \f005";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ccc;
}

.stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
}

.stars-inner::before {
  content: "\f005 \f005 \f005 \f005 \f005";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ffb800;
}

/* Improved quantity selector */
.quantity-selector {
  border-radius: 50px;
  overflow: hidden;
}

.btn-quantity {
  background: transparent;
  border: none;
  color: #666;
  font-size: 0.8rem;
  padding: 0 12px;
  transition: all 0.2s;
}

.btn-quantity:hover {
  background-color: #f0f0f0;
  color: var(--bs-primary);
}

.product-quantity {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: 600;
  background: transparent;
}

.product-quantity:focus {
  outline: none;
}

/* Enhanced products section */
#products-section {
  background-color: #f8f9fa;
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-title {
  position: relative;
  margin-bottom: 15px;
  color: var(--bs-secondary);
}

/* Category and Sort option styling */
.category-option, .sort-option {
  transition: all 0.2s;
  position: relative;
}

.category-option:hover, .sort-option:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
}

.category-option.active, .sort-option.active {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  font-weight: 600;
  color: var(--bs-primary);
}

/* Rwanda-specific styles for currency and payments */
.rwf-symbol::before {
  content: "RWF ";
  font-size: 0.85em;
}

/* Rwanda flag colors in a subtle stripe - can be used as accent */
.rwanda-stripe {
  background: linear-gradient(to right, 
    #A61C35 0%, #A61C35 33.3%, 
    #FDD216 33.3%, #FDD216 66.6%, 
    #1E6C41 66.6%, #1E6C41 100%);
  height: 4px;
  width: 60px;
  margin-bottom: 15px;
}

/* Custom styling for active filters */
#active-filters .filter-badge {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  border-radius: 50px;
  padding: 5px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

#active-filters .filter-badge i {
  cursor: pointer;
}

#active-filters .filter-badge i:hover {
  color: var(--bs-danger);
}

/* Preloader with Rwanda-themed colors */
.preloader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader {
  width: 40px;
  height: 40px;
  position: relative;
}

.preloader:before,
.preloader:after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

.preloader:before {
  background-color: var(--bs-primary);
  animation: pulse 2s ease-in-out infinite;
}

.preloader:after {
  background-color: var(--bs-secondary);
  animation: pulse 2s ease-in-out 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Responsive improvements */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .product-card {
    margin-bottom: 20px;
  }
  
  .product-thumbnail {
    height: 160px;
  }
  
  .wishlist-btn {
  opacity: 1;
  transform: translateY(0);
  }
}

/* Better navigation for mobile */
@media (max-width: 991px) {
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .nav-item {
  margin-bottom: 0.5rem;
  }
}

/* Styling for feature pills on the hero section */
.feature-pill {
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Fix Safari border issues */
input, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Custom styling for footer */
footer .text-white-50 {
  transition: color 0.3s;
}

footer a.text-white-50:hover {
  color: white !important;
  text-decoration: none;
}

/* About section styling */
#about-section img {
  transition: transform 0.5s;
}

#about-section img:hover {
  transform: scale(1.02);
}

/* Contact section styling */
.contact-icon {
  transition: all 0.3s;
}

.card:hover .contact-icon {
  transform: scale(1.1);
}

/* Mobile menu improvements */
.offcanvas-body .nav-link {
  border-bottom: 1px dashed var(--bs-border-color);
  transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
  color: var(--bs-primary) !important;
  padding-left: 1rem !important;
}

/* Custom scrollbar for a more polished look */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
::-webkit-scrollbar-thumb {
  background: #ccc; 
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa; 
}

/* Additional overrides for color scheme consistency */
.text-primary {
  color: var(--bs-primary) !important;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.text-success {
  color: var(--bs-success) !important;
}

.bg-success {
  background-color: var(--bs-success) !important;
}

.text-danger {
  color: var(--bs-danger) !important;
}

.bg-danger {
  background-color: var(--bs-danger) !important;
}

.border-primary {
  border-color: var(--bs-primary) !important;
}

.border-success {
  border-color: var(--bs-success) !important;
}

/* Links */
a {
  color: var(--bs-primary);
}

a:hover {
  color: #8c1a2e;
}

/* Focus outlines */
.form-control:focus, 
.form-select:focus, 
.btn:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.5);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Badge colors */
.badge.bg-primary {
  background-color: var(--bs-primary) !important;
}

.badge.bg-success {
  background-color: var(--bs-success) !important;
}

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

.hero-content .badge {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-content h1 {
  animation: fadeInUp 0.6s 0.2s ease forwards;
  opacity: 0;
}

.hero-content p {
  animation: fadeInUp 0.6s 0.4s ease forwards;
  opacity: 0;
}

.hero-content .btn {
  animation: fadeInUp 0.6s 0.6s ease forwards;
  opacity: 0;
}

.hero-content .feature-pill {
  animation: fadeInUp 0.6s 0.8s ease forwards;
  opacity: 0;
}

/* Hero section enhancements */
.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.85);
}

/* Feature styling */
.feature-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.15);
}

.feature-item {
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(3px);
}

/* CTA button enhancements */
.btn-danger {
  box-shadow: 0 4px 12px rgba(166, 28, 53, 0.3);
  transition: all 0.3s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(166, 28, 53, 0.4);
}

.btn-outline-light {
  border-width: 2px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.1);
}

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

.animate-badge {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-title {
  animation: fadeInUp 0.6s 0.2s ease forwards;
  opacity: 0;
}

.animate-text {
  animation: fadeInUp 0.6s 0.4s ease forwards;
  opacity: 0;
}

.animate-cta {
  animation: fadeInUp 0.6s 0.6s ease forwards;
  opacity: 0;
}

.animate-features {
  animation: fadeInUp 0.6s 0.8s ease forwards;
  opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-slide {
    height: 550px !important;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .feature-item {
    margin-right: 10px;
  }
  
  .feature-icon {
    width: 24px;
    height: 24px;
  }
  
  .display-4 {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .hero-slide {
    height: 500px !important;
  }
  
  .feature-text {
    font-size: 0.7rem !important;
  }
  
  .display-4 {
    font-size: 1.8rem;
  }
  
  .badge {
    font-size: 0.7rem !important;
  }
}

@media (min-width: 992px) {
  .display-4 {
    font-size: 2.8rem;
  }
}

/* Additional utility classes */
.mb-md-6 {
  margin-bottom: 4rem !important;
}

@media (max-width: 768px) {
  .mb-md-6 {
    margin-bottom: 2.5rem !important;
  }
}

/* Gradient animation */
@keyframes gradientShift {
  0% {
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 100%);
  }
  50% {
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.45) 100%);
  }
  100% {
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 100%);
  }
}

.hero-slide:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: gradientShift 10s ease infinite;
  z-index: 1;
}

/* Background image animation */
.hero-slide {
  background-size: cover;
  background-position: center;
  animation: subtleZoom 15s ease infinite alternate;
  transform-origin: center;
}

@keyframes subtleZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--bs-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(166, 28, 53, 0.4);
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: #8c1a2e;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(166, 28, 53, 0.5);
  color: white;
}

.back-to-top-btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(166, 28, 53, 0.4);
  outline: none;
}

/* Enhanced Hero Section */
#hero {
  position: relative;
  margin-bottom: 3rem;
}

.hero-slide {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.animate-badge {
  animation: fadeInUp 1s ease-out;
}

.animate-title {
  animation: fadeInUp 1.2s ease-out;
}

.animate-text {
  animation: fadeInUp 1.4s ease-out;
}

.animate-cta {
  animation: fadeInUp 1.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Featured Products Showcase */
.featured-products {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.featured-product-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  height: 300px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

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

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

.featured-product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  padding: 2rem 1.5rem 1.5rem;
  color: white;
}

.featured-product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.featured-product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--bs-primary);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  z-index: 2;
}

/* Enhanced Category Display */
.category-section {
  padding: 3rem 0;
}

.category-title {
  position: relative;
  margin-bottom: 2rem;
  font-weight: 700;
  display: inline-block;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--bs-primary);
}

.category-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.category-icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: var(--bs-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
}

/* Deals & Promotions */
.deals-section {
  padding: 3rem 0;
  background-color: #fff;
}

.deal-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: none;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.deal-img {
  height: 200px;
  object-fit: cover;
}

.deal-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--bs-danger);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  z-index: 2;
}

.deal-countdown {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  margin-top: 1rem;
}

.countdown-value {
  font-weight: 700;
  color: var(--bs-primary);
  font-size: 1.2rem;
}

.countdown-label {
  font-size: 0.75rem;
  color: #666;
}

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

/* Testimonials */
.testimonial-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.testimonial-card {
  border-radius: 1rem;
  padding: 2rem;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
  margin-top: 3rem;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-text {
  margin-top: 2.5rem;
  font-style: italic;
  color: #555;
  line-height: 1.7;
}

.testimonial-name {
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-role {
  color: #777;
  font-size: 0.9rem;
}

/* Call to Action */
.cta-section {
  padding: 4rem 0;
  background-color: var(--bs-primary);
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 2rem;
  background-color: white;
  color: var(--bs-primary);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: rgba(255,255,255,0.9);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Mobile Enhancements */
@media (max-width: 767px) {
  .hero-slide {
    height: 400px;
  }
  
  .featured-product-card {
    height: 250px;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Sticky header on scroll */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  transform: translateY(-100%);
}

.sticky-header.show {
  transform: translateY(0);
}

/* Enhanced product hover effects */
.product-card .quick-view-btn {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: var(--bs-primary);
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  opacity: 0;
}

.product-card:hover .quick-view-btn {
  bottom: 20px;
  opacity: 1;
}

.product-card .wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: white;
  color: #666;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 3;
}

.product-card:hover .wishlist-btn {
  opacity: 1;
}

.wishlist-btn.active {
  background-color: var(--bs-danger);
  color: white;
  opacity: 1;
}

.wishlist-btn:hover {
  background-color: var(--bs-danger);
  color: white;
}

/* Product Card Enhancements */
.product-card {
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  overflow: hidden;
}

.product-thumbnail {
  max-height: 150px;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.product-title {
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-weight: 600;
}

.product-variants .badge {
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

.btn-quantity {
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}

/* Pagination Enhancements */
.pagination {
  margin-bottom: 2rem;
}

.page-link {
  color: var(--bs-primary);
  border-color: #dee2e6;
  margin: 0 2px;
}

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

.page-link:hover {
  color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}


/* ============================================================
   N.HONEST SUPERMARKET — ENHANCED DESIGN v3
   ============================================================ */

/* ── GLOBAL TOKENS ── */
:root {
  --red:    #A61C35;
  --red-dk: #7e1528;
  --green:  #1E6C41;
  --green-lt: #eaf5ee;
  --gold:   #f5a623;
  --card-radius: 18px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.07);
  --shadow-md: 0 8px 28px rgba(0,0,0,.11);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.14);
  --transition: all .28s cubic-bezier(.4,0,.2,1);
}

body {
  --bs-body-line-height: 1.7;
  background: #f7f8fa;
}

/* ── HEADER POLISH ── */
header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.08) !important;
}

/* ── HERO ── */
#hero { margin-bottom: 0; }

.hero-slide {
  height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.35) 55%,transparent 100%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-content h1 { line-height: 1.15; letter-spacing: -.5px; }

.feature-item {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 6px 14px 6px 8px;
  transition: var(--transition);
}
.feature-item:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* ── TRUST BAR ── */
.trust-bar {
  background: linear-gradient(90deg, var(--green) 0%, #27a05e 100%);
  padding: 13px 0;
  border-bottom: 3px solid rgba(255,255,255,.15);
}
.trust-item { gap: 10px; justify-content: center; }
.trust-item i { font-size: 1.4rem; opacity: .9; }
.trust-item .trust-text strong { display: block; font-size: .84rem; font-weight: 700; line-height: 1.2; }
.trust-item .trust-text small  { font-size: .7rem; opacity: .82; }

/* ── SECTION HEADERS ── */
.section-header-line {
  width: 44px; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px; margin-bottom: 6px;
}

/* ── CATEGORIES SECTION ── */
#categories-section:not(.categories-fire-bg) {
  background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
  padding: 42px 0 34px;
  border-top: 1px solid rgba(30,108,65,.08);
  border-bottom: 1px solid rgba(30,108,65,.1);
  overflow: hidden;
}

.category-carousel {
  overflow: visible;
}

.category-carousel .swiper-wrapper {
  align-items: stretch;
  transition-timing-function: linear;
}

.category-carousel .swiper-slide {
  height: auto;
}

/* cat-circle-card — defined in fire section */
.cat-circle-all .cat-circle-icon-fallback {
  background: linear-gradient(135deg, var(--green), #27a05e);
}

/* ── FLASH DEALS ENHANCED ── */
.promo-section {
  background: linear-gradient(135deg, #fff8f8 0%, #fff 60%);
  padding: 44px 0;
  position: relative;
  overflow: hidden;
}
.promo-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(166,28,53,.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(245,166,35,.04) 0%, transparent 60%);
  pointer-events: none;
}

.flash-deals-grid .promo-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  background: #fff;
  cursor: pointer;
}
.flash-deals-grid .promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(166,28,53,.18);
}
.flash-deals-grid .promo-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--card-radius);
  border: 2px solid transparent;
  transition: border-color .3s;
  pointer-events: none;
}
.flash-deals-grid .promo-card:hover::after {
  border-color: rgba(166,28,53,.25);
}
.flash-deals-grid .promo-img-wrap {
  height: 200px; overflow: hidden;
  background: linear-gradient(145deg, #f9f9f9, #f0f0f0);
  display: flex; align-items: center; justify-content: center;
}
.flash-deals-grid .promo-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.flash-deals-grid .promo-card:hover .promo-img-wrap img { transform: scale(1.08); }
.flash-deals-grid .promo-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: .72rem; font-weight: 800;
  padding: 5px 12px; border-radius: 20px;
  letter-spacing: .4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.flash-deals-grid .promo-card .p-3 {
  padding: 14px 16px !important;
}
.flash-deals-grid .promo-card .fw-bold.text-danger {
  font-size: 1.05rem;
}

/* ── CATEGORIES ANIMATED FIRE BACKGROUND ── */
@keyframes fireShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.categories-fire-bg {
  position: relative;
  overflow: hidden;
  padding: 52px 0 48px !important;
}
.categories-fire-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(270deg,
    #c0392b, #e74c3c, #ff6b35, #ff8c00,
    #ff6b35, #e74c3c, #c0392b, #ff8c00);
  background-size: 400% 400%;
  animation: fireShift 7s ease infinite;
  opacity: .95;
  z-index: 0;
}
.categories-fire-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,.15) 0%, transparent 60%);
  z-index: 1; pointer-events: none;
}
.categories-fire-bg > .container { position: relative; z-index: 2; }

/* Section header on fire bg */
.categories-fire-bg .section-header-line {
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 12px rgba(255,255,255,.5);
}
.categories-fire-bg h2.section-title,
.categories-fire-bg .section-title {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.categories-fire-bg p.text-muted {
  color: rgba(255,255,255,.88) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.categories-fire-bg .cat-nav-btn {
  border-color: rgba(255,255,255,.85) !important;
  color: #fff !important;
  background: rgba(255,255,255,.18) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.categories-fire-bg .cat-nav-btn:hover {
  background: rgba(255,255,255,.38) !important;
  color: #fff !important;
  transform: scale(1.08);
}

/* ── PREMIUM CATEGORY CARDS ── */
.cat-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0;
  border-radius: 20px;
  transition: var(--transition);
  background: rgba(255,255,255,.97);
  border: 2px solid rgba(255,255,255,.7);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.1);
  min-width: 108px;
}
.cat-circle-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 48px rgba(0,0,0,.28), 0 4px 16px rgba(166,28,53,.2);
  border-color: #fff;
  color: inherit;
  text-decoration: none;
}
.cat-circle-card.active {
  border-color: var(--red);
  box-shadow: 0 12px 36px rgba(166,28,53,.35);
}

/* Image frame — the key visual */
.cat-circle-img-wrap {
  width: 100%;
  height: 100px;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f5f5f5, #ebebeb);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  border-bottom: 3px solid rgba(166,28,53,.12);
  transition: var(--transition);
}
.cat-circle-card:hover .cat-circle-img-wrap {
  border-bottom-color: var(--red);
}
.cat-circle-card.active .cat-circle-img-wrap {
  border-bottom-color: var(--red);
}
.cat-circle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.cat-circle-card:hover .cat-circle-img-wrap img { transform: scale(1.12); }

/* Circular image overlay ring */
.cat-circle-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
}

.cat-circle-icon-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red), #c0392b);
  color: #fff; font-size: 2.2rem;
}
.cat-circle-all .cat-circle-icon-fallback {
  background: linear-gradient(135deg, var(--green), #27a05e);
}

/* Name label at bottom */
.cat-circle-name {
  padding: 9px 8px 10px;
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
  color: #1a1a1a;
  line-height: 1.25;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  letter-spacing: .2px;
}
.cat-circle-card:hover .cat-circle-name,
.cat-circle-card.active .cat-circle-name {
  color: var(--red);
  background: #fff7f8;
}

.cat-count-badge {
  font-size: .6rem; font-weight: 700;
  background: rgba(166,28,53,.1); color: var(--red);
  border-radius: 20px; padding: 1px 7px;
  margin: 0 0 8px;
  display: inline-block;
}

/* Swiper nav buttons */
.category-carousel-prev,
.category-carousel-next {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.85);
  color: #fff;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  transition: var(--transition);
  font-size: .85rem;
  cursor: pointer;
}
.category-carousel-prev:hover,
.category-carousel-next:hover {
  background: rgba(255,255,255,.4);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 767px) {
  .cat-circle-img-wrap { height: 80px; }
  .cat-circle-card { min-width: 88px; border-radius: 16px; }
  .cat-circle-name { font-size: .7rem; padding: 7px 6px 8px; }
}


.promo-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  background: #fff;
  cursor: pointer;
}
.promo-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}
.promo-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: .72rem; font-weight: 800;
  padding: 4px 11px; border-radius: 20px;
  letter-spacing: .3px;
}
.promo-img-wrap {
  height: 175px; overflow: hidden;
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
}
.promo-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.promo-card:hover .promo-img-wrap img { transform: scale(1.07); }

/* ── PRODUCTS SECTION ── */
#products-section {
  background: #f7f8fa;
  padding: 48px 0 60px;
}

/* Filter bar */
.products-filter-bar {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

/* ── PRODUCT CARD v3 ── */
.product-card-v2 {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1.5px solid #efefef;
  background: #fff;
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card-v2:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(166,28,53,.18);
}

/* Image area */
.product-card-v2 .product-img-wrap {
  height: 195px;
  background: linear-gradient(145deg, #f9f9f9, #f0f0f0);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-card-v2 .product-img-wrap img {
  max-height: 165px; max-width: 88%;
  object-fit: contain;
  transition: transform .4s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.08));
}
.product-card-v2:hover .product-img-wrap img { transform: scale(1.08); }

/* Quick-view overlay on hover */
.product-card-v2 .qv-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.32);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.product-card-v2:hover .qv-overlay { opacity: 1; }
.product-card-v2 .qv-btn {
  background: #fff; color: var(--red);
  border: none; border-radius: 50px;
  padding: 7px 18px; font-size: .78rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  cursor: pointer; transition: var(--transition);
}
.product-card-v2 .qv-btn:hover { background: var(--red); color: #fff; }

/* Badges */
.product-card-v2 .product-badge-wrap {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.product-card-v2 .product-badge-wrap .badge {
  font-size: .65rem; font-weight: 800;
  padding: 3px 8px; border-radius: 20px;
  letter-spacing: .3px;
}

/* Wishlist */
.product-card-v2 .wishlist-btn-v2 {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  transition: var(--transition); z-index: 2; color: #bbb;
  cursor: pointer;
}
.product-card-v2 .wishlist-btn-v2:hover,
.product-card-v2 .wishlist-btn-v2.active {
  background: var(--red); color: #fff; transform: scale(1.12);
}

/* Body */
.product-card-v2 .product-body {
  padding: 13px 15px 15px;
  display: flex; flex-direction: column; flex-grow: 1;
}
.product-card-v2 .product-cat-label {
  font-size: .65rem; text-transform: uppercase;
  letter-spacing: .7px; color: var(--green);
  font-weight: 700; margin-bottom: 4px;
}
.product-card-v2 .product-name {
  font-size: .88rem; font-weight: 700; color: #1a1a1a;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.35rem; margin-bottom: 6px;
}
.product-card-v2 .product-name a { color: inherit; text-decoration: none; }
.product-card-v2 .product-name a:hover { color: var(--red); }

/* Stars */
.product-card-v2 .product-rating-row {
  display: flex; align-items: center; gap: 5px; margin-bottom: 7px;
}
.product-card-v2 .stars { color: #f5a623; font-size: .7rem; letter-spacing: 1.5px; }
.product-card-v2 .rating-count { font-size: .65rem; color: #aaa; }

/* Price */
.product-card-v2 .price-row {
  display: flex; align-items: baseline; gap: 7px; margin-bottom: 12px;
}
.product-card-v2 .price-main {
  font-size: 1.08rem; font-weight: 800; color: var(--red);
}
.product-card-v2 .price-original {
  font-size: .78rem; color: #c0c0c0; text-decoration: line-through;
}

/* Footer actions */
.product-card-v2 .product-footer {
  display: flex; align-items: center; gap: 8px; margin-top: auto;
}
.product-card-v2 .qty-wrap {
  display: flex; align-items: center;
  border: 1.5px solid #e8e8e8; border-radius: 10px;
  overflow: hidden; background: #f8f8f8;
}
.product-card-v2 .qty-btn {
  width: 28px; height: 32px; border: none;
  background: transparent; font-size: .9rem; color: #555;
  cursor: pointer; transition: background .18s;
  display: flex; align-items: center; justify-content: center;
}
.product-card-v2 .qty-btn:hover { background: #ececec; color: var(--red); }
.product-card-v2 .qty-input {
  width: 30px; height: 32px; border: none;
  background: transparent; text-align: center;
  font-size: .82rem; font-weight: 700; color: #222;
  -moz-appearance: textfield;
}
.product-card-v2 .qty-input::-webkit-outer-spin-button,
.product-card-v2 .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-card-v2 .add-cart-btn {
  flex: 1; height: 36px; border-radius: 10px;
  font-size: .78rem; font-weight: 700;
  border: none; background: var(--red); color: #fff;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; letter-spacing: .2px;
}
.product-card-v2 .add-cart-btn:hover {
  background: var(--red-dk);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(166,28,53,.32);
}
.product-card-v2 .add-cart-btn.added { background: var(--green); }
.product-card-v2 .add-cart-btn:disabled {
  background: #d0d0d0; cursor: not-allowed;
  transform: none; box-shadow: none;
}

/* ── FEATURE CARDS (trust section below products) ── */
.feature-card {
  border-radius: var(--card-radius);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card .feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── PAGINATION ── */
.pagination .page-link {
  border-radius: 8px !important;
  margin: 0 3px;
  border: 1.5px solid #e8e8e8;
  color: var(--red);
  font-weight: 600; font-size: .85rem;
  transition: var(--transition);
}
.pagination .page-link:hover { background: rgba(166,28,53,.08); border-color: var(--red); }
.pagination .page-item.active .page-link {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 4px 10px rgba(166,28,53,.3);
}

/* ── FOOTER ── */
footer { background: #111 !important; }
.footer-links li { margin-bottom: 8px; }
.footer-link { color: rgba(255,255,255,.65); text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-link:hover { color: #fff; padding-left: 4px; }
.widget-title { font-size: 1rem; color: #fff; }
.widget-title::after {
  content: ''; display: block;
  width: 32px; height: 3px;
  background: var(--red); border-radius: 2px; margin-top: 6px;
}
.social-link .social-icon-container {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: rgba(255,255,255,.75);
}
.social-link:hover .social-icon-container {
  background: var(--red); color: #fff; transform: translateY(-3px);
}
.payment-icon { border-radius: 4px; margin-left: 6px; }

/* ── CART OFFCANVAS ── */
#offcanvasCart { width: 420px; max-width: 100%; }
.cart-item { border-radius: 12px; padding: 10px; transition: background .2s; }
.cart-item:hover { background: #fafafa; }

/* ── TOAST ── */
.toast-notification {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 20px; border-radius: 12px;
  background: #222; color: #fff;
  opacity: 0; transform: translateY(16px);
  transition: all .3s ease; z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  min-width: 220px;
}
.toast-notification.show { opacity: 1; transform: translateY(0); }
.toast-notification.success { background: var(--green); }
.toast-notification.error   { background: var(--red); }

/* ── BACK TO TOP ── */
.back-to-top-btn {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: var(--transition); z-index: 999;
  box-shadow: 0 4px 14px rgba(166,28,53,.4);
  text-decoration: none;
}
.back-to-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background: var(--red-dk); transform: translateY(-4px); color: #fff; }

/* ── PRELOADER ── */
.preloader-wrapper {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.preloader {
  width: 44px; height: 44px; position: relative;
}
.preloader::before, .preloader::after {
  content: ''; width: 100%; height: 100%;
  border-radius: 50%; position: absolute; top: 0; left: 0;
}
.preloader::before { background: var(--red); animation: preloaderPulse 2s ease-in-out infinite; }
.preloader::after  { background: var(--green); animation: preloaderPulse 2s ease-in-out 1s infinite; }
@keyframes preloaderPulse {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── CHECKOUT STEPS ── */
.checkout-step { display: none; }
.checkout-step.active { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .hero-slide { height: 420px; }
}
@media (max-width: 767px) {
  .hero-slide { height: 360px; }
  .cat-circle-img-wrap { width: 68px; height: 68px; }
  .cat-circle-name { font-size: .7rem; max-width: 68px; }
  .product-card-v2 .product-img-wrap { height: 155px; }
  .trust-bar .col-6 { border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 10px; margin-bottom: 4px; }
}
@media (max-width: 575px) {
  .hero-slide { height: 300px; }
  .hero-content h1 { font-size: 1.6rem; }
}


/* ============================================================
   N.HONEST — ENHANCED HEADER, ACCOUNT PORTAL & CONTACT PAGE
   ============================================================ */

/* ── TOP BAR ── */
.top-bar {
  background: #1a1a2e;
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-bar a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s; }
.top-bar a:hover { color: #fff; }
.top-bar .social-top a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.top-bar .social-top a:hover { background: var(--red); color: #fff; }

/* ── MAIN HEADER ── */
header.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
header.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.14); }

/* Search bar */
.header-search {
  display: flex; align-items: center;
  border: 2px solid #e8e8e8; border-radius: 50px;
  overflow: hidden; background: #f8f9fa;
  transition: border-color .25s, box-shadow .25s;
}
.header-search:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(166,28,53,.1);
  background: #fff;
}
.search-bar:focus-within {
  box-shadow: 0 0 0 3px rgba(220,53,69,0.15);
  border-color: #dc3545 !important;
}
.header-search .cat-select {
  border: none; background: transparent;
  font-size: .8rem; font-weight: 600; color: #555;
  padding: 0 12px; max-width: 130px;
  border-right: 1px solid #e0e0e0;
  outline: none; cursor: pointer;
  height: 44px;
}
.header-search input {
  border: none; background: transparent; flex: 1;
  padding: 0 14px; font-size: .9rem; color: #333;
  outline: none; height: 44px;
}
.header-search .search-btn {
  width: 52px; height: 44px; border: none;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; cursor: pointer; transition: background .2s;
  flex-shrink: 0;
}
.header-search .search-btn:hover { background: var(--red-dk); }

/* Account button */
.account-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 50px;
  border: 1.5px solid #e8e8e8; background: #fff;
  text-decoration: none; color: #333;
  transition: all .22s; white-space: nowrap;
  font-size: .85rem;
}
.account-btn:hover { border-color: var(--red); background: #fff7f8; color: var(--red); }
.account-btn .acc-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--red);
}
.account-btn .acc-name { font-weight: 700; font-size: .82rem; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }

.brand-logo-box {
  width: 54px; height: 54px; border-radius: 16px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(25,135,84,.14);
  border: 1px solid rgba(25,135,84,.14);
}
.brand-logo-box img { max-width: 42px; max-height: 42px; object-fit: contain; }
.brand-name { position: relative; width: max-content; }
.brand-name::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px; border-radius: 999px;
  background: #198754;
}
.fw-black { font-weight: 900; }

/* Icon action buttons */
.header-action-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid #e8e8e8; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #444; font-size: .95rem; text-decoration: none;
  transition: all .22s; position: relative; cursor: pointer;
}
.header-action-btn:hover { border-color: var(--red); color: var(--red); background: #fff7f8; }
.header-action-btn .badge-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--red); color: #fff;
  font-size: .6rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

/* ── NAV BAR ── */
.main-nav {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.main-nav .nav-link {
  font-weight: 700; font-size: .88rem; color: #333;
  padding: 14px 14px; transition: color .2s;
  position: relative;
}
.main-nav .nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 3px; background: var(--red); border-radius: 2px 2px 0 0;
  transform: scaleX(0); transition: transform .25s;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--red); }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }

/* All categories mega btn */
.mega-cat-btn {
  background: var(--green); color: #fff !important;
  border-radius: 8px; padding: 8px 16px !important;
  font-weight: 700 !important; display: flex; align-items: center; gap: 8px;
}
.mega-cat-btn::after { display: none !important; }
.mega-cat-btn:hover { background: #195a36 !important; color: #fff !important; }
.mega-categories-menu {
  min-width: 520px;
  columns: 3;
  column-gap: 8px;
}
.mega-categories-menu li { break-inside: avoid; }
.mega-categories-menu .dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  font-size: .86rem;
}
.mega-categories-menu .dropdown-item:hover {
  background: #f0fdf4;
  color: #198754;
}

/* Promo pill */
.nav-promo-pill {
  background: linear-gradient(90deg, #fff8e1, #fff3cd);
  border: 1px solid #ffc107; border-radius: 50px;
  padding: 5px 14px; font-size: .75rem; font-weight: 700;
  color: #856404; white-space: nowrap;
}

/* ── CATEGORIES SECTION ENHANCED ── */
.categories-section-enhanced {
  background: linear-gradient(180deg, #fff 0%, #f8fbf7 100%);
  padding: 42px 0 34px;
  border-top: 1px solid rgba(30,108,65,.08);
  border-bottom: 1px solid rgba(30,108,65,.1);
}
.cat-nav-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #198754 !important; color: #198754 !important;
  background: #fff !important;
  display: flex; align-items: center; justify-content: center;
  transition: all .22s; font-size: .8rem;
}
.cat-nav-btn:hover { background: #198754 !important; color: #fff !important; }

#categories-section.categories-fire-bg {
  background: transparent;
  border: none;
}
#categories-section:not(.categories-fire-bg) {
  background: linear-gradient(135deg, #f8fff8 0%, #f0f9ff 100%);
}
#categories-section:not(.categories-fire-bg) .section-title {
  position: relative;
  padding-left: 16px;
}
#categories-section:not(.categories-fire-bg) .section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 999px;
  background: #198754;
}

/* ============================================================
   ACCOUNT PORTAL — REDESIGNED v4
   ============================================================ */

/* Banner */
.account-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, var(--red) 60%, #c0392b 100%);
  padding: 36px 0 32px;
  color: #fff;
}
.account-banner-name {
  font-size: 1.6rem; font-weight: 900; margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.account-banner-email { font-size: .88rem; opacity: .82; }

.account-body { padding: 32px 0 60px; }

/* Sidebar */
.account-sidebar {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}
.account-nav { list-style: none; padding: 0; margin: 0 0 20px; }
.account-nav li { margin-bottom: 4px; }
.account-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  color: #555; font-weight: 600; font-size: .88rem;
  text-decoration: none; transition: all .2s;
  border: 1.5px solid transparent;
}
.account-nav-link i { width: 20px; text-align: center; font-size: 1rem; }
.account-nav-link span { flex: 1; }
.account-nav-link:hover { background: #fff7f8; color: var(--red); border-color: rgba(166,28,53,.15); }
.account-nav-link.active {
  background: linear-gradient(135deg, #fff0f2, #fff7f8);
  color: var(--red); border-color: rgba(166,28,53,.25); font-weight: 700;
  box-shadow: 0 4px 12px rgba(166,28,53,.1);
}
.account-sidebar-footer { border-top: 1px solid #f0f0f0; padding-top: 16px; }

/* Content cards */
.account-content { display: none; }
.account-content.active { display: block; }

.account-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,.04);
}

.account-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f5f5f5;
  flex-wrap: wrap;
}
.account-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(166,28,53,.1); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.account-card-title {
  font-size: 1.15rem; font-weight: 800; color: #1a1a1a; margin: 0 0 2px;
}
.account-card-subtitle { font-size: .82rem; color: #888; margin: 0; }

/* Stats row */
.account-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition);
}
.account-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.account-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; font-size: 1.1rem;
}
.account-stat-num { font-size: 1.8rem; font-weight: 900; color: #1a1a1a; line-height: 1; }
.account-stat-label { font-size: .75rem; color: #888; font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* Form controls */
.account-card .form-control,
.account-card .form-select {
  border-radius: 12px;
  border: 1.5px solid #e8e8e8;
  transition: border-color .22s, box-shadow .22s;
}
.account-card .form-control:focus,
.account-card .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(166,28,53,.1);
}
.account-card .input-group-text {
  border-radius: 12px 0 0 12px;
  border: 1.5px solid #e8e8e8;
  border-right: none;
  background: #f8f9fa;
}

/* Responsive */
@media (max-width: 991px) {
  .account-sidebar { position: static; margin-bottom: 20px; }
  .account-banner-name { font-size: 1.3rem; }
}
@media (max-width: 767px) {
  .account-card { padding: 20px 16px; }
  .account-body { padding: 20px 0 40px; }
}

/* ============================================================
   CATEGORIES SECTION — REDESIGNED v4
   ============================================================ */
#categories-section.categories-fire-bg {
  background: transparent;
  border: none;
  padding: 0 !important;
}
#categories-section:not(.categories-fire-bg) {
  background: linear-gradient(135deg, #f8fff8 0%, #f0f9ff 100%);
}

.categories-fire-bg {
  position: relative;
  overflow: hidden;
  padding: 56px 0 52px !important;
}
.categories-fire-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    #1a0a00 0%, #7b1a0a 20%, #c0392b 40%,
    #e74c3c 55%, #ff6b35 70%, #e74c3c 85%, #c0392b 100%);
  background-size: 300% 300%;
  animation: fireShift 8s ease infinite;
  z-index: 0;
}
.categories-fire-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,200,100,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255,100,50,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.06) 0%, transparent 40%);
  z-index: 1; pointer-events: none;
}
.categories-fire-bg > .container { position: relative; z-index: 2; }

/* Header inside fire section */
.cats-eyebrow {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: .75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 10px;
}
.cats-title {
  font-size: 2rem; font-weight: 900; color: #fff;
  text-shadow: 0 3px 16px rgba(0,0,0,.35);
  margin: 0 0 6px; line-height: 1.15;
}
.cats-subtitle {
  color: rgba(255,255,255,.82);
  font-size: .9rem; margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
}

/* Nav buttons */
.category-carousel-prev,
.category-carousel-next {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff; background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  transition: var(--transition); font-size: .9rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.category-carousel-prev:hover,
.category-carousel-next:hover {
  background: rgba(255,255,255,.35);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Category cards — premium framed design */
.cat-circle-card {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; padding: 0;
  border-radius: 18px;
  transition: var(--transition);
  background: rgba(255,255,255,.97);
  border: 2px solid rgba(255,255,255,.6);
  text-decoration: none; color: inherit;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.1);
  min-width: 110px;
}
.cat-circle-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 24px 56px rgba(0,0,0,.3), 0 4px 16px rgba(166,28,53,.25);
  border-color: #fff;
  color: inherit; text-decoration: none;
}
.cat-circle-card.active {
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(166,28,53,.4);
}

/* Image frame */
.cat-circle-img-wrap {
  width: 100%; height: 105px;
  overflow: hidden;
  background: linear-gradient(145deg, #f0f0f0, #e8e8e8);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  border-bottom: 3px solid rgba(166,28,53,.1);
  transition: border-color .3s;
}
.cat-circle-card:hover .cat-circle-img-wrap,
.cat-circle-card.active .cat-circle-img-wrap { border-bottom-color: var(--red); }
.cat-circle-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.cat-circle-card:hover .cat-circle-img-wrap img { transform: scale(1.14); }
.cat-circle-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.22) 100%);
  pointer-events: none;
}

.cat-circle-icon-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red), #c0392b);
  color: #fff; font-size: 2.4rem;
}
.cat-circle-all .cat-circle-icon-fallback {
  background: linear-gradient(135deg, var(--green), #27a05e);
}

/* Name label */
.cat-circle-name {
  padding: 10px 8px 11px;
  font-size: .75rem; font-weight: 800;
  text-align: center; color: #1a1a1a;
  line-height: 1.25; width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #fff; letter-spacing: .15px;
  transition: background .2s, color .2s;
}
.cat-circle-card:hover .cat-circle-name,
.cat-circle-card.active .cat-circle-name {
  color: var(--red); background: #fff7f8;
}

.cat-count-badge {
  font-size: .6rem; font-weight: 700;
  background: rgba(166,28,53,.1); color: var(--red);
  border-radius: 20px; padding: 2px 8px;
  margin: 0 0 9px; display: inline-block;
}

/* Responsive */
@media (max-width: 767px) {
  .cats-title { font-size: 1.5rem; }
  .cat-circle-img-wrap { height: 82px; }
  .cat-circle-card { min-width: 90px; border-radius: 14px; }
  .cat-circle-name { font-size: .7rem; padding: 8px 6px 9px; }
}

/* Sidebar */
.account-sidebar {
  background: #fff; border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  position: sticky; top: 90px;
}
.account-avatar-wrap {
  text-align: center; margin-bottom: 20px;
}
.account-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--red);
  box-shadow: 0 4px 16px rgba(166,28,53,.2);
}
.account-avatar-initials {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #c0392b);
  color: #fff; font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(166,28,53,.25);
}
.account-user-name { font-weight: 800; font-size: 1rem; color: #1a1a1a; margin-bottom: 2px; }
.account-user-email { font-size: .78rem; color: #888; }
.account-member-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-lt); color: var(--green);
  border-radius: 50px; padding: 3px 10px;
  font-size: .7rem; font-weight: 700; margin-top: 6px;
}

/* Nav links */
.account-nav { list-style: none; padding: 0; margin: 0; }
.account-nav li { margin-bottom: 4px; }
.account-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  color: #555; font-weight: 600; font-size: .88rem;
  text-decoration: none; transition: all .2s;
  border: 1.5px solid transparent;
}
.account-nav-link i { width: 20px; text-align: center; font-size: .95rem; }
.account-nav-link:hover { background: #fff7f8; color: var(--red); border-color: rgba(166,28,53,.12); }
.account-nav-link.active {
  background: #fff7f8; color: var(--red);
  border-color: rgba(166,28,53,.2);
  font-weight: 700;
}
.account-nav-link.logout-link:hover { background: #fff0f0; color: #c0392b; border-color: rgba(192,57,43,.2); }

/* Content cards */
.account-content { display: none; }
.account-content.active { display: block; }
.account-card {
  background: #fff; border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  margin-bottom: 24px;
}
.account-content-card {
  background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.account-card-title {
  font-size: 1.1rem; font-weight: 800; color: #1a1a1a;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 2px solid #f0f0f0;
  display: flex; align-items: center; gap: 10px;
}
.account-card-title i { color: var(--red); }

/* Avatar upload */
.profile-photo-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  margin-bottom: 26px;
  border: 1px solid rgba(25,135,84,.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(25,135,84,.08), transparent 32%),
    linear-gradient(135deg, #fbfffc 0%, #fff7f8 100%);
}
.profile-photo-copy {
  min-width: 0;
}
.profile-photo-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #198754;
  font-size: .72rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.profile-photo-copy h3 {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0 0 4px;
  color: #1f2933;
}
.profile-photo-copy p {
  margin: 0;
  color: #6b7280;
  font-size: .86rem;
}
.avatar-upload-wrap {
  position: relative;
  width: 142px;
  min-width: 142px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin: 0;
}
.avatar-upload { position: relative; width: 100px; height: 100px; cursor: pointer; }
.avatar-ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  padding: 5px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #198754, #dc3545) border-box;
  border: 2px solid transparent;
  box-shadow: 0 14px 28px rgba(31,41,51,.14);
  display: block;
}
.avatar-upload-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 0;
}
.avatar-upload img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid #dc3545; }
.avatar-upload .avatar-edit { position: absolute; bottom: 0; right: 0; background: #dc3545; color: white; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.avatar-upload-edit {
  position: absolute;
  top: 84px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(220,53,69,.24);
}
.avatar-upload-text {
  color: #198754;
  font-size: .78rem;
  font-weight: 900;
}
.avatar-upload-wrap:hover .avatar-ring {
  box-shadow: 0 18px 34px rgba(25,135,84,.2);
}
.avatar-upload-wrap:hover .avatar-upload-text {
  color: #dc3545;
}

/* Order status badges */
.order-status { padding: 4px 12px; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.order-status.pending   { background: #fff8e1; color: #f59e0b; }
.order-status.processing{ background: #eff6ff; color: #3b82f6; }
.order-status.shipped   { background: #f5f3ff; color: #7c3aed; }
.order-status.delivered { background: #f0fdf4; color: #16a34a; }
.order-status.cancelled { background: #fef2f2; color: #dc2626; }

/* Order cards */
.order-card {
  border: 1.5px solid #f0f0f0; border-radius: 14px;
  padding: 18px 20px; margin-bottom: 14px;
  transition: all .22s; cursor: pointer;
}
.order-card:hover { border-color: rgba(166,28,53,.2); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.order-card.expanded { border-color: var(--red); }

/* Order filter tabs */
.order-filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.order-filter-tab {
  padding: 6px 16px; border-radius: 50px;
  border: 1.5px solid #e0e0e0; background: #fff;
  font-size: .8rem; font-weight: 600; color: #666;
  cursor: pointer; transition: all .2s;
}
.order-filter-tab:hover, .order-filter-tab.active {
  border-color: var(--red); background: #fff7f8; color: var(--red);
}

/* Address cards */
.address-card {
  border: 1.5px solid #f0f0f0; border-radius: 14px;
  padding: 18px 20px; position: relative;
  transition: all .22s;
}
.address-card:hover { border-color: rgba(166,28,53,.2); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.address-card.default-address { border-color: var(--green); }
.address-default-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--green-lt); color: var(--green);
  font-size: .68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
}

/* Password strength */
.password-strength-bar {
  height: 5px; border-radius: 3px; margin-top: 6px;
  background: #e0e0e0; overflow: hidden;
}
.password-strength-fill {
  height: 100%; border-radius: 3px;
  transition: width .3s, background .3s;
}

/* Empty state */
.empty-state {
  text-align: center; padding: 48px 20px;
}
.empty-state-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: #f8f9fa;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 2rem; color: #ccc;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  background: linear-gradient(135deg, rgba(26,26,46,.88) 0%, rgba(30,108,65,.7) 100%),
              url('../images/banner-1.jpg') center/cover no-repeat;
  height: 260px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.contact-hero h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 8px; }
.contact-hero p { font-size: 1.05rem; opacity: .88; }

.contact-page { background: #f4f6f9; padding: 52px 0 70px; }

/* Contact form card */
.contact-form-card {
  background: #fff; border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 28px rgba(0,0,0,.08);
}
.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: 12px; border: 1.5px solid #e8e8e8;
  padding: 11px 16px; font-size: .9rem;
  transition: border-color .22s, box-shadow .22s;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(166,28,53,.1);
}
.contact-form-card textarea { resize: vertical; min-height: 130px; }
.char-counter { font-size: .72rem; color: #aaa; text-align: right; margin-top: 4px; }
.contact-submit-btn {
  background: var(--red); color: #fff; border: none;
  border-radius: 50px; padding: 13px 36px;
  font-weight: 700; font-size: .95rem;
  transition: all .25s; width: 100%;
}
.contact-submit-btn:hover { background: var(--red-dk); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(166,28,53,.3); }

/* Info cards */
.contact-info-card {
  background: #fff; border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 3px 16px rgba(0,0,0,.06);
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 16px; transition: all .22s;
  border: 1.5px solid transparent;
}
.contact-info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: rgba(166,28,53,.12); }
.contact-icon-circle {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-card h6 { font-weight: 800; font-size: .9rem; margin-bottom: 4px; color: #1a1a1a; }
.contact-info-card p, .contact-info-card a { font-size: .83rem; color: #666; margin: 0; text-decoration: none; }
.contact-info-card a:hover { color: var(--red); }

/* Map placeholder */
.map-placeholder {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-radius: 16px; height: 220px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 2px dashed rgba(30,108,65,.25);
  color: var(--green); margin-top: 16px;
}
.map-placeholder i { font-size: 2.5rem; margin-bottom: 10px; }
.map-placeholder p { font-size: .85rem; font-weight: 600; margin: 0; }

/* FAQ */
.faq-section { background: #fff; padding: 52px 0; }
.faq-section .accordion-button {
  font-weight: 700; font-size: .92rem; color: #1a1a1a;
  background: #fff;
}
.faq-section .accordion-button:not(.collapsed) {
  color: var(--red); background: #fff7f8;
  box-shadow: none;
}
.faq-section .accordion-button::after {
  filter: none;
}
.faq-section .accordion-button:not(.collapsed)::after {
  filter: invert(20%) sepia(80%) saturate(600%) hue-rotate(330deg);
}
.faq-section .accordion-item {
  border: 1.5px solid #f0f0f0; border-radius: 14px !important;
  margin-bottom: 10px; overflow: hidden;
}
.faq-section .accordion-body { font-size: .88rem; color: #666; line-height: 1.7; }

/* WhatsApp float button */
.whatsapp-float {
  position: fixed; bottom: 80px; right: 28px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 998; transition: all .25s;
}
.whatsapp-float:hover { background: #1ebe5d; transform: scale(1.1); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .account-sidebar { position: static; margin-bottom: 24px; }
  .contact-form-card { padding: 24px 20px; }
  .mega-categories-menu { min-width: 280px; columns: 1; }
}
@media (max-width: 767px) {
  .top-bar { display: none; }
  .header-search .cat-select { display: none; }
  .account-card { padding: 20px 16px; }
  .contact-hero h1 { font-size: 1.8rem; }
  .profile-photo-section {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }
  .avatar-upload-wrap {
    width: 132px;
    min-width: 132px;
  }
  .avatar-ring {
    width: 108px;
    height: 108px;
  }
  .avatar-upload-edit {
    top: 78px;
    right: 10px;
  }
}

/* ============================================================
   CATEGORY FRAME REFINEMENT
   Keeps name/count format while centering a rounded image.
   ============================================================ */
#categories-section .category-carousel {
  padding: 10px 4px 18px;
}
#categories-section .cat-circle-card {
  width: 156px;
  min-width: 156px;
  min-height: 210px;
  padding: 16px 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(25,135,84,.32), rgba(220,53,69,.22)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 12px 28px rgba(20,35,28,.08);
  justify-content: flex-start;
  overflow: visible;
}
#categories-section .cat-circle-card:hover,
#categories-section .cat-circle-card.active {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(20,35,28,.14), 0 0 0 4px rgba(25,135,84,.08);
}
#categories-section .cat-circle-img-wrap {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 5px solid #fff;
  outline: 2px solid rgba(25,135,84,.18);
  background: linear-gradient(135deg, #f3faf5, #fff6f7);
  box-shadow: 0 10px 22px rgba(20,35,28,.12);
  overflow: hidden;
  flex-shrink: 0;
}
#categories-section .cat-circle-card:hover .cat-circle-img-wrap,
#categories-section .cat-circle-card.active .cat-circle-img-wrap {
  outline-color: #198754;
  box-shadow: 0 12px 26px rgba(25,135,84,.22);
}
#categories-section .cat-circle-img-wrap::after {
  display: none;
}
#categories-section .cat-circle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#categories-section .cat-circle-card:hover .cat-circle-img-wrap img {
  transform: scale(1.08);
}
#categories-section .cat-circle-icon-fallback {
  border-radius: 50%;
  font-size: 1.75rem;
}
#categories-section .cat-circle-name {
  max-width: 132px;
  min-height: 38px;
  margin-top: 2px;
  color: #20242a;
  font-size: .74rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
#categories-section .cat-count-badge {
  margin-top: 8px;
  background: #f0fdf4;
  color: #198754;
  border: 1px solid rgba(25,135,84,.18);
  padding: 3px 10px;
  font-size: .68rem;
}
#categories-section .cat-circle-all .cat-circle-name {
  min-height: 20px;
}

@media (max-width: 767px) {
  #categories-section .cat-circle-card {
    width: 124px;
    min-width: 124px;
    min-height: 178px;
    padding: 12px 8px;
  }
  #categories-section .cat-circle-img-wrap {
    width: 82px;
    height: 82px;
  }
  #categories-section .cat-circle-name {
    max-width: 108px;
    font-size: .66rem;
  }
}

/* ============================================================
   INDEX GEOMETRY ALIGNMENT
   Keeps home sections parallel with the header container.
   ============================================================ */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.site-header,
#hero,
#categories-section,
#products-section,
.promo-section,
footer {
  width: 100%;
  max-width: 100%;
}

.site-header .container,
#hero .container,
#categories-section > .container,
#products-section > .container,
.promo-section > .container,
footer .container,
footer .container-lg {
  max-width: 1140px;
}

.site-header .row,
#products-section .row {
  --bs-gutter-x: 1.5rem;
}

.main-nav .container {
  gap: 18px;
}

.main-nav .container > .d-flex:first-child {
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 4px;
}

.main-nav .nav-link {
  white-space: nowrap;
}

.nav-promo-pill {
  flex-shrink: 0;
}

#categories-section {
  contain: paint;
}

#categories-section .category-carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding-left: 2px;
  padding-right: 2px;
}

#categories-section .swiper,
#categories-section .swiper-wrapper {
  max-width: 100%;
}

#categories-section .swiper-slide {
  display: flex;
  justify-content: center;
}

.products-filter-bar {
  width: 100%;
}

.products-grid-shell {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.products-grid-shell > .row {
  margin-left: 0;
  margin-right: 0;
}

.products-grid-shell > .row > [class*="col-"] {
  min-width: 0;
}

.wishlist-btn.active,
.wishlist-btn[aria-pressed="true"] {
  color: #dc3545;
  background: #fff5f5;
  border-color: rgba(220,53,69,.22);
}

@media (max-width: 1199px) {
  .site-header .container,
  #hero .container,
  #categories-section > .container,
  #products-section > .container,
  .promo-section > .container,
  footer .container,
  footer .container-lg {
    max-width: 960px;
  }
}

@media (max-width: 991px) {
  .site-header .container,
  #hero .container,
  #categories-section > .container,
  #products-section > .container,
  .promo-section > .container,
  footer .container,
  footer .container-lg {
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .site-header .container,
  #hero .container,
  #categories-section > .container,
  #products-section > .container,
  .promo-section > .container,
  footer .container,
  footer .container-lg {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .products-filter-bar > .d-flex {
    width: 100%;
  }

  .products-filter-bar .dropdown {
    min-width: 0;
  }
}


/* ============================================================
   PROFILE TAB — REDESIGNED LAYOUT
   ============================================================ */

/* Avatar + intro hero row */
.profile-hero-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 26px;
  margin-bottom: 28px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 20%, rgba(25,135,84,.09), transparent 36%),
    linear-gradient(135deg, #f6fff9 0%, #fff7f8 100%);
  border: 1.5px solid rgba(25,135,84,.13);
}

.profile-avatar-col {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  display: block;
  width: 110px;
}

.profile-avatar-ring {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 4px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #198754, #dc3545) border-box;
  border: 2.5px solid transparent;
  box-shadow: 0 10px 28px rgba(31,41,51,.14);
}

.profile-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-avatar-cam {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dc3545;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(220,53,69,.28);
  transition: background .2s, transform .2s;
}

.profile-avatar-col:hover .profile-avatar-cam {
  background: #bb2d3b;
  transform: scale(1.1);
}

.profile-hero-info {
  min-width: 0;
  flex: 1;
}

.profile-hero-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #1f2933;
  margin: 6px 0 4px;
  line-height: 1.3;
}

.profile-hero-sub {
  font-size: .84rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Fields grid */
.profile-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.profile-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field-label {
  font-size: .82rem;
  font-weight: 800;
  color: #374151;
  letter-spacing: .2px;
}

/* Read-only email with badge */
.profile-readonly-wrap {
  position: relative;
}

.profile-readonly-wrap .form-control {
  padding-right: 90px;
  background: #f9fafb;
  color: #6b7280;
}

.profile-readonly-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #d1fae5;
  color: #065f46;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 50px;
  white-space: nowrap;
  pointer-events: none;
}

/* Save button row */
.profile-save-row {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1.5px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Responsive */
@media (max-width: 767px) {
  .profile-hero-row {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
  }
  .profile-fields-grid {
    grid-template-columns: 1fr;
  }
  .profile-save-row {
    justify-content: center;
  }
  .profile-readonly-badge {
    display: none;
  }
}

/* ============================================================
   ACCOUNT BANNER — KPI STRIP
   ============================================================ */
.account-banner {
  padding-bottom: 0;
}

.account-kpi-strip {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
}

.account-kpi-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  gap: 4px;
  transition: background .2s;
  cursor: default;
}

.account-kpi-item:hover {
  background: rgba(255,255,255,.12);
}

.account-kpi-num {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -.5px;
}

.account-kpi-label {
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.account-kpi-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* Profile save hint */
.profile-save-hint {
  font-size: .8rem;
  color: #9ca3af;
  font-style: italic;
}

@media (max-width: 767px) {
  .account-kpi-strip {
    flex-wrap: wrap;
    border-radius: 12px;
  }
  .account-kpi-item {
    flex: 1 1 calc(33.33% - 1px);
    padding: 12px 8px;
    min-width: 80px;
  }
  .account-kpi-num { font-size: 1.2rem; }
  .account-kpi-label { font-size: .62rem; }
  .account-kpi-divider { display: none; }
  .profile-save-hint { display: none; }
}

@media (max-width: 480px) {
  .account-kpi-item { flex: 1 1 50%; }
}
