/* Reset and Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #000;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px;
}

h1, h2, h3, h4, h5, h6 {
    color: #c8a97e;
    margin-top: 0;
    font-weight: 600;
}

p {
    color: #fff;
    margin-top: 0;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: #000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.4s;
}

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

.logo {
    width: 180px;
}

.logo img {
    width: 140%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation */
.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #000;
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #c8a97e;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    z-index: 2;
}

.nav-menu ul li a:hover,
.nav-menu ul li a:focus {
    color: #fff;
}

.nav-menu .has-submenu > a .arrow {
    font-size: 0.7em;
    margin-left: 7px;
    transition: transform 0.3s;
}

.nav-menu .has-submenu:hover > a .arrow,
.nav-menu .has-submenu:focus-within > a .arrow {
    transform: rotate(180deg);
}

/* Submenu */
.nav-menu .submenu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    background: rgba(24, 22, 18, 0.85);
    backdrop-filter: blur(7px);
    border-radius: 0 0 14px 14px;
    border: 1px solid rgba(200, 169, 126, 0.15);
    box-shadow: 0 12px 32px rgba(200, 169, 126, 0.12);
    transform: translateY(10px) scaleY(0.97);
    transition: opacity 0.3s, transform 0.3s, visibility 0s linear 0.3s;
    z-index: 10;
}

.nav-menu .has-submenu:hover > .submenu,
.nav-menu .has-submenu:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
    transition: opacity 0.3s, transform 0.3s, visibility 0s;
}

.nav-menu .submenu li a {
    padding: 0.85rem 1.5rem;
    color: #c8a97e;
    background: transparent;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-menu .submenu li a:hover,
.nav-menu .submenu li a:focus {
    background: #c8a97e;
    color: #181612;
    border-left: 3px solid #fff;
    padding-left: 1.7rem;
}

.submenu-icon {
    color: #c8a97e;
    font-size: 0.7em;
    margin-right: 0.7em;
    transition: color 0.3s;
}

.nav-menu .submenu li a:hover .submenu-icon,
.nav-menu .submenu li a:focus .submenu-icon {
    color: #181612;
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #c8a97e;
    transition: color 0.3s;
}

.hamburger:hover {
    color: #fff;
}

/* Hero Section */
.product-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('assets/Interior-designing-products.png');
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
    position: relative;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}

.product-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    color: #c8a97e;
    line-height: 1.2;
}

.product-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    color: #fff;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.product-hero .btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-hero .btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Category Section */
.product-categories {
    padding: 60px 0;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-header {
    display: flex;
    align-items: center;
    background: #000;
    padding: 20px 30px;
    border-bottom: 2px solid #c8a97e;
}

.category-icon {
    font-size: 2.5rem;
    color: #c8a97e;
    margin-right: 20px;
}

.category-title {
    text-align: left;
}

.category-title h2 {
    color: #c8a97e;
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.category-title p {
    color: #fff;
    font-size: 1rem;
    margin: 0;
}

/* Product Grid */
/* ==================================================================== */
/* --- UPDATED PRODUCT GRID (3-Column Layout on Desktop) --- */
/* ==================================================================== */
.products-grid {
    display: grid;
    gap: 30px;
    padding: 30px;
    
    /* Mobile First: Default to a single column */
    grid-template-columns: 1fr;
}

/* For Tablets: Switch to 2 columns */
@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For Desktops: Switch to the desired 3 columns */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    background: #fff;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #c8a97e;
    font-size: 1.3rem;
}

.product-info p {
    color: #000;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.product-cta {
    display: inline-block;
    padding: 8px 55px;
    background: #c8a97e;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(200,169,126,0.4);
    border: none;
}

.product-cta:hover {
    background: #b89970;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(200,169,126,0.5);
}

/* Accessories Section */
.accessories-section {
    padding: 60px 0;
    background: #000;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px;
}

.accessory-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.accessory-card:hover {
    transform: translateY(-5px);
}

.accessory-icon {
    font-size: 2.5rem;
    color: #c8a97e;
    margin-bottom: 15px;
    transition: color 0.3s, transform 0.3s;
}

.accessory-card:hover .accessory-icon {
    color: #b89970;
    transform: scale(1.1);
}

.accessory-card h3 {
    color: #c8a97e;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.accessory-card p {
    color: #000;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: #111;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #c8a97e;
    margin-bottom: 15px;
    transition: color 0.3s, transform 0.3s;
}

.feature-card:hover .feature-icon {
    color: #b89970;
    transform: scale(1.1);
}

.feature-card h3 {
    color: #c8a97e;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #000;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #fff;
    padding: 60px 0 0;
    font-size: 1rem;
    line-height: 1.6;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    width: 180px;
    height: auto;
    display: block;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.footer__logo:hover {
    transform: scale(1.05);
}

.footer__description {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #c8a97e;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.footer__social a:hover {
    background: #c8a97e;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(200,169,126,0.5);
}

.footer__title {
    color: #c8a97e;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: #c8a97e;
}

.footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 8px;
}

.footer__links a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: #c8a97e;
}

.footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: #fff;
    font-size: 0.9rem;
}

.footer__contact-list i {
    color: #c8a97e;
    margin-right: 12px;
    margin-top: 4px;
    font-size: 1rem;
}

.footer__bottom {
    margin-top: 30px;
    padding: 15px 0;
    background: #111;
    text-align: center;
}

.footer__copyright {
    color: #fff;
    font-size: 0.85rem;
}

.footer__copyright #current-year {
    color: #c8a97e;
    font-weight: 600;
}

.footer__legal {
    margin-top: 8px;
}

.footer__legal a {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer__legal a:hover {
    color: #c8a97e;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-hero h1 { font-size: 2.8rem; }
    .products-grid, .features-grid, .accessories-grid { gap: 20px; padding: 15px; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    .header-container { padding: 0 10px; }
    .logo { width: 140px; }
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        top: 0; right: 0;
        height: 100vh; width: 250px;
        background: #000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        z-index: 1000;
        padding-top: 80px;
        transition: transform 0.3s;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu ul { flex-direction: column; }
    .nav-menu ul li { width: 100%; }
    .nav-menu ul li a { font-size: 1.2rem; }
    .product-hero { height: 50vh; min-height: 300px; }
    .product-hero h1 { font-size: 2rem; }
    .footer__container { grid-template-columns: 1fr; text-align: center; gap: 15px; }
}

@media (max-width: 576px) {
    .product-hero { height: 40vh; min-height: 200px; }
    .product-hero h1 { font-size: 1.3rem; }
    .footer__logo { width: 100px; }
    .footer__title { font-size: 1rem; }
    .footer__social a { width: 32px; height: 32px; font-size: 0.9rem; }
    .footer__description, .footer__links a, .footer__contact-list li, .footer__copyright, .footer__legal a {
        font-size: 0.75rem;
    }
}

/* Product Popup Styles */
.product-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow-y: auto;
}

.product-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #1a1a1a;
    border-radius: 12px;
    width: 95vw;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s;
    margin: auto;
}

.product-popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}

.popup-text {
    padding: 20px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-heading {
    font-size: 1.4rem;
    color: #c8a97e;
    margin: 0;
    font-weight: 600;
}

.popup-description {
    font-size: 0.95rem;
    color: #000;
    line-height: 1.7;
    margin: 0;
    background: #fff;
    padding: 15px;
    border-radius: 0 0 12px 12px;
}

.popup-description .highlight-label {
    color: #c8a97e;
    font-weight: 600;
}

.popup-close {
    position: absolute;
    top: 10px; right: 10px;
    background: transparent;
    border: none;
    color: #c8a97e;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2100;
}

.popup-close:hover {
    color: #fff;
}


/* === Equal-height product cards with bottom-aligned CTA === */
.products-grid { align-items: stretch; }           /* stretch all grid items to full row height */

.product-item {
  display: flex;
  flex-direction: column;                          /* stack image + content vertically */
  height: 100%;                                    /* make each card fill the grid row */
}

.product-image {
  /* you already set a fixed height; keep it or use aspect-ratio for consistency */
  /* aspect-ratio: 16 / 9; height: auto; */
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;                                         /* this grows to take remaining space */
  gap: 10px;                                       /* nicer spacing than <br> hacks */
}

.product-cta {
  margin-top: auto;                                /* pushes the button to the bottom */
  /* optional: make buttons same width for a clean column */
  align-self: flex-start;                          /* or stretch for full width */
  /* width: 100%; */
}

/* OPTIONAL (desktop): ensure grid rows size nicely even if one card is taller */
@media (min-width: 992px) {
  .products-grid { grid-auto-rows: 1fr; }
}
