/* GLOBAL RESET */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
  --white: #ffffff;
  --cream: #f5f3ee;
  --light-cream: #faf9f6;
  --olive: #2c3328;
  --olive-mid: #4a5c3a;
  --olive-light: #6b7c5a;
  --black: #1a1a1a;
  --gray: #888888;
  --light-gray: #e8e8e8;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--black);
    background-color: #8B7355;
    /* Updated path to exit 'Css' folder and enter 'images' folder */
    background-image: url('../images/background.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ANNOUNCEMENT BAR */
.announcement-bar {
    background: var(--olive);
    color: var(--white);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    z-index: 1001;
}

.ticker-wrap { overflow: hidden; }

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}

.ticker span {
    font-size: 12px;
    letter-spacing: 0.06em;
    font-weight: 300;
    display: inline;
    padding: 0 20px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* NAVBAR */
.navbar {
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 0.5px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(260px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-size: 12px;
    letter-spacing: 0.12em;
    font-weight: 400;
    color: white;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo a img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-logo a span {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
    color: white;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    position: relative;
    font-size: 16px;
    color: white;
    transition: color 0.3s;
}

.nav-icon:hover { color: rgba(255,255,255,0.7); }

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--olive-mid);
    color: white;
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 400;
    color: white;
    border: 1px solid white;
    padding: 7px 16px;
    transition: all 0.3s;
    background: transparent;
}

.btn-login:hover {
    background: white;
    color: var(--black);
}

/* HERO */
.hero {
    position: relative;
    height: calc(100vh - 110px);
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 80px;
    color: white;
    z-index: 3;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 12px;
}

/* CATEGORIES */
.categories-section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cat-card {
    position: relative;
    overflow: hidden;
    height: 420px;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card { 
    color: white; 
}

.product-name, .price-current {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* AUTH BOX */
.auth-box {
    background: rgba(255,255,255,0.97);
    padding: 50px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* PAGE HERO FIX */
.page-hero {
    background: transparent;
    padding: 60px 40px;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: 52px;
    color: white !important;
}

.page-hero p {
    font-size: 14px;
    color: rgba(255,255,255,0.85) !important;
}

/* FOOTER */
.footer {
    background: var(--olive);
    color: white;
    padding: 70px 40px 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 36px; }
}

/* FORCE WHITE FOR SHOP PAGE */
.filter-sidebar *, 
.shop-layout .results-count,
.shop-layout label {
    color: white !important;
}