﻿:root {
  --bg: #f8f1e6;
  --card: #ffffff;
  --text: #2f2215;
  --muted: #786653;
  --gold: #b6812d;
  --brown: #5d3b1f;
  --line: rgba(93, 59, 31, .14);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(135deg, #fff8e8, var(--bg));
  color: var(--text);
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
}
.site-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--brown);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.brand span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.top-nav a {
  color: var(--brown);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
}
.top-nav a:hover {
  background: rgba(182,129,45,.12);
}
.page {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 24px;
}
.dev-banner {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid rgba(182,129,45,.28);
  background: rgba(182,129,45,.1);
  border-radius: 18px;
  margin-bottom: 22px;
}
.dev-banner span {
  color: var(--muted);
}
.hero, .card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 12px 38px rgba(67,43,18,.08);
}
.hero h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 56px);
  color: var(--brown);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .08em;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.button {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--brown);
  color: white;
  text-decoration: none;
  font-weight: 800;
}
.button.secondary {
  background: rgba(93,59,31,.12);
  color: var(--brown);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0;
}
.card {
  margin-bottom: 18px;
}
.card h1, .card h2 {
  color: var(--brown);
  margin-top: 0;
}
.card p, li {
  line-height: 1.75;
  color: var(--muted);
}
code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(93,59,31,.08);
}
.site-footer {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 20px 24px 34px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .page {
    padding: 16px;
  }
}

/* STEP4BV_CH1_HOME_HERO_CAROUSEL_START */
.sm-home-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sm-home-hero {
    position: relative;
    min-height: clamp(560px, 76vh, 820px);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(67, 43, 18, .18);
    background: #4a240f;
    isolation: isolate;
}

.sm-home-carousel,
.sm-home-slide,
.sm-home-slide img,
.sm-home-hero-shade {
    position: absolute;
    inset: 0;
}

.sm-home-slide {
    margin: 0;
    opacity: 0;
    animation: smHomeHeroFade 12s infinite;
}

.sm-home-slide-two {
    animation-delay: 6s;
}

.sm-home-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.02);
}

.sm-home-hero-shade {
    z-index: 1;
    background:
        radial-gradient(circle at 76% 22%, rgba(255, 196, 106, .28), transparent 24%),
        linear-gradient(90deg, rgba(54, 24, 8, .92) 0%, rgba(68, 30, 9, .76) 38%, rgba(68, 30, 9, .28) 66%, rgba(68, 30, 9, .08) 100%),
        linear-gradient(0deg, rgba(30, 16, 8, .52), rgba(30, 16, 8, .04) 44%);
}

.sm-home-hero-content {
    position: relative;
    z-index: 2;
    width: min(590px, calc(100% - 48px));
    padding: clamp(42px, 7vw, 92px);
    color: #fff8e8;
}

.sm-home-kicker {
    margin: 0 0 14px;
    color: #f6bd69;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.sm-home-hero h1 {
    margin: 0;
    color: #fff8e8;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: .98;
    letter-spacing: .05em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .26);
}

.sm-home-lead {
    margin: 24px 0 0;
    max-width: 520px;
    color: rgba(255, 248, 232, .88);
    font-size: clamp(1rem, 1.65vw, 1.32rem);
    line-height: 1.9;
    font-weight: 650;
}

.sm-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.sm-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .06em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.sm-home-button:hover {
    transform: translateY(-2px);
}

.sm-home-button-primary {
    color: #3a1b0a;
    background: linear-gradient(135deg, #ffe1a5, #f09a45);
    box-shadow: 0 16px 32px rgba(240, 154, 69, .26);
}

.sm-home-button-secondary {
    color: #fff8e8;
    border: 1px solid rgba(255, 248, 232, .5);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.sm-home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.sm-home-trust-row span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 225, 165, .35);
    border-radius: 999px;
    color: rgba(255, 248, 232, .9);
    background: rgba(74, 36, 15, .42);
    font-size: .88rem;
    font-weight: 800;
}

.sm-home-natural-badge {
    position: absolute;
    right: clamp(24px, 6vw, 82px);
    bottom: clamp(24px, 5vw, 62px);
    z-index: 2;
    width: clamp(128px, 17vw, 220px);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    color: #ffe1a5;
    background: rgba(74, 31, 10, .94);
    border: 1px solid rgba(255, 225, 165, .28);
    box-shadow: 0 22px 46px rgba(38, 18, 8, .28);
}

