/*
Theme Name: Namalika Catalogue
Theme URI: https://example.com/
Author: Namalika Silk Industries
Description: A lightweight catalogue theme for Namalika Silk Industries.
Version: 2.0
Text Domain: namalika
*/

:root {
    --background: #fafaf7;
    --surface: #ffffff;
    --surface-soft: #f3f4ef;
    --text: #2d342f;
    --muted: #707770;
    --accent: #758b75;
    --accent-dark: #5e735f;
    --border: #e2e5df;
    --shadow: 0 8px 24px rgba(35, 45, 38, 0.06);
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--text);
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-branding {
    min-width: 0;
}

.site-title {
    display: block;
    margin: 0;
    color: var(--text);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.site-description {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-link {
    color: var(--text);
    font-size: 15px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    background: #eaf5ec;
    color: #27663a;
    border: 1px solid #cde4d2;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
}

.whatsapp-button:hover,
.whatsapp-button:focus {
    background: #dceee0;
    color: #194f2b;
}

/* General page */

.site-main {
    min-height: 65vh;
}

.page-introduction {
    padding: 48px 0 32px;
    text-align: center;
}

.page-introduction h1 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 500;
}

.page-introduction p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
}

/* Catalogue layout */

.catalogue-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding-bottom: 60px;
}

.category-sidebar {
    position: sticky;
    top: 20px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.category-sidebar h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
}

.category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-list li + li {
    border-top: 1px solid var(--border);
}

.category-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 4px;
    color: var(--text);
    font-size: 15px;
}

.category-list a:hover,
.category-list a.current {
    color: var(--accent-dark);
    font-weight: 600;
}

.category-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

/* Products */

