/*
* New Stylesheet for House of MM Redesign
*/

/* 1. FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/*
Font Usage:
- font-family: 'Playfair Display', serif;  (For main headings)
- font-family: 'Montserrat', sans-serif; (For body text, buttons, and labels)
*/

/* 2. COLORS & BASE STYLES */
:root {
    --bg-color: #FDFCF9; /* A soft, elegant off-white */
    --text-color: #222222; /* A dark, readable charcoal */
    --primary-color: #8B4513; /* A rich, saddle brown as an accent */
    --secondary-color: #D2B48C; /* A lighter tan for secondary elements */
    --border-color: #EAEAEA; /* A light grey for subtle borders */
}

body.new-design {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Resetting some bootstrap overrides */
.new-design a,
.new-design a:hover {
    color: var(--text-color);
    text-decoration: none;
}

.new-design h1, .new-design h2, .new-design h3, .new-design h4, .new-design h5, .new-design h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    font-weight: 600;
}

.new-design .container-fluid {
    padding-left: 50px;
    padding-right: 50px;
}

@media (max-width: 768px) {
    .new-design .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 3. NEW HEADER & NAVIGATION (Final Alignment - Icons Far Right) */
.new-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 50px; /* Reverted padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.new-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Removed height: 90px; */
    position: relative; /* For absolute positioning of icons */
}

/* Main structural parts of the navbar */
.navbar-flex-part {
    display: flex;
    align-items: center;
}
.navbar-flex-part.left {
    flex: 1;
    justify-content: flex-end;
}
.navbar-flex-part.center {
    flex-shrink: 0;
    padding: 0 30px;
}
.navbar-flex-part.right {
    flex: 1;
    justify-content: flex-start;
}

/* Navigation Links */
.new-navbar-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.new-navbar-links a {
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
}
.new-navbar-links a:hover {
    color: var(--primary-color);
}
.new-navbar-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}
.new-navbar-links a:hover::after {
    transform: scaleX(1);
}

/* Logo */
.new-navbar-logo img {
    width: 120px;
    height: auto;
    transition: all 0.3s ease;
}

/* Icons */
.new-navbar-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}
.new-navbar-icons a,
.new-navbar-icons .btn {
    color: var(--text-color);
    font-size: 18px;
    background: none;
    border: none;
    padding: 0;
    position: relative;
}
.new-navbar-icons a:hover,
.new-navbar-icons .btn:hover {
    color: var(--primary-color);
}
.new-navbar-icons .cart-icon .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    font-size: 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown menu for user */
.new-navbar-icons .dropdown-menu {
    border-radius: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 15px !important;
}
.new-navbar-icons .dropdown-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}
.new-navbar-icons .dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}


/* --- Mobile Specific Styles --- */
@media (max-width: 991.98px) {
    .new-header {
        padding: 0 20px;
    }
    .new-navbar {
        justify-content: space-between;
    }
    .navbar-flex-part.left, .navbar-flex-part.right {
        display: none; /* Hide desktop links */
    }
    .navbar-flex-part.center {
        flex: 1;
        justify-content: center;
        padding: 0;
    }
    .new-navbar-icons {
        position: static; /* Reset for mobile */
        transform: none;
    }
}

/* Mobile Nav Pane */
.navbar-collapse.new-mobile-nav {
    background-color: var(--bg-color);
    padding-top: 80px;
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    z-index: 1050;
    transition: all 0.3s ease;
    overflow-y: auto;
    display: block;
}
.navbar-collapse.new-mobile-nav.show {
    left: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
    .navbar-collapse.new-mobile-nav {
        display: none !important;
    }
}

.navbar-collapse.new-mobile-nav .nav-link {
    color: var(--text-color) !important;
    font-family: 'Playfair Display', serif;
    font-size: 28px !important;
    text-align: center;
    padding: 15px 0 !important;
}
.navbar-collapse.new-mobile-nav .nav-item {
    border-bottom: 1px solid var(--border-color);
}
.navbar-collapse.new-mobile-nav .nav-item:last-child {
    border-bottom: none;
}
.navbar-close.new-mobile-nav-close {
    color: var(--text-color);
    top: 25px;
    right: 25px;
    font-size: 2.5rem;
    position: absolute;
    cursor: pointer;
}
.navbar-toggler.new-toggler {
    border: none !important;
    padding: 0;
}
.navbar-toggler-icon.new-toggler-icon {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2834, 34, 34, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


/* 4. NEW HERO CAROUSEL */
.new-hero-section {
    width: 100%;
    height: 80vh; /* 80% of the viewport height */
    max-height: 700px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px; /* Added gap for desktop */
}

#header-carousel {
    height: 100%;
}

