:root {
    --coffee-dark: #3E2723;
    --coffee-medium:  #D4AF37;
    --coffee-light: #C4A484;
    --coffee-accent: #D2B48C;
    --coffee-cream: #320232;
    --coffee-gold: #D4AF37;
    --text-dark: #f5de4d;
    --text-light: #f3f3f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--coffee-cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: #320234;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.4s ease;
}


/* Moving Line */
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 6px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--coffee-gold),
        transparent
    );
    animation: movingLine 3s linear infinite;
}

/* Animated Live Line */
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--coffee-gold),
        transparent
    );
    background-size: 200% 100%;
    animation: liveLine 6s linear infinite;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    color: var(--coffee-gold);
    font-size: 28px;
}

.logo-text {
    font-family: 'Montseat', serif;
    font-size: 50px;
    font-weight: 900;
    color: var(--coffee-medium);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--coffee-gold);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--coffee-medium);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coffee-gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Buttons */
.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--coffee-medium);
    color: rgb(12, 11, 11);
}

.btn-primary:hover {
    background: var(--coffee-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--coffee-medium);
    border: 2px solid var(--coffee-medium);
}

.btn-secondary:hover {
    background: rgba(111, 78, 55, 0.05);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #320234 0%,#320234 50%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    width: 750px;
    color: var(--coffee-gold);
}

.hero-title {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--coffee-gold);
}

.hero-title span {
    color: var(--coffee-gold);
}

.hero-text {
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Products Section */
.product {
    padding: 120px 0;
    background-color:#320234;
    border-top: 4px solid var(--coffee-gold);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--coffee-gold);
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    color: var(--coffee-gold);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--coffee-gold);
}

.section-desc {
    font-size: 18px;
    color: var(--text-light);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--coffee-dark);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-15px);
    border: 2px solid var(--coffee-gold);
}

.product-img {
    width: 100%;
    aspect-ratio: 4 / 3; /* keeps uniform height relative to width */
    overflow: hidden;
    border-radius: 15px 15px 0 0; /* matches card corners */
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}


.product-info {
    padding: 25px;
    position: relative;
}

.product-tag {
    position: absolute;
    top: -20px;
    right: 25px;
    background: var(--coffee-gold);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.product-title {
   font-size: 24px;
    color: var(--text-light);
    margin-bottom: 10px; 
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
}

.product-footer {
    display: flex;
    justify-content: space-between; /* completed */
}

.rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--coffee-gold);
}

.rating {
    color: var(--coffee-gold);
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background: var(--coffee-cream);
    color: var(--text-light);
    padding: 70px 0 30px;
    position: relative;
    border-top: 4px solid var(--coffee-gold);
}

/* Footer content layout */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--coffee-gold);
}


.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--coffee-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--coffee-gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--coffee-accent);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--coffee-gold);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1px soild rgba(255,255,255,0.1);
    color: var(--coffee-accent);
    font-size: 15px;

}

/*Animations*/
@keyframes fadeInUp {
    from{
        opacity: 0;
        transform: translateY(40px);
    }
    to{
        opacity: 1;
    } 
}
/* Add your new keyframes BELOW this */
@keyframes liveLine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}


/* ============================= */
/* MOBILE RESPONSIVE FIX */
/* ============================= */

@media (max-width: 768px) {
header {
        height: 55px;          /* FIXED SMALL HEIGHT */
        padding: 0;}

    /* Logo smaller */


    .logo-text {
        font-size: 15px;
    }

    /* Navigation stack */
    nav ul {
        flex-direction: column;
        gap: 4px;
        background: #320234;
        padding: 20px 0;
    }

    .header-container {
        flex-direction: column;
        gap: 4px;
    }

    /* Hero section fix */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-text {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Product section spacing reduce */
    .product {
        padding: 80px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-desc {
        font-size: 15px;
    }

    /* Product grid single column */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Footer stack clean */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

}


 