:root {
  --primary-purple: #4B0082;
  --secondary-bg: #1E102A;
  --text-white: #FFFFFF;
  --accent-purple: #9D4EDD;
  --muted-text: #D6D6D6;

  /* Mappings to existing variables for compatibility */
  --primary-color: var(--primary-purple);
  --bg-color: var(--secondary-bg);
  --text-color: var(--text-white);
  --secondary-color: var(--accent-purple);
  --top-bar-bg: #2E1A47;
  /* Darker shade of primary purple for top bar */
  --font-main: 'Poppins', sans-serif;
  --hero-overlay: rgba(30, 16, 42, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

::selection {
  background-color: var(--secondary-color);
  color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}


/* Scrollbar to match dark theme */
::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* Top Bar */
.top-bar {
  background-color: var(--top-bar-bg);
  color: white;
  text-align: center;
  padding: 8px 0;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4%;
  background-color: var(--primary-color);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
  position: relative;
}

.nav-links li a::after {
  content: '';
  width: 0%;
  height: 2px;
  background: white;
  display: block;
  margin: auto;
  transition: 0.3s;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-icons i {
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-icons i:hover {
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  height: 90vh;
  width: 100%;
  background: url('../images/hero\ bg.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.polygon-container {
  width: 700px;
  height: 350px;
  background-color: rgba(0, 0, 0, 0.6);
  /* Glassy Black */
  clip-path: polygon(15% 0, 85% 0, 100% 50%, 85% 100%, 15% 100%, 0% 50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  color: white;
  backdrop-filter: blur(3px);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.polygon-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.polygon-content p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #ddd;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.shop-btn {
  padding: 16px 45px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;

  /* Default State: White Background */
  background: #FFFFFF;
  color: var(--primary-purple);
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.shop-btn:hover {
  /* Hover State: Purple Background + Glow */
  background: #4B0082;
  color: #fff;
  box-shadow: 0 0 25px rgba(157, 78, 221, 1);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .polygon-container {
    width: 90%;
    height: auto;
    padding: 3rem 1rem;
  }

  .polygon-content h1 {
    font-size: 2rem;
  }
}

/* Footer Section */
.footer-section {
  background: var(--secondary-bg);
  color: var(--text-white);
  padding: 60px 0 20px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--accent-purple);
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--muted-text);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  color: var(--accent-purple);
  border: 1px solid var(--accent-purple);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent-purple);
  color: var(--text-white);
  transform: translateY(-2px);
}

.footer-links ul,
.footer-products ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-products li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-products a {
  color: var(--muted-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-products a:hover {
  color: var(--accent-purple);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--muted-text);
}

.contact-list i {
  margin-right: 10px;
  color: var(--accent-purple);
  width: 16px;
  text-align: center;
}

/* Newsletter Middle Section */
.footer-middle {
  border-top: 1px solid var(--top-bar-bg);
  border-bottom: 1px solid var(--top-bar-bg);
  padding: 30px 0;
  margin-bottom: 30px;
}

.newsletter-wrapper {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-wrapper h3 {
  color: var(--accent-purple);
  margin-bottom: 10px;
}

.newsletter-wrapper p {
  color: var(--muted-text);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--top-bar-bg);
  border-radius: 8px;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text-white);
  min-width: 0;
}

.newsletter-form input::placeholder {
  color: var(--muted-text);
}

.newsletter-btn {
  padding: 12px 24px;
  background: var(--accent-purple);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: var(--accent-purple);
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--muted-text);
}

.footer-legal {
  display: flex;
  gap: 15px;
}

.footer-legal a {
  color: var(--muted-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent-purple);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-social {
    justify-content: center;
  }

  .contact-list li {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-section {
    padding: 40px 0 15px;
  }

  .footer-logo {
    font-size: 1.5rem;
  }

  .footer-col h3 {
    font-size: 1.1rem;
  }
}

/* ===== COLLECTIONS DROPDOWN ===== */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dropdown box */
.dropdown-content {
  position: absolute;
  top: 160%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);

  width: 280px;
  background-color: var(--primary-color);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;

  padding: 18px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

/* Links */
.dropdown-content li a {
  display: block;
  padding: 10px 24px;
  color: white;
  font-size: 0.95rem;
  font-weight: 400;
}

.dropdown-content li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Desktop hover */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Arrow rotate */
.dropdown:hover i {
  transform: rotate(180deg);
  transition: 0.3s;
}

.dropdown.active .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Slider Styles */
.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition:
    opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Ensure polygon stays on top */
.polygon-container {
  z-index: 1;
  position: relative;
}

.hero-subtile {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 20px;
  margin-right: 15%;
  color: #fff;
  text-transform: capitalize;
  letter-spacing: 1px;
  font-style: italic;

}

@media (max-width: 768px) {
  .hero-subtitle {
    margin-right: 0;
    text-align: right;
  }
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
  padding: 4rem 8%;
  background-color: #2E1A47;
  /* Slightly lighter/different dark bg for contrast */
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted-text);
  margin-bottom: 5rem;
  margin-top: 2rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  height: 500px;
  /* Fixed height for the grid layout */
}

/* Individual Cards */
.cat-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  /* Align text to bottom */
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.cat-card:hover {
  transform: scale(1.02);
}



.cat-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.small-card {
  flex: 1;
  /* Takes equal height in the column */
}

.cat-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  width: 100%;
  padding: 2rem;
  color: white;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  transform: translateY(20px);
}

.cat-card:hover .cat-overlay {
  opacity: 1;
  transform: translateY(0);
}

.cat-overlay h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.cat-overlay p {
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 1.2rem;
  max-width: 90%;
}

.cat-shop-btn {
  /* Match Hero Button Default */
  background: #FFFFFF;
  border: none;
  color: var(--primary-purple);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}

.cat-shop-btn:hover {
  /* Match Hero Button Hover */
  background: #4B0082;
  color: #fff;
  box-shadow: 0 0 25px rgba(157, 78, 221, 1);
  transform: translateY(-3px);
}

/* Responsive Grid */
@media (max-width: 768px) {
  .categories-grid {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .cat-card {
    height: 300px;
  }
}

/* ===== MOBILE SIDEBAR & NAVBAR ADJUSTMENTS ===== */
/* Default: Hide Mobile Menu Button on Desktop */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Sidebar structure */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  max-height: 100vh;
  background-color: var(--primary-color);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  /* Enable scrolling */
  -webkit-overflow-scrolling: touch;
  /* Smooth scroll for iOS */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.active {
  transform: translateX(0);
}

/* Overlay */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Header */
.sidebar-header {
  background-color: var(--top-bar-bg);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-sidebar {
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.sidebar-logo {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.sidebar-logo img {
  max-width: 90%;
  max-height: 90%;
}

.sidebar-header-icons i {
  color: white;
  font-size: 1.2rem;
  margin-left: 15px;
  cursor: pointer;
}

/* Sidebar Links */
.sidebar-links {
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.sidebar-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-links a {
  display: block;
  padding: 15px 20px;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Dropdown */
.link-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.link-flex:active {
  background: rgba(255, 255, 255, 0.1);
}

.link-flex a {
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  pointer-events: none;
}

.sidebar-submenu {
  background-color: rgba(0, 0, 0, 0.2);
  /* Subtle dark overlay for contrast */
  max-height: 0;
  overflow: hidden;
  list-style: none;
  padding-left: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-submenu.show {
  max-height: 500px;
  /* Adjust based on content */
  border-bottom: 2px solid var(--accent-purple);
}

.sidebar-submenu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-submenu li a {
  padding: 12px 20px 12px 45px;
  font-size: 0.92rem;
  opacity: 0.85;
  color: #eeeeee;
}

.sidebar-submenu li a:hover {
  opacity: 1;
  background: rgba(157, 78, 221, 0.15);
}

.sidebar-arrow {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.4s ease, color 0.4s ease;
}

.sidebar-arrow.rotate {
  transform: rotate(90deg);
  color: var(--accent-purple);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-login {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
}

.sidebar-socials {
  display: flex;
  gap: 20px;
}

.sidebar-socials a {
  color: white;
  font-size: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 0.8rem 5%;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none !important;
  }

  .desktop-icon {
    display: none !important;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo img {
    height: 45px;
  }
}

.testimonial-gallery {
  padding: 100px 20px;
  background: radial-gradient(circle at top, #2a143f, #14091f);
  overflow: hidden;
}

.testimonial-gallery h2 {
  text-align: center;
  color: var(--text-white);
  margin-bottom: 70px;
  font-size: 34px;
}

/* Track */
.gallery-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: autoScroll 36s linear infinite;
}

/* Pause on hover */
.gallery-track:hover {
  animation-play-state: paused;
}

/* Item */
.gallery-item {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: transform .5s ease;
  box-shadow: 0 25px 60px rgba(157, 78, 221, .35);
}

.gallery-item:hover {
  transform: scale(1.08);
}

/* Image */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .4s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Icon */
.view-icon {
  font-size: 38px;
  color: white;
  cursor: pointer;
  transform: scale(.7);
  transition: transform .3s ease;
}

.gallery-item:hover .view-icon {
  transform: scale(1);
  transition: transform 0.35s ease, filter 0.35s ease;
  will-change: transform;
}

/* Auto Scroll */
@keyframes autoScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Modal */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 20, .85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  /* Ensure modal is above sticky navbar */
}

.image-modal img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(157, 78, 221, .6);
}

.image-modal .close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* Mobile */
@media(max-width:768px) {
  .gallery-item {
    width: 170px;
    height: 170px;
  }
}

.section-titles {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
  text-align: center;
}

.section-description {
  font-size: 1rem;
  color: var(--muted-text);
  margin-bottom: 5rem;
  margin-top: 2rem;
  text-align: center;
}

/* ===== About Section ===== */
.about-section {
  padding: 90px 6%;
  background: var(--bg-color);
}

.about-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  /* left text, right image */
  gap: 60px;
  align-items: center;
}

.about-text h1 {
  font-size: 2.4rem;
  color: var(--text-white);
  margin-bottom: 18px;
  text-transform: capitalize;
}

.about-text p {
  color: var(--muted-text);
  line-height: 1.9;
  font-size: 0.98rem;
  max-width: 680px;
}

.about-media img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: scale(1);
  transition: transform 0.35s ease;
  will-change: transform;

}

.about-media {
  overflow: hidden;
  border-radius: 28px;
}

.about-media:hover img {
  transform: scale(1.06);
  box-shadow: 0 35px 100px rgba(157, 78, 221, 0.55);
  transition: transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-media {
    order: 2;
  }

  .about-text {
    order: 1;
  }

  .about-text h1 {
    text-align: center;
  }

  .about-text p {
    text-align: center;
  }
}

/* Keychains Section */
.keychains-section {
  padding: 90px 6%;
  background: var(--primary-purple);
}

.keychains-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  /* left text, right image */
  gap: 60px;
  align-items: center;
}

.keychains-text h1 {
  font-size: 2.4rem;
  color: var(--text-white);
  margin-bottom: 18px;
}

.keychains-text p {
  color: var(--muted-text);
  line-height: 1.9;
  font-size: 0.98rem;
  max-width: 680px;
  margin-bottom: 22px;
}

/* Reuse shop button theme */
.keychains-text .shop-btn {
  padding: 12px 40px;
  border-radius: 28px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #FFFFFF;
  color: var(--primary-purple);
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.keychains-text .shop-btn:hover {
  background: var(--primary-purple);
  color: #fff;
  box-shadow: 0 0 25px rgba(157, 78, 221, 1);
  transform: translateY(-3px);
}

.keychains-media {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: none;
  /* remove default side shadow/border */
  transition: filter 0.35s ease;
}

.keychains-media img {
  /* Ensure no visible border around glow */
  border: none;
  outline: none;
  width: 85%;
  max-width: 520px;
  margin: 0 auto;
  height: auto;
  border-radius: 28px;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.keychains-media:hover {
  /* use drop-shadow to avoid inner side borders while glowing */
  filter: drop-shadow(0 12px 32px rgba(128, 90, 213, 0.35)) drop-shadow(0 6px 16px rgba(128, 90, 213, 0.22));
}

.keychains-media:hover img {
  transform: scale(1.06);
  filter: brightness(1.02) contrast(1.02);
}

@media (max-width: 992px) {
  .keychains-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .keychains-media {
    order: 2;
  }

  .keychains-text {
    order: 1;
  }

  .keychains-media img {
    width: 100%;
    max-width: none;
  }

  .keychains-text h1 {
    align-items: center;
  }

  .about-text p {
    align-items: center;
  }

  .shop-btn {
    align-items: center;
  }
}




/* ===== About Section ===== */
.about-section {
  padding: 90px 6%;
  background: var(--bg-color);
}

.about-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  /* left text, right image */
  gap: 60px;
  align-items: center;
}

.about-text h1 {
  font-size: 2.4rem;
  color: var(--text-white);
  margin-bottom: 18px;
  text-transform: capitalize;
}

.about-text p {
  color: var(--muted-text);
  line-height: 1.9;
  font-size: 0.98rem;
  max-width: 680px;
}

.about-media img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: scale(1);
  transition: transform 0.35s ease;
  will-change: transform;

}

.about-media {
  overflow: hidden;
  border-radius: 28px;
}

.about-media:hover img {
  transform: scale(1.06);
  box-shadow: 0 35px 100px rgba(157, 78, 221, 0.55);
  transition: transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-media {
    order: 2;
  }

  .about-text {
    order: 1;
  }

  .about-text h1 {
    text-align: center;
  }

  .about-text p {
    text-align: center;
  }
}

/* Keychains Section */
.keychains-section {
  padding: 90px 6%;
  background: var(--bg-color);
}

.keychains-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  /* left text, right image */
  gap: 60px;
  align-items: center;
}

.keychains-text h1 {
  font-size: 2.4rem;
  color: var(--text-white);
  margin-bottom: 18px;
}

.keychains-text p {
  color: var(--muted-text);
  line-height: 1.9;
  font-size: 0.98rem;
  max-width: 680px;
  margin-bottom: 22px;
}

/* Reuse shop button theme */
.keychains-text .shop-btn {
  padding: 12px 40px;
  border-radius: 28px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #FFFFFF;
  color: var(--primary-purple);
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.keychains-text .shop-btn:hover {
  background: var(--primary-purple);
  color: #fff;
  box-shadow: 0 0 25px rgba(157, 78, 221, 1);
  transform: translateY(-3px);
}

.keychains-media {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: none;
  /* remove default side shadow/border */
  transition: filter 0.35s ease;
}

.keychains-media img {
  /* Ensure no visible border around glow */
  border: none;
  outline: none;
  width: 85%;
  max-width: 520px;
  margin: 0 auto;
  height: auto;
  border-radius: 28px;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.keychains-media:hover {
  /* use drop-shadow to avoid inner side borders while glowing */
  filter: drop-shadow(0 12px 32px rgba(128, 90, 213, 0.35)) drop-shadow(0 6px 16px rgba(128, 90, 213, 0.22));
}

.keychains-media:hover img {
  transform: scale(1.06);
  filter: brightness(1.02) contrast(1.02);
}

@media (max-width: 992px) {
  .keychains-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .keychains-media {
    order: 2;
  }

  .keychains-text {
    order: 1;
  }

  .keychains-media img {
    width: 100%;
    max-width: none;
  }

  .keychains-text h1 {
    align-items: center;
  }

  .about-text p {
    align-items: center;
  }

  .shop-btn {
    align-items: center;
  }
}

/* ===== GLOBAL SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s ease;
  will-change: transform, opacity;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Preloader */
body.is-loading {
  overflow: hidden;
}

#preloader {
  position: fixed;
  inset: 0;
  background: var(--secondary-bg);
  display: grid;
  place-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity .6s ease;
}

#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(157, 78, 221, .45));
  margin-bottom: 26px;
}

.preloader-bar {
  width: 320px;
  max-width: 70vw;
  height: 4px;
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
  overflow: hidden;
  margin: 6px auto 12px;
}

.preloader-progress {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-purple);
  box-shadow: 0 0 18px rgba(157, 78, 221, .65);
  animation: preloadMove 2.2s ease-in-out infinite;
}

#preloader.hide .preloader-progress {
  animation: none;
  width: 100%;
}

.preloader-text {
  color: var(--text-white);
  letter-spacing: .55em;
  font-weight: 600;
  font-size: .9rem;
  opacity: .9;
}

@keyframes preloadMove {
  0% {
    width: 0;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 0;
  }
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--top-bar-bg);
  z-index: 9000;
  transform: translateY(-120%);
  transition: transform .35s ease;
  display: grid;
  place-items: center;
}

.search-overlay.open {
  transform: translateY(0);
}

.search-box {
  width: min(720px, 90vw);
  position: relative;
}

.search-input {
  width: 100%;
  height: 52px;
  background: transparent;
  border: 2px solid rgba(214, 214, 214, .7);
  border-radius: 14px;
  color: var(--text-white);
  padding: 0 92px 0 16px;
  font-size: 1rem;
}

.search-input::placeholder {
  color: var(--muted-text);
  opacity: .8;
}

.search-action {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-text);
  font-size: 1.1rem;
  cursor: pointer;
}

