/* 
  Main Stylesheet for QuantumVault
  Premium Hardware Wallet Website
*/

/* Base Styles and Variables */
:root {
  --primary: #0F2C59;
  --secondary: #DAA520;
  --accent: #6A5ACD;
  --bg-light: #F8F9FC;
  --bg-dark: #0D1B2A;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --transition-normal: all 0.3s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --rounded-sm: 0.125rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 1rem;
  --rounded-full: 9999px;
  --z-navbar: 1000;
  --z-dropdown: 1010;
  --z-modal: 1100;
  --z-tooltip: 1200;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lexend', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

small {
  font-size: 0.875rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Layout Components */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2rem 0;
}

.section-lg {
  padding: 6rem 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .grid-cols-2-sm {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-cols-2-md {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3-md {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-4-md {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cols-2-lg {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3-lg {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-4-lg {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-grow {
  flex-grow: 1;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Spacing Utilities */
.m-0 {
  margin: 0;
}

.m-1 {
  margin: 0.25rem;
}

.m-2 {
  margin: 0.5rem;
}

.m-4 {
  margin: 1rem;
}

.m-6 {
  margin: 1.5rem;
}

.m-8 {
  margin: 2rem;
}

.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--rounded-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn:focus {
  outline: none;
}

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

.btn-primary:hover {
  background-color: #0b2347;
  border-color: #0b2347;
}

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

.btn-secondary:hover {
  background-color: #b8860b;
  border-color: #b8860b;
}

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

.btn-accent:hover {
  background-color: #5d4cba;
  border-color: #5d4cba;
}

.btn-outline {
  background-color: transparent;
}

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

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

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

.btn-outline-secondary:hover {
  color: white;
  background-color: var(--secondary);
}

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

.btn-outline-accent:hover {
  color: white;
  background-color: var(--accent);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

.btn-block {
  display: block;
  width: 100%;
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: white;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: var(--rounded-md);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.card-header {
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

.card-footer {
  padding: 1.25rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.card-img {
  width: 100%;
  object-fit: cover;
}

.card-title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card-text {
  margin-bottom: 1rem;
}

.card-link {
  margin-right: 0.5rem;
}

/* Premium-specific styling */
.premium-card {
  border: none;
  background: linear-gradient(to bottom right, var(--bg-light), #ffffff);
  box-shadow: 0 10px 30px rgba(15, 44, 89, 0.1);
  border-radius: var(--rounded-lg);
}

.premium-card:hover {
  box-shadow: 0 15px 40px rgba(15, 44, 89, 0.15);
}

.premium-card .card-header {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  border-bottom: none;
}

/* Navigation */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: var(--z-navbar);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
}

.navbar-brand img {
  height: 2.5rem;
  margin-right: 0.5rem;
}

.navbar-toggler {
  display: none;
  border: none;
  background: none;
  font-size: 1.25rem;
  color: var(--primary);
  cursor: pointer;
}

.navbar-nav {
  display: flex;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-normal);
  position: relative;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

@media (max-width: 767.98px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    padding: 2rem;
    background-color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: var(--z-navbar);
    overflow-y: auto;
  }

  .navbar-collapse.show {
    left: 0;
  }

  .navbar-nav {
    flex-direction: column;
  }

  .nav-item {
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .nav-link::after {
    display: none;
  }
}

/* Mobile Menu Backdrop */
.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-navbar) - 1);
  display: none;
}

.mobile-backdrop.show {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0;
  background-color: var(--bg-dark);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 44, 89, 0.9), rgba(106, 90, 205, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .hero {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  border-radius: var(--rounded-lg);
  background-color: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.feature-icon {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: var(--secondary);
}

.feature-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--primary);
}

.feature-description {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Diagonal Sections */
.diagonal-section {
  position: relative;
  padding: 6rem 0;
  background-color: var(--primary);
  color: white;
  overflow: hidden;
}

.diagonal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.15) 0%, rgba(15, 44, 89, 0) 50%);
  transform: skewY(-6deg);
  transform-origin: top left;
}

.diagonal-section-content {
  position: relative;
  z-index: 1;
}

.diagonal-section-title {
  color: white;
  margin-bottom: 2rem;
}

.diagonal-section-text {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin-bottom: 2rem;
}

/* Product Cards */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--rounded-lg);
  background-color: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-details {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

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

.product-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--rounded-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Testimonials */
.testimonial {
  padding: 2rem;
  border-radius: var(--rounded-lg);
  background-color: white;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: var(--rounded-full);
  object-fit: cover;
  margin-right: 1rem;
}

.testimonial-author-info h5 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.testimonial-author-info p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Call to Action Sections */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-align: center;
}

.cta-title {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: white;
  background-clip: padding-box;
  border: 1px solid #ddd;
  border-radius: var(--rounded-md);
  transition: var(--transition-normal);
}

.form-control:focus {
  color: var(--text-primary);
  background-color: white;
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(106, 90, 205, 0.25);
}

textarea.form-control {
  height: auto;
}

.form-check {
  position: relative;
  display: block;
  padding-left: 1.25rem;
}

.form-check-input {
  position: absolute;
  margin-top: 0.3rem;
  margin-left: -1.25rem;
}

.form-check-label {
  margin-bottom: 0;
}

/* Custom Select Styling */
.custom-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: white;
  background-clip: padding-box;
  border: 1px solid #ddd;
  border-radius: var(--rounded-md);
  transition: var(--transition-normal);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E293B'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.custom-select:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(106, 90, 205, 0.25);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 2.5rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 400px;
}

.footer-heading {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-normal);
}

.footer-links a:hover {
  color: var(--secondary);
  text-decoration: none;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-icon {
  margin-right: 1rem;
  color: var(--secondary);
  font-size: 1.25rem;
  min-width: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition-normal);
}

.footer-bottom-links a:hover {
  color: var(--secondary);
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* Blog Posts */
.blog-card {
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: var(--rounded-lg);
  background-color: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-date {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.blog-card-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.blog-card-excerpt {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

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

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

.fade-in-delay-1 {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.fade-in-delay-3 {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.6s forwards;
}

/* Glow Effect */
.glow-on-hover {
  position: relative;
  z-index: 1;
}

.glow-on-hover::after {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: radial-gradient(circle at center, rgba(218, 165, 32, 0.4) 0%, rgba(218, 165, 32, 0) 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-on-hover:hover::after {
  opacity: 1;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background-color: white;
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.modal-close:hover {
  color: var(--error);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: calc(var(--z-modal) - 1);
  display: none;
}

.cookie-consent.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h4 {
  margin-bottom: 0.5rem;
}

.cookie-text p {
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-settings-modal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cookie-category-title {
  margin-bottom: 0;
  font-size: 1.125rem;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition-normal);
  border-radius: var(--rounded-full);
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition-normal);
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--success);
}

.cookie-toggle input:focus + .cookie-toggle-slider {
  box-shadow: 0 0 1px var(--success);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-category-description {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Cart Styling */
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.cart-icon:hover {
  color: var(--primary);
}

.cart-count {
  position: relative;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--rounded-full);
}

.cart-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background-color: white;
  border-radius: var(--rounded-md);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  z-index: var(--z-dropdown);
  display: none;
}

.cart-dropdown.show {
  display: block;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-right: 1rem;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.cart-item-price {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.875rem;
}

.cart-item-remove {
  color: var(--text-secondary);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.cart-item-remove:hover {
  color: var(--error);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.cart-empty {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-secondary);
}

.cart-page-items {
  margin-bottom: 2rem;
}

.cart-page-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background-color: white;
  border-radius: var(--rounded-md);
  box-shadow: var(--shadow-sm);
}

.cart-page-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--rounded-md);
  margin-right: 1.5rem;
}

.cart-page-item-details {
  flex: 1;
}

.cart-page-item-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.cart-page-item-price {
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cart-page-item-quantity {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.cart-page-item-quantity button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  border: 1px solid #ddd;
  border-radius: var(--rounded-md);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.cart-page-item-quantity button:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.cart-page-item-quantity span {
  width: 40px;
  text-align: center;
  font-weight: 500;
}

.cart-page-item-remove {
  margin-left: 1.5rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.cart-page-item-remove:hover {
  color: var(--error);
}

.cart-summary {
  padding: 1.5rem;
  background-color: white;
  border-radius: var(--rounded-md);
  box-shadow: var(--shadow-sm);
}

.cart-summary-title {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cart-summary-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 700;
  font-size: 1.125rem;
}

.cart-summary-label {
  color: var(--text-secondary);
}

.cart-summary-value {
  font-weight: 500;
}

.cart-summary-checkout {
  margin-top: 1.5rem;
}

/* Shop Page Styles */
.shop-filters {
  padding: 1.5rem;
  margin-bottom: 2rem;
  background-color: white;
  border-radius: var(--rounded-md);
  box-shadow: var(--shadow-sm);
}

.shop-filters-title {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-title {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
}

.filter-option input {
  margin-right: 0.5rem;
}

.filter-option label {
  color: var(--text-secondary);
  cursor: pointer;
}

.shop-sorting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.shop-sorting-results {
  color: var(--text-secondary);
}

.shop-sorting-options {
  display: flex;
  align-items: center;
}

.shop-sorting-options label {
  margin-right: 0.5rem;
  color: var(--text-secondary);
}

.shop-sorting-options select {
  padding: 0.5rem 1rem;
  border-radius: var(--rounded-md);
  border: 1px solid #ddd;
  background-color: white;
}

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

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
  background-color: var(--bg-light);
  font-weight: 600;
}

.table tbody + tbody {
  border-top: 2px solid #dee2e6;
}

/* International Telephone Input */
.iti {
  width: 100%;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary);
}

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

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

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

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

.text-error {
  color: var(--error);
}

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

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

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

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

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

.bg-white {
  background-color: white;
}

.rounded {
  border-radius: var(--rounded-md);
}

.rounded-lg {
  border-radius: var(--rounded-lg);
}

.rounded-full {
  border-radius: var(--rounded-full);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

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

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

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-inline-block {
  display: inline-block;
}

.font-weight-light {
  font-weight: 300;
}

.font-weight-normal {
  font-weight: 400;
}

.font-weight-medium {
  font-weight: 500;
}

.font-weight-semibold {
  font-weight: 600;
}

.font-weight-bold {
  font-weight: 700;
}

.border {
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.border-top {
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.border-right {
  border-right: 1px solid rgba(0, 0, 0, 0.125);
}

.border-bottom {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.border-left {
  border-left: 1px solid rgba(0, 0, 0, 0.125);
}

.opacity-0 {
  opacity: 0;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-100 {
  opacity: 1;
}

/* Particles Container */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}