/* Home 2's cream, forest and lime system for the rest of the storefront.
   Header styling is intentionally left to the shared header stylesheet. */
body:not(.is-home-1) {
    background: #faf9f5;
    color: #526057;
}

body:not(.is-home-1) main {
    --brand-green: #a4d635;
    --brand-green-dark: #527c30;
    --brand-green-darker: #173b2b;
    --brand-green-soft: #eef4df;
    --brand-green-ring: rgba(164, 214, 53, .24);
    --brand-ink: #173b2b;
    --brand-navy: #173b2b;
    --brand-navy-dark: #102c20;
    --ink-900: #173b2b;
    --ink-700: #526057;
    --ink-500: #69756d;
    --ink-200: #e1e6dc;
    --ink-100: #f0f2ec;
    --ink-50: #faf9f5;
    --white: #fff;
    background: #faf9f5;
    color: #526057;
}

/* Keep storefront content crisp and square-edged, including cart and checkout. */
body main * { border-radius: 0 !important; }

body:not(.is-home-1) main h1,
body:not(.is-home-1) main h2,
body:not(.is-home-1) main h3,
body:not(.is-home-1) main h4,
body:not(.is-home-1) main h5,
body:not(.is-home-1) main h6 {
    color: #173b2b;
}

body:not(.is-home-1) main .page-banner {
    background: #f3f4ec;
    border-color: #e1e6dc;
}

body:not(.is-home-1) main .shop-filters,
body:not(.is-home-1) main .account-panel,
body:not(.is-home-1) main .cart-summary,
body:not(.is-home-1) main .storefront-empty,
body:not(.is-home-1) main .address-choice,
body:not(.is-home-1) main .checkout-address-panel {
    background: #fff;
    border-color: #e1e6dc;
}

body:not(.is-home-1) main .btn-primary,
body:not(.is-home-1) main .btn-dark {
    border-color: #a4d635;
    background: #a4d635;
    color: #173b2b;
}

body:not(.is-home-1) main .btn-primary:hover:not(:disabled),
body:not(.is-home-1) main .btn-dark:hover:not(:disabled) {
    border-color: #173b2b;
    background: #173b2b;
    color: #fff;
}

body:not(.is-home-1) main .btn-primary:focus-visible,
body:not(.is-home-1) main .btn-dark:focus-visible,
body:not(.is-home-1) main .btn-outline:focus-visible {
    outline: 3px solid #6d9c36;
    outline-offset: 3px;
}

body:not(.is-home-1) main .btn-outline {
    border-color: #173b2b;
    background: #fff;
    color: #173b2b;
}

body:not(.is-home-1) main .btn-outline:hover:not(:disabled) {
    border-color: #a4d635;
    background: #a4d635;
    color: #173b2b;
}

/* The same product card markup and proportions are used in every listing. */
body:not(.is-home-1) main .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

body:not(.is-home-1) main .home-product {
    position: relative;
    min-width: 0;
    border: 1px solid #e1e6dc;
    background: #fff;
    box-shadow: 0 5px 18px rgba(23, 59, 43, .045);
}

body:not(.is-home-1) main .home-product__image { aspect-ratio: 1 / 1; background: #f7f8f3; }
body:not(.is-home-1) main .home-product__image img { width: 100%; height: 100%; padding: 12px; object-fit: contain; }
body:not(.is-home-1) main .home-product__details { gap: 3px; padding: 17px 18px 18px; }
body:not(.is-home-1) main .home-product h3 { min-height: 0; margin: 0; color: #173b2b; font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
body:not(.is-home-1) main .home-product h3 a { color: #173b2b; }
body:not(.is-home-1) main .home-product__prices { min-height: 0; margin-top: 0; white-space: normal; }
body:not(.is-home-1) main .home-product__regular { color: #77837a; }
body:not(.is-home-1) main .home-product__price { color: #173b2b; font-size: 1.15rem; }
body:not(.is-home-1) main .home-product__discount { color: #527c30; }
body:not(.is-home-1) main .home-product__details form[data-slider-cart-form] { margin-top: 3px; }
body:not(.is-home-1) main .home-product__cart { min-height: 46px; border-color: #a4d635; background: #a4d635; color: #173b2b; }
body:not(.is-home-1) main .home-product__cart:hover:not(:disabled) { border-color: #173b2b; background: #173b2b; color: #fff; }
body:not(.is-home-1) main .home-product__cart:focus-visible { outline: 3px solid #6d9c36; outline-offset: 3px; }
body:not(.is-home-1) main .home-product__cart.is-adding { border-color: #527c30; background: #527c30; color: #fff; }
body:not(.is-home-1) main .home-product__cart:disabled { border-color: #e1e6dc; background: #edf0e8; color: #6d796f; }
body:not(.is-home-1) main .home-product__feedback { color: #426d2d; }

.pdp__cart-actions {
    display: grid;
    flex: 1 1 390px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(390px, 100%);
}
.pdp__cart-actions .pdp__cart-button { height: 100%; }
.pdp__buy-now {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 15px;
    border: 1px solid #173b2b;
    background: #173b2b;
    color: #fff;
    font: 700 .85rem var(--font-sans);
    cursor: pointer;
}
.pdp__buy-now:hover { border-color: #102c20; background: #102c20; }
.pdp__buy-now:focus-visible { outline: 3px solid #6d9c36; outline-offset: 3px; }

.checkout-coupon { display: flex; gap: 8px; margin: 18px 0; }
.checkout-coupon .input { flex: 1; min-width: 0; }

/* Keep product card actions on one baseline even when names wrap. */
body main .home-product__details { flex: 1; }
body main .home-product__details h3 {
    display: -webkit-box;
    min-height: 2.7em !important;
    max-height: 2.7em !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
body main .home-product__details > .home-product__cart { margin-top: auto; }
body main .home-product__details form[data-slider-cart-form] { margin-top: auto !important; }

body:not(.is-home-1) .site-footer {
    background: #292524;
    color: #eeeae7;
    border-top: 0;
}

body:not(.is-home-1) .site-footer__brand p,
body:not(.is-home-1) .site-footer__col a,
body:not(.is-home-1) .site-footer__contact li { color: #eeeae7; font-size: .95rem; line-height: 1.6; }
body:not(.is-home-1) .site-footer__col h3 { color: #fff; }
body:not(.is-home-1) .site-footer__col a:hover { color: #c5ed8a; }
body:not(.is-home-1) .site-footer__social a:hover { background: #a4d635; color: #173b2b; }
body:not(.is-home-1) .site-footer__bottom { border-color: rgba(255,255,255,.22); }
body:not(.is-home-1) .site-footer__disclaimer { color: #c8c2bd; }

@media (max-width: 1050px) {
    body:not(.is-home-1) main .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body:not(.is-home-1) main .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    body:not(.is-home-1) main .home-product__details { padding: 14px 13px 15px; }
    body:not(.is-home-1) main .home-product h3 { font-size: .96rem; }
    body:not(.is-home-1) .site-footer__grid { gap: 28px; }
}

@media (max-width: 620px) {
    .pdp__cart-actions { flex-basis: 100%; width: 100%; }
}

@media (max-width: 420px) {
    body:not(.is-home-1) main .product-grid { grid-template-columns: 1fr; }
}
