
/* =====================================================
   IRENEBOAT PRODUCT CATALOGUE
===================================================== */

.catalogue-hero {
    padding: 75px 0 55px;
    background:
        linear-gradient(120deg, #f3f7ff, #ffffff);
    border-bottom: 1px solid #e5e9f0;
}

.catalogue-hero h1 {
    max-width: 850px;
    color: #172033;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 900;
}

.catalogue-hero h1 span {
    display: block;
    color: #0b3b8f;
}

.catalogue-intro {
    max-width: 650px;
    margin-top: 22px;
    color: #667085;
    font-size: 16px;
    line-height: 1.8;
}

.catalogue-breadcrumb {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    color: #667085;
    font-size: 12px;
}

.catalogue-breadcrumb a {
    color: #0b3b8f;
    font-weight: 700;
}

.catalogue-section {
    padding: 70px 0 100px;
    background: #f7f9fc;
}

.catalogue-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.catalogue-heading h2 {
    color: #172033;
    font-size: clamp(30px, 3.5vw, 42px);
    line-height: 1.15;
    letter-spacing: -1px;
}

#product-count {
    color: #667085;
    font-size: 13px;
}


/* SEARCH AND SORT */

.catalogue-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    margin-bottom: 25px;
}

.catalogue-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 18px;
    background: #ffffff;
    border: 1px solid #dfe5ef;
    border-radius: 9px;
}

.catalogue-search > span {
    color: #0b3b8f;
    font-size: 25px;
}

.catalogue-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #172033;
    font: inherit;
    font-size: 13px;
}

.catalogue-search:focus-within {
    border-color: #0b3b8f;
    box-shadow: 0 0 0 3px rgba(11, 59, 143, 0.08);
}

.catalogue-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    background: #ffffff;
    border: 1px solid #dfe5ef;
    border-radius: 9px;
    color: #667085;
    font-size: 12px;
}

.catalogue-sort select {
    max-width: 180px;
    padding: 12px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #172033;
    font: inherit;
    font-weight: 700;
}


/* CATEGORY FILTERS */

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filter-button {
    padding: 11px 16px;
    border: 1px solid #dfe5ef;
    border-radius: 30px;
    background: #ffffff;
    color: #344054;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-button:hover {
    border-color: #0b3b8f;
    color: #0b3b8f;
}

.filter-button.active {
    border-color: #0b3b8f;
    background: #0b3b8f;
    color: #ffffff;
}


/* PRODUCT GRID */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid #e5e9f0;
    border-radius: 13px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(6, 38, 94, 0.09);
}

.product-image {
    display: grid;
    place-items: center;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef3fb;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-align: center;
    color: #667085;
    font-size: 13px;
}

.product-image-placeholder span {
    display: block;
    margin-bottom: 8px;
    color: #0b3b8f;
    font-size: 32px;
}

.product-details {
    padding: 22px;
}

.product-category {
    color: #c92127;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.product-details h3 {
    margin-top: 8px;
    color: #172033;
    font-size: 20px;
    line-height: 1.3;
}

.product-description {
    margin-top: 10px;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
}

.product-price {
    margin-top: 17px;
    color: #0b3b8f;
    font-size: 22px;
    font-weight: 900;
}

.product-price-note {
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
}

.product-stock {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 9px;
    border-radius: 5px;
    background: #edf7f0;
    color: #247342;
    font-size: 11px;
    font-weight: 700;
}

.product-stock.unknown {
    background: #f2f4f7;
    color: #667085;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.product-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #0b3b8f;
    border-radius: 6px;
    background: #0b3b8f;
    color: #ffffff;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.product-action.secondary {
    background: #ffffff;
    color: #0b3b8f;
}

.product-action:hover {
    filter: brightness(0.94);
}


/* EMPTY STATE */

