/* ==========================================================================
   TidyNest — Home Storage & Organization Template (Template 40)
   Design: Sage green + warm terracotta on linen whites, rounded soft
           cards, pill buttons, calm organized energy for home storage
   Markup: Shopify Refresh-style hierarchy (contained rounded sections,
           logo-left header with centered inline nav, floating rounded
           mega dropdown, circular icon value strip, accordion PDP)
   Fonts: Sora (headings) + DM Sans (body)
   CSS Prefix: home40-
   ========================================================================== */

:root {
    --home40-primary: #4A7359;          /* Sage green */
    --home40-primary-light: #86A692;
    --home40-primary-dark: #33543C;
    --home40-accent: #D9874E;           /* Warm terracotta */
    --home40-accent-dark: #BE6E36;
    --home40-accent-light: #F2C7A5;
    --home40-bg: #FAF8F3;               /* Warm linen white */
    --home40-wash: #EDF2EA;             /* Pale sage wash */
    --home40-sand: #F4EDE2;
    --home40-text: #2C342D;             /* Deep green charcoal */
    --home40-text-muted: #657165;
    --home40-white: #ffffff;
    --home40-border: #D6DED4;
    --home40-border-light: #EAEDE6;
    --home40-success: #3F9D6E;
    --home40-danger: #D9574C;
    --home40-sale: #C45A44;
    --home40-forest: #243028;           /* Deep forest (footer) */
    --home40-radius: 12px;
    --home40-radius-lg: 20px;
    --home40-radius-xl: 30px;
    --home40-font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --home40-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --home40-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --home40-shadow-sm: 0 2px 12px rgba(44, 66, 52, 0.06);
    --home40-shadow-md: 0 10px 30px rgba(44, 66, 52, 0.10);
    --home40-shadow-lg: 0 22px 50px rgba(44, 66, 52, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.home40-theme {
    font-family: var(--home40-font-body);
    color: var(--home40-text);
    background-color: var(--home40-bg);
    line-height: 1.65;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-transform: none;
}

body.home40-theme img {
    max-width: 100%;
}

a {
    color: var(--home40-primary);
    text-decoration: none;
    transition: color var(--home40-transition);
}

a:hover {
    color: var(--home40-accent-dark);
}

ul { list-style: none; }
ins { text-decoration: none; }
button { font-family: inherit; }

/* ==========================================================================
   Layout / Helpers
   ========================================================================== */

.home40-page-width {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
}

.home40-main {
    flex: 1;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.home40-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 3000;
    background: var(--home40-primary-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--home40-radius) 0;
}

.home40-skip:focus {
    left: 0;
    color: #fff;
}

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.home40-announce {
    position: relative;
    background: var(--home40-forest);
    color: #F3F6F1;
    text-align: center;
    padding: 11px 56px 9px;
    min-height: 42px;
}

.home40-announce__track {
    position: relative;
}

.home40-announce__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.home40-announce__slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.home40-announce__slide i {
    color: var(--home40-accent-light);
}

.home40-announce__dots {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}

.home40-announce__dots button {
    width: 6px;
    height: 6px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: all var(--home40-transition);
}

.home40-announce__dots button.is-active {
    background: var(--home40-accent-light);
    width: 16px;
    border-radius: 999px;
}

/* ==========================================================================
   Header — logo left, centered inline nav, icons right (Refresh style)
   ========================================================================== */

.home40-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(250, 248, 243, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--home40-border-light);
    transition: box-shadow var(--home40-transition);
}

.home40-header.is-scrolled {
    box-shadow: 0 4px 22px rgba(44, 66, 52, 0.08);
}

.home40-header__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    min-height: 74px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.home40-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.home40-header__center {
    display: flex;
    justify-content: center;
}

.home40-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.home40-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--home40-primary-dark);
    font-family: var(--home40-font-heading);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

a.home40-logo:link,
a.home40-logo:visited {
    color: var(--home40-primary-dark);
}

a.home40-logo:hover {
    color: var(--home40-primary);
}

.home40-logo__mark {
    color: var(--home40-primary);
    font-size: 24px;
}

.home40-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: var(--home40-text);
    border-radius: 50%;
    cursor: pointer;
    font-size: 17px;
    transition: all var(--home40-transition);
}

