/* Custom Bootstrap Theme for EZEBUYER */

:root {
  --bs-primary: #2563eb;
  --bs-secondary: #6b6b67;
  --bs-success: #10b981;
  --bs-danger: #ef4444;
  --bs-warning: #f59e0b;
  --bs-info: #3b82f6;
  --bs-light: #f8f7f4;
  --bs-dark: #1a1816;
  
  --accent-gold: #d4a574;
  --accent-blue: #0d47a1;
  --text-muted: #6b6b67;
  --card-bg: #fafaf8;
}

/* Typography */
body {
  font-family: 'Sora', -apple-system, system-ui, sans-serif;
  background-color: #f8f7f4;
  color: #1a1816;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.display-4, .display-5, .display-6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.lead {
  font-size: 1.1rem;
  font-weight: 400;
}

/* Navbar Customization */
.navbar {
  background-color: rgba(248, 247, 244, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 24, 22, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar-light .navbar-nav .nav-link {
  color: #1a1816 !important;
  font-weight: 500;
  padding: 0.5rem 0 !important;
  position: relative;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--accent-gold) !important;
}

.navbar-light .navbar-nav .nav-link:hover::after {
  width: 100%;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  transition: color 0.3s ease;
}

.brand-logo:hover {
  color: var(--accent-gold) !important;
}

.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
}

/* Button Styles */
.btn-primary {
  background-color: #2563eb;
  border-color: #2563eb;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-outline-primary {
  color: #2563eb;
  border-color: #2563eb;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

.btn-outline-secondary {
  color: #1a1816;
  border-color: #1a1816;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: #1a1816;
  border-color: #1a1816;
}

.btn-search, .btn-cart {
  background: transparent;
  border: none;
  color: #1a1816;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.btn-search:hover, .btn-cart:hover {
  color: var(--accent-gold);
}

.btn-sm {
  font-weight: 600;
  padding: 0.4rem 0.8rem;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.card img {
  object-fit: cover;
  height: 250px;
}

.card-body {
  padding: 1.5rem;
}

.product-card {
  position: relative;
}

.hero-card {
  min-height: 300px;
}

.hero-card img {
  height: 100%;
}

/* Badge */
.badge {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.8rem;
}

.badge.position-absolute {
  top: 1rem;
  left: 1rem;
}

/* Forms */
.form-control {
  border: 1px solid rgba(26, 24, 22, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1816;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f8f7f4 0%, #f0ede8 100%);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

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

.slide-in-right {
  animation: slideInRight 1s ease-out forwards;
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Sticky Cart Badge */
.badge.position-absolute.top-0.start-100 {
  min-width: 20px;
  text-align: center;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1, .display-4, .display-5 {
    font-size: 2rem !important;
  }

  h2, .display-6 {
    font-size: 1.5rem !important;
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .navbar-light .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }

  .lead {
    font-size: 1rem;
  }
}

/* Mobile Optimizations */
@media (max-width: 576px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .btn-lg {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
  }

  .container-xxl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  h1, .display-4 {
    font-size: 1.75rem !important;
  }

  h2, .display-5 {
    font-size: 1.25rem !important;
  }

  .hero-card {
    min-height: 200px;
  }

  .hero-card img {
    height: 100%;
  }
}

/* Footer */
.bg-dark {
  background-color: #1a1816 !important;
}

.text-light-50 {
  color: rgba(255, 255, 255, 0.5);
}

/* Sticky Top Adjustments */
.sticky-top {
  top: 70px;
}

@media (max-width: 768px) {
  .sticky-top {
    position: static;
  }
}

/* Animations */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.scale-in {
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Utility Classes */
.cursor-pointer {
  cursor: pointer;
}

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

.border-light {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Alert Styles */
.alert {
  border-radius: 0.5rem;
  border: 1px solid rgba(26, 24, 22, 0.1);
}

.alert-light {
  background-color: #fafaf8;
  color: #1a1816;
}

/* Spacing Adjustments */
.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

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

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Print Styles */
@media print {
  .navbar, footer, .btn-cart, .btn-search {
    display: none;
  }
}
