:root {
  --off-white: #F8F5F0;
  --charcoal: #333333;
  --blush: #E8C4C4; /* Primary accent color */
  --light-gray: #f5f5f5;
  --dark-blush: #d8a9a9;
  
  /* NEW PREMIUM COLORS */
  --primary-btn: #e28e9d; /* Slightly deeper blush for main button */
  --secondary-btn: #f0f0f0; /* Light background for secondary button */
  --text-on-light: var(--charcoal); 
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, section {
  flex-shrink: 0;
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  text-decoration: none;
  color: var(--charcoal);
}

.logo span {
  color: var(--blush);
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 0 15px;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  transition: color .3s;
}

nav ul li a:hover {
  color: var(--blush);
}

/* Dropdown menu styles */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  border-radius: 5px;
  min-width: 150px;
  z-index: 99;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li {
  margin: 0;
}

.dropdown-content a {
  padding: 10px 20px;
  display: block;
  white-space: nowrap;
  text-decoration: none;
  color: var(--charcoal);
}

.dropdown-content a:hover {
  background-color: var(--light-gray);
  color: var(--charcoal);
}

/* Shopping bag icon in header */
.header-icons {
  position: relative;
  display: flex;
  align-items: center;
}

#cart-icon {
  position: relative;
  color: var(--charcoal);
  font-size: 20px;
  text-decoration: none;
  transition: color .3s;
}

#cart-icon:hover {
  color: var(--blush);
}

.cart-count {
  background: var(--blush);
  color: white;
  font-size: 12px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -8px;
  right: -10px;
}

/* HERO */
.hero {
  background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)),
    url('https://images.unsplash.com/photo-1496747611176-843222e1e57c?auto=format&fit=crop&w=1773&q=80') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--blush);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: .3s;
}

.btn:hover {
  background: var(--dark-blush);
  transform: translateY(-3px);
}

/* SECTION TITLE */
.section-title {
  text-align: center;
  margin: 60px 0 40px;
  font-size: 2.2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--blush);
  margin: 10px auto;
}

/* CATEGORIES */
.categories {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.category-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  padding: 20px;
  color: #fff;
}

/* PRODUCTS */
.product-section {
  padding: 60px 0;
  background: #fff;
}

.product-section:nth-of-type(even) {
  background: var(--light-gray);
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.products {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: .3s;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 15px;
  text-align: center;
}

.product-title {
  font-size: 1.1rem;
  margin: 8px 0;
}

/* --- PRICE STYLING FIX --- */
.product-price {
  font-weight: 600;
  margin-bottom: 10px;
  display: block; 
  font-size: 16px;
  color: var(--charcoal); 
}
.product-price del {
  color: #888; 
  margin-right: 5px;
}
.product-price span {
  color: #c90000; 
  font-weight: 700;
}
/* ------------------------- */


/* --- BUTTON STYLING FIX (Override Old) --- */

/* Remove old conflicting style for add-to-cart-btn */
.add-to-cart-btn {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 14px;
    transition: none;
}


/* NEW BUTTON STYLES FOR PREMIUM LOOK */
.product-actions {
    display: flex; 
    gap: 8px; 
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.add-to-cart-btn,
.buy-now-btn {
    flex: 1; 
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px; 
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Add to Cart (Secondary Action - Clean/Subtle Look) */
.add-to-cart-btn {
    background-color: var(--light-gray); 
    color: var(--charcoal); 
    border: 1px solid #ccc; 
}
.add-to-cart-btn i {
    margin-right: 5px;
}
.add-to-cart-btn:hover {
    background-color: #e0e0e0;
}

/* Buy Now (Primary Action - Use Brand Color for Prominence) */
.buy-now-btn {
    background-color: var(--primary-btn); 
    color: white; 
    border: 1px solid var(--primary-btn);
}
.buy-now-btn:hover {
    background: var(--dark-blush); 
    border-color: var(--dark-blush);
}

/* ------------------------------------------- */


/* TESTIMONIALS SECTION */
.testimonials-section {
    padding: 60px 0;
    background: var(--light-gray);
}
.testimonial-container {
    max-width: 800px;
    margin: auto;
    text-align: center;
    position: relative;
}
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}
.testimonial-author {
    font-weight: 600;
    color: var(--blush);
}

/* ABOUT PAGE STYLES */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: 350px !important; 
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1rem;
}
.about-gallery {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.about-gallery img {
    width: 100%;
    height: 200px !important; 
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform .3s;
}
.about-gallery img:hover {
    transform: scale(1.05);
}

/* CONTACT PAGE STYLES */
.contact-section {
    padding: 80px 0;
}

.contact-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-info .info-item i {
    color: var(--blush);
    font-size: 1.2rem;
}

.contact-form-container {
    flex: 1;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.contact-form button.btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* FOOTER */
footer {
    background: var(--charcoal);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: .3s;
}

.footer-column ul li a:hover {
    color: var(--blush);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: .3s;
}

.social-icons a:hover {
    color: var(--blush);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: .9rem;
}

/* Add this CSS rule anywhere in your file for the icon styling */
.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--charcoal);
    cursor: pointer;
    display: none; /* Default: hidden on desktop */
}

/* --- CHECKOUT SPECIFIC STYLES --- */

/* Overall Layout - To give structure to the two main sections */
.checkout-layout {
    max-width: 1000px;
    margin: 30px auto;
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Aligns content to the top */
}
@media (max-width: 768px) {
    .checkout-layout {
        flex-direction: column;
        gap: 20px;
    }
}

/* Field Grouping and Input Styling */
.shipping-details {
    flex: 2; /* Takes up 2/3 of the space */
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Soft, premium shadow */
}

.input-group {
    margin-bottom: 20px;
}
.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--charcoal);
}
.shipping-details input[type="text"],
.shipping-details input[type="tel"],
.shipping-details textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.shipping-details input:focus,
.shipping-details textarea:focus {
    border-color: var(--dark-blush); /* Focus color */
    outline: none;
    box-shadow: 0 0 0 2px rgba(216, 169, 169, 0.5); /* Soft focus ring */
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.form-grid .full-width {
    grid-column: 1 / -1; /* Spans both columns */
}


/* Order Summary Styling */
.order-summary {
    flex: 1; /* Takes up 1/3 of the space */
    padding: 30px;
    background: var(--light-gray); /* Subtle background contrast */
    border-radius: 10px;
}
.order-summary h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.summary-details p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}
.summary-details hr {
    margin: 15px 0;
    border-color: #ccc;
}
.summary-details h3 {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    color: var(--charcoal);
}