a.home40-icon-btn:link,
a.home40-icon-btn:visited {
    color: var(--home40-text);
}

.home40-icon-btn:hover {
    background: var(--home40-wash);
    color: var(--home40-primary);
}

.home40-cart-badge {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: var(--home40-accent);
    color: #fff;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--home40-bg);
}

.home40-header__hamburger {
    display: none;
}

/* Primary nav */
.home40-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.home40-nav__item {
    position: relative;
}

.home40-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--home40-text);
    border-radius: 999px;
    white-space: nowrap;
}

a.home40-nav__link:link,
a.home40-nav__link:visited {
    color: var(--home40-text);
}

.home40-nav__link:hover {
    color: var(--home40-primary);
    background: var(--home40-wash);
}

.home40-nav__item.current > .home40-nav__link {
    color: var(--home40-primary);
}

.home40-nav__caret {
    font-size: 10px;
    opacity: 0.7;
    transition: transform var(--home40-transition);
}

.home40-nav__item:hover .home40-nav__caret {
    transform: rotate(180deg);
}

/* Floating rounded dropdown panel */
.home40-drop {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    max-width: 320px;
    background: var(--home40-white);
    border: 1px solid var(--home40-border-light);
    border-radius: var(--home40-radius-lg);
    box-shadow: var(--home40-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.home40-nav__item.has-children:hover > .home40-drop,
.home40-nav__item.has-children:focus-within > .home40-drop {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.home40-nav__item.has-children::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.home40-drop--simple {
    min-width: 200px;
}

.home40-drop__panel {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 70vh;
    overflow-y: auto;
}

.home40-drop__group {
    display: flex;
    flex-direction: column;
}

.home40-drop__item {
    display: block;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--home40-text);
    border-radius: var(--home40-radius);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.home40-drop__item:link,
a.home40-drop__item:visited {
    color: var(--home40-text);
}

.home40-drop__item:hover {
    background: var(--home40-wash);
    color: var(--home40-primary-dark);
}

.home40-drop__item--parent {
    font-weight: 700;
    color: var(--home40-primary-dark);
}

.home40-drop__submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.home40-drop__subitem {
    display: block;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--home40-text-muted);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.home40-drop__subitem:link,
a.home40-drop__subitem:visited {
    color: var(--home40-text-muted);
}

.home40-drop__subitem:hover {
    background: var(--home40-wash);
    color: var(--home40-primary-dark);
}

/* Search slide-down */
.home40-search {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--home40-white);
    border-bottom: 1px solid var(--home40-border-light);
    box-shadow: var(--home40-shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.home40-search.is-open {
    max-height: 110px;
}

.home40-search .home40-page-width {
    padding-top: 16px;
    padding-bottom: 16px;
}

.home40-search__form {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--home40-bg);
    border: 1.5px solid var(--home40-border);
    border-radius: 999px;
    padding: 6px 8px 6px 22px;
    transition: border-color var(--home40-transition);
}

.home40-search__form:focus-within {
    border-color: var(--home40-primary);
}

.home40-search__form > i {
    color: var(--home40-text-muted);
}

.home40-search__input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    font-family: var(--home40-font-body);
    color: var(--home40-text);
    min-width: 0;
}

.home40-search__submit {
    border: none;
    background: var(--home40-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 26px;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--home40-transition);
}

.home40-search__submit:hover {
    background: var(--home40-primary-dark);
}

.home40-search__close {
    border: none;
    background: transparent;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--home40-text-muted);
    cursor: pointer;
    font-size: 15px;
}

.home40-search__close:hover {
    background: var(--home40-wash);
    color: var(--home40-text);
}

/* ==========================================================================
   Mobile drawer
   ========================================================================== */

.home40-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(36, 48, 40, 0.5);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.home40-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.home40-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 330px;
    max-width: 86vw;
    background: var(--home40-white);
    z-index: 310;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--home40-shadow-lg);
}

.home40-drawer.is-open {
    transform: translateX(0);
}

.home40-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--home40-border-light);
}

.home40-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.home40-drawer__list > li {
    border-bottom: 1px solid var(--home40-border-light);
}

.home40-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

