/**
 * Modern Homeway - Customer Storefront Stylesheet (Pure CSS3)
 * Design Identity: Luxury Home Decoration & Interior Materials
 * Palette: Pure White (#ffffff), Warm Cream (#faf7f2), Dark Charcoal (#181513),
 * Warm Beige (#ebe4da), Rich Bronze Accent (#8b5e34), Deep Gold (#c49746)
 */

:root {
    --mh-bg: #faf8f5;
    --mh-card-bg: #ffffff;
    --mh-dark: #181513;
    --mh-dark-soft: #28231f;
    --mh-primary: #8b5e34;
    --mh-primary-hover: #724c28;
    --mh-accent-gold: #c49746;
    --mh-text: #2c2723;
    --mh-text-muted: #736a61;
    --mh-border: #e6dfd5;
    --mh-border-light: #f2ece4;
    --mh-shadow-sm: 0 2px 8px rgba(24, 21, 19, 0.04);
    --mh-shadow-md: 0 6px 20px rgba(24, 21, 19, 0.08);
    --mh-shadow-lg: 0 12px 36px rgba(24, 21, 19, 0.12);
    --mh-radius: 8px;
    --mh-radius-lg: 14px;
    --mh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mh-container: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--mh-font);
    background-color: var(--mh-bg);
    color: var(--mh-text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--mh-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ----------------------------------------------------
   1. Announcement Top Bar
   ---------------------------------------------------- */
.announcement-bar {
    background: #181513;
    color: #f0e6da;
    font-size: 12.5px;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.announcement-bar a {
    color: var(--mh-accent-gold);
    text-decoration: underline;
    font-weight: 600;
}

/* ----------------------------------------------------
   2. Main Header
   ---------------------------------------------------- */
.site-header {
    background: var(--mh-card-bg);
    border-bottom: 1px solid var(--mh-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--mh-shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b5e34 0%, #5e3b1c 100%);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -1px;
}
.brand-logo .logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--mh-dark);
}
.brand-logo .logo-text span {
    color: var(--mh-primary);
}
.brand-logo .logo-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mh-text-muted);
    display: block;
    font-weight: 600;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.search-form {
    display: flex;
    align-items: center;
    background: #f7f3ed;
    border: 1px solid var(--mh-border);
    border-radius: 30px;
    padding: 4px 6px 4px 18px;
    transition: all 0.2s ease;
}
.search-form:focus-within {
    border-color: var(--mh-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(139, 94, 52, 0.12);
}
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--mh-text);
    outline: none;
}
.search-btn {
    background: var(--mh-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.btn-site-visit {
    background: linear-gradient(135deg, #c49746 0%, #a4782b 100%);
    color: #fff;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(196, 151, 70, 0.25);
    white-space: nowrap;
}
.btn-site-visit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.cart-icon-btn {
    position: relative;
    padding: 8px;
    font-size: 22px;
    color: var(--mh-dark);
    display: flex;
    align-items: center;
}
.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--mh-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--mh-dark);
}

/* ----------------------------------------------------
   3. Main Navigation Bar
   ---------------------------------------------------- */
.main-nav {
    background: var(--mh-dark);
    color: #f7ede2;
}
.nav-container {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
}
.nav-item {
    display: inline-block;
}
.nav-link {
    display: block;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ded7ce;
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    border-bottom-color: var(--mh-accent-gold);
    background: rgba(255,255,255,0.04);
}

/* ----------------------------------------------------
   4. Hero Banner Section
   ---------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #1f1a16 0%, #0f0c0a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 70px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.hero-content {
    max-width: 620px;
}
.hero-tag {
    display: inline-block;
    background: rgba(196, 151, 70, 0.2);
    border: 1px solid rgba(196, 151, 70, 0.4);
    color: var(--mh-accent-gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 18px;
}
.hero-desc {
    font-size: 17px;
    line-height: 1.6;
    color: #d1c7bc;
    margin-bottom: 30px;
}
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-primary {
    background: var(--mh-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(139, 94, 52, 0.3);
}
.btn-primary:hover {
    background: var(--mh-primary-hover);
    transform: translateY(-2px);
}
.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 13px 26px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--mh-dark);
    border-color: #fff;
}
.hero-visual {
    position: relative;
    border-radius: var(--mh-radius-lg);
    overflow: hidden;
    box-shadow: var(--mh-shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-visual img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* ----------------------------------------------------
   5. Section Headers
   ---------------------------------------------------- */
.section-wrapper {
    padding: 70px 0;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}
.section-subtitle {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mh-primary);
    font-weight: 700;
    margin-bottom: 8px;
}
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--mh-dark);
    line-height: 1.25;
    margin-bottom: 10px;
}
.section-description {
    font-size: 15.5px;
    color: var(--mh-text-muted);
}

