html, body {
    overflow-x: hidden;
}

/* HERO */
.catalogue-hero {
    position: relative;
    height: 75vh;
    background: url('/assets/images/IMG_6141.jpeg') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    color: #fff;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31,61,43,0.55);
}
.hero-content {
    position: relative;
}
.catalogue-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
}

/* ================= SECTION TITLE ================= */

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 70px;
}

/* ================= ORDER PROCESS (FIXED & BALANCED) ================= */

.how-to-order {
    padding: 70px 0;
    background: linear-gradient(to bottom, #ffffff, #f8f7f3);
}

.filters-section {
    padding: 60px 0 50px;
}

.catalogue-products {
    padding: 70px 0;
}

/* STEPS WRAPPER */
.steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 20px; /* reduced to prevent overflow */
}

/* CONNECTING LINE (FIXED WIDTH) */
.steps::before {
    content: "";
    position: absolute;
    top: 35px;
    left: 5%;   /* extended */
    right: 5%;  /* extended */
    height: 2px;
    background: #e6e6e6;
    z-index: 0;
}

/* STEP ITEM */
.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 0; /* prevents pushing layout */
    transition: 0.3s ease;
}

/* STEP CIRCLE */
.step-circle {
    width: 65px;
    height: 65px;
    background: var(--forest);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(31,61,43,0.2);
    transition: 0.3s ease;
}

/* TEXT */
.step h4 {
    margin-top: 15px;
    font-weight: 600;
    font-size: 15px;
}

.step p {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

/* HOVER */
.step:hover .step-circle {
    transform: scale(1.1);
}

.step:hover {
    transform: translateY(-3px);
}

/* ================= MOBILE FIX ================= */

@media(max-width:768px){

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .steps::before {
        display: none; /* remove line on mobile */
    }

    .step {
        max-width: 280px;
    }
}

/* ================= FILTER SECTION (REFINED) ================= */

.filters-section {
    padding: 50px 0 40px;
    background: #c0bfbc;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* HEADER */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 26px;
    margin: 0;
}

/* CLEAR BUTTON */
.clear-btn {
    border: 1px solid rgba(31,61,43,0.3);
    background: transparent;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--forest);
    transition: all 0.25s ease;
}

.clear-btn:hover {
    background: var(--forest);
    color: #fff;
    border-color: var(--forest);
}

/* FILTER WRAPPER */
.filters-container {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* DROPDOWN */
.filter-dropdown {
    position: relative;
}

/* BUTTON */
.filter-toggle {
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* Arrow */
.filter-toggle::after {
    content: "⌄";
    margin-left: 8px;
    font-size: 12px;
    transition: 0.3s ease;
}

/* Hover */
.filter-toggle:hover {
    border-color: var(--forest);
}

/* Active */
.filter-dropdown.active .filter-toggle {
    background: var(--forest);
    color: #fff;
    border-color: var(--forest);
}

.filter-dropdown.active .filter-toggle::after {
    transform: rotate(180deg);
}

/* DROPDOWN MENU */
.filter-menu {
    position: absolute;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    display: none;
    min-width: 200px;
    z-index: 200;
}

.filter-dropdown.active .filter-menu {
    display: block;
}

/* LABEL */
.filter-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.filter-menu label:hover {
    color: var(--forest);
}

/* CHECKBOX */
.filter-menu input[type="checkbox"] {
    appearance: none;
    width: 15px;
    height: 15px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

/* CHECKED */
.filter-menu input[type="checkbox"]:checked {
    background: var(--forest);
    border-color: var(--forest);
}

.filter-menu input[type="checkbox"]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 10px;
    position: absolute;
    top: -1px;
    left: 2px;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filters-container {
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap; /* prevent overflow */
}

    .filter-toggle {
        white-space: nowrap;
    }
}


















/* COMPACT SECTIONS */
.compact {
    padding: 60px 0 !important;
}

.catalogue-hero.compact {
    height: 60vh;
    padding-bottom: 40px;
}



/* PRODUCTS */
.catalogue-products {
    padding: 110px 0;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 60px;
}
.product-card {
    transition: 0.4s ease;
}
.product-card:hover {
    transform: translateY(-10px);
}
.product-image {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 16px;
}
.product-image img {
    width: 100%;
    height: 280px;
    object-fit: contain;
}
.product-info {
    margin-top: 25px;
}
.product-info h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}
.secondary-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--forest);
    background: transparent;
    color: var(--forest);
    transition: 0.3s;
}
.secondary-btn:hover {
    background: var(--forest);
    color: #fff;
}

/* MODAL */
/* ================= PRODUCT MODAL ================= */

.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Card */
.modal-content {
    width: 92%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    animation: slideUp 0.35s ease forwards;
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* LEFT IMAGE SIDE */
.modal-left {
    background: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.modal-left img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    transition: 0.4s ease;
}

.modal-left img:hover {
    transform: scale(1.03);
}

/* RIGHT CONTENT SIDE */
.modal-right {
    padding: 80px 70px;
    overflow-y: auto;
}

.modal-right h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 18px;
}

.modal-short {
    font-weight: 500;
    color: var(--forest);
    margin-bottom: 18px;
}

.modal-full {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
}

/* WhatsApp Order Button */
.modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: #fff;
    padding: 16px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(37,211,102,0.35);
}

.modal-cta:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37,211,102,0.45);
}

/* Add WhatsApp icon automatically */
.modal-cta::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url('https://cdn-icons-png.flaticon.com/512/733/733585.png') center/contain no-repeat;
    display: inline-block;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 34px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: 0.3s ease;
}

.close-modal:hover {
    color: #000;
    transform: rotate(90deg);
}

/* Scroll styling */
.modal-right::-webkit-scrollbar {
    width: 6px;
}
.modal-right::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}

/* ================= MOBILE RESPONSIVE ================= */

@media(max-width: 992px) {

    .modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }

    .modal-left {
        padding: 40px;
    }

    .modal-right {
        padding: 50px 35px;
    }

    .modal-right h2 {
        font-size: 24px;
    }
}

@media(max-width: 600px) {

    .modal-left {
        padding: 30px;
    }

    .modal-right {
        padding: 35px 25px;
    }

    .modal-cta {
        width: 100%;
        justify-content: center;
    }
}

/* RESPONSIVE */
@media(max-width:992px){
    .product-grid { grid-template-columns: repeat(2,1fr); }
    .steps { grid-template-columns: repeat(2,1fr); }
    .filters-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:768px){
    .product-grid { grid-template-columns: 1fr; }
    .modal-content { grid-template-columns: 1fr; }
}