/* Storefront homepage: live WooCommerce data + mobile-first overflow safety. */
.sb-home,
.sb-home * {
    box-sizing: border-box;
}

.sb-home {
    overflow: clip;
    background: #fff;
    color: var(--brand-text, #1c1c1c);
}

.sb-home img {
    display: block;
    max-width: 100%;
}

.sb-home .container {
    width: min(100% - 32px, var(--max-width, 1380px));
    margin-inline: auto;
    padding-inline: 0;
}

.sb-home-hero {
    padding: 38px 0 44px;
}

.sb-home-hero-grid {
    display: grid;
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.sb-home-category-menu {
    min-width: 0;
    border: 1px solid var(--brand-border, #e8e2dc);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.sb-home-category-heading {
    margin: 0;
    padding: 20px 22px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-muted, #777);
}

.sb-home-category-menu ul {
    list-style: none;
    margin: 0;
    padding: 0 10px 10px;
}

.sb-home-category-menu li + li {
    border-top: 1px solid transparent;
}

.sb-home-category-menu a {
    min-width: 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    color: inherit;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    transition: background .2s ease, transform .2s ease;
}

.sb-home-category-menu a:hover {
    background: #f7f4f0;
    transform: translateX(2px);
}

.sb-home-category-menu a > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-home-category-menu small {
    color: var(--brand-muted, #777);
    font-size: 11px;
}

.sb-home-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-muted, #777);
}

.sb-home-category-all {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--brand-border, #e8e2dc) !important;
}

.sb-home-hero-card {
    min-width: 0;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #232323;
    isolation: isolate;
}

.sb-home-hero-card.is-full {
    grid-column: 1 / -1;
}

.sb-home-hero-image,
.sb-home-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sb-home-hero-image {
    object-fit: cover;
    z-index: -3;
}

.sb-home-hero-shade {
    z-index: -2;
    background: linear-gradient(90deg, rgba(15,15,15,.82) 0%, rgba(15,15,15,.54) 47%, rgba(15,15,15,.16) 100%);
}

.sb-home-hero-content {
    width: min(590px, 68%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(36px, 6vw, 76px);
    color: #fff;
}

.sb-home-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d8ad8b;
}

.sb-home-hero h1,
.sb-home-sale h2,
.sb-home-deal h2 {
    overflow-wrap: anywhere;
}

.sb-home-hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.sb-home-hero-content > p {
    max-width: 560px;
    margin: 0 0 16px;
    color: rgba(255,255,255,.88);
    font-size: clamp(14px, 1.35vw, 18px);
    line-height: 1.6;
}

.sb-home-hero-price {
    margin-bottom: 22px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.sb-home-hero-price del {
    opacity: .6;
    margin-right: 6px;
}

.sb-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.sb-home-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 13px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform .2s ease, opacity .2s ease;
}

.sb-home-btn:hover {
    transform: translateY(-2px);
}

.sb-home-btn-light {
    color: #161616;
    background: #fff;
}

.sb-home-btn-dark {
    color: #fff;
    background: #1c1c1c;
}

.sb-home-link-light {
    color: #fff;
    text-underline-offset: 4px;
}

.sb-home-hero-badge,
.sb-home-sale-badge,
.sb-home-deal-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 700;
}

.sb-home-hero-badge {
    position: absolute;
    top: 36px;
    right: 36px;
    width: 116px;
    aspect-ratio: 1;
    color: #fff;
    background: #ff3f7f;
    border: 6px solid rgba(255,255,255,.45);
}

.sb-home-hero-badge span,
.sb-home-sale-badge span,
.sb-home-deal-badge span {
    font-size: 10px;
    letter-spacing: .08em;
}

.sb-home-hero-badge strong,
.sb-home-sale-badge strong,
.sb-home-deal-badge strong {
    font-size: 28px;
    line-height: 1;
}

.sb-home-categories {
    padding: 44px 0 68px;
}

.sb-home-section-head {
    max-width: 700px;
    margin: 0 auto 32px;
    text-align: center;
}

.sb-home-section-head > span {
    color: #b38261;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sb-home-section-head h2 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.08;
}

.sb-home-section-head p {
    margin: 0;
    color: var(--brand-muted, #777);
    font-size: 15px;
}

.sb-home-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.sb-home-category-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--brand-border, #e8e2dc);
    border-radius: 20px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sb-home-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.sb-home-category-media {
    display: block;
    aspect-ratio: 1.05 / .94;
    overflow: hidden;
    background: #f1efec;
}

.sb-home-category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.sb-home-category-card:hover img {
    transform: scale(1.04);
}

.sb-home-category-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    padding: 17px 16px;
}

.sb-home-category-copy > span:first-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sb-home-category-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.sb-home-category-copy small {
    color: var(--brand-muted, #777);
    font-size: 12px;
}

.sb-home-round-arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #efebe6;
    font-size: 20px;
}

.sb-home-sale {
    padding: 0 0 68px;
}

.sb-home-sale-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 20px;
    background: #f0ece7;
}

.sb-home-sale-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(36px, 5vw, 68px);
}