/* ----------------------------------------------------
   6. Categories Grid
   ---------------------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.category-card {
    background: var(--mh-card-bg);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    overflow: hidden;
    text-align: center;
    padding-bottom: 16px;
    box-shadow: var(--mh-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mh-shadow-md);
    border-color: var(--mh-primary);
}
.category-card-img {
    height: 150px;
    overflow: hidden;
    background: #eee;
}
.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-card:hover .category-card-img img {
    transform: scale(1.06);
}
.category-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--mh-dark);
    margin-top: 14px;
    padding: 0 10px;
}
.category-card-count {
    font-size: 12px;
    color: var(--mh-text-muted);
    margin-top: 2px;
}

/* ----------------------------------------------------
   7. Product Cards Grid
   ---------------------------------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--mh-card-bg);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--mh-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mh-shadow-md);
    border-color: var(--mh-primary);
}
.product-badge-flag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--mh-dark);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}
.product-badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #c53030;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 2;
}
.product-card-img {
    height: 230px;
    overflow: hidden;
    background: #f7f3ed;
    position: relative;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img {
    transform: scale(1.05);
}
.product-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-category-name {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mh-primary);
    font-weight: 700;
    margin-bottom: 6px;
}
.product-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--mh-dark);
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}
.product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}
.product-price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--mh-dark);
}
.product-price-regular {
    font-size: 13.5px;
    color: #888;
    text-decoration: line-through;
}
.product-card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.btn-add-cart {
    background: #faf8f5;
    border: 1px solid var(--mh-border);
    color: var(--mh-dark);
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.btn-add-cart:hover {
    background: var(--mh-primary);
    color: #fff;
    border-color: var(--mh-primary);
}
.btn-view-prod {
    background: #faf8f5;
    border: 1px solid var(--mh-border);
    color: var(--mh-text);
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}
.btn-view-prod:hover {
    background: #ede6dc;
}

/* ----------------------------------------------------
   8. Why Choose Us Pillar Section
   ---------------------------------------------------- */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.pillar-card {
    background: var(--mh-card-bg);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--mh-shadow-sm);
    transition: transform 0.2s ease;
}
.pillar-card:hover {
    transform: translateY(-3px);
}
.pillar-icon {
    width: 60px;
    height: 60px;
    background: #f7ede2;
    color: var(--mh-primary);
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.pillar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--mh-dark);
    margin-bottom: 8px;
}
.pillar-desc {
    font-size: 13.5px;
    color: var(--mh-text-muted);
    line-height: 1.5;
}

/* ----------------------------------------------------
   9. Site Visit Booking Call-to-Action Banner
   ---------------------------------------------------- */
.site-visit-banner {
    background: linear-gradient(135deg, #2b241e 0%, #171310 100%);
    border-radius: var(--mh-radius-lg);
    padding: 50px 45px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 30px;
    align-items: center;
    box-shadow: var(--mh-shadow-lg);
    border: 1px solid rgba(255,255,255,0.08);
}
.site-visit-banner h3 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.25;
}
.site-visit-banner p {
    font-size: 16px;
    color: #d8cebf;
    margin-bottom: 22px;
    line-height: 1.6;
}
.site-visit-highlights {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.sv-highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #f7ede2;
}

/* ----------------------------------------------------
   10. Testimonials & FAQs
   ---------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--mh-card-bg);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    padding: 28px;
    box-shadow: var(--mh-shadow-sm);
    display: flex;
    flex-direction: column;
}
.testimonial-stars {
    color: #d69e2e;
    font-size: 16px;
    margin-bottom: 14px;
    letter-spacing: 2px;
}
.testimonial-quote {
    font-size: 14.5px;
    line-height: 1.6;
    color: #3b352e;
    flex: 1;
    margin-bottom: 18px;
    font-style: italic;
}
.testimonial-author {
    font-weight: 700;
    color: var(--mh-dark);
    font-size: 14px;
}
.testimonial-location {
    font-size: 12px;
    color: var(--mh-text-muted);
}

/* Accordion FAQs */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}
.faq-item {
    background: var(--mh-card-bg);
    border: 1px solid var(--mh-border);
    border-radius: var(--mh-radius);
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-question {
    padding: 18px 22px;
    font-weight: 700;
    font-size: 15.5px;
    color: var(--mh-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-question:hover {
    color: var(--mh-primary);
}
.faq-icon {
    font-size: 18px;
    transition: transform 0.25s ease;
}
.faq-answer {
    padding: 0 22px 20px;
    color: #4a423a;
    font-size: 14.5px;
    line-height: 1.6;
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ----------------------------------------------------
   11. Footer
   ---------------------------------------------------- */
.site-footer {
    background: #14110f;
    color: #cfc5b8;
    padding: 70px 0 25px;
    border-top: 3px solid var(--mh-primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.footer-col p {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #b0a495;
    font-size: 13.5px;
}
.footer-links a:hover {
    color: var(--mh-accent-gold);
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: #8c8275;
}
