/* Custom CSS for Chitral Life - Professional E-commerce Styling */

:root {
  --primary: #1c88c6;
  --secondary: #F5E6D3;
  --accent: #F88129;
  --dark: #74412e;
  --light: #F9F5F0;
  --cream: #F9F5F0;
  --peach: #F5E6D3;
}

/* Body and Main Background */
body {
  background-color: var(--light) !important;
  color: var(--dark);
}

html {
  background-color: var(--light);
}

/* Override Bootstrap Primary Colors */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(28, 136, 198, 0.2);
}

.btn-primary:hover {
  background-color: #1674a8 !important;
  border-color: #1674a8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(28, 136, 198, 0.3);
}

.btn-primary:focus,
.btn-primary:active {
  background-color: #1674a8 !important;
  border-color: #1674a8 !important;
  box-shadow: 0 0 0 0.2rem rgba(28, 136, 198, 0.5);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: var(--dark) !important;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #e8d4bc !important;
  border-color: #e8d4bc !important;
  color: var(--dark) !important;
}

/* Accent/Orange Button */
.btn-accent {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(248, 129, 41, 0.2);
}

.btn-accent:hover {
  background-color: #e6701a !important;
  border-color: #e6701a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(248, 129, 41, 0.3);
}

/* Background Colors */
.bg-primary {
  background-color: var(--primary) !important;
}

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

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

/* Text Colors */
.text-primary {
  color: var(--primary) !important;
}

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

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

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

/* Custom Navbar Styles */
.navbar-light .navbar-nav .nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  padding: 10px 15px;
  transition: all 0.3s ease;
  border-radius: 6px;
  margin: 0 5px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background-color: rgba(28, 136, 198, 0.1);
}

/* Navbar Brand Logo */
.navbar-brand img {
  transition: transform 0.3s ease;
  height: 80px;
  width: auto;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Responsive Logo */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 60px;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 50px;
  }
}

/* Navbar Icons */
.navbar .btn-link {
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar .btn-link:hover {
  color: var(--primary) !important;
  transform: translateY(-2px);
}

/* Responsive Navbar */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    padding: 10px 0;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 0;
    margin: 5px 0;
  }
  
  .navbar .d-flex.align-items-center {
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 10px 0px;
    margin: 5px 0;
  }
}

.navbar-vertical.navbar-light .navbar-nav .nav-link {
  padding: 12px 30px;
  border-bottom: 1px solid rgba(116, 65, 46, 0.1);
  border-radius: 0;
  margin: 0;
}

.navbar-vertical.navbar-light .navbar-nav .nav-link:hover {
  background-color: rgba(28, 136, 198, 0.1);
  color: var(--primary) !important;
}

/* Section Title */
.section-title {
  position: relative;
  display: inline-block;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--dark);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.section-title span {
  position: relative;
  background: var(--light);
  z-index: 1;
  padding: 0 20px;
}

.section-title::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  margin-top: -2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Section Descriptions */
.section-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--dark);
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
}

/* Section Main Headings */
.section-main-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  letter-spacing: 0.5px;
}

/* Section Body Text */
.section-body-text {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #555;
  font-weight: 400;
}

/* Custom Banner */
.advert-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--light) 100%) !important;
  border-radius: 12px;
  padding: 50px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.advert-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Banner Typography */
.banner-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.banner-heading i {
  margin-right: 10px;
  font-size: 1.8rem;
}

.banner-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
}

.banner-features {
  width: 100%;
}

.banner-feature-item {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark);
  font-weight: 500;
}

.banner-feature-item i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.banner-price {
  font-size: 1.3rem;
  color: var(--dark);
  margin-top: 0.5rem;
}