.products-heading {
    margin: 0 0 22px;
    font-size: 25px;
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.product-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/*
 * All product image areas have exactly the same display size.
 * object-fit: contain preserves the full image without cropping.
 */
.product-image {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-placeholder {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.product-card-content {
    padding: 15px;
}

.product-card h3 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.product-category-name {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.view-product {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
}

.no-products,
.catalogue-message {
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
}

/* Pagination */

.catalogue-pagination {
    margin-top: 32px;
}

.catalogue-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    margin: 3px;
    padding: 5px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
}

.catalogue-pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

/* Single product */

.product-detail {
    padding: 50px 0 65px;
}

.product-breadcrumb {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.product-detail-image {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.product-detail-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.product-detail-content h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 500;
    line-height: 1.2;
}

.product-categories {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 14px;
}

.product-description {
    margin-top: 24px;
}

.product-description > *:first-child {
    margin-top: 0;
}

.product-specifications {
    width: 100%;
    margin: 26px 0;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
}

.product-specifications th,
.product-specifications td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.product-specifications th {
    width: 35%;
    background: var(--surface-soft);
    font-weight: 600;
}

.product-contact {
    margin-top: 28px;
}

/* Basic content */

.content-page {
    padding: 50px 0;
}

.content-page article {
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.content-page h1 {
    margin-top: 0;
}

/* Footer */

.site-footer {
    padding: 28px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.site-footer p {
    margin: 0;
}

/* Accessibility */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile */

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        padding: 15px 0;
        align-items: flex-start;
    }

    .site-description,
    .home-link {
        display: none;
    }

    .whatsapp-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .page-introduction {
        padding: 34px 0 25px;
    }

    .catalogue-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-sidebar {
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 150px;
        padding: 8px;
    }

    .product-card-content {
        padding: 12px;
    }

    .product-card h3 {
        font-size: 15px;
    }

    .product-detail {
        padding-top: 30px;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-detail-image {
        min-height: 280px;
    }

    .footer-inner {
        display: block;
    }

    .footer-inner p + p {
        margin-top: 7px;
    }
}

@media (max-width: 390px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 190px;
    }
}
/* ========================================
   Single product detail page
======================================== */

.single-product-page {
    padding: 45px 20px;
    background: #f7f9f7;
}

.single-product-page .site-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.single-product-card {
    display: grid;
    grid-template-columns: minmax(280px, 46%) minmax(280px, 54%);
    gap: 42px;
    align-items: start;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e1e8e2;
    border-radius: 10px;
}

/* Product image area */
.single-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 380px;
    padding: 20px;
    overflow: hidden;
    background: #fafbfa;
    border: 1px solid #e4e9e4;
    border-radius: 8px;
}

.single-product-image .product-detail-image {
    display: block;
    width: 100%;
    max-width: 430px;
    height: 380px;
    margin: 0 auto;
    object-fit: contain;
}

/* Placeholder when a product has no image */
.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #777f79;
    font-size: 15px;
    text-align: center;
}

/* Right-side information */
.single-product-information {
    min-width: 0;
}

.single-product-title {
    margin: 0 0 12px;
    color: #294c36;
    font-size: 34px;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.single-product-category {
    margin-bottom: 24px;
    color: #667069;
    font-size: 14px;
}

.single-product-category span {
    color: #394b3f;
    font-weight: 600;
}

/* Description directly below the heading */
.single-product-description {
    padding-top: 20px;
    border-top: 1px solid #e3e8e3;
}

.single-product-description h2 {
    margin: 0 0 12px;
    color: #294c36;
    font-size: 21px;
    line-height: 1.4;
}

.single-product-description-text {
    color: #4d5850;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.single-product-description-text p {
    margin: 0 0 14px;
}

.single-product-description-text p:last-child {
    margin-bottom: 0;
}

.no-product-description {
    margin: 0;
    color: #778078;
    font-size: 15px;
    font-style: italic;
}

/* Back button */
.single-product-actions {
    margin-top: 30px;
}

.back-to-catalogue {
    display: inline-block;
    padding: 11px 18px;
    color: #ffffff;
    background: #416d50;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.back-to-catalogue:hover,
.back-to-catalogue:focus {
    color: #ffffff;
    background: #294c36;
}

/* Product not found */
.product-not-found {
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e1e8e2;
    border-radius: 10px;
    text-align: center;
}

/* Mobile layout */
@media screen and (max-width: 768px) {
    .single-product-page {
        padding: 25px 15px;
    }

    .single-product-card {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .single-product-image {
        min-height: 280px;
        padding: 12px;
    }

    .single-product-image .product-detail-image {
        max-width: 100%;
        height: 280px;
    }

    .single-product-title {
        font-size: 27px;
    }

    .single-product-category {
        margin-bottom: 18px;
    }

    .single-product-description {
        padding-top: 17px;
    }
}
/* ========================================
   Improved front page
======================================== */

:root {
    --namalika-green: #315f45;
    --namalika-dark-green: #244a35;
    --namalika-medium-green: #528064;
    --namalika-light-green: #eaf3ed;
    --namalika-pale-green: #f5f9f6;
    --namalika-cream: #fffaf0;
    --namalika-gold: #c99746;
    --namalika-text: #35423a;
    --namalika-muted: #6d786f;
    --namalika-border: #dfe8e1;
    --namalika-white: #ffffff;
    --namalika-shadow: 0 8px 25px rgba(44, 82, 59, 0.08);
}

html {
    scroll-behavior: smooth;
}

.front-page {
    color: var(--namalika-text);
    background: var(--namalika-white);
}

.front-page .site-container {
    width: calc(100% - 40px);
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

/* ========================================
   Hero section
======================================== */

.catalogue-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0;
    background: linear-gradient(
        135deg,
        #f4f9f5 0%,
        #fffaf0 100%
    );
    border-bottom: 1px solid var(--namalika-border);
}

.catalogue-hero .site-container {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.catalogue-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
}

.catalogue-hero-label {
    margin: 0 0 10px;
    color: var(--namalika-medium-green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.catalogue-hero h1 {
    max-width: 650px;
    margin: 0 0 18px;
    color: var(--namalika-dark-green);
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.catalogue-hero-description {
    max-width: 590px;
    margin: 0 0 30px;
    color: var(--namalika-muted);
    font-size: 18px;
    line-height: 1.75;
}

/* Hero button */
.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    color: var(--namalika-white);
    background: var(--namalika-green);
    border: 2px solid var(--namalika-green);
    border-radius: 7px;
    box-shadow: 0 6px 16px rgba(49, 95, 69, 0.18);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.hero-button:hover,
.hero-button:focus {
    color: var(--namalika-white);
    background: var(--namalika-dark-green);
    border-color: var(--namalika-dark-green);
    box-shadow: 0 8px 20px rgba(49, 95, 69, 0.24);
    transform: translateY(-2px);
}

/* Decorative hero circles */
.catalogue-hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 390px;
    height: 100%;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.decoration-circle-one {
    top: 22px;
    right: 35px;
    width: 220px;
    height: 220px;
    background: rgba(170, 207, 181, 0.25);
}

.decoration-circle-two {
    right: 200px;
    bottom: 18px;
    width: 140px;
    height: 140px;
    background: rgba(225, 196, 139, 0.22);
}

.decoration-circle-three {
    right: 5px;
    bottom: 10px;
    width: 95px;
    height: 95px;
    border: 18px solid rgba(82, 128, 100, 0.12);
}

/* ========================================
   Catalogue section heading
======================================== */

.catalogue-section {
    padding: 70px 0 85px;
    background: #ffffff;
}

.catalogue-section-heading {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-small-title {
    margin: 0 0 8px;
    color: var(--namalika-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.catalogue-section-heading h2 {
    margin: 0 0 12px;
    color: var(--namalika-dark-green);
    font-size: clamp(29px, 4vw, 39px);
    line-height: 1.25;
}

.catalogue-section-heading > p:last-child {
    margin: 0;
    color: var(--namalika-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* ========================================
   Catalogue layout
======================================== */

.catalogue-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 35px;
    align-items: start;
}

/* ========================================
   Category panel and buttons
======================================== */

.category-panel {
    overflow: hidden;
    background: var(--namalika-white);
    border: 1px solid var(--namalika-border);
    border-radius: 10px;
    box-shadow: var(--namalika-shadow);
}

.category-panel-heading {
    padding: 22px 20px 18px;
    background: var(--namalika-pale-green);
    border-bottom: 1px solid var(--namalika-border);
}

.category-panel-heading h3 {
    margin: 0 0 4px;
    color: var(--namalika-dark-green);
    font-size: 19px;
    line-height: 1.35;
}

.category-panel-heading p {
    margin: 0;
    color: var(--namalika-muted);
    font-size: 13px;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 15px;
}

/* Real button appearance */
.category-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 45px;
    padding: 10px 13px;
    color: var(--namalika-text);
    background: #ffffff;
    border: 1px solid var(--namalika-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.category-button:hover,
.category-button:focus {
    color: var(--namalika-dark-green);
    background: var(--namalika-light-green);
    border-color: #b9cebf;
    transform: translateX(3px);
}

.category-button.active {
    color: var(--namalika-white);
    background: var(--namalika-green);
    border-color: var(--namalika-green);
}

.category-button.active:hover,
.category-button.active:focus {
    color: var(--namalika-white);
    background: var(--namalika-dark-green);
    border-color: var(--namalika-dark-green);
}

.category-arrow {
    flex: 0 0 auto;
    margin-left: 10px;
    font-size: 17px;
    line-height: 1;
}

.category-empty-message {
    padding: 14px;
    color: var(--namalika-muted);
    background: var(--namalika-pale-green);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   Product grid
======================================== */

.catalogue-products {
    min-width: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--namalika-white);
    border: 1px solid var(--namalika-border);
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(42, 76, 54, 0.07);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.product-card:hover {
    border-color: #c5d5c9;
    box-shadow: 0 12px 28px rgba(42, 76, 54, 0.13);
    transform: translateY(-4px);
}

/* Uniform image area without cropping */
.product-card-image {
    position: relative;
    display: flex;
    width: 100%;
    height: 235px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 14px;
    background: linear-gradient(
        145deg,
        #fafcfb 0%,
        #f2f7f3 100%
    );
    border-bottom: 1px solid var(--namalika-border);
    text-decoration: none;
}

.catalogue-product-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .catalogue-product-image {
    transform: scale(1.025);
}

.product-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #879189;
    border: 1px dashed #ccd7ce;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
}

.product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.product-category-name {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 9px;
    color: var(--namalika-medium-green);
    background: var(--namalika-light-green);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-transform: uppercase;
}

.product-card-title {
    margin: 0 0 20px;
    color: var(--namalika-dark-green);
    font-size: 19px;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover,
.product-card-title a:focus {
    color: var(--namalika-medium-green);
}

/* View details button */
.view-product-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 10px 17px;
    color: var(--namalika-white);
    background: var(--namalika-green);
    border: 2px solid var(--namalika-green);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(49, 95, 69, 0.14);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.view-product-button:hover,
.view-product-button:focus {
    color: var(--namalika-white);
    background: var(--namalika-dark-green);
    border-color: var(--namalika-dark-green);
    box-shadow: 0 6px 16px rgba(49, 95, 69, 0.2);
    transform: translateY(-1px);
}

.view-product-button span {
    font-size: 16px;
    line-height: 1;
}

/* ========================================
   Empty product message
======================================== */

.no-products-message {
    padding: 55px 25px;
    background: var(--namalika-pale-green);
    border: 1px solid var(--namalika-border);
    border-radius: 10px;
    text-align: center;
}

.no-products-icon {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--namalika-green);
    background: var(--namalika-white);
    border: 1px solid var(--namalika-border);
    border-radius: 50%;
    font-size: 28px;
}

.no-products-message h3 {
    margin: 0 0 9px;
    color: var(--namalika-dark-green);
    font-size: 23px;
}

.no-products-message p {
    margin: 0 auto 22px;
    color: var(--namalika-muted);
    line-height: 1.7;
}

.catalogue-message-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    color: var(--namalika-white);
    background: var(--namalika-green);
    border: 2px solid var(--namalika-green);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.catalogue-message-button:hover,
.catalogue-message-button:focus {
    color: var(--namalika-white);
    background: var(--namalika-dark-green);
    border-color: var(--namalika-dark-green);
}

/* ========================================
   Tablet layout
======================================== */

@media screen and (max-width: 1024px) {
    .catalogue-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 25px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalogue-hero-decoration {
        opacity: 0.65;
    }
}

/* ========================================
   Mobile layout
======================================== */

@media screen and (max-width: 768px) {
    .front-page .site-container {
        width: calc(100% - 30px);
    }

    .catalogue-hero {
        padding: 55px 0;
    }

    .catalogue-hero .site-container {
        min-height: 260px;
    }

    .catalogue-hero-content {
        text-align: center;
    }

    .catalogue-hero h1 {
        margin-right: auto;
        margin-left: auto;
        font-size: 39px;
    }

    .catalogue-hero-description {
        margin-right: auto;
        margin-left: auto;
        font-size: 16px;
    }

    .catalogue-hero-decoration {
        opacity: 0.3;
    }

    .catalogue-section {
        padding: 50px 0 65px;
    }

    .catalogue-section-heading {
        margin-bottom: 30px;
    }

    .catalogue-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .category-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-button:hover,
    .category-button:focus {
        transform: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px;
    }

    .product-card-image {
        height: 210px;
    }
}

/* ========================================
   Small mobile layout
======================================== */

@media screen and (max-width: 520px) {
    .catalogue-hero h1 {
        font-size: 34px;
    }

    .hero-button {
        width: 100%;
        max-width: 280px;
    }

    .category-buttons {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card-image {
        height: 260px;
    }

    .product-card-content {
        padding: 18px;
    }

    .view-product-button {
        width: 100%;
    }
}
/* Keep the main front-page heading on one line */
.catalogue-hero-content {
    max-width: none;
}

.catalogue-hero h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(26px, 5vw, 62px);
    letter-spacing: -1px;
}
@media screen and (max-width: 480px) {
    .catalogue-hero h1 {
        font-size: clamp(22px, 7.5vw, 34px);
        letter-spacing: -0.5px;
    }
}
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.header-actions .home-link,
.header-actions .whatsapp-button {
    display: inline-block;
    padding: 9px 13px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}
/* Centre the homepage hero content */
.catalogue-hero {
    text-align: center;
}

.catalogue-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.catalogue-hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 10px auto 18px;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(26px, 5vw, 62px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.catalogue-hero .hero-label,
.catalogue-hero .hero-description {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Mobile adjustment */
@media screen and (max-width: 480px) {
    .catalogue-hero h1 {
        font-size: clamp(22px, 7.5vw, 34px);
        letter-spacing: -0.5px;
    }
}
/* ==================================================
   NAMALIKA COLOURS, BUTTONS AND HERO ALIGNMENT
   ================================================== */

:root {
    --namalika-primary: #7c3f58;
    --namalika-primary-dark: #603044;
    --namalika-accent: #d5a85d;
    --namalika-background: #fffaf5;
    --namalika-soft: #f8eee8;
    --namalika-white: #ffffff;
    --namalika-text: #352d30;
    --namalika-muted: #73686c;
    --namalika-border: #eaded8;
    --namalika-whatsapp: #25d366;
    --namalika-whatsapp-dark: #1eaa52;
}


/* General page colours */
body {
    color: var(--namalika-text);
    background-color: var(--namalika-background);
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}


/* ==================================================
   HEADER
   ================================================== */

.site-header {
    position: relative;
    z-index: 100;
    background-color: var(--namalika-white);
    border-bottom: 1px solid var(--namalika-border);
    box-shadow: 0 3px 14px rgba(68, 39, 49, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-branding {
    flex: 1 1 auto;
}

.site-title {
    color: var(--namalika-primary);
    font-size: clamp(20px, 2.2vw, 29px);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.site-title:hover {
    color: var(--namalika-primary-dark);
}

.site-description {
    margin: 5px 0 0;
    color: var(--namalika-muted);
    font-size: 13px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.header-actions .home-link,
.header-actions .whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--namalika-primary);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.header-actions .home-link {
    color: var(--namalika-primary);
    background-color: var(--namalika-white);
}

.header-actions .home-link:hover,
.header-actions .home-link:focus {
    color: var(--namalika-white);
    background-color: var(--namalika-primary);
    border-color: var(--namalika-primary);
}

.header-actions .whatsapp-button {
    color: var(--namalika-white);
    background-color: var(--namalika-whatsapp);
    border-color: var(--namalika-whatsapp);
}

.header-actions .whatsapp-button:hover,
.header-actions .whatsapp-button:focus {
    color: var(--namalika-white);
    background-color: var(--namalika-whatsapp-dark);
    border-color: var(--namalika-whatsapp-dark);
}


/* ==================================================
   CENTRED HERO SECTION
   ================================================== */

.catalogue-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0;
    text-align: center;
    background:
        radial-gradient(
            circle at top left,
            rgba(213, 168, 93, 0.18),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #fff8f1 0%,
            #f8e8e7 50%,
            #f5edef 100%
        );
    border-bottom: 1px solid var(--namalika-border);
}

.catalogue-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(1100px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.catalogue-hero .hero-label {
    margin: 0 0 10px;
    color: var(--namalika-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

.catalogue-hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 18px;
    color: var(--namalika-primary-dark);
    font-size: clamp(30px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    text-align: center;
    white-space: nowrap;
}

.catalogue-hero .hero-description {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    color: var(--namalika-muted);
    font-size: 18px;
    line-height: 1.7;
    text-align: center;
}


/* ==================================================
   CATALOGUE SECTION
   ================================================== */

.catalogue-section {
    padding: 70px 0;
    background-color: var(--namalika-white);
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-label,
.products-label {
    margin: 0 0 7px;
    color: var(--namalika-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.section-heading h2,
.products-area-heading h2,
.about-section h2,
.contact-section h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--namalika-primary-dark);
}

.catalogue-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}


/* Category sidebar */
.category-sidebar {
    padding: 22px;
    background-color: var(--namalika-soft);
    border: 1px solid var(--namalika-border);
    border-radius: 12px;
}

.category-sidebar h3 {
    margin: 0 0 17px;
    color: var(--namalika-primary-dark);
    font-size: 19px;
}

.category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-list li + li {
    margin-top: 8px;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 13px;
    color: var(--namalika-text);
    background-color: var(--namalika-white);
    border: 1px solid var(--namalika-border);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.category-list a:hover,
.category-list a:focus,
.category-list a.active {
    color: var(--namalika-white);
    background-color: var(--namalika-primary);
    border-color: var(--namalika-primary);
}

.category-count {
    min-width: 24px;
    padding: 2px 7px;
    color: inherit;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    text-align: center;
}


/* Products heading */
.products-area-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.products-area-heading p,
.products-area-heading h2 {
    margin-top: 0;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    color: var(--namalika-primary);
    background-color: var(--namalika-white);
    border: 1px solid var(--namalika-primary);
    border-radius: 7px;
    font-weight: 600;
    text-decoration: none;
}

.view-all-link:hover {
    color: var(--namalika-white);
    background-color: var(--namalika-primary);
}


/* ==================================================
   PRODUCT CARDS
   ================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    overflow: hidden;
    background-color: var(--namalika-white);
    border: 1px solid var(--namalika-border);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(72, 42, 52, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(72, 42, 52, 0.12);
}

.product-image-link {
    display: block;
    background-color: #fbf7f4;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    padding: 15px;
    background-color: #fbf7f4;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--namalika-muted);
    background-color: var(--namalika-soft);
    font-size: 13px;
    text-align: center;
}

.product-card-content {
    padding: 19px;
}

.product-category-name {
    margin: 0 0 7px;
    color: var(--namalika-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-title {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
}

.product-title a {
    color: var(--namalika-primary-dark);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--namalika-primary);
}

.product-short-description {
    margin-bottom: 17px;
    color: var(--namalika-muted);
    font-size: 14px;
    line-height: 1.6;
}

.product-details-button,
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    color: var(--namalika-white);
    background-color: var(--namalika-primary);
    border: 1px solid var(--namalika-primary);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.product-details-button:hover,
.product-details-button:focus,
.contact-button:hover,
.contact-button:focus {
    color: var(--namalika-white);
    background-color: var(--namalika-primary-dark);
    border-color: var(--namalika-primary-dark);
    transform: translateY(-1px);
}

.empty-products-message {
    padding: 40px 25px;
    background-color: var(--namalika-soft);
    border: 1px solid var(--namalika-border);
    border-radius: 12px;
    text-align: center;
}


/* ==================================================
   ABOUT AND CONTACT SECTIONS
   ================================================== */

.about-section {
    padding: 70px 0;
    background-color: var(--namalika-soft);
}

.about-content {
    max-width: 760px;
    margin: 0 auto;
    color: var(--namalika-muted);
    font-size: 17px;
    line-height: 1.8;
    text-align: center;
}

.contact-section {
    padding: 65px 0;
    color: var(--namalika-white);
    background-color: var(--namalika-primary-dark);
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-content {
    max-width: 650px;
}

.contact-section .section-label {
    color: #f0c77d;
}

.contact-section h2 {
    color: var(--namalika-white);
}

.contact-section p {
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-section .contact-button {
    color: var(--namalika-primary-dark);
    background-color: var(--namalika-white);
    border-color: var(--namalika-white);
}

.contact-section .contact-button:hover {
    color: var(--namalika-white);
    background-color: transparent;
}

.contact-section .whatsapp-contact-button {
    color: var(--namalika-white);
    background-color: var(--namalika-whatsapp);
    border-color: var(--namalika-whatsapp);
}

.contact-section .whatsapp-contact-button:hover {
    color: var(--namalika-white);
    background-color: var(--namalika-whatsapp-dark);
    border-color: var(--namalika-whatsapp-dark);
}


/* ==================================================
   RESPONSIVE DESIGN
   ================================================== */

@media screen and (max-width: 960px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        padding-top: 18px;
        padding-bottom: 18px;
        text-align: center;
    }

    .header-actions {
        justify-content: center;
    }

    .catalogue-layout {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-actions {
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .container,
    .catalogue-hero-content {
        width: min(100% - 28px, 1180px);
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .home-link,
    .header-actions .whatsapp-button {
        flex: 1 1 calc(50% - 8px);
    }

    .catalogue-hero {
        padding: 60px 0;
    }

    .catalogue-hero h1 {
        font-size: clamp(25px, 8vw, 38px);
        letter-spacing: -0.5px;
        white-space: normal;
    }

    .catalogue-hero .hero-description {
        font-size: 16px;
    }

    .catalogue-section,
    .about-section,
    .contact-section {
        padding: 52px 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .products-area-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-image {
        height: 210px;
    }
}
.catalogue-section > .container > .section-heading {
    display: none;
}