body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    margin:0;
} 

/*Shipping header*/
.shipping-header {
    background-color: #FDE7EC;
    color: #333;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    margin: 0;
}

/* Navigation Bar */

/* Nav layout: logo left, centered links, icons right */
.nav {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #fff;
    font-size: 16px; /* normalize base nav font size */
}

.nav-left {
    display: flex;
    align-items: center;
    justify-self: start;
}

.nav-center {
    display: flex;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-self: end;
}

.logo {
    width: 160px;
    height: auto;
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 16px; /* match homepage sizing without global rem base */
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #111;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.icon-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* shop button (mobile only) */
.shop-btn {
    display: none;
    background: none;
    border: 1px solid transparent;
    padding: 6px 10px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

/* hamburger toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 6px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #111;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Mobile menu rules */
@media (max-width: 740px) {
    .nav-list {
        display: none;
    }

    .logo {
        height: 44px;
        width: auto; /* keep aspect ratio on small screens */
    }

    .nav-toggle {
        display: inline-flex;
    }

    /* hide shop button on mobile to save space */
    .shop-btn { display: none; }

    /* align dropdown under hamburger at the right edge */
    .nav-center {
        position: absolute;
        right: 20px;
        left: auto;
        transform: none;
        top: 64px;
        z-index: 40;
    }

    .nav-center .nav-list {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: white;
        padding: 12px 16px;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

    .nav-center.open .nav-list {
        display: flex;
    }
}

/* PayPal cart button scaling and responsive sizing */
.paypal-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.paypal-cart paypal-cart-button {
    display: inline-block;
    transform-origin: center center;
    transition: transform 160ms ease;
}

/* Desktop default: slightly larger than native */
@media (min-width: 741px) {
    .paypal-cart paypal-cart-button {
        transform: scale(1.00); /* reduce size to match homepage visual */
    }
}

/* Mobile: visually reduce size but keep wrapper padding for a comfortable touch target */
@media (max-width: 740px) {
    .paypal-cart paypal-cart-button {
        transform: scale(0.75); /* tuned size on mobile */
    }

    .paypal-cart {
        padding: 6px; /* pull cart closer to hamburger */
    }

    /* bring cart and hamburger closer together */
    .nav-right { gap: 4px; }
}


.product-container {
    margin: 0 auto;
    max-width: 800px;
}

/* Mobile spacing for product container */
@media (max-width: 740px) {
    .product-container {
        width: 92%; /* ensure horizontal margins show by reducing width */
        margin: 16px auto 32px; /* add top/bottom breathing room, keep centered */
        padding: 16px; /* slightly tighter padding on small screens */
        box-sizing: border-box;
    }
}

