:root {
    --color-background: #fffdfb;
    --color-text: #231f20;
    --color-muted: #706a67;
    --color-accent: #cfa3aa;
    --color-border: #e9e2de;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-header {
    padding: 2.25rem 2rem 1.75rem;
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: grid;
    grid-template-columns: 220px 1fr 48px;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-right: 2rem;
}

.site-brand {
    justify-self: start;
    margin-left: 0;
    text-align: left;
}

.site-brand__link {
    display: block;
    text-align: left;
}

.site-brand__title {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.15rem;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.site-brand__tagline {
    display: block;
    margin-top: 0.8rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.25;
}

.site-navigation {
    justify-self: center;
}

.site-navigation__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation__menu a {
    position: relative;
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.site-navigation__menu a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--color-text);
    content: "";
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.site-navigation__menu a:hover::after,
.site-navigation__menu .current-menu-item a::after {
    transform: scaleX(1);
}

.site-main {
    min-height: 65vh;
}

.collection {
    padding: 5rem 2rem;
}

.collection__inner {
    max-width: 960px;
    margin: 0 auto;
}

.collection__header {
    margin-bottom: 3rem;
    text-align: center;
}

.collection__header h1 {
    margin: 0 0 0.75rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.collection__header p {
    margin: 0;
    color: var(--color-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 7vw, 5rem);
}

.product-card {
    text-align: center;
}

.product-card__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
}

.product-card__description {
    max-width: 31rem;
    margin: 0.85rem auto 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.product-card__description p {
    margin: 0;
}

.product-card__price {
    margin-top: 0.45rem;
    font-size: 1.05rem;
}

.product-card__button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid var(--color-text);
    transition:
        background 180ms ease,
        color 180ms ease;
}

.product-card__button:hover,
.product-card__button.added {
    background: var(--color-text);
    color: #fff;
}

.product-card__button + .added_to_cart {
    display: inline-block;
    margin-left: 0.75rem;
    font-size: 0.9rem;
    text-decoration: underline;
}

.product-carousel {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 1.5rem;
    background: #fff;
    touch-action: pan-y;
}

.product-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 280ms ease,
        visibility 280ms ease;
}

.product-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.product-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: rgba(255, 253, 251, 0.9);
    color: var(--color-text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition:
        opacity 180ms ease,
        background 180ms ease;
}

.product-carousel:hover .product-carousel__arrow,
.product-carousel:focus-within .product-carousel__arrow {
    opacity: 1;
}

.product-carousel__arrow--previous {
    left: 1rem;
}

.product-carousel__arrow--next {
    right: 1rem;
}

.product-carousel__dots {
    position: absolute;
    right: 0;
    bottom: 1rem;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
}

.product-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.product-carousel__dot.is-active {
    background: var(--color-text);
}

.account-menu {
    position: relative;
    justify-self: end;
}

.account-menu__toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
}

.account-menu__toggle:hover,
.account-menu__toggle:focus-visible {
    border-color: var(--color-accent);
    background: #f8eeee;
}

.account-menu__toggle svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.account-menu__dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    z-index: 20;
    min-width: 180px;
    padding: 0.55rem;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    box-shadow: 0 14px 35px rgba(35, 31, 32, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity 160ms ease,
        visibility 160ms ease,
        transform 160ms ease;
}

.account-menu:hover .account-menu__dropdown,
.account-menu:focus-within .account-menu__dropdown,
.account-menu.is-open .account-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu__dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.8rem;
    font-size: 0.92rem;
}

.account-menu__dropdown a:hover {
    background: #f8eeee;
}

.milkmaid-cart-count {
    display: inline-grid;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    place-items: center;
    border-radius: 999px;
    background: var(--color-text);
    color: #fff;
    font-size: 0.75rem;
}

.site-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--color-border);
}

.site-footer__inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.site-footer__menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.site-footer__menu a {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.content-page {
    padding: 4rem 2rem;
}

.content-page__inner {
    max-width: 900px;
    margin: 0 auto;
}

.content-page h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
}

.woocommerce .quantity .qty {
    min-height: 42px;
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    border: 1px solid var(--color-text);
    border-radius: 0;
    background: var(--color-text);
    color: #fff;
}

