/* Add a clean Sans-Serif for body text */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #0b0b0e;
  color: #e0e0e0;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: 4px; /* More breathing room */
  text-transform: uppercase;
  font-weight: 300;
}

header {
  padding: 60px 20px;
  background: transparent;
  border-bottom: 1px solid rgba(201, 164, 92, 0.2);
}

header h1 {
  letter-spacing: 2px;
  font-weight: 300;
}

header p {
  color: #c9a45c;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 30px; /* Consistent spacing between Login and Bag */
}

#cart-icon-container {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.bag-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.auth-link {
    text-decoration: none;
    color: #c9a45c;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.auth-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(201, 164, 92, 0.6);
    transition: 0.3s ease;
}


#cart-icon-container:hover .bag-icon {
    transform: translateY(-2px);
}

#cart-count {
    background: #c9a45c;
    color: #0f0f14;
    font-size: 10px;
    font-weight: bold;
    font-family: sans-serif;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -8px;
}

/* The Dark Overlay */
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Deep dimming */
    /* Safari Support */
    -webkit-backdrop-filter: blur(3px); 
    /* Standard Support */
    backdrop-filter: blur(3px);
    z-index: 999; /* Just below the drawer (1000) */
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease;
}

/* Show the overlay when the drawer is active */
#cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.logo-area {
    text-align: left;
}

section {
  padding: 80px 60px;
}

.products {
  display: grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); /*made the products smaller and aside each other*/
  gap: 60px;
  padding: 80px 10%;;
}

article {
  background: transparent; /* Remove the boxy background */
  padding: 0px;
  border-radius: 0px;
  text-align: center;
}

article:hover img {
  transform: scale(1.02);
  filter: brightness(1.1);
}

article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}


article h3 {
  margin-top: 0;
  font-weight: 400;
}

.description {
  color: #bdbdbd;
  line-height: 1.5;
  font-size: 14px;
  opacity: 0.8;
}

.price {
  color: #c9a45c;
  font-size: 18px;
  margin: 15px 0;
}

button {
  background: transparent;
  color: #c9a45c;
  border: 1px solid #c9a45c;
  padding: 12px 30px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  transition: 0.4s ease;
  margin-top: 15px;
}

button:hover {
  background: #c9a45c;
  color: #0b0b0e;
  letter-spacing: 3px; /* Subtle expansion on hover */
}

#cart {
  margin-top: 30px;
  background: #1a1a22;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #2a2a35;
}

/* The Cart as a "Concierge Drawer" */
#cart-drawer {
  position: fixed;
  right: -400px;
  top: 0;
  width: 350px;
  height: 100%;
  background: #16161d;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transition: 0.5s;
  padding: 40px;
  z-index: 1000;
  /* ADD FOR DRAWER SCROLLS */
  overflow-y: auto;
}

#cart-drawer.active {
  right: 0;
}

#total {
  margin-top: 15px;
  color: #c9a45c;
  font-size: 20px;
}

.hero {
  text-align: center;
  padding: 80px 20px;
  background: radial-gradient(circle at top, #1a1a22, #0f0f14);
}

/*
.hero h2 {
  font-size: 36px;
  font-weight: 300;
}*/

article img {
  width: 100%;
  aspect-ratio: 4 / 5; /* Elegant vertical ratio */
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0; /* Sharp corners or very slight (2px) feel more premium */
}

.products img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .products img {
    aspect-ratio: 1 / 1; /* square on phones */
  }
}

.products article {
  padding: 16px;
  gap: 12px;
}

.products article:not(.hero-product) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-product {
  grid-column: span 2;
}

.products article:not(.hero-product) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .products {
    grid-template-columns: 1fr;
  }

  .hero-product {
    order: -1;
  }
}

/*
h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #f5f5f5;
}*/

p {
  font-size: 0.9rem;
  color: #aaa;
}

.products article p:last-of-type {
  font-size: 1rem;
  font-weight: 600;
  color: #d4af37;
}

.adjust-btn {
    background: transparent;
    border: 1px solid rgba(201, 164, 92, 0.4);
    color: #c9a45c;
    width: 28px;
    height: 28px;
    border-radius: 50%; /* Circle buttons look more bespoke */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    padding: 0;
    margin: 0;
}

.adjust-btn:hover {
    background: #c9a45c;
    color: #0f0f14;
    border-color: #c9a45c;
}

.filter-nav {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.filter-link {
    font-family: "Playfair Display", serif;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    color: rgba(245, 245, 245, 0.5); /* Faded when not active */
    transition: all 0.4s ease;
    position: relative;
    padding-bottom: 8px;
}

.filter-link:hover {
    color: #c9a45c;
}

/* The gold underline for the active category */
.filter-link.active {
    color: #c9a45c;
}

.filter-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: #c9a45c;
}

.remove-link {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.remove-link:hover {
    color: #ff4d4d; /* A soft red alert color */
    border-bottom: 1px solid #ff4d4d;
}

.checkout-btn {
    font-weight: 600;
    letter-spacing: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.checkout-btn:hover {
    background: #e5c17e !important; /* Lighter gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

#close-cart:hover {
    transform: rotate(90deg); /* Modern, playful touch */
    color: #e5c17e; /* Glows brighter gold */
}