 
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #ffa502;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f9f9f9;
    --card-bg: #fff;
    --header-bg: #fff;
    --footer-bg: #2f3542;
    --footer-text: #f1f2f6;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */

.hero
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--card-bg);
    line-height: 1.6;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.navtags ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navtags a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.navtags a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navtags a:hover::after {
    width: 100%;
}


.btn-cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart:hover {
    background-color: var(--secondary-color);
}

.cart-count {
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-primary{
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/***********2 second animation************/
@keyframes bounce {
    0%,100% {
        transform:translateY(0)
    }
    50% {
        transform:translateY(-10px)
    }
}
.logo {
    animation: bounce 1s ease-out infinite;
}
/***********3 second animation************/

/******Animations******/
@keyframes navtags{
    0%{
        transform:translateX(-100px);
    }
    100%{
        transform:translateX(0px);
    }
}
.animate-1 {
    animation: navtags .3s ease;
}
.animate-2 {
    animation: navtags .6s ease;
}
.animate-3 {
    animation: navtags .9s ease;
}
.animate-4 {
    animation: navtags 1.2s ease;
}











/* --- Shop Page Specific Styles --- */
.shop-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif; /* Adjust to your site's font */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.shop-page-content h1,
.shop-page-content h2 {
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 25px;
}

.shop-page-content h1 {
    font-size: 3em;
    margin-top: 50px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5em;
    padding-top: 40px;
    margin-bottom: 50px;
}

/* Shop Hero Section */
.shop-hero {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--secondary-background-color, #f9f9f9);
    border-radius: 10px;
    margin-bottom: 40px;
}

.shop-hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    color: var(--light-text-color, #555);
}

/* Cake Categories Section */
.cake-categories {
    padding: 60px 0;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.category-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--card-background-color, #fff);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensures image corners are rounded */
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.category-card img {
    width: 100%;
    height: 180px; /* Fixed height for category images */
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card h3 {
    margin: 20px 0;
    font-size: 1.4em;
    color: var(--primary-color, #e74c3c);
}

/* Cake List Section (Featured & All Cakes) */
.cake-list-section {
    padding: 60px 0;
    margin-bottom: 40px;
    background-color: var(--card-background-color, #fff);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.cake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.cake-card {
    background-color: var(--card-background-color, #fff);
    border: 1px solid var(--border-color, #eee);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* For internal layout */
    flex-direction: column;
}

.cake-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.cake-card img {
    width: 100%;
    height: 250px; /* Fixed height for product images */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cake-card:hover img {
    transform: scale(1.03);
}

.cake-card h3 {
    font-size: 1.6em;
    margin: 20px 15px 10px;
    color: var(--heading-color);
}

.cake-card .description {
    font-size: 0.95em;
    color: var(--light-text-color, #666);
    padding: 0 15px 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* Order Now Button (already styled by your previous script, but ensuring consistency) */
.cake-card .btn-order {
    display: inline-block;
    background-color: var(--primary-color, #e74c3c);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
    align-self: center; /* Center the button */
}

.cake-card .btn-order:hover {
    background-color: var(--primary-dark-color, #c0392b);
}

/* Call to Action at bottom */
.order-cta {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--secondary-background-color, #f9f9f9);
    border-radius: 10px;
    margin-top: 40px;
}

.order-cta h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.order-cta p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--light-text-color, #555);
}

.btn-primary-cta {
    display: inline-block;
    background-color: var(--accent-color, #f39c12); /* Use an accent color */
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary-cta:hover {
    background-color: var(--accent-dark-color, #e67e22);
}


/* --- Responsive Design for Shop Page --- */
@media (max-width: 768px) {
    .shop-page-content h1 {
        font-size: 2.2em;
    }
    .section-title {
        font-size: 2em;
    }
    .shop-hero-content p {
        font-size: 1em;
    }
    .category-grid,
    .cake-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    .cake-card img {
        height: 200px; /* Adjust height for smaller screens */
    }
    .cake-card h3 {
        font-size: 1.4em;
    }
    .cake-card .description {
        font-size: 0.85em;
    }
    .cake-card .btn-order {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .order-cta h2 {
        font-size: 2em;
    }
    .order-cta p {
        font-size: 1em;
    }
    .btn-primary-cta {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cake-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on medium tablets */
    }
}

@media (min-width: 1025px) {
    .cake-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on larger screens */
    }
}

/* --- Dark Mode Support (assuming you have a theme toggle) --- */
html[data-theme='dark'] .shop-page-content {
    background-color: var(--dark-background-color);
    color: var(--dark-text-color);
}

html[data-theme='dark'] .shop-page-content h1,
html[data-theme='dark'] .shop-page-content h2 {
    color: var(--dark-heading-color);
}

html[data-theme='dark'] .shop-hero,
html[data-theme='dark'] .cake-list-section,
html[data-theme='dark'] .order-cta {
    background-color: var(--dark-secondary-background-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme='dark'] .shop-hero-content p,
html[data-theme='dark'] .order-cta p,
html[data-theme='dark'] .cake-card .description {
    color: var(--dark-light-text-color);
}

html[data-theme='dark'] .category-card,
html[data-theme='dark'] .cake-card {
    background-color: var(--dark-card-background-color);
    border-color: var(--dark-border-color, #444);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme='dark'] .category-card:hover,
html[data-theme='dark'] .cake-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme='dark'] .category-card h3 {
    color: var(--dark-primary-color);
}























footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section.about p {
    margin-bottom: 1.5rem;
    color: #dfe4ea;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.socials a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links li {
    margin-bottom: 0.8rem;
}

.footer-section.links a {
    transition: var(--transition);
}

.footer-section.links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-section.contact a {
    transition: var(--transition);
}

.footer-section.contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-chef {
        flex-direction: column;
    }
    
    .chef-content {
        order: -1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navtags {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    .navtags.active {
        left: 0;
    }
    
    .navtags ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .header-right {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2, .testimonial-content h2, .chef-content h2, .newsletter h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .heading {
        padding: 1rem 5%;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 3rem 5%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 30px;
        margin-bottom: 1rem;
    }
    
    .btn-subscribe {
        border-radius: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}