a.home40-drawer__link:link,
a.home40-drawer__link:visited,
a.home40-drawer__link-text:link,
a.home40-drawer__link-text:visited {
    color: var(--home40-text);
}

a.home40-drawer__link,
.home40-drawer__link {
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
}

.home40-drawer__link:hover,
.home40-drawer__link-text:hover {
    color: var(--home40-primary);
}

.home40-drawer__toggle {
    width: 34px;
    height: 34px;
    border: none;
    background: var(--home40-bg);
    border-radius: 50%;
    color: var(--home40-text-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--home40-transition);
}

.home40-drawer__toggle:hover {
    background: var(--home40-wash);
    color: var(--home40-primary);
}

.home40-drawer__link.open .home40-drawer__chevron {
    transform: rotate(180deg);
}

.home40-drawer__chevron {
    font-size: 11px;
    transition: transform var(--home40-transition);
}

.home40-drawer__submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--home40-bg);
    border-radius: var(--home40-radius);
    margin: 0 8px;
}

.home40-drawer__submenu.is-open {
    max-height: 1200px;
    margin-bottom: 8px;
}

.home40-drawer__submenu a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--home40-text-muted);
}

.home40-drawer__submenu a:hover {
    color: var(--home40-primary);
}

.home40-drawer__sub-submenu {
    background: var(--home40-wash);
    margin: 0 12px 6px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.home40-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 30px;
    border-radius: 999px;
    font-family: var(--home40-font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--home40-transition);
    white-space: nowrap;
    text-transform: none;
}

a.home40-btn:link,
a.home40-btn:visited {
    color: #fff;
}

.home40-btn--primary {
    background: var(--home40-primary);
    color: #fff;
}

a.home40-btn--primary:link,
a.home40-btn--primary:visited {
    color: #fff;
}

.home40-btn--primary:hover {
    background: var(--home40-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--home40-shadow-md);
}

.home40-btn--outline {
    background: transparent;
    border-color: var(--home40-primary);
    color: var(--home40-primary);
}

a.home40-btn--outline:link,
a.home40-btn--outline:visited {
    color: var(--home40-primary);
}

.home40-btn--outline:hover {
    background: var(--home40-primary);
    color: #fff;
}

.home40-btn--light {
    background: var(--home40-white);
    color: var(--home40-primary-dark);
}

a.home40-btn--light:link,
a.home40-btn--light:visited {
    color: var(--home40-primary-dark);
}

.home40-btn--light:hover {
    background: var(--home40-wash);
    color: var(--home40-primary);
}

.home40-btn--sm {
    padding: 10px 22px;
    font-size: 13.5px;
}

/* ==========================================================================
   Hero — contained rounded card, 2 columns
   ========================================================================== */

.home40-hero-section {
    padding: 30px 0 10px;
}

.home40-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--home40-wash);
    border-radius: var(--home40-radius-xl);
    overflow: hidden;
    min-height: 560px;
}

.home40-hero__media {
    position: relative;
    min-height: 420px;
}

.home40-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home40-hero__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 56px 52px;
}

.home40-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--home40-white);
    color: var(--home40-primary-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: var(--home40-shadow-sm);
}

.home40-hero__eyebrow i {
    color: var(--home40-primary);
}

.home40-hero__title {
    font-family: var(--home40-font-heading);
    font-size: 47px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.2px;
    color: var(--home40-primary-dark);
}

.home40-hero__text {
    font-size: 16.5px;
    color: var(--home40-text-muted);
    max-width: 440px;
}

.home40-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 4px;
}

.home40-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--home40-text-muted);
}

.home40-hero__trust i {
    color: var(--home40-primary);
    margin-right: 5px;
}

/* ==========================================================================
   Value props strip — circular icons
   ========================================================================== */

.home40-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 34px 0 8px;
}

.home40-values__item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--home40-white);
    border: 1px solid var(--home40-border-light);
    border-radius: var(--home40-radius-lg);
    padding: 20px;
}

.home40-values__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home40-wash);
    color: var(--home40-primary);
    font-size: 19px;
}

.home40-values__item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home40-values__item strong {
    font-family: var(--home40-font-heading);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--home40-primary-dark);
}

.home40-values__item span {
    font-size: 12.5px;
    color: var(--home40-text-muted);
}