.sb-home-sale-kicker {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: #c79d7d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sb-home-sale h2 {
    margin: 20px 0 12px;
    font-size: clamp(32px, 3.5vw, 52px);
    line-height: 1.05;
}

.sb-home-sale p {
    margin: 0 0 20px;
    max-width: 560px;
    color: var(--brand-muted, #6d665f);
    line-height: 1.65;
}

.sb-home-sale-price {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
}

.sb-home-sale-price del {
    color: #8c847c;
    font-size: 16px;
}

.sb-home-sale-media {
    position: relative;
    min-width: 0;
    min-height: 420px;
    background: #e5ded6;
}

.sb-home-sale-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-home-sale-badge {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 108px;
    aspect-ratio: 1;
    background: rgba(242,232,222,.92);
    color: #4b413a;
    border: 2px solid rgba(255,255,255,.7);
    backdrop-filter: blur(8px);
}

.sb-home-deal {
    padding: 0 0 78px;
}

.sb-home-deal-card {
    position: relative;
    min-width: 0;
    min-height: 430px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 20px;
    background: radial-gradient(circle at 85% 20%, #3b3232 0, #242221 30%, #1d1d1d 70%);
    color: #fff;
}

.sb-home-deal-card::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 440px;
    height: 440px;
    border: 2px solid rgba(255,255,255,.045);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.01);
}

.sb-home-deal-copy {
    position: relative;
    z-index: 2;
    width: min(780px, 72%);
    padding: clamp(42px, 6vw, 80px);
}

.sb-home-deal h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(36px, 4.6vw, 66px);
    line-height: 1.02;
}

.sb-home-deal p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255,255,255,.84);
    line-height: 1.65;
}

.sb-home-coupon {
    width: fit-content;
    padding: 8px 12px;
    border: 1px dashed rgba(255,255,255,.4);
    border-radius: 8px;
}

.sb-home-deal-badge {
    position: absolute;
    z-index: 2;
    top: 44px;
    right: 44px;
    width: 126px;
    aspect-ratio: 1;
    color: #fff;
    background: #ff3f7f;
    border: 6px solid #ff8caf;
}

@media (max-width: 1180px) {
    .sb-home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sb-home-hero-content {
        width: min(650px, 78%);
    }
}

