/* ==============================================
   GOTH MOTH THEME - MASTER STYLESHEET
   ============================================== */

/* ==============================================
   BASE STYLES & LAYOUT
   ============================================== */

body {
  background: url('https://i.imgur.com/oiunELn.jpeg') no-repeat center center fixed;
  background-size: cover;
  color: #e0e0e0;
  padding-top: 100px;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
}

h1, h5, .modal-title {
  font-family: 'UnifrakturCook', cursive;
}

.border-purple { 
  border-color: #bb86fc !important; 
}

/* ==============================================
   HEADER & NAVIGATION
   ============================================== */

.header-logo {
  height: 100px;
  border-radius: 40% / 60%;
  filter: drop-shadow(0 0 6px #bb86fc);
}

.goth-glow {
  padding: 0.5rem;
  box-shadow: 0 0 10px #bb86fc;
  background-color: #121212;
}

.btn-outline-light {
  border-color: #bb86fc;
  color: #bb86fc;
}

.btn-outline-light:hover {
  background-color: #bb86fc;
  color: #121212;
}

/* ==============================================
   OFFCANVAS SIDEBAR
   ============================================== */

.offcanvas {
  background-color: rgba(28, 28, 28, 0.9);
  color: #e0e0e0;
  backdrop-filter: blur(10px);
}

/* ==============================================
   MOTH BUTTON STYLES
   ============================================== */

.moth-button {
  width: 55px; 
  height: 55px; 
  position: relative; 
  border: 2px solid #bb86fc; 
  border-radius: 50%;
  background-color: rgba(18, 18, 18, 0.95); 
  overflow: hidden; 
  display: flex; 
  align-items: center;
  justify-content: center; 
  box-shadow: 0 0 10px #bb86fc; 
  cursor: pointer; 
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow { 
  from { box-shadow: 0 0 10px #bb86fc; } 
  to { box-shadow: 0 0 18px #bb86fc; } 
}

.moth-wing {
  position: absolute; 
  width: 44%; 
  height: 44%; 
  border-radius: 50%; 
  top: 28%; 
  z-index: 1; 
  transition: transform 0.4s ease;
}

.moth-wing.left.inner { 
  left: 18%; 
  background: rgba(0,255,153,0.85); 
  box-shadow: 0 0 8px rgba(0,255,153,0.9); 
  transform-origin: right center; 
  transform: rotate(-35deg) translateX(-6px) translateY(-4px); 
}

.moth-wing.left.outer { 
  left: 12%; 
  width: 46%; 
  height: 46%; 
  background: rgba(187,134,252,0.6); 
  box-shadow: 0 0 8px rgba(187,134,252,0.7); 
  transform-origin: right center; 
  transform: rotate(20deg) translateX(-4px) translateY(4px); 
}

.moth-wing.right.inner { 
  right: 18%; 
  background: rgba(187,134,252,0.85); 
  box-shadow: 0 0 8px rgba(187,134,252,0.9); 
  transform-origin: left center; 
  transform: rotate(35deg) translateX(6px) translateY(-4px); 
}

.moth-wing.right.outer { 
  right: 12%; 
  width: 46%; 
  height: 46%; 
  background: rgba(0,255,153,0.6); 
  box-shadow: 0 0 8px rgba(0,255,153,0.7); 
  transform-origin: left center; 
  transform: rotate(-20deg) translateX(4px) translateY(4px); 
}

.moth-body { 
  width: 8px; 
  height: 22px; 
  background: #bb86fc; 
  border-radius: 4px; 
  box-shadow: 0 0 6px #bb86fc; 
  z-index: 3; 
}

.moth-button.clicked .moth-wing { 
  transform: rotate(0deg) translateX(0) translateY(0); 
}

/* Wing Pulse Animations */
@keyframes idleWingPulseInner { 
  0%,100%{transform:rotate(-35deg)translateX(-6px)translateY(-4px);} 
  50%{transform:rotate(-42deg)translateX(-7px)translateY(-5px);} 
}

@keyframes idleWingPulseOuter { 
  0%,100%{transform:rotate(20deg)translateX(-4px)translateY(4px);} 
  50%{transform:rotate(28deg)translateX(-5px)translateY(5px);} 
}

@keyframes idleWingPulseInnerRight { 
  0%,100%{transform:rotate(35deg)translateX(6px)translateY(-4px);} 
  50%{transform:rotate(42deg)translateX(7px)translateY(-5px);} 
}

@keyframes idleWingPulseOuterRight { 
  0%,100%{transform:rotate(-20deg)translateX(4px)translateY(4px);} 
  50%{transform:rotate(-28deg)translateX(5px)translateY(5px);} 
}

.moth-wing.left.inner.pulse { animation: idleWingPulseInner 3s ease-in-out infinite; }
.moth-wing.left.outer.pulse { animation: idleWingPulseOuter 3s ease-in-out infinite; }
.moth-wing.right.inner.pulse { animation: idleWingPulseInnerRight 3s ease-in-out infinite; }
.moth-wing.right.outer.pulse { animation: idleWingPulseOuterRight 3s ease-in-out infinite; }

/* ==============================================
   SPARKLE HOVER EFFECTS
   ============================================== */

.sparkle-hover {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0.5rem 1rem;
  margin: 0.25rem 0;
  color: #bb86fc;
  border-left: 3px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 0 1px #bb86fc;
}

.sparkle-hover:hover {
  color: #00ff99;
  border-color: #00ff99;
  text-shadow: 0 0 6px #00ff99, 0 0 12px #00ff99;
}

.sparkle-hover.glow {
  color: #00ff99;
  border-color: #00ff99;
  text-shadow: 0 0 6px #00ff99, 0 0 12px #00ff99;
}

.sparkle-hover::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 0.4rem;
  background: radial-gradient(circle, rgba(0,255,153,0.3) 20%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.sparkle-hover:hover::before {
  opacity: 0.3;
}

@keyframes sparkleHoverAnim {
  from { background-position: 0 0; }
  to { background-position: 100% 100%; }
}

/* ==============================================
   HOME PAGE STYLES
   ============================================== */

.hero {
  background: url('https://via.placeholder.com/1920x600/000000/ffffff?text=Goth+Storefront') no-repeat center center;
  background-size: cover;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 2px 2px 4px #000;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 4rem;
  color: #bb86fc;
  text-shadow: 0 0 20px #bb86fc;
}

.featured-section {
  background-color: rgba(28,28,28,0.9);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
  margin-bottom: 2rem;
}

/* ==============================================
   PRODUCT CARD STYLES (Home & Products Pages)
   ============================================== */

.product-card {
  background-color: #2c2c2c;
  border-radius: 0.5rem;
  border: none;
  color: #e0e0e0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(187, 134, 252, 0.5);
}

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

.product-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.product-card .card-title {
  color: #00ff99;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.product-card .price {
  font-size: 1.5rem;
  color: #bb86fc;
  font-weight: bold;
  margin-bottom: 1rem;
}

.product-card .btn {
  margin-top: auto;
}

/* ==============================================
   PRODUCTS PAGE STYLES
   ============================================== */

.page-header {
  background-color: rgba(28,28,28,0.9);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  color: #bb86fc;
  font-family: 'UnifrakturCook', cursive;
  font-size: 3rem;
  margin: 0;
}

.category-filter {
  margin: 2rem auto;
  text-align: center;
}

.category-filter .btn {
  margin: 0.25rem;
  border-color: #bb86fc;
  color: #bb86fc;
}

.category-filter .btn:hover,
.category-filter .btn.active {
  background-color: #bb86fc;
  color: #121212;
}

/* ==============================================
   PRODUCT DETAIL PAGE STYLES
   ============================================== */

.product-detail {
  background-color: rgba(28,28,28,0.9);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
}

.product-image {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.product-title {
  color: #00ff99;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'UnifrakturCook', cursive;
}

.product-price {
  font-size: 2rem;
  color: #bb86fc;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.product-description {
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.option-select {
  background-color: #1c1c1c;
  color: #e0e0e0;
  border: 1px solid #bb86fc;
  padding: 0.75rem;
  border-radius: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

.quantity-input {
  background-color: #1c1c1c;
  color: #e0e0e0;
  border: 1px solid #bb86fc;
  padding: 0.75rem;
  border-radius: 0.5rem;
  width: 100px;
  text-align: center;
}

.add-to-cart-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  border: 2px solid #bb86fc;
  background-color: transparent;
  color: #bb86fc;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover:not(:disabled) {
  background-color: #bb86fc;
  color: #121212;
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.6);
}

.add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.thumbnail-gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.25rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #bb86fc;
}

/* ==============================================
   CART PAGE STYLES
   ============================================== */

.cart-container {
  background-color: rgba(28,28,28,0.9);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
}

.cart-title {
  color: #bb86fc;
  font-family: 'UnifrakturCook', cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.cart-item {
  background-color: #2c2c2c;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.2s ease;
}

.cart-item:hover {
  transform: translateX(5px);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

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

.cart-item-name {
  color: #00ff99;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cart-item-option {
  color: #888;
  font-size: 0.9rem;
}

.cart-item-price {
  color: #bb86fc;
  font-size: 1.2rem;
  font-weight: bold;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  background-color: #1c1c1c;
  border: 1px solid #bb86fc;
  color: #bb86fc;
  width: 30px;
  height: 30px;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background-color: #bb86fc;
  color: #121212;
}

.quantity-display {
  color: #e0e0e0;
  min-width: 30px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  background-color: #dc3545;
  color: white;
}

.cart-summary {
  background-color: #1c1c1c;
  padding: 2rem;
  border-radius: 0.5rem;
  border: 2px solid #bb86fc;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.3rem;
  background-color: #bb86fc;
  border: none;
  color: #121212;
  font-weight: bold;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.8);
  transform: translateY(-2px);
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-cart-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* ==============================================
   SUCCESS PAGE STYLES
   ============================================== */

.success-container {
  background-color: rgba(28,28,28,0.9);
  backdrop-filter: blur(8px);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(187, 134, 252, 0.5);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.success-icon {
  font-size: 5rem;
  color: #00ff99;
  margin-bottom: 1.5rem;
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-title {
  color: #00ff99;
  font-family: 'UnifrakturCook', cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.order-number {
  background-color: #1c1c1c;
  border: 2px solid #bb86fc;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.order-details {
  background-color: #2c2c2c;
  border-radius: 0.5rem;
  padding: 2rem;
  margin: 2rem 0;
  text-align: left;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #444;
}

.order-item:last-child {
  border-bottom: none;
}

.total-row {
  font-size: 1.3rem;
  font-weight: bold;
  color: #bb86fc;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #bb86fc;
}

/* ==============================================
   ABOUT PAGE STYLES
   ============================================== */

.about-hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
              url('https://via.placeholder.com/1920x400/1a1a1a/bb86fc?text=About+Goth+Moth') no-repeat center center;
  background-size: cover;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 3rem;
}

.about-hero h1 {
  font-family: 'UnifrakturCook', cursive;
  font-size: 4rem;
  color: #bb86fc;
  text-shadow: 0 0 30px rgba(187, 134, 252, 0.8);
  margin: 0;
}

.about-section {
  background-color: rgba(28,28,28,0.9);
  backdrop-filter: blur(8px);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
  margin-bottom: 2rem;
}

.about-section h2 {
  font-family: 'UnifrakturCook', cursive;
  color: #00ff99;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-section h3 {
  color: #bb86fc;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.story-card {
  background-color: #2c2c2c;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(187, 134, 252, 0.4);
  border-color: #bb86fc;
}

.story-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.story-card h4 {
  color: #bb86fc;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.story-card p {
  font-size: 1rem;
  margin: 0;
}

.quote-section {
  background-color: #1c1c1c;
  border-left: 4px solid #bb86fc;
  padding: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #00ff99;
  font-size: 1.2rem;
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  background-color: #2c2c2c;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid #00ff99;
  transition: transform 0.2s ease;
}

.values-list li:hover {
  transform: translateX(10px);
}

.values-list strong {
  color: #bb86fc;
  font-size: 1.2rem;
}

.cta-section {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.1), rgba(0, 255, 153, 0.1));
  border-radius: 1rem;
  border: 2px solid #bb86fc;
}

.cta-section h3 {
  color: #bb86fc;
  font-family: 'UnifrakturCook', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #2c2c2c;
  border: 2px solid #bb86fc;
  border-radius: 50%;
  color: #bb86fc;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #bb86fc;
  color: #121212;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(187, 134, 252, 0.5);
}

.founder-section {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.founder-image {
  flex: 0 0 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #bb86fc;
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.5);
}

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

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .product-title {
    font-size: 2rem;
  }
  
  .about-hero h1 {
    font-size: 2.5rem;
  }
  
  .founder-section {
    flex-direction: column;
    text-align: center;
  }
}