.search-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-white);
  font-size: 1.2rem;
  cursor: pointer;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--top-bar-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: -10px;
  padding-top: 10px;
}

.search-result-item {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
  border-bottom: none;
}

.res-name {
  color: var(--text-white);
  font-weight: 600;
  font-size: 1rem;
}

.res-cat {
  color: var(--accent-purple);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.res-price {
  color: var(--muted-text);
  font-weight: 500;
}

.no-results {
  padding: 20px;
  color: var(--muted-text);
  text-align: center;
  font-style: italic;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.auth-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-card {
  width: min(560px, 92vw);
  background: var(--secondary-bg);
  border: 1px solid var(--top-bar-bg);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  padding: 28px;
  color: var(--text-white);
  position: relative;
  transform: translateY(-16px) scale(.98);
  opacity: .98;
  transition: transform .35s ease, opacity .35s ease;
}

.auth-overlay.open .auth-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.auth-sub {
  color: var(--muted-text);
  font-size: .95rem;
  margin-bottom: 18px;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.auth-input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--top-bar-bg);
  background: transparent;
  color: var(--text-white);
  padding: 0 14px;
  font-size: .98rem;
}

.auth-input::placeholder {
  color: var(--muted-text);
}

.auth-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  color: var(--muted-text);
  font-size: .9rem;
}

.auth-help a {
  color: var(--accent-purple);
}

.auth-action {
  margin-top: 16px;
}

.auth-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--accent-purple);
  color: var(--text-white);
  font-weight: 600;
  cursor: pointer;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.4rem;
  color: var(--muted-text);
  cursor: pointer;
}