/* New Carousel Styles from Sample */
/* New Carousel Styles with Aspect Ratio */
.header-carousel .item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Enforce 16:9 aspect ratio on desktop and mobile */
    background-color: #fdfaf6;
}

.header-carousel .item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Use cover, it won't crop 16:9 images in a 16:9 container */
}

.header-carousel .owl-dots {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-dot {
    margin: 5px 0;
}

.header-carousel .owl-dot img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: .5s;
}

.header-carousel .owl-dot.active img,
.header-carousel .owl-dot:hover img {
    border-color: #D19C97;
}

@media (max-width: 991.98px) {
    .header-carousel .owl-dots {
        right: 15px;
    }
    .header-carousel .owl-dot img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767.98px) {
    .header-carousel .owl-dots {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        padding: 10px 0;
    }
    .header-carousel .owl-dot {
        margin: 0 5px;
    }
    .header-carousel .owl-dot img {
        width: 50px;
        height: 50px;
    }
}


.new-hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain !important; /* Cover the area, might crop */
    object-position: center;
}

.new-hero-section .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.2); /* A subtle dark overlay to make text pop */
    color: #fff;
}

.new-hero-section .hero-text-content {
    max-width: 800px;
    padding: 20px;
}

.new-hero-section .hero-text-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1rem;
}

.new-hero-section .hero-text-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.new-hero-section .hero-text-content .btn-hero {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #fff;
    color: var(--text-color);
    padding: 15px 40px;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
}

.new-hero-section .hero-text-content .btn-hero:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Carousel Indicators */
.new-hero-section .carousel-indicators {
    bottom: 30px;
}

.new-hero-section .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.new-hero-section .carousel-indicators .active {
    background-color: #fff;
}

@media (max-width: 768px) {
    .new-hero-section {
        height: 60vh;
        margin-bottom: 20px; /* Added gap for mobile */
    }
    .new-hero-section .hero-text-content h1 {
        font-size: 3rem;
    }
    .new-hero-section .hero-text-content p {
        font-size: 1rem;
    }
    .new-hero-section .hero-text-content .btn-hero {
        padding: 12px 30px;
    }
}

/* 5. NEW FEATURED CATEGORIES */
.new-featured-cat-section {
    padding: 100px 50px;
}

.new-featured-cat-container {
    display: flex;
    gap: 30px;
    width: 100%;
}

.new-featured-cat-item {
    flex: 1;
    height: 600px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.new-featured-cat-item:hover {
    transform: scale(1.03);
}

.new-featured-cat-item a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.25);
    text-decoration: none;
}

.new-featured-cat-content {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.new-featured-cat-item:hover .new-featured-cat-content {
    transform: translateY(0);
}

.new-featured-cat-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1rem;
}

.new-featured-cat-content .shop-now-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    padding-bottom: 5px;
    border-bottom: 2px solid #fff;
    transition: all 0.3s ease;
}

.new-featured-cat-item:hover .new-featured-cat-content .shop-now-link {
    padding-bottom: 8px;
}

@media (max-width: 991.98px) {
    .new-featured-cat-section {
        padding: 80px 20px;
    }
    .new-featured-cat-container {
        flex-direction: column;
    }
    .new-featured-cat-item {
        height: 450px;
    }
    .new-featured-cat-content h3 {
        font-size: 2.5rem;
    }
}

/* 6. NEW PRODUCT GRIDS & ANIMATIONS */
.new-product-grid-section {
    padding: 80px 50px;
    background-color: var(--bg-color);
}

.new-product-grid-header {
    text-align: center;
    margin-bottom: 50px;
}

.new-product-grid-header h2 {
    font-size: 3rem;
    font-weight: 500;
    margin: 0;
}

.new-product-card {
    text-align: center;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; /* Rounded corners for the card itself */
}