.banner-price span {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Product Styles */
.product-item {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.product-item .card-footer {
  background-color: var(--light) !important;
}

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

.product-item img {
  transition: all 0.5s ease;
}

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

.product-item:hover .product-img img {
  transform: scale(1.1);
}

.product-item .btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.product-item .btn:hover {
  color: var(--primary) !important;
  transform: translateY(-2px);
}

/* Forms */
.form-control {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(28, 136, 198, 0.25);
  outline: none;
}

.input-group .form-control {
  border-radius: 8px 0 0 8px;
}

.input-group-append .input-group-text {
  border-radius: 0 8px 8px 0;
  border: 2px solid #e0e0e0;
  border-left: none;
  background-color: var(--light);
  transition: all 0.3s ease;
}

.input-group-append .input-group-text:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Cards */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: #ffffff;
}

.card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.card-header {
  background-color: var(--secondary) !important;
  border-bottom: 2px solid rgba(116, 65, 46, 0.1);
  border-radius: 12px 12px 0 0 !important;
  padding: 20px;
}

.card-body {
  padding: 25px;
  background-color: #ffffff;
}

.card-footer {
  background-color: var(--light) !important;
  border-top: 1px solid rgba(116, 65, 46, 0.1);
}

/* Tables */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, var(--primary), #1674a8);
  color: #ffffff;
}

.table thead th {
  border: none;
  padding: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background-color: var(--light);
  transform: scale(1.01);
}

.table tbody td {
  padding: 15px;
  vertical-align: middle;
  border-top: 1px solid #e0e0e0;
}

/* Badges */
.badge {
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 500;
  font-size: 0.75rem;
}

.badge-primary {
  background-color: var(--primary);
  color: #ffffff;
}

/* Alerts */
.alert {
  border-radius: 8px;
  border: none;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-primary {
  background-color: rgba(28, 136, 198, 0.1);
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border-left: 4px solid #ffc107;
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
  border-left: 4px solid #17a2b8;
}

/* Contact Form */
.contact-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(116, 65, 46, 0.1);
}

.contact-form .help-block ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 11;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1674a8) !important;
  box-shadow: 0 4px 12px rgba(28, 136, 198, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: action 1s infinite alternate;
}

.back-to-top i {
  font-size: 20px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(28, 136, 198, 0.5);
  color: #ffffff;
  text-decoration: none;
}

@keyframes action {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* Custom Login */
.custom-login {
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  border: 1px solid rgba(116, 65, 46, 0.1);
}

/* Login and Registration Cards */
.card.shadow,
.card.shadow-lg {
  background-color: #ffffff !important;
  border: 1px solid rgba(116, 65, 46, 0.1);
}

/* Hero Banner */
.hero-banner {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Text Content */
.hero-text-content {
  text-align: center;
  padding: 2rem;
}

.hero-main-heading {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1c88c6;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 255, 255, 0.95);
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subheading {
  font-size: 1.75rem;
  font-weight: 600;
  color: #F88129;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  line-height: 1.4;
}

/* Responsive Hero Banner */
@media (max-width: 992px) {
  .hero-main-heading {
    font-size: 2.75rem;
    letter-spacing: 1.5px;
  }
  
  .hero-subheading {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    height: 50vh !important;
    min-height: 400px !important;
  }
  
  .hero-main-heading {
    font-size: 2.25rem !important;
    letter-spacing: 1px !important;
  }
  
  .hero-subheading {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 576px) {
  .hero-banner {
    height: 40vh !important;
    min-height: 300px !important;
  }
  
  .hero-main-heading {
    font-size: 1.75rem !important;
  }
  
  .hero-subheading {
    font-size: 1.1rem !important;
  }
}

/* Pagination */
.pagination .page-link {
  color: var(--primary);
  border-color: #e0e0e0;
  border-radius: 6px;
  margin: 0 3px;
  padding: 10px 16px;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(28, 136, 198, 0.3);
}

/* Dropdown Menu - Professional Styling */
.dropdown-menu {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  margin-top: 8px;
  background-color: #ffffff !important;
  min-width: 200px;
  animation: dropdownFadeIn 0.2s ease;
  will-change: opacity, transform;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 12px 20px;
  transition: all 0.2s ease;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, var(--primary) 0%, #1674a8 100%);
  color: #ffffff !important;
  transform: translateX(5px);
  text-decoration: none;
}

.dropdown-item:active,
.dropdown-item:focus {
  background: linear-gradient(135deg, var(--primary) 0%, #1674a8 100%);
  color: #ffffff !important;
  outline: none;
  text-decoration: none;
}

.dropdown-item-text {
  padding: 12px 20px;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(116, 65, 46, 0.1);
  margin-bottom: 4px;
}

.dropdown-divider {
  margin: 8px 0;
  border-top: 1px solid rgba(116, 65, 46, 0.1);
}

/* Dropdown Toggle Button */
.dropdown-toggle {
  transition: all 0.3s ease;
}

.dropdown-toggle:hover {
  color: var(--primary) !important;
}

.dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Prevent visual glitches during dropdown transitions */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .dropdown-menu {
  pointer-events: auto;
  display: none;
}

.nav-item.dropdown.show .dropdown-menu {
  display: block;
}

/* User Profile Dropdown Specific */
#userDropdown + .dropdown-menu {
  min-width: 220px;
  right: 0;
  left: auto;
}

/* Navigation Dropdown Specific */
.nav-item.dropdown .dropdown-menu {
  border-radius: 8px;
  margin-top: 5px;
}

/* Shop Page Dropdown */
#triggerId + .dropdown-menu {
  min-width: 180px;
}

/* Borders */
.border {
  border-color: #e0e0e0 !important;
}

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

/* Links */
a {
  color: var(--primary);
  transition: all 0.3s ease;
}

a:hover {
  color: #1674a8;
  text-decoration: none;
}

/* Footer */
footer,
.container-fluid[style*="background: linear-gradient"] {
  background: linear-gradient(135deg, var(--dark) 0%, #5a3424 100%) !important;
}

footer a,
.container-fluid[style*="background: linear-gradient"] a {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

footer a:hover,
.container-fluid[style*="background: linear-gradient"] a:hover {
  color: var(--accent) !important;
  opacity: 1 !important;
  text-decoration: none;
}

/* Topbar and Page Headers */
.bg-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--light) 100%) !important;
}

/* Topbar Row Background */
.row.bg-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--light) 100%) !important;
}

