/* =======================================
   Rian Audio Sounds - Public Theme
   Colors: Deep Purple (#4c1d95) + Gold (#f59e0b)
   ======================================= */

:root {
  --brand-purple: #4c1d95;
  --brand-purple-light: #7c3aed;
  --brand-gold: #f59e0b;
  --brand-gold-dark: #d97706;
  --brand-bg: #f3f4f6;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}
*:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 3px;
  border-radius: 4px;
}
body {
  background-color: #f3f4f6;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

a {
  color: #4c1d95; /* purple links */
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #f59e0b; /* gold hover */
}

/* ===== Navbar ===== */
.navbar {
  background-color: #4c1d95; /* deep purple */
  padding: 0.75rem 0;
}
.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.95rem;
}
.navbar .nav-link:hover {
  color: #f59e0b !important; /* gold */
}
.navbar-brand {
  color: #f59e0b !important;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Navbar brand responsive */
@media (min-width: 576px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  .navbar .nav-link {
    font-size: 1rem;
  }
}

/* ===== Navbar Dropdown ===== */
.navbar .dropdown-menu {
  background-color: #4c1d95; /* deep purple */
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
}
.navbar .dropdown-item {
  color: #fff;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
  background-color: #f59e0b; /* gold */
  color: #4c1d95; /* purple text */
  font-weight: 600;
}

/* Mobile navbar search - only target the search form, not all flex elements */
.navbar-search-form {
  width: 100%;
}

@media (min-width: 768px) {
  .navbar-search-form {
    width: auto;
    flex-shrink: 0;
  }
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(rgba(76,29,149,0.85), rgba(76,29,149,0.85)),
              url('/static/shop/img/hero-bg.jpg') center/cover no-repeat;
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  min-height: 50vh;
}
.hero-section h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}
.hero-section p {
  font-size: 1rem;
  opacity: 0.95;
  color: #f3f4f6;
  margin-bottom: 0.75rem;
}