.catalogue-empty {
    padding: 60px 25px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

.catalogue-empty[hidden] {
    display: none;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #eef4ff;
}

.empty-icon span {
    width: 23px;
    height: 30px;
    border: 3px solid #0b3b8f;
    border-radius: 3px;
}

.catalogue-empty h3 {
    color: #172033;
    font-size: clamp(23px, 3vw, 30px);
    margin-bottom: 12px;
}

.catalogue-empty > p:not(.eyebrow) {
    max-width: 520px;
    margin: 0 auto 25px;
    color: #667085;
    font-size: 14px;
    line-height: 1.8;
}

.catalogue-reset {
    display: block;
    margin: 20px auto 0;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #0b3b8f;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}


/* PROJECT CTA */

.catalogue-project-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 55px;
    padding: 35px;
    border-radius: 12px;
    background: #0b3b8f;
    color: #ffffff;
}

.catalogue-project-cta .eyebrow {
    color: #ffbdc2;
}

.catalogue-project-cta h3 {
    font-size: 25px;
    line-height: 1.2;
}

.catalogue-project-cta p:not(.eyebrow) {
    max-width: 580px;
    margin-top: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.7;
}

.catalogue-project-cta .btn {
    flex-shrink: 0;
}


/* ACCESSIBILITY */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* RESPONSIVE */

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalogue-project-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .catalogue-hero {
        padding: 55px 0 40px;
    }

    .catalogue-hero h1 {
        font-size: 43px;
        letter-spacing: -1.5px;
    }

    .catalogue-section {
        padding: 50px 0 70px;
    }

    .catalogue-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalogue-toolbar {
        grid-template-columns: 1fr;
    }

    .catalogue-sort {
        justify-content: space-between;
        min-height: 48px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .catalogue-project-cta {
        padding: 25px;
    }

    .catalogue-project-cta .btn {
        width: 100%;
    }
}



/* =====================================================
   SHOPPING CART
===================================================== */

.shopping-cart {
    margin-top: 65px;
    padding: 32px;
    border: 1px solid #e1e7f0;
    border-radius: 14px;
    background: #ffffff;
}

.cart-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.cart-heading h2 {
    color: #172033;
    font-size: clamp(26px, 3vw, 36px);
}

.cart-heading p:not(.eyebrow) {
    margin-top: 8px;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.cart-count {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 30px;
    background: #eef4ff;
    color: #0b3b8f;
    font-size: 12px;
    font-weight: 800;
}

.cart-items {
    display: grid;
    gap: 14px;
}

.cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e8ecf2;
}

.cart-line h3 {
    color: #172033;
    font-size: 15px;
}

.cart-line p {
    margin-top: 5px;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.cart-line-price {
    color: #0b3b8f;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-quantity button {
    width: 32px;
    height: 32px;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    background: #ffffff;
    color: #0b3b8f;
    font-size: 18px;
    cursor: pointer;
}

.cart-quantity button:hover {
    background: #eef4ff;
}

.cart-quantity span {
    min-width: 18px;
    color: #172033;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.cart-remove {
    display: block;
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c92127;
    font-size: 11px;
    cursor: pointer;
}

.cart-empty {
    padding: 35px 15px;
    border: 1px dashed #d7dfeb;
    border-radius: 10px;
    text-align: center;
}

.cart-empty > span {
    font-size: 30px;
}

.cart-empty h3 {
    margin-top: 10px;
    color: #172033;
    font-size: 18px;
}

.cart-empty p {
    margin-top: 8px;
    color: #667085;
    font-size: 13px;
}

.cart-summary {
    max-width: 420px;
    margin: 25px 0 0 auto;
}

.cart-summary[hidden] {
    display: none;
}

.cart-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #e8ecf2;
    color: #172033;
}

.cart-subtotal-row strong {
    color: #0b3b8f;
    font-size: 24px;
}

.cart-note {
    margin-bottom: 20px;
    color: #667085;
    font-size: 12px;
    line-height: 1.7;
}

#checkout-whatsapp {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.cart-clear {
    display: block;
    margin: 15px auto 0;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #c92127;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 600px) {
    .shopping-cart {
        padding: 20px 15px;
    }

    .cart-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-line {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .cart-line-price {
        grid-column: 1;
    }

    .cart-line-controls {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .cart-summary {
        max-width: none;
    }
}


/* CUSTOMER CHECKOUT */

.order-checkout {
    margin-top: 28px;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid #dedede;
    border-radius: 18px;
    background: #fff;
    color: #1a1a1a;
}

.order-checkout[hidden] {
    display: none !important;
}

.checkout-heading {
    margin-bottom: 28px;
}

.checkout-heading h2 {
    margin: 8px 0;
}

.checkout-field {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.checkout-field label {
    font-weight: 600;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #c9c9c9;
    border-radius: 9px;
    background: #fff;
    color: #1a1a1a;
    font: inherit;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    outline: 2px solid #244b9b;
    outline-offset: 2px;
    border-color: #244b9b;
}

.checkout-field textarea {
    resize: vertical;
}

.checkout-disclaimer {
    margin: 24px 0;
    padding: 16px;
    border-left: 4px solid #244b9b;
    border-radius: 6px;
    background: #f3f6fc;
}

.checkout-disclaimer p {
    margin-bottom: 0;
    line-height: 1.6;
}

.checkout-message {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.checkout-message:empty {
    display: none;
}

#submit-order-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
