footer {
  background: #0a0a0a;
  color: #e0e0e0;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  position: relative;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Optional subtle pattern overlay */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Brand Column */
.footer-col:first-child {
  max-width: 300px;
}

.footer-col .logo {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: inline-block;
  background: linear-gradient(135deg, #ffffff, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-col .logo span {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  -webkit-text-fill-color: #d4af37;
}

.footer-col p {
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.footer-col h5 {
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.5rem;
}

/* Underline effect for headings */
.footer-col h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}

.footer-col:hover h5::after {
  width: 45px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-col a {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 0;
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: #d4af37;
  transform: translateX(5px);
}

/* Social Links */
.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0;
  transform: none;
}

.social-links a:hover {
  background: #d4af37;
  color: #0a0a0a;
  transform: translateY(-2px);
}

/* Newsletter */
.footer-newsletter {
  display: flex;
  border: 1px solid #333;
  border-radius: 50px;
  padding: 0.1rem 0.1rem 0.1rem 1rem;
  margin: 1rem 0 0.3rem;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  max-width: 280px;
}

.footer-newsletter:focus-within {
  border-color: #d4af37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.footer-newsletter input {
  background: transparent;
  border: none;
  color: #fff;
  width: 100%;
  outline: none;
  padding: 0.5rem 0;
  font-size: 0.8rem;
}

.footer-newsletter input::placeholder {
  color: #666;
  font-style: italic;
  font-size: 0.75rem;
}

.footer-newsletter button {
  background: #d4af37;
  border: none;
  color: #0a0a0a;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-newsletter button:hover {
  background: #c4a030;
  transform: scale(1.02);
}

/* Payment Methods & Trust Badges */
.footer-badges {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-badges i {
  font-size: 1.4rem;
  color: #666;
  transition: color 0.3s ease;
}

.footer-badges i:hover {
  color: #d4af37;
}

/* Copyright Section */
.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
  font-size: 0.75rem;
  color: #888;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.copyright-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.copyright-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.7rem;
  transition: color 0.3s ease;
}

.copyright-links a:hover {
  color: #d4af37;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #d4af37;
  color: #0a0a0a;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  font-size: 1rem;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #c4a030;
  transform: translateY(-2px);
}

/* Footer Responsive */
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
  }
  
  .copyright {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-col:first-child {
    max-width: 100%;
  }
  
  .footer-newsletter {
    max-width: 100%;
    flex-direction: column;
    border: none;
    padding: 0;
    background: transparent;
    gap: 0.5rem;
  }
  
  .footer-newsletter input {
    border: 1px solid #333;
    border-radius: 50px;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.85rem;
  }
  
  .footer-newsletter button {
    width: 100%;
    padding: 0.6rem 1rem;
  }
  
  .social-links {
    justify-content: flex-start;
  }
}

/* Small Mobile Optimizations */
@media (max-width: 480px) {
  footer {
    padding: 1.8rem 0 0.8rem;
    margin-top: 2rem;
  }
  
  .footer-grid {
    gap: 1.2rem;
  }
  
  .footer-col h5 {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
  }
  
  .footer-col p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .footer-col li {
    margin-bottom: 0.4rem;
  }
  
  .footer-col a {
    font-size: 0.8rem;
  }
  
  .social-links a {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  
  .footer-badges i {
    font-size: 1.2rem;
  }
  
  .copyright {
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.7rem;
  }
  
  .copyright-links {
    gap: 1rem;
  }
  
  .copyright-links a {
    font-size: 0.65rem;
  }
}