/* Hero Buttons Mobile */
.hero-section .btn {
  width: 100%;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* Hero responsive for tablets */
@media (min-width: 576px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .hero-section p {
    font-size: 1.1rem;
  }
  .hero-section {
    padding: 4rem 2rem;
  }
  .hero-section .btn {
    width: auto;
    margin-bottom: 0;
    margin-right: 0.5rem;
  }
}

/* Hero responsive for desktops */
@media (min-width: 992px) {
  .hero-section h1 {
    font-size: 3.25rem;
  }
  .hero-section p {
    font-size: 1.2rem;
  }
  .hero-section {
    padding: 6rem 2rem;
    min-height: 80vh;
  }
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #f59e0b;
  border-radius: 2px;
}

/* ===== Hero display-3 heading — scale down on small screens ===== */
@media (max-width: 575.98px) {
  .display-3 { font-size: 2rem !important; line-height: 1.2; }
  .display-4 { font-size: 1.75rem !important; }
  .display-5 { font-size: 1.5rem !important; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .display-3 { font-size: 2.5rem !important; }
}

/* ===== Product detail info card sticky on desktop ===== */
@media (min-width: 768px) {
  .product-info-sticky {
    position: sticky;
    top: 80px;
  }
}

/* ===== Auth page card — ensure full width on tiny screens ===== */
@media (max-width: 400px) {
  .auth-page-wrapper .card {
    margin: 0 8px;
  }
  .auth-page-wrapper .card-body {
    padding: 1.25rem;
  }
}

/* ===== Section Headings ===== */
section h2 {
  color: #4c1d95;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

@media (min-width: 576px) {
  section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 992px) {
  section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

/* ===== Product Cards ===== */
.product-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-card .card-title {
  color: #4c1d95;
  font-weight: 600;
  font-size: 0.95rem;
}
.product-card .price {
  color: #f59e0b;
  font-weight: 600;
  font-size: 1rem;
}

/* Product card image heights */
.product-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

@media (min-width: 576px) {
  .product-card .card-img-top {
    height: 200px;
  }
  .product-card .card-title {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .product-card .card-img-top {
    height: 220px;
  }
  .product-card .card-title {
    font-size: 1.05rem;
  }
}

/* ===== Category Cards ===== */
.product-card img {
  transition: transform 0.4s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}

/* ===== Buttons ===== */
.btn-primary {
  background-color: #4c1d95;
  border-color: #4c1d95;
}
.btn-primary:hover {
  background-color: #6d28d9;
  border-color: #6d28d9;
}

.btn-shop {
  background-color: #f59e0b;
  border: none;
  color: #4c1d95;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.btn-shop:hover,
.btn-shop:focus {
  background-color: #d97706;
  color: #fff;
}

.btn-outline-purple {
  border: 1px solid #4c1d95;
  color: #4c1d95;
}
.btn-outline-purple:hover {
  background-color: #4c1d95;
  color: #fff;
}

/* ===== Forms ===== */
form input,
form select,
form textarea {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}
form input:focus,
form select:focus,
form textarea:focus {
  border-color: #4c1d95;
  box-shadow: 0 0 0 0.25rem rgba(76,29,149,0.25);
}
form label {
  font-weight: 500;
  color: #4c1d95;
  margin-bottom: 0.25rem;
  display: block;
}

/* ===== Fallback Boxes ===== */
.fallback-box {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: #4c1d95;
}

/* ===== Testimonials ===== */
.testi-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 16px rgba(76,29,149,.08);
  border: 1px solid rgba(76,29,149,.07);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  position: relative;
}
.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(76,29,149,.14);
}
.testi-quote-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: #f59e0b;
  opacity: .35;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}
.testi-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4c1d95;
}
.testi-avatar-fallback {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #4c1d95;
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-stars { color: #f59e0b; font-size: .8rem; letter-spacing: 1px; }
.testi-message {
  font-size: .9rem;
  color: #555;
  line-height: 1.65;
  font-style: italic;
}
.testi-name {
  font-weight: 700;
  color: #4c1d95;
  font-size: .9rem;
}

.testimonial-item {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s;
}
.testimonial-item:hover {
  transform: translateY(-3px);
}
.testimonial-item .author {
  font-weight: 600;
  color: #4c1d95;
}
.testimonial-item .quote {
  font-style: italic;
  color: #555;
}

/* ===== Footer ===== */
.footer-custom {
  background-color: #4c1d95; /* deep purple */
  color: #fff;
}
.footer-link {
  color: #ddd;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}
.footer-link:hover {
  color: #f59e0b; /* gold */
  text-decoration: underline;
}
.text-gold {
  color: #f59e0b !important;
}

/* Footer responsive */
@media (max-width: 576px) {
  .footer-custom {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .footer-link {
    font-size: 0.9rem;
  }
}

/* btn-outline-gold styling */
.btn-outline-gold {
  border: 1px solid #f59e0b;
  color: #f59e0b !important;
  transition: all 0.2s;
}
.btn-outline-gold:hover {
  background-color: #f59e0b;
  color: #4c1d95 !important;
  border-color: #f59e0b;
}

/* Social Icons */
.social-link {
  color: #fff;
  transition: color 0.2s, transform 0.2s;
}
.social-link:hover {
  color: #f59e0b;
  transform: scale(1.1);
}

/* ===== Auth Pages ===== */
.auth-page-wrapper {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
}
.auth-page-wrapper .card {
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.auth-page-wrapper .card-body {
  padding: 2rem;
}

/* ===== Pagination ===== */
.pagination .page-link {
  color: #4c1d95;
  border-color: #e5e7eb;
}
.pagination .page-item.active .page-link {
  background-color: #4c1d95;
  border-color: #4c1d95;
  color: #fff;
}
.pagination .page-link:hover {
  background-color: #f0eaff;
  color: #4c1d95;
  border-color: #4c1d95;
}

/* ===== Newsletter Section ===== */
#newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#newsletter-form input[type="email"] {
  border-radius: 0.5rem;
  width: 100%;
}

#newsletter-form button {
  border-radius: 0.5rem;
  background-color: #f59e0b; /* gold */
  border: none;
  font-weight: 600;
  width: 100%;
}

#newsletter-form button:hover {
  background-color: #d97706; /* darker gold */
  color: #fff;
}

@media (min-width: 576px) {
  #newsletter-form {
    flex-direction: row;
    gap: 0;
  }
  
  #newsletter-form input[type="email"] {
    border-radius: 0.5rem 0 0 0.5rem;
    width: auto;
    flex: 1;
  }
  
  #newsletter-form button {
    border-radius: 0 0.5rem 0.5rem 0;
    width: auto;
    min-width: 120px;
  }
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366; /* WhatsApp green */
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 999;
  animation: pulse 2s infinite;
  transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* Prevent overlap with other fixed elements */
@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    font-size: 1.25rem;
  }
}

/* Pulse effect */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Utilities ===== */
.text-purple {
  color: #4c1d95 !important;
}
.bg-purple { background-color: #4c1d95 !important; }

/* ===== Cart Button ===== */
.btn-cart {
  background-color: #f59e0b !important; /* gold */
  color: #4c1d95 !important;           /* purple text/icon */
  font-weight: 600;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}
.btn-cart:hover {
  background-color: #d97706 !important; /* darker gold */
  color: #fff !important;
}

/* Cart badge (count bubble) */
#navbarCart .badge {
  background-color: #f59e0b !important; /* gold */
  color: #4c1d95 !important;           /* purple text */
  font-weight: 700;
}