.sm-home-natural-badge span {
    display: block;
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: .95;
    font-weight: 950;
    letter-spacing: .08em;
}

.sm-home-natural-badge strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(.88rem, 1.4vw, 1.18rem);
    letter-spacing: .18em;
}

.sm-home-section,
.sm-home-card {
    border: 1px solid rgba(154, 91, 32, .16);
    border-radius: 28px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 42px rgba(67, 43, 18, .08);
}

.sm-home-intro {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) 1fr;
    gap: clamp(20px, 4vw, 52px);
    padding: clamp(26px, 4vw, 48px);
}

.sm-home-section-heading h2,
.sm-home-card h2 {
    margin: 0;
    color: #4b2a12;
    line-height: 1.32;
}

.sm-home-section-heading h2 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.sm-home-intro p:not(.sm-home-kicker) {
    margin: 0;
    color: #765739;
    font-size: 1.04rem;
    line-height: 2;
    font-weight: 650;
}

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

.sm-home-card {
    padding: 26px;
}

.sm-home-card-label {
    margin: 0 0 10px;
    color: #d08a35;
    font-size: .75rem;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.sm-home-card h2 {
    font-size: 1.35rem;
}

.sm-home-card p:not(.sm-home-card-label) {
    color: #765739;
    line-height: 1.8;
    font-weight: 650;
}

.sm-home-card a {
    display: inline-flex;
    margin-top: 6px;
    color: #5d3518;
    font-weight: 950;
    text-decoration: none;
    border-bottom: 2px solid rgba(208, 138, 53, .4);
}

.sm-home-card-muted {
    background: linear-gradient(135deg, rgba(255, 248, 232, .94), rgba(255, 255, 255, .86));
}

@keyframes smHomeHeroFade {
    0% { opacity: 0; }
    6% { opacity: 1; }
    46% { opacity: 1; }
    56% { opacity: 0; }
    100% { opacity: 0; }
}

@media (max-width: 900px) {
    .sm-home-hero {
        min-height: 680px;
        border-radius: 26px;
    }

    .sm-home-hero-shade {
        background:
            linear-gradient(180deg, rgba(54, 24, 8, .86) 0%, rgba(54, 24, 8, .58) 48%, rgba(54, 24, 8, .24) 100%),
            linear-gradient(0deg, rgba(30, 16, 8, .5), rgba(30, 16, 8, .02));
    }

    .sm-home-hero-content {
        width: auto;
        padding: 34px 24px;
    }

    .sm-home-natural-badge {
        right: 22px;
        bottom: 22px;
    }

    .sm-home-intro,
    .sm-home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .sm-home-page {
        gap: 18px;
    }

    .sm-home-hero {
        min-height: 620px;
        border-radius: 22px;
    }

    .sm-home-actions {
        flex-direction: column;
    }

    .sm-home-button {
        width: 100%;
    }

    .sm-home-natural-badge {
        width: 118px;
    }

    .sm-home-intro,
    .sm-home-card {
        border-radius: 22px;
        padding: 22px;
    }
}
/* STEP4BV_CH1_HOME_HERO_CAROUSEL_END */
/* STEP4BW_CH1_HOME_HERO_VISUAL_FIX_START */
/* Cache-bust partner patch: Layout now loads /css/site.css?v=step4bw-ch1.
   This block hardens the hero so banners stay inside one large carousel frame. */
.sm-home-page {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.sm-home-hero {
    display: block;
    position: relative;
    width: 100%;
    max-width: 1180px;
    min-height: clamp(620px, 78vh, 860px);
    margin: 32px auto 24px;
    overflow: hidden;
    isolation: isolate;
}

.sm-home-carousel {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    z-index: 0;
}

.sm-home-slide {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.sm-home-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.sm-home-slide-two img {
    object-position: center top;
}

.sm-home-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.sm-home-hero-content {
    position: relative;
    z-index: 2;
}

.sm-home-natural-badge {
    z-index: 3;
}

@media (max-width: 900px) {
    .sm-home-hero {
        min-height: 680px;
        margin-top: 22px;
    }
}

@media (max-width: 560px) {
    .sm-home-page {
        width: 100%;
    }

    .sm-home-hero {
        min-height: 620px;
        margin-top: 16px;
    }
}
/* STEP4BW_CH1_HOME_HERO_VISUAL_FIX_END */

/* STEP4CC_CH2_FIX10_HOME_CAROUSEL_DISPLAY_SECONDS_START */
.sm-home-carousel[data-sm-home-carousel="true"] .sm-home-slide {
    animation: none;
    opacity: 0;
    transition: opacity .72s ease-in-out;
}

.sm-home-carousel[data-sm-home-carousel="true"] .sm-home-slide.is-active {
    opacity: 1;
}
/* STEP4CC_CH2_FIX10_HOME_CAROUSEL_DISPLAY_SECONDS_END */

/* Step4CD-CH2 Homepage Visual Beautify START */
body.sm-home-visual-page {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 212, 143, 0.48), transparent 30%),
        radial-gradient(circle at 92% 18%, rgba(255, 163, 92, 0.28), transparent 32%),
        linear-gradient(180deg, #fff7ec 0%, #f8e3c3 46%, #fff9f0 100%);
    color: #3d2618;
}

body.sm-home-visual-page main,
body.sm-home-visual-page .container {
    background: transparent;
}

body.sm-home-visual-page .sm-home-carousel {
    width: min(1160px, calc(100% - 40px));
    margin: 30px auto 28px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, #fffaf3 0%, #ffe5bd 45%, #ffb66f 100%);
    box-shadow: 0 24px 70px rgba(112, 58, 24, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.78);
}

body.sm-home-visual-page .sm-home-slide {
    min-height: 320px;
    border-radius: 34px;
    overflow: hidden;
}

body.sm-home-visual-page .sm-home-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.sm-home-visual-page .sm-home-boss-preview {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto 72px;
}

body.sm-home-visual-page .sm-home-section-head {
    margin: 0 0 20px;
}

body.sm-home-visual-page .sm-home-section-head-centered {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 26px;
}

body.sm-home-visual-page .sm-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d97925;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.sm-home-visual-page .sm-home-section-head h2,
body.sm-home-visual-page .sm-home-about-strip h2 {
    margin: 8px 0 8px;
    color: #3b2113;
    font-weight: 900;
    letter-spacing: -0.04em;
}

body.sm-home-visual-page .sm-home-section-head p,
body.sm-home-visual-page .sm-home-about-strip p {
    color: rgba(61, 38, 24, 0.72);
    line-height: 1.85;
}

body.sm-home-visual-page .sm-home-feature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 28px 0 36px;
}

body.sm-home-visual-page .sm-home-feature-card {
    position: relative;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    border-radius: 30px;
    overflow: hidden;
    background: #fffaf4;
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 48px rgba(117, 65, 31, 0.14);
}

body.sm-home-visual-page .sm-home-feature-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -58px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
}