/* ==========================================================================
   Sections — common
   ========================================================================== */

.home40-section {
    padding: 64px 0;
}

.home40-section--wash {
    background: var(--home40-wash);
}

.home40-section__head {
    margin-bottom: 34px;
}

.home40-section__head--center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}

.home40-section__head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.home40-section__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: none;
    color: var(--home40-accent-dark);
    margin-bottom: 9px;
}

.home40-section__title {
    font-family: var(--home40-font-heading);
    font-size: 33px;
    font-weight: 600;
    letter-spacing: -0.6px;
    color: var(--home40-primary-dark);
    line-height: 1.2;
}

.home40-section__desc {
    margin-top: 12px;
    color: var(--home40-text-muted);
    font-size: 15.5px;
}

.home40-section__viewall {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--home40-primary);
    border-bottom: 2px solid var(--home40-primary-light);
    padding-bottom: 3px;
}

.home40-section__viewall:hover {
    color: var(--home40-accent-dark);
    border-color: var(--home40-accent);
}

/* ==========================================================================
   Collection list — rounded cards, caption below
   ========================================================================== */

.home40-room-grid,
.home40-product-grid,
.home40-related-grid {
    list-style: none;
}

.home40-room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.home40-room__link {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

a.home40-room__link:link,
a.home40-room__link:visited {
    color: var(--home40-text);
}

.home40-room__media {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--home40-radius-lg);
    overflow: hidden;
    background: var(--home40-wash);
}

.home40-room__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home40-room__link:hover .home40-room__media img {
    transform: scale(1.06);
}

.home40-room__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 4px;
}

.home40-room__name {
    font-family: var(--home40-font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--home40-primary-dark);
}

.home40-room__cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--home40-text-muted);
    white-space: nowrap;
    transition: all var(--home40-transition);
}

.home40-room__cta i {
    font-size: 10px;
}

.home40-room__link:hover .home40-room__cta {
    color: var(--home40-accent-dark);
}

/* ==========================================================================
   Product cards
   ========================================================================== */

.home40-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.home40-card {
    background: var(--home40-white);
    border: 1px solid var(--home40-border-light);
    border-radius: var(--home40-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--home40-transition), box-shadow var(--home40-transition);
}

.home40-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home40-shadow-md);
}

.home40-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--home40-bg);
}

.home40-card__media a {
    display: block;
    width: 100%;
    height: 100%;
}

.home40-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home40-card:hover .home40-card__media img {
    transform: scale(1.06);
}

.home40-card__badge,
.home40-card__flag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.home40-card__badge {
    background: var(--home40-accent);
    color: #fff;
}

.home40-card__flag {
    background: var(--home40-primary);
    color: #fff;
}

.home40-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 20px;
    flex: 1;
}

.home40-card__title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--home40-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.home40-card__title a:link,
.home40-card__title a:visited {
    color: var(--home40-text);
}

.home40-card__title a:hover {
    color: var(--home40-primary);
}

.home40-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.home40-card__price {
    font-family: var(--home40-font-heading);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--home40-primary-dark);
    white-space: nowrap;
}

.home40-card__price ins .woocommerce-Price-amount {
    color: var(--home40-sale);
}

.home40-card__compare {
    font-family: var(--home40-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--home40-text-muted);
    margin-right: 4px;
}

.home40-card__add {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--home40-primary);
    background: var(--home40-white);
    color: var(--home40-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--home40-transition);
}

.home40-card__add:hover {
    background: var(--home40-primary);
    color: #fff;
}

/* ==========================================================================
   Breadcrumb / page title
   ========================================================================== */

.home40-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 13.5px;
    color: var(--home40-text-muted);
}

.home40-breadcrumb a {
    color: var(--home40-text-muted);
    font-weight: 500;
}

.home40-breadcrumb a:hover {
    color: var(--home40-primary);
}

.home40-breadcrumb-sep {
    color: var(--home40-border);
}

.home40-breadcrumb--center {
    justify-content: center;
}

.home40-breadcrumb-current {
    color: var(--home40-text);
    font-weight: 600;
}

.home40-page-title {
    padding: 42px 0 6px;
}

.home40-page-title .page-title {
    font-family: var(--home40-font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--home40-primary-dark);
    line-height: 1.2;
}