/* Button Styling */
.place-order-btn {
    /* Making it big and prominent, using the brand's primary color */
    width: 100%;
    background-color: var(--primary-btn, #e28e9d);
    border-radius: 5px; /* Square corners for form buttons */
    margin-top: 30px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s;
}
.place-order-btn:hover {
    background: var(--dark-blush);
    transform: none; /* Removing the unnecessary lift effect */
}
/* ------------------------------------------- */


/* RESPONSIVE (MOBILE FIXES) */
@media(max-width: 768px) {
    /* 1. HEADER: Logo, Cart, and Hamburger Icon thik kora holo */
    .header-container {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        position: relative;
    }

    .logo {
        font-size: 24px; 
        margin-bottom: 0;
    }
    
    .menu-toggle {
        display: block; /* Hamburger icon mobile-e show kora holo */
        order: 2;
    }

    .header-icons {
        margin-top: 0;
        order: 3;
    }
    
    /* 2. NAVIGATION MENU: Mobile-e Menu-ke hide kore deoa holo */
    nav {
        display: none; /* Shuru-te menu hide kora holo */
        position: absolute;
        top: 100%; /* Header-er niche theke shuru hobe */
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 90;
    }
    
    /* Eita JavaScript-er maddhome toggle hobe */
    nav.open { 
        display: block; 
    }

    .nav-menu {
        flex-direction: column; /* Menu item-gulo vertical-e shajano holo */
        padding: 10px 0;
    }

    .nav-menu li {
        margin: 5px 0;
        text-align: center;
        width: 100%;
    }
    
    .nav-menu li a {
        padding: 10px 20px;
        display: block;
        border-bottom: 1px solid var(--light-gray);
    }
    .nav-menu li:last-child a {
        border-bottom: none;
    }

    /* 3. HERO: Font Size Adjustment */
    .hero {
        height: 60vh; 
    }

    .hero h1 {
        font-size: 2.5rem; 
    }
    .hero p {
        font-size: 1rem; 
        padding: 0 10px;
    }

    /* 4. SECTION TITLES: Font Size Adjustment */
    .section-title {
        font-size: 1.8rem; 
        margin: 40px 0 20px;
    }

    /* 5. FOOTER AND CONTENT LAYOUT */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    /* Checkout layout fix for mobile */
    .checkout-layout {
        flex-direction: column;
    }
}