/* Custom Fonts ( Google Fonts ) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ==== Make CSS Variables ==== */
:root {
    --primary-color: #B88E2F;
    --dark-color: #333333;
    --light-gray: #666666;
    --bg-light: #F4F5F7;
    --bg-hero: #FFF3E3;
    --font-poppins: 'Poppins', sans-serif;
}

/* ==== BASIC STYLES ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-poppins);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #ffffff; /* white background */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-weight: 700;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==== UTILITY CLASSES ==== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
    border: none;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #a37c22;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 40px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 16px;
    text-align: center;
    color: var(--light-gray);
    margin-bottom: 40px;
}

/* ==== HEADER PART ==== */

.header {
    padding: 20px 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;  
    background: white;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    gap: 5px;
}

.logo img {
    height: 32px; /* Adjusted logo size */
}

.nav ul {
    display: flex;
    gap: 40px;
}

.nav a {
    font-weight: 500;
    color: var(--dark-color);
    padding-bottom: 5px;
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
}

.icons a {
    margin-left: 25px;
    color: var(--dark-color);
    font-size: 20px;
}

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

/* Hide navigation on smaller screens */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .header .container {
        justify-content: space-around;
    }
    .icons a {
        margin-left: 15px;
    }
}

/* ==== HERO SECTION ( MAIN PART ) ==== */

.hero {
    margin-top: 20px;
    padding-bottom: 50px;
}

.hero-content {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 500px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px; /* Matching the image's border style */
}

.hero-text-box {
    position: relative;
    background-color: var(--bg-hero);
    padding: 40px;
    max-width: 450px;
    border-radius: 10px;
    z-index: 2;
    margin-right: 50px; /* Positioning the box */
}