.home40-page-title .home40-breadcrumb {
    margin-top: 10px;
}

/* ==========================================================================
   Banners
   ========================================================================== */

.home40-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.home40-banner {
    position: relative;
    border-radius: var(--home40-radius-xl);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.home40-banner > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home40-banner:hover > img {
    transform: scale(1.04);
}

.home40-banner__text {
    position: relative;
    z-index: 2;
    padding: 36px;
    color: #fff;
}

.home40-banner__text::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(36, 48, 40, 0.82) 10%, rgba(36, 48, 40, 0.15) 70%, transparent 100%);
    z-index: -1;
}

.home40-banner__tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.92);
    color: var(--home40-primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 13px;
}

.home40-banner__text h3 {
    font-family: var(--home40-font-heading);
    font-size: 27px;
    font-weight: 600;
    margin-bottom: 9px;
    letter-spacing: -0.4px;
}

.home40-banner__text p {
    font-size: 14.5px;
    max-width: 400px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.home40-cta-section {
    padding: 10px 0 64px;
}

.home40-cta {
    position: relative;
    border-radius: var(--home40-radius-xl);
    overflow: hidden;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.home40-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(36, 48, 40, 0.78) 0%, rgba(36, 48, 40, 0.42) 55%, rgba(36, 48, 40, 0.12) 100%);
}

.home40-cta__text {
    position: relative;
    z-index: 2;
    max-width: 540px;
    padding: 48px 52px;
    color: #fff;
}

.home40-cta__text .home40-banner__tag {
    background: var(--home40-accent);
    color: #fff;
}

.home40-cta__text h2 {
    font-family: var(--home40-font-heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.6px;
    margin-bottom: 13px;
}

.home40-cta__text p {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

/* ==========================================================================
   Features
   ========================================================================== */

.home40-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.home40-feature-card {
    background: var(--home40-white);
    border: 1px solid var(--home40-border-light);
    border-radius: var(--home40-radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: transform var(--home40-transition), box-shadow var(--home40-transition);
}

.home40-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home40-shadow-md);
}

.home40-feature-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home40-wash);
    color: var(--home40-primary);
    font-size: 24px;
}

.home40-feature-title {
    font-family: var(--home40-font-heading);
    font-size: 16.5px;
    font-weight: 600;
    color: var(--home40-primary-dark);
    margin-bottom: 8px;
}

.home40-feature-text {
    font-size: 13.5px;
    color: var(--home40-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.home40-footer {
    background: var(--home40-forest);
    color: #C9D3C7;
    margin-top: auto;
}

.home40-footer .home40-page-width {
    padding-top: 54px;
    padding-bottom: 26px;
}

.home40-footer__news {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(120deg, var(--home40-primary-dark) 0%, var(--home40-primary) 100%);
    border-radius: var(--home40-radius-xl);
    padding: 34px 40px;
    margin-bottom: 48px;
}

.home40-footer__news-title {
    font-family: var(--home40-font-heading);
    font-size: 23px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.home40-footer__news-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    max-width: 440px;
}

.home40-footer__news-form {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    width: 380px;
    max-width: 100%;
}

.home40-footer__news-form input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 18px;
    font-size: 14px;
    font-family: var(--home40-font-body);
    color: var(--home40-text);
}

.home40-footer__news-form button {
    border: none;
    background: var(--home40-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--home40-transition);
    white-space: nowrap;
}

.home40-footer__news-form button:hover {
    background: var(--home40-accent-dark);
}

.home40-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home40-logo--footer {
    color: #fff;
    margin-bottom: 16px;
}

a.home40-logo--footer:link,
a.home40-logo--footer:visited {
    color: #fff;
}

.home40-logo--footer .home40-logo__mark {
    color: var(--home40-accent-light);
}

.home40-footer__text {
    font-size: 14px;
    color: #A8B5A6;
    margin-bottom: 20px;
    max-width: 300px;
}

.home40-footer__social {
    display: flex;
    gap: 10px;
}

.home40-footer__social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #DDE5DB;
    font-size: 14px;
}

.home40-footer__social a:hover {
    background: var(--home40-accent);
    color: #fff;
}