/* Navbar Background */
.navbar-light {
  background-color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Container Backgrounds */
.container-fluid {
  background-color: transparent;
}

.container {
  background-color: transparent;
}

/* Main Content Area */
main {
  background-color: var(--light);
  min-height: calc(100vh - 200px);
}

/* Search Input */
.input-group .form-control:focus + .input-group-append .input-group-text {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Cart Table Specific Styles */
.table.table-bordered {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table.table-bordered thead th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  padding: 16px 12px;
}

.table.table-bordered tbody td {
  padding: 20px 12px;
  vertical-align: middle;
}

.table.table-bordered tbody tr {
  transition: background-color 0.2s ease;
}

.table.table-bordered tbody tr:hover {
  background-color: rgba(249, 245, 240, 0.6);
  transform: none;
}

/* Cart Summary Card */
.card.border-secondary {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(116, 65, 46, 0.1) !important;
}

.card-header.bg-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--light) 100%) !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 20px;
}

.card-header h4 {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.5rem;
}

.card-body h6 {
  font-size: 1rem;
  color: #555;
}

.card-footer h5 {
  font-size: 1.25rem;
  color: var(--dark);
}

/* Cart Quantity Controls */
.quantity-control {
  gap: 8px;
  max-width: 140px;
  margin: 0 auto;
}

.quantity-input {
  width: 45px;
  height: 38px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s ease;
  padding: 0 4px;
}

.quantity-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 136, 198, 0.1);
}