@media (max-width: 1023px) {
    body {
        overflow-x: hidden;
    }

    .sb-home-hero {
        padding-top: 22px;
    }

    .sb-home-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sb-home-category-menu {
        display: none;
    }

    .sb-home-hero-card {
        min-height: 480px;
    }

    .sb-home-sale-card {
        grid-template-columns: 1fr 1fr;
    }

    .header-main-inner {
        min-width: 0;
        gap: 12px;
    }

    .header-main-inner .site-branding {
        min-width: 0;
        flex: 1 1 auto;
    }

    .header-main-inner .site-logo-link,
    .header-main-inner .site-logo-text {
        min-width: 0;
        max-width: 100%;
    }

    .header-main-inner .site-title-text,
    .header-main-inner .site-description {
        min-width: 0;
    }

    .header-main-inner .site-description {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 240px;
    }

    .header-main-inner .nav-actions {
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .sb-home .container {
        width: min(100% - 24px, var(--max-width, 1380px));
    }

    .sb-home-hero {
        padding: 14px 0 36px;
    }

    .sb-home-hero-card {
        min-height: 510px;
        border-radius: 16px;
    }

    .sb-home-hero-image {
        object-position: center;
    }

    .sb-home-hero-shade {
        background: linear-gradient(0deg, rgba(15,15,15,.88) 0%, rgba(15,15,15,.58) 58%, rgba(15,15,15,.22) 100%);
    }

    .sb-home-hero-content {
        width: 100%;
        justify-content: flex-end;
        padding: 28px 22px 30px;
    }

    .sb-home-hero h1 {
        font-size: clamp(30px, 10vw, 44px);
    }

    .sb-home-hero-content > p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }

    .sb-home-hero-badge {
        top: 18px;
        right: 18px;
        width: 88px;
        border-width: 4px;
    }

    .sb-home-hero-badge strong,
    .sb-home-sale-badge strong,
    .sb-home-deal-badge strong {
        font-size: 22px;
    }

    .sb-home-categories {
        padding: 34px 0 48px;
    }

    .sb-home-section-head {
        margin-bottom: 22px;
    }

    .sb-home-section-head h2 {
        font-size: 30px;
    }

    .sb-home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sb-home-category-card {
        border-radius: 14px;
    }

    .sb-home-category-copy {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 6px;
        padding: 13px 12px;
    }

    .sb-home-round-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .sb-home-sale {
        padding-bottom: 48px;
    }

    .sb-home-sale-card {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 16px;
    }

    .sb-home-sale-copy {
        padding: 30px 22px 34px;
        order: 2;
    }

    .sb-home-sale h2 {
        font-size: 34px;
    }

    .sb-home-sale-media {
        min-height: 280px;
        order: 1;
    }

    .sb-home-sale-badge {
        top: 16px;
        right: 16px;
        width: 88px;
    }

    .sb-home-deal {
        padding-bottom: 54px;
    }

    .sb-home-deal-card {
        min-height: 520px;
        align-items: flex-end;
        border-radius: 16px;
    }

    .sb-home-deal-copy {
        width: 100%;
        padding: 120px 22px 34px;
    }

    .sb-home-deal h2 {
        font-size: 38px;
    }

    .sb-home-deal-badge {
        top: 22px;
        right: 22px;
        width: 94px;
        border-width: 4px;
    }

    .sb-topbar {
        display: none;
    }

    .header-main-inner {
        padding: 10px 12px !important;
    }

    .header-main-inner .site-branding .custom-logo {
        max-width: min(150px, 42vw) !important;
        max-height: 42px;
        width: auto;
        height: auto;
    }

    .header-main-inner .site-title-name {
        font-size: 16px;
    }

    .header-main-inner .site-description {
        display: none;
    }

    .header-main-inner .nav-actions {
        flex: 0 0 auto;
        gap: 8px;
    }

    .nav-action-item.cart-icon-wrap {
        gap: 0;
    }

    .nav-action-icon,
    .nav-actions .search-btn,
    .hamburger {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-fullscreen {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        overflow-y: auto;
        padding: 72px 20px 32px;
    }

    .mobile-menu-nav,
    .mobile-menu-links {
        width: 100%;
        max-width: 420px;
    }

    .mobile-menu-links li,
    .mobile-menu-links li a {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .sb-home-category-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sb-home-category-media {
        aspect-ratio: 16 / 9;
    }

    .sb-home-hero-actions {
        width: 100%;
    }

    .sb-home-btn {
        width: 100%;
    }

    .sb-home-link-light {
        width: 100%;
        text-align: center;
    }

    .sb-home-sale-media {
        min-height: 240px;
    }
}


/* ================================================================
   ANHP storefront products + text branding
   ================================================================ */
.site-branding .site-logo-text {
    text-decoration: none;
}

.site-branding .site-title-name {
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.sb-support-phone,
.footer-support-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-support-phone {
    margin-top: 14px;
    color: inherit;
    text-decoration: none;
    font-weight: 650;
}

.sb-home-products {
    padding: 8px 0 72px;
}

.sb-home-products-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.sb-home-products-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-accent-warm, #9a765e);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sb-home-products-head h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
}

.sb-home-products-head p {
    max-width: 650px;
    margin: 10px 0 0;
    color: var(--brand-muted, #6b6560);
}

.sb-home-products-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    color: var(--brand-dark, #1c1c1c);
    text-decoration: none;
    font-weight: 700;
}

.sb-home-product-loop ul.products,
.sb-home-product-loop ul.products.columns-1,
.sb-home-product-loop ul.products.columns-2,
.sb-home-product-loop ul.products.columns-3,
.sb-home-product-loop ul.products.columns-4,
.sb-home-product-loop ul.products.columns-5,
.sb-home-product-loop ul.products.columns-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

.sb-home-product-loop .product-card {
    min-width: 0;
}

@media (max-width: 1199px) {
    .sb-home-product-loop ul.products,
    .sb-home-product-loop ul.products.columns-1,
    .sb-home-product-loop ul.products.columns-2,
    .sb-home-product-loop ul.products.columns-3,
    .sb-home-product-loop ul.products.columns-4,
    .sb-home-product-loop ul.products.columns-5,
    .sb-home-product-loop ul.products.columns-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}

@media (max-width: 767px) {
    .sb-home-products {
        padding: 4px 0 48px;
    }

    .sb-home-products-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
    }

    .sb-home-products-head h2 {
        font-size: 30px;
    }

    .sb-home-products-all {
        font-size: 14px;
    }

    .sb-home-product-loop ul.products,
    .sb-home-product-loop ul.products.columns-1,
    .sb-home-product-loop ul.products.columns-2,
    .sb-home-product-loop ul.products.columns-3,
    .sb-home-product-loop ul.products.columns-4,
    .sb-home-product-loop ul.products.columns-5,
    .sb-home-product-loop ul.products.columns-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .site-branding .site-title-name {
        font-size: 17px !important;
    }
}

@media (max-width: 360px) {
    .sb-home-product-loop ul.products,
    .sb-home-product-loop ul.products.columns-1,
    .sb-home-product-loop ul.products.columns-2,
    .sb-home-product-loop ul.products.columns-3,
    .sb-home-product-loop ul.products.columns-4,
    .sb-home-product-loop ul.products.columns-5,
    .sb-home-product-loop ul.products.columns-6 {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