/* ===== Cart Dropdown (force purple background) ===== */
#navbarCart + .dropdown-menu {
  background-color: #4c1d95 !important; /* deep purple */
  color: #fff !important;
  border: none;
  border-radius: 0.75rem;
  padding: 1rem;
  width: auto;
  min-width: 200px;
  max-width: 90vw;
}

@media (max-width: 576px) {
  #navbarCart + .dropdown-menu {
    min-width: 90vw !important;
    max-width: 90vw !important;
    width: auto !important;
    padding: 0.75rem;
  }
}

#navbarCart + .dropdown-menu .text-nowrap {
  white-space: normal !important;
}

#navbarCart + .dropdown-menu li {
  color: #f3f4f6 !important; /* soft gray text */
}

#navbarCart + .dropdown-menu .text-gold {
  color: #f59e0b !important; /* gold highlights */
}

#navbarCart + .dropdown-menu .border-gold {
  border-color: #f59e0b !important;
}

/* Hover effect for cart dropdown items */
#navbarCart + .dropdown-menu li:hover {
  background-color: rgba(245, 158, 11, 0.15); /* subtle gold overlay */
  border-radius: 0.5rem;
}

/* ===== Checkout Button inside Dropdown ===== */
#navbarCart + .dropdown-menu .btn-checkout {
  background-color: #f59e0b !important;
  color: #4c1d95 !important;
  font-weight: 600;
  border: none;
}
#navbarCart + .dropdown-menu .btn-checkout:hover {
  background-color: #d97706 !important;
  color: #fff !important;
}

/* ===== Red Button (Register) ===== */
.btn-red {
  background-color: #dc2626 !important; /* Tailwind red-600 */
  border: none;
  color: #fff !important;
  font-weight: 600;
}
.btn-red:hover {
  background-color: #b91c1c !important; /* darker red */
  color: #fff !important;
}


/* =======================================
   Rian Audio Sounds - Theme Extensions
   (Badges, Tables, Alerts, Orders)
   ======================================= */

/* ===== Badges ===== */
.badge-gold {
  background-color: #f59e0b !important;
  color: #4c1d95 !important;
  font-weight: 600;
}

.badge-purple {
  background-color: #4c1d95 !important;
  color: #fff !important;
  font-weight: 600;
}

.badge-outline {
  border: 1px solid #4c1d95;
  color: #4c1d95;
  background: transparent;
  font-weight: 500;
}

/* ===== Tables ===== */
.table thead {
  background-color: #4c1d95;
  color: #fff;
  border: none;
}
.table tbody tr:hover {
  background-color: rgba(245, 158, 11, 0.08); /* subtle gold highlight */
}
.table td, 
.table th {
  vertical-align: middle;
}

/* ===== Alerts (Django Messages) ===== */
.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
  border-radius: 0.5rem;
  padding: 1rem;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
  border-radius: 0.5rem;
  padding: 1rem;
}

.alert-info {
  background: #e0f2fe;
  color: #1e40af;
  border: 1px solid #60a5fa;
  border-radius: 0.5rem;
  padding: 1rem;
}

/* ===== Order / Checkout Boxes ===== */
.order-box, .checkout-box {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-left: 4px solid #4c1d95;
  margin-bottom: 1.5rem;
}

.order-box h3, 
.checkout-box h3 {
  color: #4c1d95;
  font-weight: 600;
  margin-bottom: 1rem;
}

.order-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f59e0b;
}

/* ===== Utility Enhancements ===== */
.text-muted {
  color: #6b7280 !important; /* Tailwind gray-500 */
}

/* ===== Responsive Container Padding ===== */
.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ===== Responsive Sections ===== */
section {
  padding: 2rem 0 !important;
}

@media (min-width: 576px) {
  section {
    padding: 3rem 0 !important;
  }
}

@media (min-width: 992px) {
  section {
    padding: 5rem 0 !important;
  }
}

/* ===== Responsive Text Utilities ===== */
@media (max-width: 576px) {
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.25rem !important; }
  h4 { font-size: 1.1rem !important; }
  h5 { font-size: 1rem !important; }
  h6 { font-size: 0.95rem !important; }
}

/* ===== Responsive Button Sizes ===== */
@media (max-width: 576px) {
  .btn {
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
  }
  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
}
