/* =================================================
   NANA'S WORKSHOP — CUSTOM CSS
================================================= */


/* -------------------------------------------------
   WooCommerce checkout buttons
-------------------------------------------------- */

.wc-block-cart__submit-button,
.wc-block-cart__submit-container a,
.wc-block-components-button:not(.is-link) {
    background-color: #d62828 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 14px 30px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.wc-block-cart__submit-button *,
.wc-block-components-button:not(.is-link) * {
    color: #ffffff !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-button:not(.is-link):hover {
    background-color: #ad1f1f !important;
    color: #ffffff !important;
}


/* -------------------------------------------------
   Shop product names
-------------------------------------------------- */

.cards article.card > h2 {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
}


/* -------------------------------------------------
   Nana's handwritten note
-------------------------------------------------- */

.nana-note {
    max-width: 650px;
    margin: 30px auto 50px;
    color: #8c6ac4;
    font-family: "Caveat", cursive;
    font-size: 2rem;
    line-height: 1.4;
    text-align: center;
    transform: rotate(-2deg);
}


/* -------------------------------------------------
   Assembly instruction cards
-------------------------------------------------- */

.page-id-562 .instruction-card {
    width: min(88%, 520px);
    margin: 0 auto 40px;
    padding: 0 0 28px;
    overflow: hidden;
    box-sizing: border-box;

    background-color: #ffffff;
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
    text-align: center;
}

/* Remove extra Group-block spacing */
.page-id-562 .instruction-card.is-layout-flow > *,
.page-id-562 .instruction-card.is-layout-constrained > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Card image container */
.page-id-562 .instruction-card .wp-block-image {
    width: 88%;
    margin: 20px auto 24px !important;
    padding: 12px;

    background: #ffffff;
    border-radius: 18px;
    box-sizing: border-box;
}

/* Card image */
.page-id-562 .instruction-card .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 10px;
    border: none;
    box-shadow: none;
}

/* Card name */
.page-id-562 .instruction-card h2,
.page-id-562 .instruction-card h3 {
    width: 100%;
    max-width: none;
    margin: 0 0 18px !important;
    padding: 0 18px;
    box-sizing: border-box;

    color: #3f302c;
    font-family: "Fraunces", Georgia, serif !important;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;

    /* Keep all cards the same height */
    min-height: 3.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PDF button row */
.page-id-562 .instruction-card .wp-block-buttons {
    display: flex;
    justify-content: center;
    margin: 0 !important;
    padding: 0 20px;
}

/* PDF button */
.page-id-562 .instruction-card .wp-block-button {
    margin: 0 !important;
}

.page-id-562 .instruction-card .wp-block-button__link {
    display: inline-block;
    min-width: 250px;
    padding: 12px 24px;

    background-color: #d62828;
    color: #ffffff;
    border: none;
    border-radius: 999px;

    font-family: "Nunito", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.page-id-562 .instruction-card .wp-block-button__link:hover {
    background-color: #ad1f1f;
    color: #ffffff;
}


/* -------------------------------------------------
   Phone adjustments
-------------------------------------------------- */

@media (max-width: 600px) {
    .page-id-562 .instruction-card {
        width: 88%;
        padding-bottom: 22px;
    }

    .page-id-562 .instruction-card .wp-block-image {
        margin-bottom: 18px !important;
    }

.page-id-562 .instruction-card h2,
.page-id-562 .instruction-card h3 {
    margin-bottom: 14px !important;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1.2rem;
    line-height: 1.15;

    min-height: 2.8rem;

    display: flex;
    align-items: center;
    justify-content: center;

    white-space: normal;
}

    .page-id-562 .instruction-card .wp-block-buttons {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-id-562 .instruction-card .wp-block-button__link {
        min-width: 0;
        width: auto;
        padding: 10px 18px;
        font-size: 0.95rem;
        white-space: nowrap;
    }
	

}


/* Basket item-count circle */
.nav-basket {
    position: relative;
}

.nav-basket svg {
    position: relative;
}

/* Red count badge */
.nav-basket .basket-count {
    position: absolute;
    top: -7px;
    left: 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    box-sizing: border-box;

    background-color: #d62828;
    color: #ffffff;

    border: 2px solid #ffffff;
    border-radius: 999px;

    font-family: "Nunito", Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;

    z-index: 2;
}

.nav-basket .basket-count-empty {
    display: none;
}


/* Mobile header fit */
@media (max-width: 600px) {
    .nav {
        padding-left: 12px;
        padding-right: 12px;
        gap: 8px;
    }

    .brand {
        font-size: 1rem;
        gap: 7px;
        white-space: nowrap;
    }

    .brand-mark {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .nav nav {
        gap: 8px;
        flex-shrink: 0;
    }

    .nav-basket {
        gap: 4px;
    }

    .nav-basket > span:last-child {
        display: none;
    }

    .nav-cta {
        padding: 8px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
    }
}