body.sm-home-visual-page .sm-home-feature-card-nuts {
    background: linear-gradient(135deg, #fff6e8 0%, #ffd49a 100%);
}

body.sm-home-visual-page .sm-home-feature-card-clean {
    background: linear-gradient(135deg, #fffdf7 0%, #f6d7a8 48%, #ffb26d 100%);
}

body.sm-home-visual-page .sm-home-feature-kicker {
    display: inline-flex;
    color: #9d5420;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
}

body.sm-home-visual-page .sm-home-feature-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    line-height: 1.16;
    color: #3d2111;
    font-weight: 950;
}

body.sm-home-visual-page .sm-home-feature-card p {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0;
    color: rgba(61, 33, 17, 0.72);
    line-height: 1.8;
}

body.sm-home-visual-page .sm-home-feature-link {
    position: relative;
    z-index: 1;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 11px 18px;
    border-radius: 999px;
    color: #fff;
    background: #6e3b1f;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(75, 38, 18, 0.18);
}

body.sm-home-visual-page .sm-home-product-section {
    margin-top: 40px;
    padding: 30px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 50px rgba(112, 58, 24, 0.10);
    backdrop-filter: blur(10px);
}

body.sm-home-visual-page .sm-home-product-section-clean {
    background: rgba(255, 249, 239, 0.68);
}

body.sm-home-visual-page .sm-home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

body.sm-home-visual-page .sm-product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: #fffaf5;
    border: 1px solid rgba(117, 65, 31, 0.08);
    box-shadow: 0 14px 34px rgba(117, 65, 31, 0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.sm-home-visual-page .sm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(117, 65, 31, 0.16);
}

body.sm-home-visual-page .sm-product-visual {
    min-height: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.22rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 12px rgba(70, 35, 12, 0.18);
}

body.sm-home-visual-page .sm-product-visual-nut { background: linear-gradient(135deg, #c47a35 0%, #f0b35b 100%); }
body.sm-home-visual-page .sm-product-visual-gift { background: linear-gradient(135deg, #9b4f26 0%, #df8d3d 100%); }
body.sm-home-visual-page .sm-product-visual-food { background: linear-gradient(135deg, #b96b2e 0%, #f4c06d 100%); }
body.sm-home-visual-page .sm-product-visual-premium { background: linear-gradient(135deg, #6c3a1e 0%, #c98242 100%); }
body.sm-home-visual-page .sm-product-visual-3m { background: linear-gradient(135deg, #e44d2e 0%, #ff985e 100%); }
body.sm-home-visual-page .sm-product-visual-kitchen { background: linear-gradient(135deg, #bf6430 0%, #f3a24f 100%); }
body.sm-home-visual-page .sm-product-visual-living { background: linear-gradient(135deg, #a85b2b 0%, #efb66e 100%); }
body.sm-home-visual-page .sm-product-visual-office { background: linear-gradient(135deg, #7f4624 0%, #d88d45 100%); }

body.sm-home-visual-page .sm-product-body {
    padding: 18px 18px 20px;
}

body.sm-home-visual-page .sm-product-tag {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff0dc;
    color: #b76324;
    font-size: 0.78rem;
    font-weight: 800;
}

body.sm-home-visual-page .sm-product-body h3 {
    margin: 0 0 8px;
    color: #3d2111;
    font-size: 1.08rem;
    font-weight: 900;
}

body.sm-home-visual-page .sm-product-body p {
    margin: 0;
    color: rgba(61, 33, 17, 0.68);
    font-size: 0.94rem;
    line-height: 1.75;
}

body.sm-home-visual-page .sm-home-about-strip {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 26px;
    align-items: center;
    margin-top: 42px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 225, 186, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(112, 58, 24, 0.10);
}

@media (max-width: 980px) {
    body.sm-home-visual-page .sm-home-feature-row,
    body.sm-home-visual-page .sm-home-about-strip {
        grid-template-columns: 1fr;
    }

    body.sm-home-visual-page .sm-home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.sm-home-visual-page .sm-home-carousel,
    body.sm-home-visual-page .sm-home-boss-preview {
        width: calc(100% - 24px);
    }

    body.sm-home-visual-page .sm-home-carousel,
    body.sm-home-visual-page .sm-home-slide {
        min-height: 220px;
        border-radius: 24px;
    }

    body.sm-home-visual-page .sm-home-feature-card,
    body.sm-home-visual-page .sm-home-product-section,
    body.sm-home-visual-page .sm-home-about-strip {
        padding: 22px;
        border-radius: 24px;
    }

    body.sm-home-visual-page .sm-home-product-grid {
        grid-template-columns: 1fr;
    }
}
/* Step4CD-CH2 Homepage Visual Beautify END */

/* Step4CD-CH5 Homepage Visual Tune START */
body.sm-home-visual-page header,
body.sm-home-visual-page .navbar,
body.sm-home-visual-page .site-header,
body.sm-home-visual-page .sm-header,
body.sm-home-visual-page .shop-header,
body.sm-home-visual-page .topbar {
    position: sticky;
    top: 0;
    z-index: 5000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    isolation: isolate;
}

body.sm-home-visual-page .sm-home-carousel {
    position: relative;
    z-index: 1;
    margin: 18px auto 24px !important;
    border-radius: 24px !important;
    max-height: 330px;
}

body.sm-home-visual-page .sm-home-slide {
    min-height: 0 !important;
    height: clamp(170px, 18vw, 310px) !important;
    max-height: 310px !important;
    border-radius: 24px !important;
}

body.sm-home-visual-page .sm-home-slide img,
body.sm-home-visual-page .sm-home-slide picture,
body.sm-home-visual-page .sm-home-slide picture img {
    width: 100% !important;
    height: 100% !important;
    max-height: 310px !important;
    object-fit: cover !important;
}

body.sm-home-visual-page .sm-home-boss-preview {
    position: relative;
    z-index: 0;
    margin-top: 12px;
}

@media (max-width: 640px) {
    body.sm-home-visual-page .sm-home-slide {
        height: clamp(145px, 40vw, 210px) !important;
        max-height: 210px !important;
    }

    body.sm-home-visual-page .sm-home-slide img,
    body.sm-home-visual-page .sm-home-slide picture,
    body.sm-home-visual-page .sm-home-slide picture img {
        max-height: 210px !important;
    }
}
/* Step4CD-CH5 Homepage Visual Tune END */

/* Step4CD-CH5-Fix2 Hero Slim Card START */
body.sm-home-visual-page header,
body.sm-home-visual-page .navbar,
body.sm-home-visual-page .site-header,
body.sm-home-visual-page .sm-header,
body.sm-home-visual-page .shop-header,
body.sm-home-visual-page .topbar {
    position: sticky;
    top: 0;
    z-index: 9000 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(92, 52, 23, 0.08);
}

body.sm-home-visual-page .sm-home-carousel {
    width: min(1120px, calc(100% - 44px)) !important;
    margin: 28px auto 34px !important;
    padding: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #fffaf2 !important;
    border: 1px solid rgba(116, 67, 30, 0.14) !important;
    box-shadow: 0 18px 44px rgba(92, 52, 23, 0.16) !important;
    max-height: none !important;
    position: relative;
    z-index: 1;
}

body.sm-home-visual-page .sm-home-slide {
    min-height: 0 !important;
    height: clamp(240px, 23vw, 330px) !important;
    max-height: 330px !important;
    border-radius: 22px !important;
    background: #fffaf2 !important;
    overflow: hidden !important;
}

body.sm-home-visual-page .sm-home-slide::before,
body.sm-home-visual-page .sm-home-slide::after {
    opacity: 0 !important;
    background: transparent !important;
}

body.sm-home-visual-page .sm-home-slide img,
body.sm-home-visual-page .sm-home-slide picture,
body.sm-home-visual-page .sm-home-slide picture img {
    width: 100% !important;
    height: 100% !important;
    max-height: 330px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fffaf2 !important;
    display: block !important;
}

body.sm-home-visual-page .sm-home-slide[style*="background"],
body.sm-home-visual-page .sm-home-slide .sm-home-slide-bg,
body.sm-home-visual-page .sm-home-slide .sm-slide-bg {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: #fffaf2 !important;
}

body.sm-home-visual-page .sm-home-slide h1,
body.sm-home-visual-page .sm-home-slide .display-1,
body.sm-home-visual-page .sm-home-slide .display-2,
body.sm-home-visual-page .sm-home-slide .hero-title {
    font-size: clamp(1.9rem, 3vw, 3.25rem) !important;
    line-height: 1.08 !important;
}

body.sm-home-visual-page .sm-home-slide p,
body.sm-home-visual-page .sm-home-slide .hero-subtitle {
    font-size: clamp(0.92rem, 1.25vw, 1.1rem) !important;
    line-height: 1.65 !important;
}

body.sm-home-visual-page .sm-home-slide .btn,
body.sm-home-visual-page .sm-home-slide a {
    position: relative;
    z-index: 2;
}

body.sm-home-visual-page .sm-home-boss-preview {
    margin-top: 8px !important;
}

@media (max-width: 768px) {
    body.sm-home-visual-page .sm-home-carousel {
        width: calc(100% - 24px) !important;
        margin-top: 18px !important;
        border-radius: 18px !important;
    }

    body.sm-home-visual-page .sm-home-slide {
        height: clamp(170px, 43vw, 230px) !important;
        max-height: 230px !important;
        border-radius: 18px !important;
    }

    body.sm-home-visual-page .sm-home-slide img,
    body.sm-home-visual-page .sm-home-slide picture,
    body.sm-home-visual-page .sm-home-slide picture img {
        max-height: 230px !important;
    }
}
/* Step4CD-CH5-Fix2 Hero Slim Card END */

/* Step4CD-CH5-Fix3 Static Reference Hero START */
.sm-reference-hero {
    width: min(1120px, calc(100% - 44px));
    margin: 28px auto 26px;
    position: relative;
    z-index: 1;
}

.sm-reference-hero-card {
    min-height: 280px;
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    align-items: center;
    gap: 26px;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 78% 18%, rgba(222, 183, 113, 0.22), transparent 24%),
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,252,246,0.98) 48%, rgba(255,246,229,0.98) 100%);
    border: 1px solid rgba(116, 67, 30, 0.14);
    box-shadow: 0 18px 44px rgba(92, 52, 23, 0.16);
    position: relative;
}

.sm-reference-hero-card::before,
.sm-reference-hero-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border: 2px solid rgba(174, 133, 66, 0.18);
    border-radius: 50% 0 50% 0;
    transform: rotate(18deg);
    pointer-events: none;
}

.sm-reference-hero-card::before {
    right: 210px;
    top: -48px;
}

.sm-reference-hero-card::after {
    right: 0;
    bottom: -72px;
    transform: rotate(-18deg);
}

.sm-reference-hero-copy {
    padding: 42px 0 42px 52px;
    position: relative;
    z-index: 2;
}

.sm-reference-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: #9f5628;
    font-weight: 900;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
}

.sm-reference-hero-copy h1 {
    margin: 0;
    color: #3d180d;
    font-size: clamp(2rem, 3.45vw, 3.75rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.sm-reference-hero-copy p {
    max-width: 520px;
    margin: 18px 0 0;
    color: rgba(61, 24, 13, 0.76);
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.85;
}

.sm-reference-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.sm-reference-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(92, 52, 23, 0.10);
}

.sm-reference-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #8a341f, #b75a2c);
}

.sm-reference-btn-ghost {
    color: #7a3c20;
    background: #fff8ee;
    border: 1px solid rgba(122, 60, 32, 0.18);
}

.sm-reference-hero-art {
    min-height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sm-reference-product-box {
    width: min(330px, 78%);
    aspect-ratio: 1.55 / 1;
    position: relative;
    border-radius: 16px;
    background:
        linear-gradient(90deg, #b52f2c 0 29%, #d9b36a 29% 70%, #b52f2c 70% 100%);
    box-shadow:
        0 22px 34px rgba(70, 35, 15, 0.22),
        inset 0 0 0 1px rgba(255,255,255,0.42);
    transform: rotate(7deg);
}

.sm-reference-product-box::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 245, 220, 0.62);
    border-radius: 10px;
}

.sm-reference-box-band {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #532612;
    font-size: clamp(1.3rem, 2.1vw, 2rem);
    font-weight: 950;
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
}

.sm-reference-box-title {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: #ffe6bd;
    font-weight: 900;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
}

.sm-reference-box-mark {
    position: absolute;
    right: 18px;
    top: 16px;
    color: #ffe6bd;
    font-weight: 900;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.sm-reference-badge {
    position: absolute;
    right: 42px;
    top: 30px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff9e8;
    background: linear-gradient(135deg, #a46a2a, #c99345);
    border: 3px solid rgba(255, 247, 224, 0.88);
    box-shadow: 0 10px 20px rgba(92, 52, 23, 0.16);
    font-weight: 950;
    line-height: 1;
}

.sm-reference-badge span {
    margin-top: 4px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.sm-reference-leaf {
    position: absolute;
    width: 118px;
    height: 118px;
    border: 2px solid rgba(178, 139, 67, 0.22);
    border-radius: 70% 0 70% 0;
    transform: rotate(18deg);
}

.sm-reference-leaf-a {
    right: 330px;
    top: 4px;
}

.sm-reference-leaf-b {
    right: 18px;
    bottom: 20px;
    transform: rotate(-32deg);
}

body.sm-home-visual-page .sm-home-carousel {
    display: none !important;
}

body.sm-home-visual-page header,
body.sm-home-visual-page .navbar,
body.sm-home-visual-page .site-header,
body.sm-home-visual-page .sm-header,
body.sm-home-visual-page .shop-header,
body.sm-home-visual-page .topbar {
    z-index: 9000 !important;
}

@media (max-width: 860px) {
    .sm-reference-hero-card {
        grid-template-columns: 1fr;
    }

    .sm-reference-hero-copy {
        padding: 34px 28px 8px;
    }

    .sm-reference-hero-art {
        min-height: 210px;
    }
}

@media (max-width: 640px) {
    .sm-reference-hero {
        width: calc(100% - 24px);
        margin-top: 18px;
    }

    .sm-reference-hero-card {
        border-radius: 18px;
    }

    .sm-reference-hero-copy h1 {
        font-size: 2rem;
    }

    .sm-reference-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
/* Step4CD-CH5-Fix3 Static Reference Hero END */

/* Step4CD-CH5-Fix4 Move Carousel Into Hero START */
.sm-reference-hero-card {
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr) !important;
    min-height: 300px;
}

.sm-reference-hero-art {
    min-height: 300px !important;
    padding: 24px 34px 24px 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sm-reference-hero-media {
    width: min(390px, 100%);
    aspect-ratio: 1.48 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: #fffaf2;
    border: 1px solid rgba(116, 67, 30, 0.14);
    box-shadow: 0 18px 36px rgba(92, 52, 23, 0.16);
    position: relative;
    z-index: 5;
}

body.sm-reference-carousel-ready .sm-reference-product-box,
body.sm-reference-carousel-ready .sm-reference-badge,
body.sm-reference-carousel-ready .sm-reference-leaf {
    display: none !important;
}

body.sm-home-visual-page .sm-reference-hero-media .sm-home-carousel,
body.sm-home-visual-page .sm-reference-hero-media .sm-reference-carousel {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 18px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fffaf2 !important;
    overflow: hidden !important;
}

body.sm-home-visual-page .sm-reference-hero-media .sm-home-slide {
    display: none;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 18px !important;
    background-color: #fffaf2 !important;
    overflow: hidden !important;
}

body.sm-home-visual-page .sm-reference-hero-media .sm-home-slide.is-active,
body.sm-home-visual-page .sm-reference-hero-media .sm-home-slide.active,
body.sm-home-visual-page .sm-reference-hero-media .sm-home-slide:first-child {
    display: block !important;
}

body.sm-home-visual-page .sm-reference-hero-media .sm-home-slide img,
body.sm-home-visual-page .sm-reference-hero-media .sm-home-slide picture,
body.sm-home-visual-page .sm-reference-hero-media .sm-home-slide picture img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: #fffaf2 !important;
    display: block !important;
}

body.sm-home-visual-page > .sm-home-carousel,
body.sm-home-visual-page main > .sm-home-carousel,
body.sm-home-visual-page .sm-home-boss-preview + .sm-home-carousel {
    display: none !important;
}

@media (max-width: 860px) {
    .sm-reference-hero-card {
        grid-template-columns: 1fr !important;
    }

    .sm-reference-hero-art {
        padding: 0 28px 28px;
    }

    .sm-reference-hero-media {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}
/* Step4CD-CH5-Fix4 Move Carousel Into Hero END */

/* Step4CD-CH5-Fix5 Hide Legacy Standalone Carousel START */
body.sm-home-visual-page .sm-home-carousel:not(.sm-reference-carousel) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.sm-home-visual-page .sm-reference-hero-media .sm-home-carousel,
body.sm-home-visual-page .sm-reference-hero-media .sm-reference-carousel {
    display: block !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.sm-home-visual-page .sm-legacy-carousel-hidden,
body.sm-home-visual-page .sm-legacy-carousel-shell-hidden {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.sm-home-visual-page .sm-reference-hero-media .sm-home-slide {
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
}
/* Step4CD-CH5-Fix5 Hide Legacy Standalone Carousel END */

/* Step4CD-CH5-Fix6 Force Hide Legacy Hero Shell START */
body.sm-home-visual-page .sm-force-hide-legacy-hero {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.sm-home-visual-page .sm-reference-hero,
body.sm-home-visual-page .sm-reference-hero * {
    opacity: initial;
    pointer-events: auto;
}

body.sm-home-visual-page .sm-reference-hero-media,
body.sm-home-visual-page .sm-reference-hero-media .sm-home-carousel,
body.sm-home-visual-page .sm-reference-hero-media .sm-home-slide {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
/* Step4CD-CH5-Fix6 Force Hide Legacy Hero Shell END */

/* Step4CE-CH2 Product Cards Polish START */
body.sm-home-visual-page .sm-ce-product-polish-area {
    width: min(1120px, calc(100% - 44px));
    margin: 34px auto 58px !important;
    padding: 30px !important;
    border-radius: 26px;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 226, 172, 0.38), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,247,235,0.72));
    border: 1px solid rgba(126, 73, 34, 0.12);
    box-shadow: 0 18px 46px rgba(92, 52, 23, 0.10);
}

body.sm-home-visual-page .sm-ce-product-polish-area h2,
body.sm-home-visual-page .sm-ce-product-polish-area h3 {
    color: #3d180d;
    letter-spacing: -0.03em;
}

body.sm-home-visual-page .sm-ce-product-polish-area p {
    color: rgba(61, 24, 13, 0.74);
}

body.sm-home-visual-page .sm-ce-product-polish-area :where(.row, .grid, [class*=grid], [class*=Grid], [class*=list], [class*=List]) {
    gap: 20px !important;
}

body.sm-home-visual-page .sm-ce-product-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 210px;
    padding: 22px 20px 20px !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #fffdf8 0%, #fff6e8 100%) !important;
    border: 1px solid rgba(116, 67, 30, 0.12) !important;
    box-shadow: 0 16px 34px rgba(92, 52, 23, 0.10) !important;
    transform: translateY(0);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.sm-home-visual-page .sm-ce-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(92, 52, 23, 0.16) !important;
    border-color: rgba(153, 86, 40, 0.22) !important;
}

body.sm-home-visual-page .sm-ce-product-card::before {
    content: "";
    display: block;
    width: 100%;
    height: 118px;
    margin: -6px 0 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 64% 40%, rgba(255,255,255,0.72), transparent 28%),
        linear-gradient(135deg, #dca55b, #7f321e);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
}

body.sm-home-visual-page .sm-ce-product-card::after {
    content: "";
    position: absolute;
    right: -32px;
    top: 28px;
    width: 112px;
    height: 112px;
    border: 2px solid rgba(255,255,255,0.34);
    border-radius: 55% 0 55% 0;
    transform: rotate(22deg);
    z-index: -1;
}

body.sm-home-visual-page .sm-ce-product-card-3m::before {
    background:
        radial-gradient(circle at 30% 28%, rgba(255,255,255,0.86), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f7efe2 42%, #cf362d 43%, #9d201c 100%);
}

body.sm-home-visual-page .sm-ce-product-card-3m {
    background: linear-gradient(180deg, #fffefe 0%, #fff5ef 100%) !important;
}

body.sm-home-visual-page .sm-ce-product-card-gift::before {
    background:
        linear-gradient(90deg, #a62b23 0 30%, #d7aa5d 30% 70%, #a62b23 70% 100%);
}

body.sm-home-visual-page .sm-ce-product-card-nuts::before {
    background:
        radial-gradient(circle at 28% 55%, #f5c77b 0 12%, transparent 13%),
        radial-gradient(circle at 50% 45%, #b96b2e 0 10%, transparent 11%),
        radial-gradient(circle at 68% 58%, #7f321e 0 11%, transparent 12%),
        linear-gradient(135deg, #f8d894, #a65328);
}

body.sm-home-visual-page .sm-ce-product-card h3,
body.sm-home-visual-page .sm-ce-product-card h4,
body.sm-home-visual-page .sm-ce-product-card .card-title {
    color: #3d180d !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em;
    margin-bottom: 10px !important;
}

body.sm-home-visual-page .sm-ce-product-card p,
body.sm-home-visual-page .sm-ce-product-card .card-text {
    color: rgba(61, 24, 13, 0.72) !important;
    line-height: 1.72;
}

body.sm-home-visual-page .sm-ce-product-card img {
    width: 100%;
    height: 148px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: 0 12px 22px rgba(92, 52, 23, 0.10);
}

body.sm-home-visual-page .sm-ce-product-action,
body.sm-home-visual-page .sm-ce-product-card a.btn,
body.sm-home-visual-page .sm-ce-product-card button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 15px !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #8a341f, #b75a2c) !important;
    border: 0 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 20px rgba(92, 52, 23, 0.14);
}

@media (max-width: 860px) {
    body.sm-home-visual-page .sm-ce-product-polish-area {
        width: calc(100% - 24px);
        padding: 20px !important;
        border-radius: 20px;
    }

    body.sm-home-visual-page .sm-ce-product-card {
        min-height: 190px;
        border-radius: 18px !important;
    }
}

@media (max-width: 640px) {
    body.sm-home-visual-page .sm-ce-product-polish-area {
        margin-top: 22px !important;
        margin-bottom: 36px !important;
    }

    body.sm-home-visual-page .sm-ce-product-card::before {
        height: 96px;
    }
}
/* Step4CE-CH2 Product Cards Polish END */