.home40-footer__heading {
    font-family: var(--home40-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
}

.home40-footer__links li {
    margin-bottom: 11px;
}

.home40-footer__links a {
    font-size: 14px;
    color: #A8B5A6;
}

.home40-footer__links a:hover {
    color: #fff;
}

.home40-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #A8B5A6;
}

.home40-footer__contact i {
    color: var(--home40-primary-light);
    margin-top: 4px;
    font-size: 13px;
}

.home40-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: 13px;
    color: #8FA08D;
}

.home40-footer__payment {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home40-footer__payment i {
    font-size: 22px;
    color: #C9D3C7;
}

/* ==========================================================================
   Add-to-cart notification
   ========================================================================== */

.home40-notification {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translate(-50%, 120%);
    background: var(--home40-forest);
    color: #fff;
    padding: 14px 24px;
    border-radius: 999px;
    box-shadow: var(--home40-shadow-lg);
    z-index: 2500;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.home40-notification.show {
    transform: translate(-50%, 0);
}

.home40-notification__content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 600;
}

.home40-notification__content i {
    color: var(--home40-primary-light);
    font-size: 18px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .home40-room-grid,
    .home40-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .home40-hero__title { font-size: 40px; }
    .home40-hero__panel { padding: 44px 40px; }
}

@media (max-width: 1024px) {
    .home40-header__hamburger {
        display: inline-flex;
    }

    .home40-header__center {
        display: none;
    }

    .home40-header__account {
        display: none;
    }

    .home40-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home40-hero__media {
        min-height: 320px;
        order: 1;
    }

    .home40-hero__panel {
        order: 2;
        padding: 38px 30px 44px;
        align-items: center;
        text-align: center;
    }

    .home40-hero__eyebrow,
    .home40-hero__trust {
        justify-content: center;
    }

    .home40-hero__text { margin: 0 auto; }

    .home40-values {
        grid-template-columns: repeat(2, 1fr);
    }

    .home40-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home40-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }
}

@media (max-width: 768px) {
    .home40-page-width {
        padding: 0 20px;
    }

    .home40-header__row {
        min-height: 64px;
    }

    .home40-logo__text { font-size: 18px; }
    .home40-logo__mark { font-size: 21px; }

    .home40-announce { padding-right: 20px; }
    .home40-announce__dots { display: none; }
    .home40-announce__slide { font-size: 12.5px; }

    .home40-section { padding: 48px 0; }

    .home40-section__title { font-size: 27px; }
    .home40-section__head--row {
        flex-direction: column;
        align-items: flex-start;
    }

    .home40-room-grid,
    .home40-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .home40-room__name { font-size: 14px; }
    .home40-room__cta { display: none; }

    .home40-card__body { padding: 13px 13px 16px; }
    .home40-card__title { font-size: 13.5px; min-height: 0; }
    .home40-card__row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .home40-card__add { width: 100%; justify-content: center; }
    .home40-card__price { font-size: 15px; }

    .home40-banner-grid {
        grid-template-columns: 1fr;
    }

    .home40-banner { min-height: 360px; }
    .home40-banner__text { padding: 26px; }
    .home40-banner__text h3 { font-size: 23px; }

    .home40-cta { min-height: 380px; }
    .home40-cta::before {
        background: linear-gradient(to top, rgba(36, 48, 40, 0.85) 0%, rgba(36, 48, 40, 0.35) 100%);
    }
    .home40-cta__text {
        padding: 32px 28px;
        max-width: 100%;
    }
    .home40-cta__text h2 { font-size: 27px; }

    .home40-footer__news {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 28px 24px;
        text-align: center;
    }

    .home40-footer__news-form { width: 100%; }
}

@media (max-width: 600px) {
    .home40-values {
        grid-template-columns: 1fr;
    }

    .home40-features-grid {
        grid-template-columns: 1fr;
    }

    .home40-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home40-footer__bar {
        flex-direction: column;
        text-align: center;
    }

    .home40-hero__title { font-size: 32px; }
    .home40-hero__actions { width: 100%; flex-direction: column; }
    .home40-hero__actions .home40-btn { width: 100%; }
    .home40-hero__trust { flex-direction: column; gap: 8px; }

    .home40-page-title .page-title { font-size: 28px; }
}

@media (max-width: 380px) {
    .home40-room-grid,
    .home40-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