.hero-text-box .subtitle {
    font-weight: 500;
    font-size: 16px;
    color: var(--dark-color);
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.hero-text-box h1 {
    font-size: 48px;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero-text-box .description {
    color: var(--light-gray);
    margin-bottom: 25px;
}

/* Hero Responsiveness */
@media (max-width: 1024px) {
    .hero-text-box {
        margin-right: 0;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        min-height: 400px;
    }
    .hero-text-box {
        position: static;
        max-width: 80%;
        margin: 20px auto;
        padding: 30px;
    }
    .hero-text-box h1 {
        font-size: 36px;
    }
}

/* ===================== BROWSE THE RANGE ===================== */

.range-section {
    padding: 70px 0;
}

.range-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.range-item {
    text-align: center;
}

.range-item img {
    width: 100%;
    height: 475px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.range-item .item-label {
    font-weight: 600;
    font-size: 20px;
    color: var(--dark-color);
}

/* Range Grid Responsiveness */
@media (max-width: 768px) {
    .range-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== OUR PRODUCTS ===================== */

.products-section {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    /* 4 columns layout on desktop */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 300px; /* Fixed height for visual consistency */
    object-fit: cover;
    display: block;
}

/* Badges (Z-index for layering) */
.badge, .badge-new {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.badge { /* -30%, -50% */
    background-color: #E97171;
}

.badge-new { /* New */
    background-color: #2EC1AC;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.product-info .description {
    color: var(--light-gray);
    font-size: 14px;
    margin-bottom: 5px;
}

.product-info .price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-color);
}

.old-price {
    font-size: 14px;
    color: #B0B0B0;
    text-decoration: line-through;
}

/* Product Overlay (Hover Effect) - Z-index used here */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 10px 25px;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-overlay .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.overlay-links {
    display: flex;
    gap: 20px;
}

.overlay-links a {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.overlay-links a i {
    margin-right: 5px;
}

/* Products Grid Responsiveness */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================== INSPIRATION SECTION ===================== */

.inspiration-section {
    padding: 50px 0;
    background-color: var(--bg-hero); /* Same color as hero box */
}

.inspiration-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.inspiration-text {
    flex: 0 0 30%; /* Fixed width for text box */
    padding-top: 50px;
}

.inspiration-text h2 {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.inspiration-text p {
    color: var(--light-gray);
    margin-bottom: 25px;
}

.inspiration-gallery {
    flex: 1;
    display: grid;
    /* CSS Grid Layout for the image complex */
    grid-template-columns: 4fr 3fr; 
    grid-template-rows: 1fr;
    gap: 15px;
    position: relative;
}

.large-image {
    position: relative;
    grid-column: 1 / 2;
}

.large-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.image-text-box {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-text-box p {
    font-size: 14px;
    color: var(--dark-color);
}

.image-text-box h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-right: 15px;
}

.image-text-box a {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s;
}

.small-images-grid {
    grid-column: 2 / 3;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr; /* Two rows stacked */
    gap: 15px;
}

.small-images-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Carousel controls (Z-index for visibility) */
.carousel-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D9D9D9;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.arrow-btn {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
}

/* Inspiration Responsiveness */
@media (max-width: 992px) {
    .inspiration-content {
        flex-direction: column;
    }
    .inspiration-text {
        flex: 1;
        padding-top: 0;
        text-align: center;
    }
    .inspiration-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .large-image {
        grid-column: 1 / 3;
    }
    .small-images-grid {
        display: none; /* Hide small images on tablets/mobiles */
    }
    .carousel-controls {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

/* ===================== INSTAGRAM SECTION ===================== */

.instagram-section {
    padding: 70px 0;
}

.instagram-grid {
    display: grid;
    /* Custom Grid Layout for the complex Instagram mosaic */
    grid-template-columns: repeat(12, 1fr); 
    grid-template-rows: repeat(2, 250px);
    gap: 10px;
    margin-top: 40px;
}

/* Custom spanning for 100% visual match */
.instagram-grid img:nth-child(1) { /* Left tall */
    grid-column: 1 / 4;
    grid-row: 1 / 3;
}
.instagram-grid img:nth-child(2) { /* Top middle */
    grid-column: 4 / 7;
    grid-row: 1 / 2;
}
.instagram-grid img:nth-child(3) { /* Top right small */
    grid-column: 7 / 9;
    grid-row: 1 / 2;
}
.instagram-grid img:nth-child(4) { /* Top right wide */
    grid-column: 9 / 13;
    grid-row: 1 / 2;
}
.instagram-grid img:nth-child(5) { /* Bottom middle small */
    grid-column: 4 / 6;
    grid-row: 2 / 3;
}
.instagram-grid img:nth-child(6) { /* Bottom middle wide */
    grid-column: 6 / 9;
    grid-row: 2 / 3;
}
.instagram-grid img:nth-child(7) { /* Bottom right tall */
    grid-column: 9 / 11;
    grid-row: 2 / 3;
}
.instagram-grid img:nth-child(8) { /* Bottom far right small */
    grid-column: 11 / 13;
    grid-row: 2 / 3;
}

.instagram-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Instagram Responsiveness */
@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr); 
        grid-template-rows: repeat(3, 150px); /* Adjusting rows for vertical space */
    }
    /* Simplifying the grid for mobile/tablet */
    .instagram-grid img {
        grid-column: span 2; /* 2 images per row */
        grid-row: span 1;
    }
    /* Explicitly setting span for the first two images to keep some visual interest */
    .instagram-grid img:nth-child(1) {
        grid-column: 1 / 5; /* Full width */
        grid-row: 1 / 2;
    }
    .instagram-grid img:nth-child(2) {
        grid-column: 1 / 3; 
        grid-row: 2 / 3;
    }
    .instagram-grid img:nth-child(3) {
        grid-column: 3 / 5;
        grid-row: 2 / 3;
    }
    /* The rest follow the default span 2 */
}


/* ===================== FOOTER ===================== */

.footer {
    border-top: 1px solid #D9D9D9;
}

.footer-grid {
    display: grid;
    /* CSS Grid for footer layout */
    grid-template-columns: 2fr repeat(3, 1fr); 
    gap: 40px;
    padding: 40px 0;
}

.footer-col {
    padding: 10px 0;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-info p {
    color: var(--light-gray);
    font-size: 16px;
}

.footer-links .footer-title,
.footer-help .footer-title {
    color: var(--light-gray);
    font-size: 16px;
    font-weight: 500;
}

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

.footer-links a,
.footer-help a {
    font-weight: 500;
    color: var(--dark-color);
}

.footer-links a:hover,
.footer-help a:hover {
    color: var(--primary-color);
}

.footer-newsletter input {
    border: none;
    border-bottom: 1px solid var(--dark-color);
    padding-bottom: 5px;
    margin-right: 10px;
    font-size: 14px;
    outline: none;
}

.footer-newsletter button {
    background: none;
    border: none;
    border-bottom: 1px solid var(--dark-color);
    padding-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

.footer-newsletter button:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #D9D9D9;
    padding: 15px 0;
}

.footer-bottom p {
    text-align: left;
    font-size: 16px;
    color: var(--dark-color);
    padding-left: 20px;
}

/* Footer Responsiveness */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablet/mobile */
    }
    .footer-info {
        grid-column: 1 / 3; /* Full width for address/info */
    }
    .footer-newsletter {
        grid-column: 1 / 3; /* Full width for newsletter */
        margin-top: 20px;
    }
}