/* --- index.css --- */
:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  width: 100%;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

/* --- App.css --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500&display=swap');

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #050505;
  color: #d4d4d4;
  background-image:
    linear-gradient(to bottom, rgba(5, 5, 5, 0.8), #050505),
    url('https://www.transparenttextures.com/patterns/stardust.png');
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f0f19;
}

::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 5px;
  border: 1px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
  background: #6a6a6a;
}

/* --- Header.css --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
  padding: 1rem 0;
}

.header.scrolled {
  background-color: rgba(15, 10, 28, 0.95);
  border-bottom: 1px solid #D4AF37;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #D4AF37;
  text-decoration: none;
}

.logo a {
    color: #D4AF37;
    text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: #F8F4E9;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #D4AF37;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #D4AF37;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
  display: none !important; /* Hidden by default on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2200;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: #d4af37;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-header {
    display: none !important; /* Hidden by default on desktop */
    width: 100%;
    padding: 1rem 2rem;
    border-bottom: 1px solid #d4af37;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
}

.mobile-menu-title {
    color: #d4af37;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
}

.close-mobile-menu {
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    backdrop-filter: blur(3px);
}

@media (max-width: 1024px) {
  .header {
    background: rgba(5, 5, 5, 0.92);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }

  .mobile-menu-btn {
    display: flex !important; /* Show on mobile */
    padding: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    background: rgba(5, 5, 5, 0.6);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: right 0.3s ease;
    border-left: 1px solid #d4af37;
    padding-top: 0;
    z-index: 2100;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 1.1rem;
    margin: 0;
    padding: 1rem 2rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-menu a:last-child {
      border-bottom: none;
  }
  
  .mobile-menu-header {
      display: flex !important; /* Show on mobile */
  }
  
  .mobile-overlay.active {
      display: block;
  }

  /* Hero: avoid fixed attachment glitches on mobile */
  .hero {
    background-attachment: scroll;
    height: auto;
    padding: 6rem 1.5rem 4rem;
  }
}

/* --- Footer.css --- */
.footer {
  background-color: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  color: #d4af37;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-column p {
  color: #888;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: #d4af37;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-icons a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid #333;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  transition: all 0.3s ease;
  min-width: 110px;
  text-align: center;
}

.social-icons a:hover {
  border-color: #d4af37;
  color: #d4af37;
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #1a1a1a;
  color: #666;
  font-size: 0.8rem;
}
/* --- Cart Icon --- */
.cart-link {
    position: relative;
    color: #F8F4E9;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.cart-link:hover {
    color: #D4AF37;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #D4AF37;
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Notifications --- */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background-color: rgba(20, 20, 30, 0.95);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    border-left: 4px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.notification.show {
    transform: translateX(0);
}
/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid #d4af37;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #d4af37;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: #0a0a0a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus {
    border-color: #d4af37;
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #d4af37;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #f0c448;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}
/* --- Quick View Modal --- */
.quick-view-content {
    max-width: 800px;
    width: 90%;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.quick-view-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-view-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .quick-view-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating buttons */
.floating-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #d4af37;
    background: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.2), rgba(10,10,10,0.95));
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: box-shadow 0.25s ease, background 0.25s ease;
    z-index: 2000;
}
.floating-btn:hover {
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
    background: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.3), rgba(15,12,25,0.95));
}
.floating-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,10,10,0.95);
    color: #f5f5f5;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d4af37;
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
    z-index: 2001;
}
.floating-btn[data-tooltip]:hover::after {
    opacity: 1;
}
.floating-btn--top {
    right: 1.25rem;
    bottom: 1.6rem;
}
.floating-btn--bot {
    left: 1.25rem;
    bottom: 5.6rem;
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 rgba(212, 175, 55, 0.0); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
    100% { box-shadow: 0 0 0 rgba(212, 175, 55, 0.0); }
}
@media (max-width: 640px) {
    .floating-btn { right: auto; width: 48px; height: 48px; }
    .floating-btn--top { right: 1rem; bottom: 1.2rem; }
    .floating-btn--bot { left: 1rem; bottom: 5.0rem; }
}

/* ── Language switcher ────────────────────────────────────────────────────── */
.lang-switch-btn {
    color: var(--gold, #d4af37);
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid var(--gold, #d4af37);
    padding: 3px 10px;
    border-radius: 3px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.lang-switch-btn:hover { opacity: 1; }