/* Main Styles for SlayMarks Website - Based on Style Guide */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@300;400;500&family=Inter:wght@400;500;600&display=swap');

/* Custom Variables */
:root {
  --primary: #860000;
  --primary-dark: #4a0000;
  --primary-light: #a30000;
  --secondary: #fffccf;
  --white: #ffffff;
  --black: #000000;
  --gray: #6c757d;
  --gray-light: #f8f9fa;
  --gray-dark: #343a40;
  
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-2xl: 20px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.3s ease;
  
  /* New Variables */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition-base: all 0.3s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  
  /* Soft Background Colors */
  --primary-soft: rgba(134, 0, 0, 0.1);
  --warning-soft: rgba(255, 252, 207, 0.3);
}

/* General Styles */
body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--dark-text);
  line-height: 1.7;
  background-color: var(--white);
  letter-spacing: -0.01em;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.heroine ::selection, footer ::selection {
  background: var(--secondary);
  color: var(--primary);
}

::selection {
  background: var(--primary);
  color: var(--secondary);
}


img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Mobile-first approach */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Touch optimized buttons */
.btn {
  touch-action: manipulation;
}

/* Improved table responsiveness */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Optimized images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Optimized forms for mobile */
input, select, textarea {
  font-size: 16px !important; /* Prevents zoom on iOS */
}

/* Optimized touch targets */
.nav-link, .btn, .card-link {
  min-height: 44px; /* Apple's recommended minimum */
  display: flex;
  align-items: center;
}

/* Improved scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: #6e0000;
}

/* Page Transitions */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.page-transition.active {
  transform: translateY(0);
}

/* Navbar Styles */
.navbar {
  padding: 1rem 0;
  background: rgba(134, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(134, 0, 0, 0.98);
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-brand img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  font-family: var(--font-secondary);
}

.nav-link:hover {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.dropdown-menu {
  background: rgba(134, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
  margin-top: 0.5rem;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  transition: var(--transition);
  font-family: var(--font-secondary);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: translateX(5px);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* User Menu Styles */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-menu .btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-2xl);
  font-weight: 500;
  transition: var(--transition);
  font-family: var(--font-secondary);
}

.user-menu .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
}

.user-menu .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.user-menu .btn-warning {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

.user-menu .btn-warning:hover {
  background: #ffd900;
  border-color: #ffd900;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Alert Styles */
.alert {
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-secondary);
}

.alert-success {
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.2);
  color: #198754;
}

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

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
  transition: var(--transition);
}

.btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(134, 0, 0, 0.98);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .dropdown-menu {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }
  
  .dropdown-item {
    padding: 0.75rem 1.5rem;
  }
  
  .user-menu {
    margin-top: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .user-menu .btn {
    width: 100%;
    text-align: center;
  }
}