.new-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.new-product-image-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px; /* Match card's rounded corners */
    height: 400px; /* Added fixed height */
}

.new-product-image {
    width: 100%;
    height: 100%; /* Changed from auto to 100% */
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

.new-product-image.primary {
    position: relative;
    z-index: 1;
}

.new-product-image.secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.new-product-image-container:hover .new-product-image.secondary {
    opacity: 1;
}

.new-product-info {
    padding: 0 10px;
}

.new-product-info .product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.new-product-info .product-name:hover {
    color: var(--primary-color);
}

.new-product-info .price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.new-product-info .current-price {
    color: var(--text-color);
    font-weight: 600;
}

.new-product-info .original-price {
    color: #999;
    text-decoration: line-through;
}

/* Removing the old shop button style */
.shop-button {
    display: none;
}

@media (max-width: 768px) {
    .new-product-grid-section {
        padding: 60px 20px;
    }
    .new-product-grid-header h2 {
        font-size: 2.5rem;
    }
}

/* 7. NEW FOOTER */
.new-footer {
    background-color: #f7f2ec; /* A slightly darker beige for contrast */
    padding: 80px 50px 0;
    color: var(--text-color);
}

.new-footer-main {
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.footer-column h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.footer-column p,
.footer-column a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.8;
    margin-bottom: 10px;
    display: block; /* Ensure links are on their own line */
}

.footer-column a:hover {
    color: var(--primary-color);
}

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

.footer-social-icons a {
    font-size: 1.9rem;
    display: inline-block; /* Override the block display for these icons */
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.7rem;
    font-weight: 700;
    transition: color 0.3s ease;
}
.footer-social-link:hover {
    color: var(--primary-color);
}

.footer-newsletter .form-control {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0;
    height: 45px;
}
.footer-newsletter .btn {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 0;
    padding: 0 25px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.new-footer-sub {
    padding: 30px 0;
    text-align: center;
}

.new-footer-sub p {
    font-size: 0.85rem;
    margin: 0;
    color: #888;
}

.new-footer-sub .payment-icons img {
    height: 24px;
    margin-top: 15px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .new-footer {
        padding: 60px 20px 0;
    }
    .footer-column {
        margin-bottom: 40px;
    }
}

/* 8. NEW OFFER SECTION */
.new-offer-section {
    padding: 100px 50px;
    background-color: #f7f2ec; /* Use the same light beige as the footer for variety */
}

.new-offer-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.new-offer-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3); /* Dark overlay */
}

.new-offer-content {
    position: relative; /* To be on top of the overlay */
    z-index: 1;
}

.new-offer-content h6 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 10px;
}

.new-offer-content h2 {
    font-family: 'Great Vibes', cursive !important;
    font-size: 4rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 25px;
}

.new-offer-content .btn-offer {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #fff;
    color: var(--text-color);
    padding: 12px 35px;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
}

.new-offer-content .btn-offer:hover {
    background-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .new-offer-section {
        padding: 80px 20px;
    }
    .new-offer-content h2 {
        font-size: 3rem;
    }
}

/* 5A. NEW CATEGORY GRID */
.category-grid-section {
    padding: 80px 50px;
    background-color: #7e2032;
}

.category-grid-item {
    width: 100%;
    aspect-ratio: 9 / 12;
    background-size: cover;
    background-position: center;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px; /* For spacing on mobile */
}

.category-grid-item:hover {
    transform: scale(1.02);
}

.category-grid-item a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: rgba(0,0,0,0.1);
}

.category-grid-content {
    text-align: center;
    color: #ffffff;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.category-grid-item:hover .category-grid-content {
    transform: translateY(-10px);
}

.category-grid-content h4 {
    font-family: 'Dancing Script', cursive !important;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.category-grid-content span {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: none;
    border: none;
    padding: 0;
    display: inline-block;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .category-grid-section {
        padding: 60px 20px;
    }
}

@media (max-width: 767.98px) {
    .category-grid-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
        padding-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .category-grid-item {
        aspect-ratio: 9 / 16; /* Increased height for mobile */
    }
    .category-grid-content h4 {
        font-size: 20px;
    }
    .category-grid-content span {
        font-size: 12px;
    }
}

/* 9. PRODUCT CARD ALIGNMENT FIX */
.new-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.new-product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