.btn-quantity {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-quantity i {
  line-height: 1;
}

.btn-decrease {
  background-color: #ff9800;
  color: #ffffff;
}

.btn-decrease:hover {
  background-color: #f57c00;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.btn-increase {
  background-color: #28a745;
  color: #ffffff;
}

.btn-increase:hover {
  background-color: #218838;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-remove {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background-color: #dc3545;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
  margin: 0 auto;
}

.btn-remove:hover {
  background-color: #c82333;
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-remove i {
  line-height: 1;
}

/* Navigation Icon Badges */
.nav-icon-badge {
  position: relative;
}

.nav-icon-badge .badge {
  top: -8px;
  right: -8px;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 600;
  line-height: 1;
}

/* Responsive Cart Buttons */
@media (max-width: 768px) {
  .quantity-control {
    max-width: 120px;
    gap: 6px;
  }
  
  .quantity-input {
    width: 40px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .btn-quantity,
  .btn-remove {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}

/* Payment Method Radio Buttons - Daraz Style */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-option {
  position: relative;
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.payment-label {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.payment-label:hover {
  border-color: var(--primary);
  background-color: rgba(28, 136, 198, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 136, 198, 0.15);
}

.payment-option input[type="radio"]:checked + .payment-label {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(28, 136, 198, 0.1) 0%, rgba(248, 129, 41, 0.05) 100%);
  box-shadow: 0 4px 15px rgba(28, 136, 198, 0.2);
}

.payment-option input[type="radio"]:checked + .payment-label::before {
  content: "✓";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.payment-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #1674a8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 16px;
  flex-shrink: 0;
}

.easypaisa-icon {
  background: linear-gradient(135deg, #00A651 0%, #008B45 100%);
}

.jazzcash-icon {
  background: linear-gradient(135deg, #FF6B00 0%, #E55A00 100%);
}

.bank-icon {
  background: linear-gradient(135deg, var(--dark) 0%, #5a3424 100%);
}

.payment-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.payment-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.payment-desc {
  font-size: 0.9rem;
  color: #666;
}

.payment-option input[type="radio"]:checked + .payment-label .payment-name {
  color: var(--primary);
  font-weight: 700;
}

/* Responsive Payment Options */
@media (max-width: 768px) {
  .payment-label {
    padding: 14px 16px;
  }
  
  .payment-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
    margin-right: 12px;
  }
  
  .payment-name {
    font-size: 1rem;
  }
  
  .payment-desc {
    font-size: 0.85rem;
  }
}

/* Product Details */
.product-details {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Product detail page: image zoom loupe (hover, fine pointer) */
.product-zoom-card {
  background: #f8f9fa;
}

.product-zoom-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: crosshair;
  min-height: 200px;
}

.product-zoom-img {
  vertical-align: middle;
}

.product-zoom-lens {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 2;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
}

.product-zoom-lens-ico {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary, #74412e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

@media (hover: none) {
  .product-zoom-lens {
    display: none !important;
  }

  .product-zoom-wrap {
    cursor: default;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-zoom-lens {
    transition: none;
  }
}

/* Product Details Page Background */
.bg-light.p-30 {
  background-color: #ffffff !important;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(116, 65, 46, 0.1);
}

/* All bg-light should use light cream for backgrounds, white for cards */
.bg-light:not(.card-body):not(.card-footer):not(.card-header) {
  background-color: var(--light) !important;
}

/* Ensure white backgrounds for cards and forms */
.card,
.card-body,
.contact-form,
.checkout-form,
.custom-login {
  background-color: #ffffff !important;
}

/* Overlay backgrounds */
.bg-dark.opacity-25 {
  background-color: rgba(116, 65, 46, 0.15) !important;
}

/* Transparent backgrounds - keep transparent */
.bg-transparent {
  background-color: transparent !important;
}

/* Badge backgrounds with proper colors */
.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: var(--dark) !important;
}

/* Input group text backgrounds */
.input-group-text.bg-transparent {
  background-color: var(--light) !important;
}

.input-group-text.bg-transparent:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
}

/* Card footer transparent - use light background */
.card-footer.bg-transparent {
  background-color: var(--light) !important;
}

/* Section backgrounds */
.section-title span.bg-secondary {
  background-color: var(--light) !important;
}

/* Input Backgrounds */
.form-control.bg-secondary {
  background-color: var(--secondary) !important;
  border-color: var(--secondary);
  color: var(--dark);
}

/* Table Row Backgrounds */
.table tbody tr:nth-child(even) {
  background-color: rgba(249, 245, 240, 0.5);
}

.table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

/* Accordion/Collapse Backgrounds */
.accordion .card {
  background-color: #ffffff;
  border: 1px solid rgba(116, 65, 46, 0.1);
}

.accordion .card-header {
  background-color: var(--secondary) !important;
}

.accordion .card-body {
  background-color: #ffffff;
}


/* Badge Backgrounds */
.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
}

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

/* Page Header Backgrounds */
.container-fluid.bg-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--light) 100%) !important;
}

/* Newsletter Section */
.container-fluid.bg-secondary.my-5 {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--light) 100%) !important;
}

.container-fluid.bg-secondary.my-5 .section-title {
  font-size: 2rem !important;
  letter-spacing: 1px;
}

.container-fluid.bg-secondary .section-description {
  color: var(--dark) !important;
  opacity: 1;
  font-weight: 400;
}

/* Featured Items */
.featured-item {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.featured-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-icon {
  font-size: 2.5rem !important;
  min-width: 50px;
}

.featured-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.featured-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-main-heading {
    font-size: 1.75rem;
  }
  
  .section-description {
    font-size: 1.15rem;
  }
  
  .section-body-text {
    font-size: 1.05rem;
  }
  
  .banner-heading {
    font-size: 1.75rem;
  }
  
  .banner-description {
    font-size: 1rem;
  }
  
  .featured-heading {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-main-heading {
    font-size: 1.6rem;
  }
  
  .section-description {
    font-size: 1.05rem;
  }
  
  .section-body-text {
    font-size: 1rem;
  }
  
  .advert-banner {
    padding: 30px 25px;
  }
  
  .banner-heading {
    font-size: 1.5rem;
  }
  
  .banner-description {
    font-size: 0.95rem;
  }
  
  .banner-feature-item {
    font-size: 1rem;
  }
  
  .featured-heading {
    font-size: 1.1rem;
  }
  
  .featured-description {
    font-size: 0.95rem;
  }
  
  .featured-icon {
    font-size: 2rem !important;
    min-width: 40px;
  }
  
  .product-img img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-main-heading {
    font-size: 1.4rem;
  }
  
  .banner-heading {
    font-size: 1.35rem;
  }
  
  .featured-heading {
    font-size: 1rem;
  }
}

/* Sale price: original (strikethrough) + current + % OFF */
.product-price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.product-price-block--compact .product-price-original {
  font-size: 0.8rem;
}
.product-price-original {
  text-decoration: line-through;
  font-size: 0.9rem;
}
.product-price-current {
  line-height: 1.2;
}
.product-price-pct {
  margin-top: 0.1rem;
}

/* Category pill bar (Home/Shop/Search) */
.category-pills {
  gap: 0.35rem;
}
.category-pills .btn {
  border-radius: 999px;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.1px;
  text-align: center;
  white-space: nowrap;
}

/* Home/Shop section text centering polish */
.section-description {
  text-align: center;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* Make runtime validation messages consistent */
.invalid-feedback,
.help-block.text-danger {
  display: block;
  margin-top: 0.35rem;
}
.is-invalid + .invalid-feedback {
  display: block;
}

/* Frontend toast notifications */
.toast-stack {
  position: fixed;
  top: 92px; /* below navbar */
  right: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.toast-item .toast-close {
  margin-left: auto;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  line-height: 1;
  font-size: 18px;
}
.toast-item.toast-success {
  border-left: 6px solid #28a745;
  background: #eaf8ee;
  color: #1e7e34;
}
.toast-item.toast-danger {
  border-left: 6px solid #dc3545;
  background: #fdecec;
  color: #b21f2d;
}
.toast-item.toast-warning {
  border-left: 6px solid #ffc107;
  background: #fff7e0;
  color: #8a6d00;
}
.toast-item.toast-info {
  border-left: 6px solid #17a2b8;
  background: #e7f7fb;
  color: #0f6674;
}
.toast-item.toast-primary { border-left: 6px solid var(--primary); }

@keyframes toast-in {
  from { transform: translateX(14px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(10px); opacity: 0; }
}
.toast-item {
  animation: toast-in 160ms ease-out;
}
.toast-item.toast-leaving {
  animation: toast-out 180ms ease-in forwards;
}