@media (max-width: 760px) {
    .site-header {
        padding: 1.5rem;
    }

    .site-header__inner {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        padding-right: 0;
    }

    .site-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .site-navigation__menu {
        justify-content: space-between;
        gap: 1rem;
    }

    .site-navigation__menu a {
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-carousel__arrow {
        width: 38px;
        height: 38px;
        opacity: 1;
    }

    .product-carousel__arrow--previous {
        left: 0.65rem;
    }

    .product-carousel__arrow--next {
        right: 0.65rem;
    }

    .account-menu__dropdown {
        position: fixed;
        top: 5.5rem;
        right: 1rem;
        left: 1rem;
    }

    .site-footer__menu {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1rem;
    }
}

/* Contact page */
.contact-page {
    padding: 5rem 2rem;
}

.contact-page__inner {
    width: min(100%, 760px);
    margin: 0 auto;
}

.contact-page__header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.contact-page__header h1 {
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.contact-page__header p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--color-muted);
    line-height: 1.7;
}

.contact-form {
    display: grid;
    gap: 1.4rem;
}

.contact-form__group {
    display: grid;
    gap: 0.5rem;
}

.contact-form label {
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: #fff;
    color: var(--color-text);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(207, 163, 170, 0.15);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form__button {
    justify-self: start;
    padding: 0.9rem 1.7rem;
    border: 1px solid var(--color-text);
    background: var(--color-text);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.contact-form__button:hover {
    background: transparent;
    color: var(--color-text);
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
}

.contact-form__notice {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
}

@media (max-width: 760px) {
    .contact-page {
        padding: 3.5rem 1.25rem;
    }

    .contact-form__button {
        width: 100%;
        justify-self: stretch;
    }
}

/* =========================================================
   Milk Maid Contact Page - Modern Card
   ========================================================= */

.contact-page {
    display: flex;
    justify-content: center;
    padding: 5.5rem 1.5rem 6.5rem;
}

.contact-page__inner {
    width: min(100%, 720px);
    margin: 0 auto;
}

.contact-page__header {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.contact-page__header h1 {
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.contact-page__header p {
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.contact-form {
    display: grid;
    gap: 1.35rem;
    padding: clamp(1.75rem, 5vw, 3rem);
    border: 1px solid rgba(207, 163, 170, 0.35);
    border-radius: 28px;
    background: #fff8f7;
    box-shadow:
        0 20px 55px rgba(35, 31, 32, 0.07),
        0 3px 10px rgba(35, 31, 32, 0.03);
}

.contact-form__group {
    display: grid;
    gap: 0.55rem;
}

.contact-form label {
    margin-left: 0.2rem;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.15rem;
    border: 1px solid #e5d8d5;
    border-radius: 16px;
    outline: none;
    background: #ffffff;
    color: var(--color-text);
    font: inherit;
    font-size: 1rem;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #d9bebf;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(207, 163, 170, 0.16);
}

.contact-form textarea {
    min-height: 190px;
    resize: vertical;
}

.contact-form__button {
    width: 100%;
    margin-top: 0.35rem;
    padding: 1rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-text);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.contact-form__button:hover {
    background: #4a3d40;
    color: #fff;
    box-shadow: 0 10px 24px rgba(35, 31, 32, 0.16);
    transform: translateY(-1px);
}

.contact-form__button:active {
    transform: translateY(0);
}

/* Spam honeypot - must never be visible */
.contact-form__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-form__notice {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    text-align: center;
}

.contact-form__notice--success {
    border: 1px solid #b9d8c1;
    background: #f1faf3;
}

.contact-form__notice--error {
    border: 1px solid #e5b9b9;
    background: #fff3f3;
}

@media (max-width: 760px) {
    .contact-page {
        padding: 3.5rem 1rem 4.5rem;
    }

    .contact-page__header {
        margin-bottom: 2rem;
    }

    .contact-form {
        gap: 1.15rem;
        padding: 1.5rem;
        border-radius: 22px;
    }

    .contact-form input,
    .contact-form textarea {
        border-radius: 14px;
    }
}