/* Buttons */
.btn {
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: var(--transition-base);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.btn:active::after {
  transform: translate(-50%, -50%) scale(1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 12px 24px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #6e0000;
  border-color: #6e0000;
  color: var(--secondary);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary);
  color: var(--secondary);
}

.btn-warning {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

.btn-warning:hover, .btn-warning:focus {
  background-color: #f5f2c0;
  border-color: #f5f2c0;
  color: var(--primary);
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: var(--white);
  color: var(--primary);
}

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

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

.hero-image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Card Customization */
.card {
  transition: var(--transition-base);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: var(--transition-base);
}

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

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

/* Product Details */
.product-image {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-features {
  list-style: none;
  padding-left: 0;
}

.product-features li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Testimonial Cards */
.testimonial-card {
  border-radius: 10px;
}

/* Forms */
.form-control {
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  transition: var(--transition-base);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(134, 0, 0, 0.1);
}

a {
  text-decoration: none;
}

/* Footer Styles */
footer {
  background-color: var(--primary);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(134, 0, 0, 0.1), transparent);
  z-index: 1;
}

footer .container {
  position: relative;
  z-index: 2;
}

.footer-brand h5 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #860000;
  transform: translateY(-3px);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: #ffd700;
  transform: translateX(5px);
}

.contact-info li {
  margin-bottom: 1.25rem;
}

.contact-info i {
  font-size: 1.25rem;
  width: 30px;
}

/* Responsive Footer */
@media (max-width: 991.98px) {
  .footer-brand h5 {
    font-size: 1.5rem;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 767.98px) {
  footer {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-links, .contact-info {
    margin-bottom: 2rem;
  }
  
  .contact-info li {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .footer-brand h5 {
    font-size: 1.25rem;
  }
  
  .social-icon {
    width: 28px;
    height: 28px;
  }
  
  .contact-info i {
    font-size: 1rem;
    width: 25px;
  }
}

/* Payment Methods Section */
.payment-methods {
  padding: 1.5rem 0;
  text-align: center;
}

.payment-methods img {
  height: 30px;
  margin: 0.5rem;
  filter: grayscale(1) brightness(1.5);
  transition: all 0.3s ease;
}

.payment-methods img:hover {
  filter: grayscale(0);
}

/* Admin Dashboard */
.dashboard-card {
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.dashboard-card:hover {
  box-shadow: var(--shadow-md);
}

.dashboard-icon {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card-img-top {
    height: 180px;
  }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
}

/* AOS Custom Styles */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

/* Section Backgrounds */
.bg-light {
  background-color: var(--light-gray) !important;
}

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

/* Custom Utilities */
.shadow-hover {
  transition: var(--transition-base);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-lg);
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Background Gradients */
.bg-gradient-primary {
  background: var(--primary);
}

/* Hero Section Styles */
.hero-section {
  padding: 6rem 0;
  margin: 0;
  background-color: var(--primary);
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  background-color: var(--primary);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary) 0%, #4a0000 100%);
}

.hero-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-shapes .shape-1 {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(-15deg);
}

.hero-shapes .shape-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.hero-shapes .shape-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transform: translate(-50%, -50%);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: var(--secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 10px 4px rgba(0, 0, 0, 0.1);
}

.hero-text {
  font-size: 1.25rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-image-container {
  position: relative;
  padding: 2rem;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
}

.hero-image-container:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-image {
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.floating-card {
  position: absolute;
  bottom: 30px;
  right: 0;
  max-width: 250px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

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

/* Feature Cards */
.feature-icon-wrapper {
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius-md);
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Product Cards */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.product-card:hover .card-overlay {
  opacity: 1;
}

.bg-primary-soft {
  background-color: var(--primary-soft);
}

.bg-warning-soft {
  background-color: var(--warning-soft);
}

/* Testimonial Cards */
.testimonial-avatar {
  width: 48px;
  height: 48px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-text);
}

.testimonial-rating {
  font-size: 1.1rem;
}

/* Section Shapes */
.section-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape-circle {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(134, 0, 0, 0.05);
}

.shape-dots {
  position: absolute;
  bottom: 50px;
  left: 50px;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(var(--primary) 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.1;
}

/* CTA Section */
.cta-shapes .shape-1 {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-shapes .shape-2 {
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-image-container {
    transform: none;
    padding: 1rem;
  }
  
  .floating-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-text {
    font-size: 1.1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature-icon i {
    font-size: 1.5rem;
  }
}

/* Animations */
.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

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

/* Loading Animation */
.loading-animation {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: rgba(134, 0, 0, 0.1);
  overflow: hidden;
}

.loading-animation::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background-color: var(--primary);
  animation: loading 1s infinite ease-in-out;
}

@keyframes loading {
  0% { left: -30%; }
  100% { left: 100%; }
}

/* Custom Badge Styles */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.badge.rounded-pill {
  padding-right: 1.2rem;
  padding-left: 1.2rem;
}

/* Custom Alert Styles */
.alert {
  border: none;
  padding: 1rem 1.5rem;
}

.alert-info {
  background-color: rgba(13, 202, 240, 0.1);
  color: var(--info);
}

/* Custom Button Styles */
.btn {
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 1rem 2rem;
}

.btn.rounded-pill {
  padding-left: 1.8rem;
  padding-right: 1.8rem;
}

.btn i {
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

/* Custom Card Styles */
.card {
  border: none;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Custom Input Styles */
.form-control {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(134, 0, 0, 0.1);
}

/* Products Page Styles */
.products-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 6rem 0 4rem;
  margin-top: -2rem;
  color: var(--white);
}

.hero-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
}

.hero-image-wrapper {
  position: relative;
  padding: 2rem;
}

.hero-image {
  border-radius: var(--border-radius-2xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-10deg);
  transition: var(--transition);
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.5rem;
  color: var(--primary);
}

.floating-card span {
  font-weight: 500;
}

.card-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 10%;
  left: -20px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Quick Stats */
.quick-stat {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.quick-stat:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.quick-stat i {
  font-size: 2rem;
}

.quick-stat h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
}

.quick-stat p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

/* Filter Card Styles */
.filter-card {
  border-radius: var(--border-radius-xl);
  transition: var(--transition);
}

.filter-card:hover {
  transform: translateY(-5px);
}

.subject-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subject-filter-item {
  position: relative;
}

.subject-filter-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  background: var(--gray-light);
  cursor: pointer;
  transition: var(--transition);
}

.filter-label i {
  font-size: 1.25rem;
  color: var(--gray);
  transition: var(--transition);
}

.filter-label span {
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
}

.subject-filter-item input:checked + .filter-label {
  background: var(--primary-soft);
}

.subject-filter-item input:checked + .filter-label i,
.subject-filter-item input:checked + .filter-label span {
  color: var(--primary);
}

/* Product Card Styles */
.product-card {
  border-radius: var(--border-radius-xl);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.card-img-wrapper img {
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay .btn {
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(20px);
  transition: var(--transition);
}

.product-card:hover .card-overlay .btn {
  transform: translateY(0);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-2xl);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 2;
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
}

.price-tag {
  display: flex;
  flex-direction: column;
}

/* Empty State */
.empty-state {
  padding: 3rem;
  background: var(--gray-light);
  border-radius: var(--border-radius-xl);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .products-hero {
    padding: 5rem 0 3rem;
  }
  
  .quick-stat {
    padding: 0.75rem;
  }
  
  .quick-stat i {
    font-size: 1.5rem;
  }
  
  .quick-stat h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .products-hero {
    padding: 4rem 0 2rem;
    text-align: center;
  }
  
  .quick-stat {
    justify-content: center;
  }
  
  .search-form {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Search Bar Styles */
.search-form .input-group {
  border-radius: var(--border-radius-lg);
  background: var(--white);
}

.search-form .form-control {
  border: 2px solid transparent;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg) !important;
  box-shadow: none !important;
}

.search-form .form-control:focus {
  border-color: var(--primary);
}

.search-form .btn {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0 !important;
}

/* Counter styles */
.counter-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.counter-item:hover .counter-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(134, 0, 0, 0.15);
}

.counter-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.counter-value::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.counter-item p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .counter-icon {
    width: 60px;
    height: 60px;
  }
  
  .counter-value {
    font-size: 2.5rem;
  }
  
  .counter-item p {
    font-size: 1rem;
  }
}

/* Product badge */
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

/* Shadow hover effect */
.shadow-hover {
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.shadow-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Feature card improvements */
.feature-card {
  transition: all 0.3s ease;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

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

.feature-icon {
  transition: all 0.3s ease;
  width: 70px;
  height: 70px;
}

/* Testimonial improvements */
.testimonial-card {
  border-radius: var(--border-radius-lg);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
}

/* CTA section improvements */
.cta-image-container {
  position: relative;
  z-index: 2;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Improved section shapes */
.section-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(134, 0, 0, 0.1);
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.shape-dots {
  position: absolute;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(var(--primary) 2px, transparent 2px);
  background-size: 15px 15px;
  opacity: 0.2;
  bottom: -50px;
  left: -50px;
}

/* Additional improvements */
.badge {
  padding: 0.5em 1em;
  font-weight: 500;
}

.rounded-4 {
  border-radius: 1rem;
}

.rounded-5 {
  border-radius: 2rem;
}

/* Improved card styling */
.card {
  border: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-body {
  position: relative;
  z-index: 2;
}

/* Improved button styling */
.btn {
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn i {
  transition: all 0.3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-warning {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}

.btn-warning:hover {
  background: #fff9b3;
  border-color: #fff9b3;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Improved text styling */
.lead {
  font-weight: 400;
  line-height: 1.6;
}

.display-5 {
  font-weight: 700;
  line-height: 1.2;
}

/* Improved spacing */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.my-5 {
  margin-top: 5rem !important;
  margin-bottom: 5rem !important;
}

/* Featured Products Styling */
.featured-product-card {
  border-radius: var(--border-radius-lg);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.featured-product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.featured-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.featured-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.featured-badge .badge {
  font-size: 0.8rem;
  padding: 0.5em 1em;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.featured-subject-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 2;
}

.featured-subject-badge .badge {
  font-size: 0.8rem;
  padding: 0.5em 1em;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.featured-product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--white);
}

.featured-product-title {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--gray-dark);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-product-features {
  margin-bottom: 1.5rem;
}

.featured-product-features i {
  font-size: 0.9rem;
}

.featured-product-footer {
  margin-top: auto;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.rating {
  font-size: 0.9rem;
}

.grade-badge .badge {
  font-weight: 500;
}

.featured-products-slider {
  position: relative;
}

@media (max-width: 768px) {
  .featured-product-image {
    height: 180px;
  }
  
  .featured-product-title {
    font-size: 1.1rem;
  }
  
  .featured-product-features {
    font-size: 0.9rem;
  }
  
  .price-container .h4 {
    font-size: 1.25rem;
  }
  
  .action-buttons .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Checkout Page Styles */
.checkout-container {
  background: linear-gradient(135deg, var(--gray-light) 0%, #ffffff 100%);
  min-height: 100vh;
  padding-top: 2rem;
}

.checkout-header {
  position: relative;
  margin-bottom: 3rem;
}

.checkout-header::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  margin-right: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.payment-option-card {
  height: 100%;
  transition: var(--transition);
}

.payment-option-card:hover {
  transform: translateY(-2px);
}

.payment-option-card .btn-check:checked + .btn {
  border-color: var(--primary);
  background-color: var(--primary-soft);
  box-shadow: 0 0 0 0.25rem rgba(134, 0, 0, 0.25);
}

.payment-steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment-steps-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  counter-increment: step;
}

.payment-steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.order-summary-card {
  position: sticky;
  top: 2rem;
  background: white;
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.order-summary-card .card-header {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1.25rem;
}

.order-summary-card .product-preview img {
  max-width: 180px;
  height: auto;
  margin: 0 auto;
  transition: var(--transition);
}

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

.price-breakdown {
  background: var(--gray-light);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  margin: 1.25rem 0;
}

.coupon-section {
  position: relative;
}

.coupon-section .form-control {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.coupon-section .btn {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

#coupon-message {
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  font-size: 0.875rem;
}

.payment-details .alert {
  border: 1px dashed var(--primary);
  background: var(--primary-soft);
}

.payment-details .input-group {
  margin-top: 0.5rem;
}

.payment-details .input-group .form-control {
  background: white;
  font-family: monospace;
  font-size: 1.125rem;
  text-align: center;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(134, 0, 0, 0.25);
}

@media (max-width: 992px) {
  .order-summary-card {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
}