:root {
    --primary-brown: #8B4513;
    --secondary-brown: #D2691E;
    --light-brown: #F5DEB3;
    --dark-brown: #5D4037;
    --accent-gold: #FFD700;
    --success-green: #4CAF50;
    --error-red: #F44336;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #FFF8F0;
    --bg-white: #FFFFFF;
    --shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
    --shadow-lg: 0 8px 24px rgba(139, 69, 19, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'AmmaFont';
    src: url('../fonts/gagalin.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.logo span {
    font-family: 'AmmaFont', sans-serif;
    font-size: 1.6rem;        /* optional */
    line-height: 1;
    font-weight: normal;      /* optional */
    letter-spacing: 1px;      /* optional */
    margin: 10px;
}


.login-title {
    font-family: 'AmmaFont', sans-serif;
    font-size: 1.6rem;        /* optional */
    line-height: 1;
    font-weight: normal;      /* optional */
    letter-spacing: 1px;      /* optional */
    margin: 10px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--dark-brown);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-brown), var(--primary-brown));
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-auth {
    background: transparent;
    border: 2px solid var(--primary-brown);
    color: var(--primary-brown);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-auth:hover {
    background-color: var(--primary-brown);
    color: white;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--primary-brown);
    font-size: 24px;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
        right: 5px;
}

.icon-btn:hover {
    background-color: rgba(139, 69, 19, 0.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-brown);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Navigation */
/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-brown);
    font-size: 24px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    z-index: 1001;
}

.logo i {
    font-size: 28px;
    color: var(--accent-gold);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-brown);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-brown);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-brown);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Auth Button in Nav */
.nav-links .btn-auth {
    background: transparent;
    border: 2px solid var(--primary-brown);
    color: var(--primary-brown);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-left: 8px;
}

.nav-links .btn-auth:hover {
    background-color: var(--primary-brown);
    color: white;
}

/* Cart Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}


/* Hero Section */
.hero {
    padding: 140px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-brown);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 215, 0, 0.3);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-jar-container {
    position: relative;
    width: 320px;
    height: auto;
    margin: 0 auto;
}

.floating-jar {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    right: 25px;
    z-index: 2;
    animation: jarFloat 3s ease-in-out infinite;
    transform-origin: center bottom;
    transform: rotate(10deg); /* keep constant tilt */
}

.jar-shadow {
    position: absolute;
    bottom: 10px;          
    left: 50%;
    right: 25px;
    transform: translateX(-50%);
    width: 150px;           
    height: 35px;           
    background: rgba(0, 0, 0, 0.8); /* darker shadow */
    border-radius: 50%;
    filter: blur(18px);
    z-index: 1;
    animation: shadowPulse 3s ease-in-out infinite;
}

/* Floating jar animation: only vertical movement, no rotation */
@keyframes jarFloat {
    0%, 100% {
        transform: translateY(0) rotate(10deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Shadow scales and fades slightly as jar moves */
@keyframes shadowPulse {
    0%, 100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) scaleX(0.75);
        opacity: 0.5;
    }
}



.chocolate-bar {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 20px;
    position: relative;
    transform: rotate(15deg);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.chocolate-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #5D4037, #8B4513);
    border-radius: 15px;
}

.chocolate-bar::after {
    content: 'PREMIUM';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    color: var(--accent-gold);
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% {
        transform: rotate(15deg) translateY(0);
    }
    50% {
        transform: rotate(15deg) translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--success-green);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10000;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        width: 100%;
        padding: 16px;
        text-align: center;
        border-bottom: 1px solid var(--light-brown);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links .btn-auth {
        width: 100%;
        justify-content: center;
        margin: 16px 0 0 0;
        padding: 12px;
        border-radius: var(--radius-sm);
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 120px 20px 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .chocolate-bar {
        width: 200px;
        height: 300px;
    }
    
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}