/* Queens Perfumes - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --color-black: #0a0a0a;
  --color-dark: #121212;
  --color-darker: #050505;
  --color-gold: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-gold-dark: #aa8c2c;
  --color-white: #f8f8f8;
  --color-gray: #888888;

  --font-heading: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;

  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-gold);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
.text-center {
  text-align: center;
}

.g-text {
  color: var(--color-gold);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 50px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-gold);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-fast);
}

.btn:hover {
  color: var(--color-black);
}

.btn:hover::before {
  transform: scaleY(1);
}

.btn:active {
  transform: scale(0.97);
}

.btn-fill {
  background: var(--color-gold);
  color: var(--color-black);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-fill:hover {
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transform: scale(1.03);
}

.btn-fill:active {
  transform: scale(0.97);
}

.btn-fill::before {
  background: var(--color-white);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all var(--transition-fast);
  border-radius: 50px;
}

.navbar.scrolled {
  padding: 8px 5%;
  top: 10px;
  background: rgba(10, 10, 10, 0.4);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.brand-logo-img {
  height: 60px;
  /* Decreased size for floating navbar profile */
  width: auto;
  object-fit: contain;
  transition: height var(--transition-fast);
}

.navbar.scrolled .brand-logo-img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-gold);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.cart-icon {
  position: relative;
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--color-gold);
  color: var(--color-black);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 120px 20px 20px;
  background: radial-gradient(circle at top, #1c1810 0%, var(--color-black) 80%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  transform: translateY(20px);
  animation: fadeUp 1s forwards ease-out;
  opacity: 0;
}

@keyframes fadeUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 5px;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 3px;
  margin-bottom: 40px;
  color: var(--color-white);
  font-style: italic;
}

/* Section Globals */
.section {
  padding: 100px 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  letter-spacing: 2px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 40px;
  justify-content: center;
}

.product-card {
  background: var(--color-dark);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 40px;
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  /* 1:1 Aspect Ratio */
  background: var(--color-darker);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: 24px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 0.8rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.product-desc {
  font-size: 0.85rem;
  color: #aaaaaa;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.product-price {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.btn-small {
  padding: 10px 15px;
  font-size: 0.8rem;
}

/* Utilities */
.search-container {
  max-width: 600px;
  margin: 0 auto 50px;
  position: relative;
  background: var(--color-dark);
  border-radius: 50px;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  background: var(--color-dark);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  border-radius: 50px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Footer */
.footer {
  background: var(--color-darker);
  padding: 80px 5% 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.footer-brand p {
  color: var(--color-gray);
  max-width: 300px;
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-gray);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-gold);
  color: var(--color-black);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.social-icon:hover i {
  color: var(--color-black);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* Scroll Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.toast {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--color-gold);
  color: var(--color-white);
  padding: 15px 25px;
  border-radius: 50px;
  font-family: var(--font-body);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards,
    fadeOut 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards 3s;
}

.toast i {
  color: var(--color-gold);
  font-size: 1.2rem;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .section {
    padding: 60px 5%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .brand-logo {
    font-size: 1.4rem;
  }

  .brand-logo-img {
    height: 45px;
  }
}