/* ==========================================================================
CSS Variables & Global Settings
========================================================================== */
:root {
--gold: #C5A880;
--gold-hover: #b3956d;
--charcoal: #2C302E;
--cream: #F4F0EA;
--soft-brown: #8B7E74;
--warm-white: #FAF9F6;

--font-serif: 'Playfair Display', serif;
--font-sans: 'Inter', sans-serif;
}

{
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: var(--font-sans);
color: var(--charcoal);
background-color: var(--warm-white);
line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
font-family: var(--font-serif);
font-weight: 600;
color: var(--charcoal);
}

a {
text-decoration: none;
color: inherit;
transition: color 0.3s ease;
}

ul {
list-style: none;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}

/* ==========================================================================
Navigation
========================================================================== */
header {
background-color: #ffffff;
border-bottom: 1px solid var(--cream);
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 1.5rem 2rem;
}

.logo {
font-family: var(--font-serif);
font-size: 1.8rem;
font-weight: 600;
color: var(--charcoal);
letter-spacing: -0.5px;
}

.nav-links {
display: flex;
gap: 2rem;
align-items: center;
}

.nav-links a {
font-size: 0.95rem;
font-weight: 500;
color: var(--charcoal);
}

.nav-links a:hover {
color: var(--gold);
}

#cart-count {
background-color: var(--gold);
color: #fff;
font-size: 0.75rem;
padding: 0.1rem 0.4rem;
border-radius: 50%;
position: absolute;
top: -8px;
right: -15px;
font-weight: 600;
}

/* ==========================================================================
Buttons
========================================================================== */
.btn {
display: inline-block;
padding: 0.8rem 1.8rem;
font-size: 1rem;
font-family: var(--font-sans);
font-weight: 500;
border-radius: 4px;
cursor: pointer;
text-align: center;
transition: all 0.3s ease;
border: none;
}

.btn-primary {
background-color: var(--gold);
color: #ffffff;
}

.btn-primary:hover {
background-color: var(--gold-hover);
transform: translateY(-2px);
}

.btn-outline {
background-color: transparent;
border: 1px solid var(--charcoal);
color: var(--charcoal);
}

.btn-outline:hover {
background-color: var(--charcoal);
color: #ffffff;
}


/* ==========================================================================
Home Page: Hero & Categories
========================================================================== */
/* --- SPLIT HERO SECTION STYLING --- */
.split-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  gap: 4rem; /* Space between text and image */
}

/* Left Side: Text and Buttons */
.hero-content {
  flex: 1;
  text-align: left; 
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--soft-brown);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Right Side: Showcase Image */
.hero-image-wrapper {
  flex: 1;
  width: 100%;
}

.hero-image {
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
  border-radius: 16px; 
  box-shadow: 0 15px 35px rgba(0,0,0,0.08); 
}

/* Mobile Responsiveness: Stack them on small screens */
@media (max-width: 768px) {
  .split-hero {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
    margin: 2rem auto;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-direction: column; 
  }
}
.section-title {
text-align: center;
font-size: 2.2rem;
margin-bottom: 3rem;
}

.category-scroll {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}

.category-box {
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.03);
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-box:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.category-info {
padding: 1.5rem;
text-align: center;
}

.category-info h3 {
font-size: 1.4rem;
margin-bottom: 0.5rem;
}

.category-info p {
color: var(--soft-brown);
font-size: 0.95rem;
}

/* ==========================================================================
Collection Page: Layout & Products
========================================================================== */
.shop-layout {
display: grid;
grid-template-columns: 250px 1fr;
gap: 3rem;
align-items: start;
}

.category-sidebar {
background: #ffffff;
padding: 2rem;
border-radius: 8px;
border: 1px solid var(--cream);
position: sticky;
top: 100px;
}

.category-list li {
padding: 0.8rem 0;
cursor: pointer;
border-bottom: 1px solid var(--cream);
color: var(--soft-brown);
transition: color 0.3s ease;
}

.category-list li:last-child {
border-bottom: none;
}

.category-list li:hover {
color: var(--gold);
}

.category-list li.active {
color: var(--charcoal);
font-weight: 600;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 2rem;
}

.product-card {
background: #ffffff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
}

.product-card:hover {
transform: translateY(-5px);
}

/* --- THE IMAGE FIX --- /
/ This ensures images fit completely within the card without being cropped /
.product-img, .category-img {
width: 100%;
height: 260px;
background-color: #FAFAFA; / Light studio-like background /
background-size: contain; / Prevents zooming/cropping */
background-position: center;
background-repeat: no-repeat;
border-bottom: 1px solid #f0f0f0;
}

.product-info {
padding: 1.5rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}

.product-category {
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--soft-brown);
margin-bottom: 0.5rem;
}

.product-title {
font-size: 1.2rem;
margin-bottom: 0.5rem;
color: var(--charcoal);
}

.product-price {
font-family: var(--font-sans);
font-weight: 600;
font-size: 1.1rem;
color: var(--gold);
margin-bottom: 1rem;
}

.add-to-cart-btn {
margin-top: auto;
width: 100%;
padding: 0.8rem;
background-color: var(--warm-white);
border: 1px solid var(--cream);
color: var(--charcoal);
font-family: var(--font-sans);
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
border-radius: 4px;
}

.add-to-cart-btn:hover {
background-color: var(--charcoal);
color: #fff;
border-color: var(--charcoal);
}


/* ==========================================================================
Toast Notification Container & Styling
========================================================================== */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column-reverse; /* Newest toasts pop up from the bottom */
  gap: 12px;
  z-index: 9999;
  pointer-events: none; /* Allows the user to click on the website behind the container */
}

.toast-notification {
  pointer-events: auto; /* Re-enables clicking on the toast itself */
  background-color: var(--charcoal);
  color: var(--warm-white);
  border-left: 4px solid var(--gold); /* Adds a subtle brand accent */
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(100%); /* Slides in from the right */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 350px;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  #toast-container {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }
  .toast-notification {
    max-width: 100%;
    transform: translateY(100%); /* Slides up from the bottom on mobile */
    text-align: center;
  }
  .toast-notification.show {
    transform: translateY(0);
  }
}


/* ==========================================================================
Responsive Design
========================================================================== */
@media (max-width: 768px) {
.nav-container {
flex-direction: column;
gap: 1rem;
padding: 1rem;
}

.hero {
padding: 4rem 1rem;
}

.hero h1 {
font-size: 2.5rem;
}

.shop-layout {
grid-template-columns: 1fr;
}

.category-sidebar {
position: static;
margin-bottom: 2rem;
}

.category-list {
display: flex;
overflow-x: auto;
gap: 1rem;
padding-bottom: 1rem;
}

.category-list li {
border-bottom: none;
white-space: nowrap;
background: var(--warm-white);
padding: 0.5rem 1rem;
border-radius: 20px;
}

.category-list li.active {
background: var(--gold);
color: #fff;
}

/* Fix for Product Images */
.product-img {
  width: 100%;
  height: 220px; /* Gives the box an actual height */
  background-size: contain; /* Ensures the whole product fits without being cropped */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f9f9f9; /* Optional: A light grey background for items with transparent backgrounds */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

}