: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 */
/* ==========================================================
   STEP4FE_CH3_HOMEPAGE_V2_START
   New public homepage visual system
   ========================================================== */

body:has(.sm-home-v2) {
    background: #fffaf5;
}

body:has(.sm-home-v2) main:not(.sm-home-v2) {
    max-width: none;
}

body.sm-public-shell {
    --sm-v2-orange: #ef681a;
    --sm-v2-orange-dark: #b9440f;
    --sm-v2-brown: #542411;
    --sm-v2-brown-soft: #7d4226;
    --sm-v2-cream: #fff7ed;
    --sm-v2-surface: #ffffff;
    --sm-v2-line: rgba(92, 43, 20, .14);
    --sm-v2-shadow: 0 22px 60px rgba(89, 42, 20, .13);

    padding-top: 82px;
    background: #fffaf5;
}

@media (max-width: 760px) {
    body.sm-public-shell {
        padding-top: 68px;
    }
}
.sm-home-v2 {
    --sm-v2-orange: #ef681a;
    --sm-v2-orange-dark: #b9440f;
    --sm-v2-brown: #542411;
    --sm-v2-brown-soft: #7d4226;
    --sm-v2-cream: #fff7ed;
    --sm-v2-surface: #ffffff;
    --sm-v2-line: rgba(92, 43, 20, .14);
    --sm-v2-shadow: 0 22px 60px rgba(89, 42, 20, .13);

    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 72px;
    overflow: clip;
    color: #3b2418;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(242, 153, 84, .10),
            transparent 28%),
        #fffaf5;
}

.sm-home-v2 *,
.sm-home-v2 *::before,
.sm-home-v2 *::after {
    box-sizing: border-box;
}

.sm-home-v2 a {
    color: inherit;
}

body.sm-public-shell .sm-home-v2-masthead {
    position: fixed;
    z-index: 70;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    min-height: 82px;
    padding-right: max(24px, calc((100vw - 1720px) / 2));
    padding-left: max(24px, calc((100vw - 1720px) / 2));
    border-bottom: 1px solid rgba(92, 43, 20, .10);
    background: rgba(255, 250, 245, .94);
    box-shadow: 0 8px 30px rgba(84, 36, 17, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 760px) {
    body.sm-public-shell .sm-home-v2-masthead {
        width: calc(100% - 28px);
        min-height: 68px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding-right: 14px;
        padding-left: 14px;
    }
}
.sm-home-v2-masthead {
    position: relative;
    z-index: 20;
    width: min(1720px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, auto) 1fr auto;
    align-items: center;
    gap: 28px;
}

.sm-home-v2-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    text-decoration: none;
}

.sm-home-v2-brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            #ff8b2d 0%,
            #dd4514 62%,
            #70200f 100%);
    box-shadow: 0 10px 24px rgba(221, 69, 20, .24);
}

.sm-home-v2-brand-mark::after {
    content: "";
    position: absolute;
    inset: 7px 5px 7px 15px;
    border-radius: 50%;
    background: #fffaf5;
}

.sm-home-v2-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sm-home-v2-brand-copy strong {
    overflow: hidden;
    color: var(--sm-v2-brown);
    font-size: clamp(16px, 1.25vw, 22px);
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sm-home-v2-brand-copy small {
    margin-top: 3px;
    color: rgba(84, 36, 17, .58);
    font-size: 9px;
    letter-spacing: .11em;
    white-space: nowrap;
}

.sm-home-v2-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 38px);
}

.sm-home-v2-nav a {
    position: relative;
    padding: 30px 0;
    color: #5b3827;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.sm-home-v2-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--sm-v2-orange);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.sm-home-v2-nav a:hover::after,
.sm-home-v2-nav a:focus-visible::after {
    transform: scaleX(1);
}

.sm-home-v2-menu-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid var(--sm-v2-line);
    border-radius: 999px;
    color: var(--sm-v2-brown);
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 10px 30px rgba(84, 36, 17, .08);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.sm-home-v2-hero {
    width: 100%;
}

.sm-home-v2-carousel {
    position: relative;
    min-height: clamp(420px, 38vw, 650px);
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #4d1608,
            #9e3514 55%,
            #e87926);
}

.sm-home-v2-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition:
        opacity .7s ease,
        visibility .7s ease,
        transform 1.2s ease;
}

.sm-home-v2-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.sm-home-v2-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sm-home-v2-slide-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(49, 13, 4, .90) 0%,
            rgba(70, 19, 5, .70) 35%,
            rgba(70, 19, 5, .22) 69%,
            rgba(42, 9, 2, .20) 100%);
}

.sm-home-v2-slide-content {
    position: relative;
    z-index: 2;
    width: min(1720px, calc(100% - 96px));
    margin: 0 auto;
    padding-right: min(48vw, 760px);
    color: #fff;
}

.sm-home-v2-kicker {
    margin: 0 0 14px;
    color: #ffcfa7;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sm-home-v2-slide-content h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(42px, 5vw, 82px);
    line-height: 1.04;
    letter-spacing: -.05em;
    text-shadow: 0 8px 26px rgba(0, 0, 0, .28);
}

.sm-home-v2-lead {
    max-width: 650px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .90);
    font-size: clamp(17px, 1.45vw, 23px);
    line-height: 1.75;
}

.sm-home-v2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.sm-home-v2-primary-button,
.sm-home-v2-secondary-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.sm-home-v2-primary-button {
    color: #fff;
    background: var(--sm-v2-orange);
    box-shadow: 0 14px 34px rgba(239, 104, 26, .34);
}

.sm-home-v2-secondary-button {
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(10px);
}

.sm-home-v2-primary-button:hover,
.sm-home-v2-secondary-button:hover {
    transform: translateY(-2px);
}

.sm-home-v2-carousel-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(41, 13, 5, .38);
    backdrop-filter: blur(8px);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.sm-home-v2-carousel-arrow-prev {
    left: 28px;
}

.sm-home-v2-carousel-arrow-next {
    right: 28px;
}

.sm-home-v2-carousel-dots {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 26px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sm-home-v2-carousel-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition:
        width .2s ease,
        background .2s ease;
}

.sm-home-v2-carousel-dots button.is-active {
    width: 30px;
    background: #fff;
}

.sm-home-v2-slide-fallback {
    position: relative;
    min-height: clamp(420px, 38vw, 650px);
    opacity: 1;
    visibility: visible;
    background:
        radial-gradient(
            circle at 76% 46%,
            rgba(255, 195, 124, .54),
            transparent 25%),
        linear-gradient(
            135deg,
            #4d1608,
            #9e3514 55%,
            #e87926);
}

.sm-home-v2-section {
    width: min(1600px, calc(100% - 64px));
    margin: 0 auto;
    padding: 76px 0 0;
}

.sm-home-v2-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.sm-home-v2-section-heading h2 {
    margin: 4px 0 8px;
    color: var(--sm-v2-brown);
    font-size: clamp(30px, 3vw, 48px);
    letter-spacing: -.04em;
}

.sm-home-v2-section-heading p {
    max-width: 760px;
    margin: 0;
    color: rgba(59, 36, 24, .68);
    line-height: 1.8;
}

.sm-home-v2-section-kicker {
    color: var(--sm-v2-orange) !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

.sm-home-v2-text-link {
    flex: 0 0 auto;
    color: var(--sm-v2-brown);
    font-weight: 900;
    text-decoration: none;
}

.sm-home-v2-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sm-home-v2-category-card {
    position: relative;
    min-height: 220px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(110px, .8fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--sm-v2-line);
    border-radius: 28px;
    color: var(--sm-v2-brown);
    background:
        linear-gradient(
            135deg,
            #fff 0%,
            #fff6eb 100%);
    box-shadow: 0 18px 44px rgba(84, 36, 17, .08);
    text-decoration: none;
    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.sm-home-v2-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sm-v2-shadow);
}

.sm-home-v2-category-copy {
    position: relative;
    z-index: 2;
    padding: 28px 8px 28px 28px;
}

.sm-home-v2-category-copy > span {
    color: var(--sm-v2-orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}

.sm-home-v2-category-copy h3 {
    margin: 10px 0 8px;
    font-size: clamp(21px, 1.6vw, 29px);
}

.sm-home-v2-category-copy p {
    margin: 0 0 18px;
    color: rgba(59, 36, 24, .66);
    line-height: 1.65;
}

.sm-home-v2-category-copy strong {
    color: var(--sm-v2-orange-dark);
}

.sm-home-v2-category-card img,
.sm-home-v2-category-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.sm-home-v2-category-placeholder {
    display: grid;
    place-items: center;
    color: rgba(128, 55, 20, .35);
    background:
        radial-gradient(
            circle,
            rgba(239, 104, 26, .22),
            transparent 68%);
    font-size: 38px;
    font-weight: 900;
}

.sm-home-v2-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sm-home-v2-preview-card {
    overflow: hidden;
    border: 1px solid var(--sm-v2-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(84, 36, 17, .08);
}

.sm-home-v2-preview-image {
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    color: rgba(84, 36, 17, .42);
    background:
        radial-gradient(
            circle at 50% 46%,
            rgba(239, 104, 26, .20),
            transparent 34%),
        #fff4e8;
    font-weight: 900;
}

.sm-home-v2-preview-body {
    padding: 22px;
}

.sm-home-v2-preview-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: var(--sm-v2-orange);
    font-size: 12px;
    font-weight: 900;
}

.sm-home-v2-preview-body h3 {
    margin: 13px 0 7px;
    color: var(--sm-v2-brown);
    font-size: 20px;
}

.sm-home-v2-preview-body p {
    min-height: 48px;
    margin: 0;
    color: rgba(59, 36, 24, .62);
    line-height: 1.6;
}

.sm-home-v2-preview-price {
    margin-top: 18px;
    color: var(--sm-v2-brown);
    font-size: 22px;
    font-weight: 900;
}

.sm-home-v2-preview-button {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    border-radius: 999px;
    color: #fff;
    background: rgba(239, 104, 26, .70);
    font-weight: 900;
}

.sm-home-v2-benefits {
    width: min(1600px, calc(100% - 64px));
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--sm-v2-line);
    border-radius: 24px;
    background: #fff6eb;
}

.sm-home-v2-benefits > div {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 22px 30px;
    border-right: 1px solid var(--sm-v2-line);
}

.sm-home-v2-benefits > div:last-child {
    border-right: 0;
}

.sm-home-v2-benefits strong {
    color: var(--sm-v2-brown);
    font-size: 18px;
}

.sm-home-v2-benefits span {
    color: rgba(59, 36, 24, .62);
}

/* STEP4FJ_CH8_FLOATING_BUTTONS_START */
.sm-home-v2-floating-actions {
    position: fixed;
    z-index: 45;
    right: 20px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.sm-home-v2-floating-button {
    min-width: 104px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition:
        background-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.sm-home-v2-floating-button:hover {
    transform: translateY(-1px);
}

.sm-home-v2-floating-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .96);
    outline-offset: 3px;
}

.sm-home-v2-floating-button--menu {
    background: var(--sm-v2-orange);
    box-shadow: 0 18px 40px rgba(137, 53, 16, .34);
}

.sm-home-v2-floating-button--menu:hover,
.sm-home-v2-floating-button--menu:focus-visible {
    background: var(--sm-v2-orange-dark);
}

/* STEP4GD_CH6_MOBILE_FLOATING_CART_VISIBILITY_START */
.sm-home-v2-floating-button--cart {
    position: relative;
    background: #7a3f20;
    box-shadow: 0 18px 40px rgba(83, 39, 17, .32);
}

.sm-home-v2-floating-button--cart:hover,
.sm-home-v2-floating-button--cart:focus-visible {
    background: #5f2f17;
}

@media (max-width: 760px) {
    .sm-home-v2-floating-actions {
        z-index: 95;
        right: 12px;
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .sm-home-v2-floating-button--cart {
        min-width: 92px;
        background: #7a3f20;
        color: #fff;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}
/* STEP4GD_CH6_MOBILE_FLOATING_CART_VISIBILITY_END */
.sm-home-v2-floating-button--service {
    background: #169447;
    box-shadow: 0 18px 40px rgba(15, 121, 56, .30);
}

.sm-home-v2-floating-button--service:hover,
.sm-home-v2-floating-button--service:focus-visible {
    background: #0f7938;
}
/* STEP4FJ_CH8_FLOATING_BUTTONS_END */

/* STEP4FJ_CH10_FIX4_DRAWER_HIDDEN_START */
.sm-home-v2-drawer [hidden] {
    display: none !important;
}
/* STEP4FJ_CH10_FIX4_DRAWER_HIDDEN_END */

.sm-home-v2-drawer-backdrop {
    position: fixed;
    z-index: 80;
    inset: 0;
    background: rgba(31, 12, 4, .48);
    backdrop-filter: blur(3px);
}

.sm-home-v2-drawer {
    position: fixed;
    z-index: 90;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: min(390px, calc(100vw - 36px));
    overflow-y: auto;
    border: 1px solid rgba(84, 36, 17, .12);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(42, 14, 4, .30);
    transform: translateX(calc(100% + 40px));
    visibility: hidden;
    transition:
        transform .28s ease,
        visibility .28s ease;
}

.sm-home-v2-drawer.is-open {
    visibility: visible;
    transform: translateX(0);
}

.sm-home-v2-drawer-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--sm-v2-line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.sm-home-v2-drawer-header span {
    color: var(--sm-v2-orange);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.sm-home-v2-drawer-header h2 {
    margin: 4px 0 0;
    color: var(--sm-v2-brown);
}

.sm-home-v2-drawer-header button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--sm-v2-brown);
    background: #fff3e8;
    font-size: 28px;
    cursor: pointer;
}

.sm-home-v2-drawer-links {
    display: grid;
    padding: 16px;
}

.sm-home-v2-drawer-links a {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px;
    border-radius: 16px;
    color: var(--sm-v2-brown);
    font-weight: 900;
    text-decoration: none;
}

.sm-home-v2-drawer-links a:hover {
    background: #fff4e8;
}

.sm-home-v2-drawer-links a span {
    width: 24px;
    text-align: center;
}

.sm-home-v2-drawer-category-list {
    padding: 8px 24px 24px;
}

.sm-home-v2-drawer-category-list h3 {
    color: var(--sm-v2-brown);
}

.sm-home-v2-drawer-category-list a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sm-v2-line);
    color: #6e4631;
    font-weight: 800;
    text-decoration: none;
}

.sm-home-v2-drawer-note {
    margin: 0 20px 24px;
    padding: 20px;
    border-radius: 20px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            var(--sm-v2-brown),
            var(--sm-v2-orange-dark));
}

.sm-home-v2-drawer-note p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.6;
}

body.sm-home-v2-drawer-open {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .sm-home-v2-masthead {
        grid-template-columns: minmax(220px, 1fr) auto;
    }

    .sm-home-v2-nav {
        display: none;
    }

    .sm-home-v2-category-grid,
    .sm-home-v2-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sm-home-v2 {
        padding-bottom: 48px;
    }

    .sm-home-v2-masthead {
        width: calc(100% - 28px);
        min-height: 68px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .sm-home-v2-brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .sm-home-v2-brand-copy strong {
        font-size: 15px;
    }

    .sm-home-v2-brand-copy small {
        display: none;
    }

    .sm-home-v2-menu-button {
        width: 46px;
        min-height: 46px;
        justify-content: center;
        padding: 0;
    }

    .sm-home-v2-menu-button span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .sm-home-v2-carousel {
        min-height: 480px;
    }

    .sm-home-v2-slide-content {
        width: calc(100% - 48px);
        padding: 0 0 70px;
        align-self: end;
    }

    .sm-home-v2-slide-content h1 {
        font-size: clamp(36px, 11vw, 54px);
    }

    .sm-home-v2-lead {
        font-size: 16px;
    }

    .sm-home-v2-slide-shade {
        background:
            linear-gradient(
                0deg,
                rgba(44, 11, 3, .94) 0%,
                rgba(57, 15, 4, .65) 56%,
                rgba(57, 15, 4, .20) 100%);
    }

    .sm-home-v2-carousel-arrow {
        top: 42%;
        width: 42px;
        height: 42px;
    }

    .sm-home-v2-carousel-arrow-prev {
        left: 12px;
    }

    .sm-home-v2-carousel-arrow-next {
        right: 12px;
    }

    .sm-home-v2-section {
        width: calc(100% - 28px);
        padding-top: 54px;
    }

    .sm-home-v2-section-heading {
        display: block;
    }

    .sm-home-v2-text-link {
        display: inline-flex;
        margin-top: 14px;
    }

    .sm-home-v2-category-grid,
    .sm-home-v2-preview-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sm-home-v2-category-card {
        min-height: 190px;
        border-radius: 22px;
    }

    .sm-home-v2-category-copy {
        padding: 22px 6px 22px 22px;
    }

    .sm-home-v2-category-card img,
    .sm-home-v2-category-placeholder {
        min-height: 190px;
    }

    .sm-home-v2-benefits {
        width: calc(100% - 28px);
        margin-top: 54px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sm-home-v2-benefits > div {
        min-height: 92px;
        padding: 18px;
        border-bottom: 1px solid var(--sm-v2-line);
    }

    .sm-home-v2-floating-actions {
        right: 12px;
        bottom: 14px;
        gap: 8px;
    }

    .sm-home-v2-floating-button {
        min-width: 84px;
        min-height: 48px;
        padding: 0 14px;
        font-size: 14px;
    }

    .sm-home-v2-drawer {
        top: 10px;
        right: 10px;
        bottom: 10px;
        width: min(92vw, 390px);
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-home-v2 *,
    .sm-home-v2 *::before,
    .sm-home-v2 *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* STEP4FE_CH3_HOMEPAGE_V2_END */
/* STEP4FG_CH3_CHECKOUT_PROGRESS_START */
.sm-checkout-progress,
.sm-checkout-progress * {
    box-sizing: border-box;
}

.sm-checkout-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 22px 0 0;
    padding: 18px 20px;
    list-style: none;
    border: 1px solid rgba(103, 70, 47, .13);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 30px rgba(71, 47, 31, .07);
    overflow: hidden;
}

.sm-checkout-progress::before {
    content: "";
    position: absolute;
    top: 39px;
    left: calc(16.6667% + 22px);
    right: calc(16.6667% + 22px);
    height: 2px;
    background: #e4d5c5;
}

.sm-checkout-progress__item {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 8px;
    color: #9a8576;
    text-align: center;
}

.sm-checkout-progress__number {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2d3c3;
    border-radius: 50%;
    background: #fff;
    color: #967a65;
    font-size: .9rem;
    font-weight: 950;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, .94);
}

.sm-checkout-progress__item strong {
    max-width: 100%;
    color: inherit;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.45;
}

.sm-checkout-progress__item.is-complete {
    color: #765039;
}

.sm-checkout-progress__item.is-complete .sm-checkout-progress__number {
    border-color: #8b6548;
    background: #8b6548;
    color: #fff;
}

.sm-checkout-progress__item.is-current {
    color: #4f2f1d;
}

.sm-checkout-progress__item.is-current .sm-checkout-progress__number {
    border-color: #c48a49;
    background: #f2dfc5;
    color: #5b371f;
    box-shadow:
        0 0 0 7px rgba(255, 255, 255, .94),
        0 8px 20px rgba(132, 83, 42, .18);
}

.sm-order-success-progress {
    width: min(1120px, 100%);
    margin: 0 auto 20px;
}

.sm-order-success-progress .sm-checkout-progress {
    margin-top: 0;
}

@media (max-width: 700px) {
    .sm-checkout-progress {
        gap: 5px;
        padding: 14px 8px;
        border-radius: 18px;
    }

    .sm-checkout-progress::before {
        top: 31px;
        left: calc(16.6667% + 17px);
        right: calc(16.6667% + 17px);
    }

    .sm-checkout-progress__item {
        gap: 6px;
    }

    .sm-checkout-progress__number {
        width: 36px;
        height: 36px;
        box-shadow: 0 0 0 5px rgba(255, 255, 255, .94);
    }

    .sm-checkout-progress__item.is-current .sm-checkout-progress__number {
        box-shadow:
            0 0 0 5px rgba(255, 255, 255, .94),
            0 6px 16px rgba(132, 83, 42, .16);
    }

    .sm-checkout-progress__item strong {
        font-size: .76rem;
        line-height: 1.35;
    }
}

@media (max-width: 420px) {
    .sm-checkout-progress {
        padding-right: 5px;
        padding-left: 5px;
    }

    .sm-checkout-progress__item strong {
        font-size: .7rem;
    }
}
/* STEP4FG_CH3_CHECKOUT_PROGRESS_END */
/* STEP4FJ_CH3_CUSTOMER_SERVICE_START */
.sm-home-v2-service-panel {
    margin: 16px;
    padding: 18px;
    border: 1px solid rgba(239, 116, 45, .22);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 248, 239, .98),
            rgba(255, 255, 255, .98));
}

.sm-home-v2-service-heading > span {
    color: var(--sm-v2-orange, #d96b2b);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.sm-home-v2-service-heading h3 {
    margin: 5px 0 0;
    color: var(--sm-v2-brown, #4f2f20);
    font-size: 21px;
}

.sm-home-v2-service-heading p {
    margin: 7px 0 0;
    color: #765d4d;
    font-size: 14px;
    line-height: 1.65;
}

.sm-home-v2-service-actions {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.sm-home-v2-service-action {
    min-height: 68px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    padding: 12px 14px;
    border: 1px solid #ead9c8;
    border-radius: 16px;
    color: #4f2f20;
    background: #fff;
    text-decoration: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.sm-home-v2-service-action:hover,
.sm-home-v2-service-action:focus-visible {
    border-color: #e59357;
    box-shadow: 0 10px 24px rgba(102, 55, 24, .12);
    transform: translateY(-1px);
    outline: none;
}

.sm-home-v2-service-action > span {
    width: 48px;
    height: 44px;
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    background: #8a5a2b;
    font-size: 13px;
    font-weight: 900;
}

.sm-home-v2-service-action--line > span {
    background: #06c755;
}

.sm-home-v2-service-action strong {
    align-self: end;
    font-size: 16px;
}

.sm-home-v2-service-action small {
    align-self: start;
    margin-top: 3px;
    color: #7b6a5d;
    line-height: 1.35;
}

.sm-home-v2-service-action--disabled {
    cursor: not-allowed;
    opacity: .62;
}

.sm-home-v2-service-action--disabled:hover {
    border-color: #ead9c8;
    box-shadow: none;
    transform: none;
}

.site-footer__contact {
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.site-footer__contact:hover,
.site-footer__contact:focus-visible {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .sm-home-v2-service-panel {
        margin: 12px;
        padding: 15px;
        border-radius: 17px;
    }

    .sm-home-v2-service-action {
        min-height: 64px;
        padding: 10px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-home-v2-service-action {
        transition: none;
    }
}
/* STEP4FJ_CH3_CUSTOMER_SERVICE_END */
/* STEP4FJ_CH13_LINE_DIALOG_START */
.sm-home-v2-service-action[type="button"] {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.sm-line-add-friend-dialog {
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 26px;
    background: transparent;
    color: #3f291e;
    box-shadow: 0 34px 100px rgba(24, 10, 4, .34);
}

.sm-line-add-friend-dialog::backdrop {
    background: rgba(31, 12, 4, .58);
    backdrop-filter: blur(4px);
}

.sm-line-add-friend-dialog__card {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 30px;
    border: 1px solid rgba(6, 199, 85, .22);
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(6, 199, 85, .12),
            transparent 30%),
        #fff;
}

.sm-line-add-friend-dialog__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f4eee8;
    color: #4f3022;
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.sm-line-add-friend-dialog__close:hover,
.sm-line-add-friend-dialog__close:focus-visible {
    background: #eadfd5;
    outline: 3px solid rgba(6, 199, 85, .20);
}

.sm-line-add-friend-dialog__header {
    padding-right: 48px;
}

.sm-line-add-friend-dialog__header > span {
    color: #07923f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.sm-line-add-friend-dialog__header h2 {
    margin: 6px 0 8px;
    color: #3f291e;
    font-size: clamp(26px, 5vw, 34px);
}

.sm-line-add-friend-dialog__header p {
    margin: 0;
    color: #725d50;
}

.sm-line-add-friend-dialog__header strong {
    color: #087d39;
}

.sm-line-add-friend-dialog__qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 270px);
    margin: 0 auto;
    padding: 14px;
    border: 1px solid #d9eee0;
    border-radius: 20px;
    background: #fff;
}

.sm-line-add-friend-dialog__qr img {
    display: block;
    width: min(240px, 100%);
    height: auto;
}

.sm-line-add-friend-dialog__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 999px;
    background: #06c755;
    color: #fff !important;
    text-decoration: none;
    font-weight: 900;
}

.sm-line-add-friend-dialog__button:hover,
.sm-line-add-friend-dialog__button:focus-visible {
    background: #04a947;
    outline: 3px solid rgba(6, 199, 85, .20);
}

.sm-line-add-friend-dialog__link-label {
    margin: 2px 0 -10px;
    color: #78675b;
    font-size: 13px;
    font-weight: 850;
}

.sm-line-add-friend-dialog__link {
    overflow-wrap: anywhere;
    color: #087d39;
    font-weight: 750;
}

.sm-line-add-friend-dialog__note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f2fff6;
    color: #5e6c62;
    line-height: 1.65;
    font-size: 14px;
}

@media (max-width: 420px) {
    .sm-line-add-friend-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .sm-line-add-friend-dialog__card {
        padding: 22px 18px;
        border-radius: 20px;
    }
}
/* STEP4FJ_CH13_LINE_DIALOG_END */

/* STEP4FP_CH4_PRODUCT_PAGE_CSS_START */

body:has([data-step4fp-ch4-product]) main.page {
    width: 100%;
    max-width: none;
    padding: 26px 0 72px;
}

.sm-product-detail-page,
.sm-product-detail-page * {
    box-sizing: border-box;
}

.sm-product-detail-page {
    width: min(
        1500px,
        calc(100% - 48px)
    );
    margin: 0 auto;
    color: var(
        --sm-v2-brown,
        #542411
    );
}

.sm-product-breadcrumb {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(84, 36, 17, .58);
    font-size: 13px;
}

.sm-product-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.sm-product-breadcrumb a:hover,
.sm-product-breadcrumb a:focus-visible {
    color: var(
        --sm-v2-orange-dark,
        #c34e11
    );
    outline: none;
}

.sm-product-breadcrumb strong {
    max-width: min(520px, 100%);
    color: var(
        --sm-v2-brown,
        #542411
    );
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sm-product-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(210px, 248px)
        minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.sm-product-category-panel,
.sm-product-gallery,
.sm-product-summary-card,
.sm-product-content-card,
.sm-product-state-card {
    border: 1px solid var(
        --sm-v2-line,
        #ead7c7
    );
    background: rgba(255, 255, 255, .96);
    box-shadow:
        0 18px 46px
        rgba(84, 36, 17, .08);
}

.sm-product-category-panel {
    position: sticky;
    top: 102px;
    overflow: hidden;
    border-radius: 20px;
}

.sm-product-category-panel > header {
    padding: 18px 18px 15px;
    border-bottom: 1px solid var(
        --sm-v2-line,
        #ead7c7
    );
    background:
        linear-gradient(
            135deg,
            rgba(255, 240, 228, .92),
            rgba(255, 252, 247, .96)
        );
}

.sm-product-category-panel > header span,
.sm-product-kicker {
    display: block;
    margin: 0;
    color: var(
        --sm-v2-orange,
        #ef681a
    );
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .14em;
}

.sm-product-category-panel > header h2 {
    margin: 5px 0 0;
    font-size: 21px;
}

.sm-product-category-tree {
    padding: 10px;
}

.sm-product-category-node {
    min-width: 0;
}

.sm-product-category-row {
    min-width: 0;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        38px;
    align-items: stretch;
    gap: 4px;
}

.sm-product-category-link {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 9px;
    border-radius: 11px;
    color: rgba(84, 36, 17, .82);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.sm-product-category-name {
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
}

.sm-product-category-dot {
    flex: 0 0 6px;
    width: 6px !important;
    height: 6px;
    border-radius: 999px;
    background:
        rgba(239, 104, 26, .44);
}

.sm-product-category-toggle {
    width: 38px;
    min-height: 38px;
    align-self: center;
    border:
        1px solid
        rgba(84, 36, 17, .12);
    border-radius: 10px;
    color: var(
        --sm-v2-brown,
        #542411
    );
    background: #fff9f4;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.sm-product-category-link:hover,
.sm-product-category-link:focus-visible,
.sm-product-category-toggle:hover,
.sm-product-category-toggle:focus-visible,
.sm-product-category-node.is-expanded >
    .sm-product-category-row >
    .sm-product-category-link {
    color: var(
        --sm-v2-orange-dark,
        #c34e11
    );
    background: #fff1e6;
    outline: none;
}

.sm-product-category-node.is-current >
    .sm-product-category-row >
    .sm-product-category-link {
    color: #fff;
    background:
        linear-gradient(
            135deg,
            var(
                --sm-v2-orange,
                #ef681a
            ),
            var(
                --sm-v2-orange-dark,
                #c34e11
            )
        );
}

.sm-product-category-node.is-current
    .sm-product-category-dot {
    background: #fff;
}

.sm-product-category-children {
    margin-left: 13px;
    padding-left: 8px;
    border-left:
        1px dashed
        rgba(84, 36, 17, .17);
}

.sm-product-category-depth-2
    > .sm-product-category-row
    .sm-product-category-link {
    padding-left: 12px;
}

.sm-product-category-depth-3
    > .sm-product-category-row
    .sm-product-category-link {
    padding-left: 18px;
    font-size: 13px;
}

.sm-product-category-depth-4
    > .sm-product-category-row
    .sm-product-category-link {
    padding-left: 24px;
    font-size: 12px;
}

.sm-product-category-all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    margin: 0 12px 14px;
    border-radius: 12px;
    color: var(
        --sm-v2-orange-dark,
        #c34e11
    );
    background: #fff0e4;
    font-weight: 950;
    text-decoration: none;
}

.sm-product-category-empty {
    margin: 0;
    padding: 18px;
    color: rgba(84, 36, 17, .58);
}

.sm-product-primary {
    min-width: 0;
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(360px, .95fr);
    align-items: start;
    gap: 22px;
}

.sm-product-gallery,
.sm-product-summary-card {
    min-width: 0;
    border-radius: 22px;
}

.sm-product-gallery {
    padding: 18px;
}

.sm-product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border:
        1px solid
        rgba(84, 36, 17, .10);
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #fff8f1,
            #fff
        );
}

.sm-product-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.sm-product-image-empty {
    color: rgba(84, 36, 17, .45);
    font-weight: 900;
}

.sm-product-thumbnails {
    display: flex;
    gap: 9px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.sm-product-thumbnail {
    flex: 0 0 72px;
    width: 72px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.sm-product-thumbnail.is-active {
    border-color: var(
        --sm-v2-orange,
        #ef681a
    );
}

.sm-product-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.sm-product-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(
        --sm-v2-line,
        #ead7c7
    );
}

.sm-product-share > span {
    margin-right: 2px;
    color: rgba(84, 36, 17, .60);
    font-size: 13px;
    font-weight: 900;
}

.sm-product-share-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border:
        1px solid
        rgba(84, 36, 17, .14);
    border-radius: 999px;
    color: var(
        --sm-v2-brown,
        #542411
    );
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.sm-product-share-button:hover,
.sm-product-share-button:focus-visible {
    border-color: var(
        --sm-v2-orange,
        #ef681a
    );
    color: var(
        --sm-v2-orange-dark,
        #c34e11
    );
    outline: none;
}

.sm-product-share small {
    flex-basis: 100%;
    min-height: 18px;
    color: #16734a;
}

.sm-product-summary-card {
    padding: 26px;
}

.sm-product-summary-card h1 {
    margin: 7px 0 10px;
    color: var(
        --sm-v2-brown,
        #542411
    );
    font-size:
        clamp(27px, 3vw, 41px);
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.sm-product-short-description {
    margin: 0;
    color: rgba(84, 36, 17, .64);
    line-height: 1.75;
    white-space: pre-line;
}

.sm-product-price-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    padding: 18px;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            #fff1e5,
            #fff9f4
        );
}

.sm-product-price-panel > div {
    display: grid;
    gap: 3px;
}

.sm-product-price-panel span {
    color: rgba(84, 36, 17, .56);
    font-size: 12px;
    font-weight: 900;
}

.sm-product-price-panel strong {
    color: #b42318;
    font-size:
        clamp(29px, 3vw, 39px);
    line-height: 1;
}

.sm-product-base-price {
    text-align: right;
}

.sm-product-member-hint {
    color: var(
        --sm-v2-orange-dark,
        #c34e11
    );
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.sm-product-meta {
    display: grid;
    margin: 20px 0 0;
}

.sm-product-meta > div {
    min-width: 0;
    display: grid;
    grid-template-columns:
        92px
        minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(
        --sm-v2-line,
        #ead7c7
    );
}

.sm-product-meta dt {
    color: rgba(84, 36, 17, .52);
    font-size: 13px;
}

.sm-product-meta dd {
    min-width: 0;
    margin: 0;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.sm-product-meta dd.is-stocked {
    color: #16734a;
}

.sm-product-meta dd.is-sold-out {
    color: #b42318;
}

.sm-product-buy-box {
    margin-top: 22px;
    padding: 18px;
    border:
        1px solid
        rgba(84, 36, 17, .12);
    border-radius: 18px;
    background: #fffaf5;
}

.sm-product-buy-label {
    display: block;
    margin-bottom: 9px;
    color: rgba(84, 36, 17, .60);
    font-size: 13px;
    font-weight: 900;
}

.sm-product-quantity-row {
    display: grid;
    grid-template-columns:
        142px
        minmax(0, 1fr);
    gap: 10px;
}

.sm-product-stepper {
    display: grid;
    grid-template-columns:
        42px
        minmax(48px, 1fr)
        42px;
    min-height: 48px;
    overflow: hidden;
    border:
        1px solid
        rgba(84, 36, 17, .18);
    border-radius: 12px;
    background: #fff;
}

.sm-product-stepper button,
.sm-product-stepper input {
    min-width: 0;
    border: 0;
    color: var(
        --sm-v2-brown,
        #542411
    );
    background: transparent;
    font: inherit;
    font-weight: 950;
    text-align: center;
}

.sm-product-stepper button {
    cursor: pointer;
}

.sm-product-stepper button:hover,
.sm-product-stepper button:focus-visible {
    color: var(
        --sm-v2-orange-dark,
        #c34e11
    );
    background: #fff0e4;
    outline: none;
}

.sm-product-stepper input {
    width: 100%;
    border-right:
        1px solid
        rgba(84, 36, 17, .10);
    border-left:
        1px solid
        rgba(84, 36, 17, .10);
    appearance: textfield;
}

.sm-product-stepper
    input::-webkit-inner-spin-button,
.sm-product-stepper
    input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.sm-product-add-cart {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            var(
                --sm-v2-orange,
                #ef681a
            ),
            var(
                --sm-v2-orange-dark,
                #c34e11
            )
        );
    box-shadow:
        0 12px 26px
        rgba(239, 104, 26, .22);
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.sm-product-add-cart.is-added {
    background: #16734a;
}

.sm-product-add-cart:disabled {
    box-shadow: none;
    background: #b8aaa0;
    cursor: not-allowed;
}

.sm-product-cart-link {
    display: inline-block;
    margin-top: 12px;
    color: var(
        --sm-v2-orange-dark,
        #c34e11
    );
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.sm-product-cart-status {
    min-height: 24px;
    margin: 8px 0 0;
    color: rgba(84, 36, 17, .58);
    font-size: 12px;
    line-height: 1.6;
}

.sm-product-safe-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.sm-product-safe-notes span {
    padding: 6px 9px;
    border-radius: 999px;
    color: rgba(84, 36, 17, .68);
    background: #f8efe7;
    font-size: 11px;
    font-weight: 850;
}

.sm-product-content-card {
    margin-top: 22px;
    overflow: hidden;
    border-radius: 22px;
}

.sm-product-content-tabs {
    display: flex;
    border-bottom: 1px solid var(
        --sm-v2-line,
        #ead7c7
    );
    background: #fff8f2;
}

.sm-product-content-tabs button {
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-bottom:
        3px solid
        transparent;
    color: rgba(84, 36, 17, .62);
    background: transparent;
    font: inherit;
    font-weight: 950;
}

.sm-product-content-tabs button.is-active {
    border-bottom-color: var(
        --sm-v2-orange,
        #ef681a
    );
    color: var(
        --sm-v2-orange-dark,
        #c34e11
    );
    background: #fff;
}

.sm-product-description-panel {
    padding:
        clamp(20px, 4vw, 42px);
}

.sm-product-description-panel
    .description-html {
    max-width: 100%;
    color: #35291f;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.sm-product-description-panel
    .description-html img,
.sm-product-description-panel
    .description-html figure {
    max-width: 100%;
    height: auto;
}

.sm-product-description-panel
    .description-html img {
    display: block;
    border-radius: 16px;
}

.sm-product-description-panel
    .description-html figure {
    margin: 1rem auto;
}

.sm-product-description-panel
    .description-html figcaption {
    margin-top: .45rem;
    color: #715b45;
    font-size: .9em;
    text-align: center;
}

.sm-product-description-panel
    .description-html table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

.sm-product-description-panel
    .description-html th,
.sm-product-description-panel
    .description-html td {
    padding: 8px 10px;
    border:
        1px solid
        #d8c7ac;
    vertical-align: top;
}

.sm-product-description-panel
    .description-html p {
    margin: 0 0 1rem;
}

.sm-product-description-panel
    .plain-description {
    line-height: 1.9;
    white-space: pre-wrap;
}

.sm-product-description-panel
    .empty-description {
    padding: 18px;
    border:
        1px dashed
        #d8c7ac;
    border-radius: 16px;
    color: #7a6046;
    background: #fffaf1;
}

.sm-product-state-card {
    padding: 30px;
    border-radius: 22px;
}

.sm-product-qr-dialog {
    width: min(
        430px,
        calc(100% - 28px)
    );
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
}

.sm-product-qr-dialog::backdrop {
    background:
        rgba(38, 19, 10, .66);
    backdrop-filter: blur(4px);
}

.sm-product-qr-card {
    position: relative;
    padding: 30px;
    border-radius: 22px;
    text-align: center;
    background: #fff;
    box-shadow:
        0 28px 80px
        rgba(0, 0, 0, .28);
}

.sm-product-qr-card h2 {
    margin: 7px 0 20px;
    overflow-wrap: anywhere;
}

.sm-product-qr-image {
    width: min(260px, 100%);
    margin: 0 auto;
    padding: 13px;
    border: 1px solid var(
        --sm-v2-line,
        #ead7c7
    );
    border-radius: 18px;
    background: #fff;
}

.sm-product-qr-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.sm-product-qr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: var(
        --sm-v2-brown,
        #542411
    );
    background: #fff0e4;
    font-size: 25px;
    cursor: pointer;
}

@media (max-width: 1120px) {
    .sm-product-primary {
        grid-template-columns: 1fr;
    }

    .sm-product-summary-card {
        order: 2;
    }
}

@media (max-width: 820px) {
    body:has([data-step4fp-ch4-product])
        main.page {
        padding-top: 18px;
    }

    .sm-product-detail-page {
        width: min(
            100% - 24px,
            1500px
        );
    }

    .sm-product-detail-layout {
        grid-template-columns: 1fr;
    }

    .sm-product-category-panel {
        display: none;
    }

    .sm-product-primary {
        grid-template-columns: 1fr;
    }

    .sm-product-gallery,
    .sm-product-summary-card,
    .sm-product-content-card {
        border-radius: 18px;
    }

    .sm-product-summary-card {
        padding: 20px;
    }

    .sm-product-breadcrumb strong {
        max-width: 100%;
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .sm-product-gallery {
        padding: 12px;
    }

    .sm-product-main-image {
        border-radius: 14px;
    }

    .sm-product-summary-card h1 {
        font-size: 29px;
    }

    .sm-product-quantity-row {
        grid-template-columns: 1fr;
    }

    .sm-product-stepper {
        min-height: 50px;
    }

    .sm-product-add-cart {
        min-height: 52px;
    }

    .sm-product-meta > div {
        grid-template-columns:
            78px
            minmax(0, 1fr);
    }

    .sm-product-share {
        align-items: stretch;
    }

    .sm-product-share > span {
        flex-basis: 100%;
    }

    .sm-product-share-button {
        flex:
            1 1
            calc(33.333% - 8px);
        padding-inline: 8px;
    }

    .sm-product-description-panel {
        padding: 18px 15px;
    }
}


/* STEP4FQ_CH20_PUBLIC_PRODUCT_GALLERY_CSS_START */
.sm-product-main-image {
    position: relative;
    overflow: hidden;
}

.sm-product-main-image-button {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: zoom-in;
}

.sm-product-main-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sm-product-gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    min-width: 58px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(35, 22, 13, .72);
    text-align: center;
    font-size: .82rem;
    font-weight: 900;
    pointer-events: none;
}

.sm-product-gallery-stage-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    color: #fff;
    background: rgba(49,29,16,.7);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.sm-product-gallery-stage-prev { left: 14px; }
.sm-product-gallery-stage-next { right: 14px; }

.sm-product-thumbnails {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 4px 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.sm-product-thumbnail {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    opacity: .72;
    scroll-snap-align: start;
}

.sm-product-thumbnail.is-active {
    border-color: #b56d2d;
    opacity: 1;
}

.sm-product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: cover;
}

.sm-product-image-dialog {
    width: min(1100px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 24px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 24px;
    background: transparent;
    z-index: 7000;
}

.sm-product-image-dialog::backdrop {
    background: rgba(22,13,8,.86);
    backdrop-filter: blur(7px);
}

.sm-product-image-dialog-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(82vh, 780px);
    padding: 56px 76px 48px;
    overflow: hidden;
    border-radius: 24px;
    background: #1c130e;
}

.sm-product-image-dialog-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    touch-action: pan-y;
}

.sm-product-image-dialog-image {
    display: block;
    max-width: 100%;
    max-height: min(74vh, 720px);
    border-radius: 14px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.sm-product-image-dialog-close,
.sm-product-image-dialog-nav {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 50%;
    color: #fff;
    background: rgba(31,19,12,.76);
    cursor: pointer;
}

.sm-product-image-dialog-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
}

.sm-product-image-dialog-nav {
    top: 50%;
    width: 50px;
    height: 50px;
    font-size: 2.2rem;
    transform: translateY(-50%);
}

.sm-product-image-dialog-prev { left: 14px; }
.sm-product-image-dialog-next { right: 14px; }

.sm-product-image-dialog-counter {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    min-width: 68px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff;
    background: rgba(31,19,12,.78);
    text-align: center;
    font-size: .86rem;
    font-weight: 900;
    transform: translateX(-50%);
}

.sm-product-main-image-button:focus-visible,
.sm-product-thumbnail:focus-visible,
.sm-product-gallery-stage-nav:focus-visible,
.sm-product-image-dialog button:focus-visible {
    outline: 3px solid rgba(194,119,47,.72);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .sm-product-main-image {
        touch-action: pan-y;
    }

    .sm-product-gallery-stage-nav {
        width: 38px;
        height: 38px;
        font-size: 1.7rem;
    }

    .sm-product-thumbnail {
        flex-basis: 66px;
        width: 66px;
        height: 66px;
    }

    .sm-product-image-dialog {
        width: min(92vw, 560px);
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        margin: auto;
        border-radius: 18px;
    }

    .sm-product-image-dialog-card {
        min-height: 0;
        height: min(82vh, 680px);
        height: min(82dvh, 680px);
        padding: 54px 54px 52px;
        border-radius: 18px;
    }

    .sm-product-image-dialog-frame {
        min-width: 0;
        min-height: 0;
    }

    .sm-product-image-dialog-image {
        width: auto;
        height: auto;
        max-width: min(78vw, 520px);
        max-height: min(66vh, 560px);
        max-height: min(66dvh, 560px);
        margin: auto;
    }

    .sm-product-image-dialog-nav {
        top: auto;
        bottom: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.8rem;
        transform: none;
    }

    .sm-product-image-dialog-prev { left: 14px; }
    .sm-product-image-dialog-next { right: 14px; }
    .sm-product-image-dialog-counter { bottom: 17px; }
}
/* STEP4FQ_CH20_PUBLIC_PRODUCT_GALLERY_CSS_END */

/* STEP4FP_CH4_PRODUCT_PAGE_CSS_END */
/* STEP4FT_CH6_MOBILE_STICKY_CART_START */
[data-cart-mobile-bar].sm-product-mobile-cart-bar {
    display: none !important;
}

@media (max-width: 640px) {
    body:has([data-step4fp-ch4-product]) main.page {
        padding-bottom:
            calc(
                118px +
                env(safe-area-inset-bottom)
            );
    }

    [data-cart-mobile-bar].sm-product-mobile-cart-bar {
        position: fixed;
        z-index: 65;
        right: 10px;
        bottom:
            max(
                8px,
                env(safe-area-inset-bottom)
            );
        left: 10px;
        display: grid !important;
        grid-template-columns:
            minmax(78px, auto)
            minmax(112px, .8fr)
            minmax(132px, 1fr);
        align-items: center;
        gap: 12px;
        padding:
            10px
            10px
            10px
            14px;
        border:
            1px solid
            rgba(84, 36, 17, .14);
        border-radius: 18px;
        background:
            rgba(255, 255, 255, .96);
        box-shadow:
            0 18px 48px
            rgba(55, 24, 10, .24);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .sm-product-mobile-cart-bar__price {
        min-width: 0;
        display: grid;
        gap: 2px;
    }

    .sm-product-mobile-cart-bar__price span {
        color: rgba(84, 36, 17, .56);
        font-size: 11px;
        font-weight: 900;
    }

    .sm-product-mobile-cart-bar__price strong {
        color: #b42318;
        font-size: 17px;
        line-height: 1.1;
        white-space: nowrap;
    }

    .sm-product-mobile-cart-bar__stepper {
        min-width: 0;
        min-height: 50px;
        display: grid;
        grid-template-columns:
            38px
            minmax(40px, 1fr)
            38px;
        overflow: hidden;
        border:
            1px solid
            rgba(84, 36, 17, .18);
        border-radius: 14px;
        background: #fff;
    }

    .sm-product-mobile-cart-bar__stepper button,
    .sm-product-mobile-cart-bar__stepper input {
        min-width: 0;
        border: 0;
        color: var(
            --sm-v2-brown,
            #542411
        );
        background: transparent;
        font: inherit;
        font-weight: 950;
        text-align: center;
    }

    .sm-product-mobile-cart-bar__stepper button {
        cursor: pointer;
    }

    .sm-product-mobile-cart-bar__stepper input {
        width: 100%;
        border-right:
            1px solid
            rgba(84, 36, 17, .10);
        border-left:
            1px solid
            rgba(84, 36, 17, .10);
        appearance: textfield;
    }

    .sm-product-mobile-cart-bar__stepper
        input::-webkit-inner-spin-button,
    .sm-product-mobile-cart-bar__stepper
        input::-webkit-outer-spin-button {
        margin: 0;
        appearance: none;
    }
    .sm-product-mobile-cart-bar__button {
        min-width: 0;
        min-height: 50px;
        padding: 0 16px;
        border: 0;
        border-radius: 14px;
        color: #fff;
        background:
            linear-gradient(
                135deg,
                var(
                    --sm-v2-orange,
                    #ef681a
                ),
                var(
                    --sm-v2-orange-dark,
                    #c34e11
                )
            );
        box-shadow:
            0 10px 22px
            rgba(196, 78, 17, .26);
        font: inherit;
        font-size: 16px;
        font-weight: 950;
        cursor: pointer;
    }

    .sm-product-mobile-cart-bar__button:disabled {
        color: rgba(255, 255, 255, .82);
        background: #a99d95;
        box-shadow: none;
        cursor: not-allowed;
    }


    .sm-product-buy-box .sm-product-quantity-row {
        display: none !important;
    }
    body:has([data-step4fp-ch4-product])
        .sm-home-v2-floating-actions {
        bottom:
            calc(
                96px +
                env(safe-area-inset-bottom)
            );
    }
}
/* STEP4FT_CH6_MOBILE_STICKY_CART_END */
/* STEP4FS_CH13_DESKTOP_COMPACT_PRODUCT_PAGE_START */
/*
   Desktop only:
   - 821px 以下完全沿用既有手機／平板規則。
   - 縮小整體最大寬度、分類欄、卡片間距與內容留白。
*/
@media (min-width: 821px) {
    body:has([data-step4fp-ch4-product]) main.page {
        padding: 18px 0 56px;
    }

    .sm-product-detail-page {
        width: min(
            1280px,
            calc(100% - 56px)
        );
    }

    .sm-product-detail-layout {
        grid-template-columns:
            minmax(188px, 210px)
            minmax(0, 1fr);
        gap: 16px;
    }

    .sm-product-category-panel {
        border-radius: 16px;
    }

    .sm-product-category-panel > header {
        padding: 14px 14px 12px;
    }

    .sm-product-category-panel > header h2 {
        font-size: 19px;
    }

    .sm-product-category-tree {
        padding: 8px;
    }

    .sm-product-category-row {
        grid-template-columns:
            minmax(0, 1fr)
            34px;
        gap: 3px;
    }

    .sm-product-category-link {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 13px;
    }

    .sm-product-category-toggle {
        width: 34px;
        min-height: 34px;
        border-radius: 9px;
    }

    .sm-product-category-all {
        min-height: 40px;
        margin: 0 10px 12px;
    }

    .sm-product-primary {
        gap: 16px;
    }

    .sm-product-gallery,
    .sm-product-summary-card,
    .sm-product-content-card {
        border-radius: 18px;
    }

    .sm-product-gallery {
        padding: 14px;
    }

    .sm-product-main-image {
        aspect-ratio: 4 / 3;
        max-height: 520px;
        border-radius: 15px;
    }

    .sm-product-thumbnail {
        flex-basis: 64px;
        width: 64px;
    }

    .sm-product-thumbnails {
        gap: 8px;
        padding-bottom: 5px;
    }

    .sm-product-summary-card {
        padding: 22px;
    }

    .sm-product-content-card {
        margin-top: 16px;
    }

    .sm-product-content-tabs button {
        min-height: 46px;
        padding: 0 20px;
    }

    .sm-product-description-panel {
        padding: 24px;
    }

    .sm-product-description-panel
        .empty-description {
        padding: 14px;
        border-radius: 13px;
    }
}

@media (min-width: 1121px) {
    .sm-product-primary {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(330px, .92fr);
    }
}
/* STEP4FS_CH13_DESKTOP_COMPACT_PRODUCT_PAGE_END */
/* STEP4FS_CH16_DESKTOP_COMPACT_LEVEL2_START */
@media (min-width: 821px) {
    body:has([data-step4fp-ch4-product]) main.page {
        padding: 14px 0 48px;
    }

    .sm-product-detail-page {
        width: min(
            1160px,
            calc(100% - 64px)
        );
    }

    .sm-product-detail-layout {
        grid-template-columns:
            minmax(172px, 190px)
            minmax(0, 1fr);
        gap: 14px;
    }

    .sm-product-category-panel > header {
        padding: 12px 13px 10px;
    }

    .sm-product-category-panel > header span,
    .sm-product-kicker {
        font-size: 9px;
    }

    .sm-product-category-panel > header h2 {
        font-size: 17px;
    }

    .sm-product-category-tree {
        padding: 7px;
    }

    .sm-product-category-link {
        min-height: 35px;
        padding: 6px 7px;
        font-size: 12px;
    }

    .sm-product-category-toggle {
        width: 31px;
        min-height: 31px;
        font-size: 13px;
    }

    .sm-product-category-all {
        min-height: 37px;
        margin: 0 9px 10px;
        font-size: 13px;
    }

    .sm-product-primary {
        gap: 14px;
    }

    .sm-product-gallery {
        padding: 12px;
    }

    .sm-product-main-image {
        max-height: 450px;
    }

    .sm-product-thumbnail {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .sm-product-thumbnails {
        gap: 7px;
    }

    .sm-product-summary-card {
        padding: 18px;
    }

    .sm-product-summary-card h1 {
        font-size: clamp(28px, 2.6vw, 42px);
    }

    .sm-product-summary-card,
    .sm-product-summary-card p,
    .sm-product-summary-card li,
    .sm-product-summary-card button,
    .sm-product-summary-card a {
        font-size: 14px;
    }

    .sm-product-price strong,
    .sm-product-summary-price strong {
        font-size: clamp(30px, 2.8vw, 42px);
    }

    .sm-product-content-card {
        margin-top: 14px;
    }

    .sm-product-content-tabs button {
        min-height: 42px;
        padding: 0 17px;
        font-size: 14px;
    }

    .sm-product-description-panel {
        padding: 20px;
    }

    .sm-product-description-panel
        .description-html,
    .sm-product-description-panel
        .plain-description,
    .sm-product-description-panel
        .empty-description {
        font-size: 14px;
    }

    .sm-product-description-panel
        .empty-description {
        padding: 12px;
    }
}

@media (min-width: 1121px) {
    .sm-product-primary {
        grid-template-columns:
            minmax(0, 1.06fr)
            minmax(310px, .94fr);
    }
}
/* STEP4FS_CH16_DESKTOP_COMPACT_LEVEL2_END */
/* STEP4GE_CH2_DESCRIPTION_FULLWIDTH_THUMBNAIL_CONTAIN_START */
/*
   Public product details:
   - Description media fills the available panel width.
   - Original aspect ratio is preserved.
   - Gallery thumbnails display complete images instead of cropping.
   - Desktop category navigation receives a larger readable hit area.
*/

.sm-product-description-panel .description-html {
    width: 100%;
    max-width: none;
}

.sm-product-description-panel .description-html figure,
.sm-product-description-panel .description-html p:has(> img) {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.sm-product-description-panel .description-html img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-right: auto !important;
    margin-left: auto !important;
    object-fit: contain;
    object-position: center;
}

.sm-product-thumbnail img {
    object-fit: contain;
    object-position: center;
    background: #fff;
}

@media (min-width: 821px) {
    .sm-product-detail-layout {
        grid-template-columns:
            minmax(230px, 250px)
            minmax(0, 1fr);
        gap: 20px;
    }

    .sm-product-category-panel header {
        padding: 18px 16px 14px;
    }

    .sm-product-category-panel header h2 {
        font-size: 20px;
    }

    .sm-product-category-link {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 14px;
    }

    .sm-product-category-toggle {
        width: 38px;
        min-height: 38px;
        font-size: 16px;
    }

    .sm-product-category-all {
        min-height: 44px;
        margin: 0 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 820px) {
    .sm-product-description-panel {
        padding-right: 12px;
        padding-left: 12px;
    }
}
/* STEP4GE_CH2_DESCRIPTION_FULLWIDTH_THUMBNAIL_CONTAIN_END */
/* STEP4GE_CH5_MOBILE_DESCRIPTION_TRUE_FULLBLEED_START */
@media (max-width: 820px) {
    #product-content-panel-description {
        padding-right: 0;
        padding-left: 0;
    }

    #product-content-panel-description .description-html {
        width: 100%;
        max-width: none;
        overflow: hidden;
    }

    #product-content-panel-description .description-html figure,
    #product-content-panel-description .description-html p:has(> img) {
        width: 100% !important;
        max-width: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    #product-content-panel-description .description-html img {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 0;
        object-fit: contain;
        object-position: center;
    }
}
/* STEP4GE_CH5_MOBILE_DESCRIPTION_TRUE_FULLBLEED_END */
/* STEP4GF_CH2_LIGHTBOX_ZOOM_CSS_START */
.sm-product-image-dialog-frame {
    position: relative;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
}

.sm-product-image-dialog-image {
    transform-origin: center center;
    will-change: transform;
    transition: transform .16s ease;
}

.sm-product-image-dialog-frame:active .sm-product-image-dialog-image {
    transition: none;
}

.sm-product-image-dialog-zoom-controls {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    background: rgba(31,19,12,.78);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.sm-product-image-dialog-zoom-controls button {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.10);
    font: inherit;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
}

.sm-product-image-dialog-zoom-controls button:hover,
.sm-product-image-dialog-zoom-controls button:focus-visible {
    background: rgba(255,255,255,.20);
}

.sm-product-image-dialog-zoom-controls button:disabled {
    opacity: .42;
    cursor: default;
}

.sm-product-image-dialog-zoom-reset {
    min-width: 68px !important;
    font-size: .82rem !important;
    letter-spacing: .02em;
}

@media (max-width: 640px) {
    .sm-product-image-dialog-zoom-controls {
        top: 10px;
        left: 10px;
        gap: 4px;
        padding: 5px;
    }

    .sm-product-image-dialog-zoom-controls button {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 1rem;
    }

    .sm-product-image-dialog-zoom-reset {
        min-width: 58px !important;
        font-size: .76rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-product-image-dialog-image {
        transition: none;
    }
}
/* STEP4GF_CH2_LIGHTBOX_ZOOM_CSS_END */
/* STEP4GG_CH35_PUBLIC_DESCRIPTION_PRESENTATION_START */
.sm-product-short-description {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

#product-content-panel-description > .plain-description {
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid rgba(176, 135, 72, 0.22);
    border-radius: 14px;
    background: rgba(255, 250, 241, 0.82);
    color: #514438;
    font-size: 16px;
    line-height: 1.85;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

#product-content-panel-description > .plain-description:last-child {
    margin-bottom: 0;
}

#product-content-panel-description > .plain-description + .description-html {
    margin-top: 0;
}

@media (max-width: 720px) {
    #product-content-panel-description > .plain-description {
        margin-bottom: 14px;
        padding: 14px 15px;
        border-radius: 12px;
        font-size: 15px;
        line-height: 1.8;
    }
}
/* STEP4GG_CH35_PUBLIC_DESCRIPTION_PRESENTATION_END */

/* SUNMOON_LOGIN_COMPACT_ONEPAGE_FAST1
   Scope: member login page only
   Purpose: desktop/mobile one-screen compact layout
   CSS-only deployment; no DLL, DB, uploads or other pages.
*/

/*
   使用登入表單特徵限定頁面。
   :has() 已由目前主流桌面與手機瀏覽器支援。
*/
body:has(form[action*="/member/login" i]),
body:has(form[action*="/Member/Login" i]) {
    min-height: 100vh;
}

body:has(form[action*="/member/login" i]) main,
body:has(form[action*="/Member/Login" i]) main {
    padding-top: 18px !important;
    padding-bottom: 10px !important;
}

body:has(form[action*="/member/login" i]) main > .container,
body:has(form[action*="/Member/Login" i]) main > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 登入卡片 */
body:has(form[action*="/member/login" i]) form[action*="/member/login" i],
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 壓縮登入卡片內的垂直留白，但保留可讀性 */
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] h1,
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] h2,
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] h3,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] h1,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] h2,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] h3 {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    line-height: 1.15 !important;
}

body:has(form[action*="/member/login" i]) form[action*="/member/login" i] p,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] p {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    line-height: 1.45 !important;
}

body:has(form[action*="/member/login" i]) form[action*="/member/login" i] .form-group,
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] .mb-3,
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] .mb-4,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] .form-group,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] .mb-3,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] .mb-4 {
    margin-bottom: 10px !important;
}

body:has(form[action*="/member/login" i]) form[action*="/member/login" i] label,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] label {
    margin-bottom: 4px !important;
    line-height: 1.25 !important;
}

/* 輸入框稍微降低，但仍保持好操作 */
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] input[type="text"],
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] input[type="email"],
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] input[type="tel"],
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] input[type="password"],
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] input[type="text"],
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] input[type="email"],
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] input[type="tel"],
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] input[type="password"] {
    min-height: 46px !important;
    height: 46px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* 錯誤訊息壓縮 */
body:has(form[action*="/member/login" i]) .alert,
body:has(form[action*="/member/login" i]) .validation-summary-errors,
body:has(form[action*="/Member/Login" i]) .alert,
body:has(form[action*="/Member/Login" i]) .validation-summary-errors {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
    padding: 10px 14px !important;
    line-height: 1.45 !important;
}

/* 登入頁內按鈕 */
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] button,
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] .btn,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] button,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] .btn {
    min-height: 46px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

/* 登入卡片中常見的間距工具類 */
body:has(form[action*="/member/login" i]) .login-card .py-5,
body:has(form[action*="/member/login" i]) .member-login-card .py-5,
body:has(form[action*="/member/login" i]) .auth-card .py-5,
body:has(form[action*="/Member/Login" i]) .login-card .py-5,
body:has(form[action*="/Member/Login" i]) .member-login-card .py-5,
body:has(form[action*="/Member/Login" i]) .auth-card .py-5 {
    padding-top: 22px !important;
    padding-bottom: 20px !important;
}

body:has(form[action*="/member/login" i]) .login-card,
body:has(form[action*="/member/login" i]) .member-login-card,
body:has(form[action*="/member/login" i]) .auth-card,
body:has(form[action*="/Member/Login" i]) .login-card,
body:has(form[action*="/Member/Login" i]) .member-login-card,
body:has(form[action*="/Member/Login" i]) .auth-card {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

/* 卡片後方連結與 LINE 區域 */
body:has(form[action*="/member/login" i]) form[action*="/member/login" i] ~ *,
body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] ~ * {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* 桌面螢幕高度有限時再縮一些 */
@media (min-width: 769px) and (max-height: 850px) {
    body:has(form[action*="/member/login" i]) main,
    body:has(form[action*="/Member/Login" i]) main {
        padding-top: 10px !important;
        padding-bottom: 4px !important;
    }

    body:has(form[action*="/member/login" i]) .login-card,
    body:has(form[action*="/member/login" i]) .member-login-card,
    body:has(form[action*="/member/login" i]) .auth-card,
    body:has(form[action*="/Member/Login" i]) .login-card,
    body:has(form[action*="/Member/Login" i]) .member-login-card,
    body:has(form[action*="/Member/Login" i]) .auth-card {
        transform: translateY(-4px);
    }

    body:has(form[action*="/member/login" i]) footer,
    body:has(form[action*="/Member/Login" i]) footer {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

/* 手機版 */
@media (max-width: 768px) {
    body:has(form[action*="/member/login" i]) main,
    body:has(form[action*="/Member/Login" i]) main {
        padding: 10px 8px 6px !important;
    }

    body:has(form[action*="/member/login" i]) main > .container,
    body:has(form[action*="/Member/Login" i]) main > .container {
        width: 100% !important;
        max-width: none !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    body:has(form[action*="/member/login" i]) .login-card,
    body:has(form[action*="/member/login" i]) .member-login-card,
    body:has(form[action*="/member/login" i]) .auth-card,
    body:has(form[action*="/Member/Login" i]) .login-card,
    body:has(form[action*="/Member/Login" i]) .member-login-card,
    body:has(form[action*="/Member/Login" i]) .auth-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto 6px !important;
        border-radius: 18px !important;
    }

    body:has(form[action*="/member/login" i]) .login-card .card-body,
    body:has(form[action*="/member/login" i]) .member-login-card .card-body,
    body:has(form[action*="/member/login" i]) .auth-card .card-body,
    body:has(form[action*="/Member/Login" i]) .login-card .card-body,
    body:has(form[action*="/Member/Login" i]) .member-login-card .card-body,
    body:has(form[action*="/Member/Login" i]) .auth-card .card-body {
        padding: 18px 16px 16px !important;
    }

    body:has(form[action*="/member/login" i]) form[action*="/member/login" i] h1,
    body:has(form[action*="/member/login" i]) form[action*="/member/login" i] h2,
    body:has(form[action*="/member/login" i]) form[action*="/member/login" i] h3,
    body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] h1,
    body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] h2,
    body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] h3 {
        font-size: 28px !important;
        margin-bottom: 7px !important;
    }

    body:has(form[action*="/member/login" i]) .alert,
    body:has(form[action*="/member/login" i]) .validation-summary-errors,
    body:has(form[action*="/Member/Login" i]) .alert,
    body:has(form[action*="/Member/Login" i]) .validation-summary-errors {
        padding: 9px 11px !important;
        margin-top: 7px !important;
        margin-bottom: 10px !important;
        font-size: 14px !important;
    }

    body:has(form[action*="/member/login" i]) form[action*="/member/login" i] input[type="text"],
    body:has(form[action*="/member/login" i]) form[action*="/member/login" i] input[type="email"],
    body:has(form[action*="/member/login" i]) form[action*="/member/login" i] input[type="tel"],
    body:has(form[action*="/member/login" i]) form[action*="/member/login" i] input[type="password"],
    body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] input[type="text"],
    body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] input[type="email"],
    body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] input[type="tel"],
    body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] input[type="password"] {
        min-height: 44px !important;
        height: 44px !important;
    }

    body:has(form[action*="/member/login" i]) form[action*="/member/login" i] button,
    body:has(form[action*="/member/login" i]) form[action*="/member/login" i] .btn,
    body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] button,
    body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] .btn {
        min-height: 44px !important;
    }

    body:has(form[action*="/member/login" i]) footer,
    body:has(form[action*="/Member/Login" i]) footer {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        margin-top: 4px !important;
    }
}

/* 更矮的手機畫面 */
@media (max-width: 430px) and (max-height: 820px) {
    body:has(form[action*="/member/login" i]) main,
    body:has(form[action*="/Member/Login" i]) main {
        padding-top: 6px !important;
    }

    body:has(form[action*="/member/login" i]) .login-card .card-body,
    body:has(form[action*="/member/login" i]) .member-login-card .card-body,
    body:has(form[action*="/member/login" i]) .auth-card .card-body,
    body:has(form[action*="/Member/Login" i]) .login-card .card-body,
    body:has(form[action*="/Member/Login" i]) .member-login-card .card-body,
    body:has(form[action*="/Member/Login" i]) .auth-card .card-body {
        padding-top: 14px !important;
        padding-bottom: 13px !important;
    }

    body:has(form[action*="/member/login" i]) form[action*="/member/login" i] p,
    body:has(form[action*="/Member/Login" i]) form[action*="/Member/Login" i] p {
        margin-bottom: 6px !important;
    }
}

/* END SUNMOON_LOGIN_COMPACT_ONEPAGE_FAST1 */

/* SUNMOON_LOGIN_COMPACT_ONEPAGE_SP2_CSS */
body.sms-login-sp2 main {
    min-height: auto !important;
    padding-top: 8px !important;
    padding-bottom: 4px !important;
}

body.sms-login-sp2 main > .container,
body.sms-login-sp2 main > .container-fluid {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.sms-login-sp2 .card {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

body.sms-login-sp2 .card-body {
    padding-top: 18px !important;
    padding-bottom: 16px !important;
}

body.sms-login-sp2 h1,
body.sms-login-sp2 h2,
body.sms-login-sp2 h3 {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    line-height: 1.12 !important;
}

body.sms-login-sp2 p {
    margin-top: 2px !important;
    margin-bottom: 6px !important;
    line-height: 1.35 !important;
}

body.sms-login-sp2 .alert,
body.sms-login-sp2 .validation-summary-errors {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
    padding: 8px 12px !important;
    line-height: 1.35 !important;
}

body.sms-login-sp2 .mb-5 { margin-bottom: 14px !important; }
body.sms-login-sp2 .mb-4 { margin-bottom: 9px !important; }
body.sms-login-sp2 .mb-3,
body.sms-login-sp2 .form-group { margin-bottom: 7px !important; }
body.sms-login-sp2 .mt-5 { margin-top: 14px !important; }
body.sms-login-sp2 .mt-4 { margin-top: 9px !important; }
body.sms-login-sp2 .mt-3 { margin-top: 7px !important; }

body.sms-login-sp2 label {
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
}

body.sms-login-sp2 input[type="text"],
body.sms-login-sp2 input[type="email"],
body.sms-login-sp2 input[type="tel"],
body.sms-login-sp2 input[type="password"] {
    min-height: 42px !important;
    height: 42px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

body.sms-login-sp2 button,
body.sms-login-sp2 .btn {
    min-height: 42px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

body.sms-login-sp2 hr {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

body.sms-login-sp2 footer {
    margin-top: 2px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

@media (min-width: 769px) {
    body.sms-login-sp2 .card {
        transform: translateY(-6px);
    }
}

@media (max-width: 768px) {
    body.sms-login-sp2 main {
        padding: 5px 5px 3px !important;
    }

    body.sms-login-sp2 main > .container,
    body.sms-login-sp2 main > .container-fluid {
        width: 100% !important;
        max-width: none !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    body.sms-login-sp2 .card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto 4px !important;
        border-radius: 15px !important;
    }

    body.sms-login-sp2 .card-body {
        padding: 13px 12px 12px !important;
    }

    body.sms-login-sp2 h1,
    body.sms-login-sp2 h2 {
        font-size: 25px !important;
        margin-bottom: 5px !important;
    }

    body.sms-login-sp2 .alert,
    body.sms-login-sp2 .validation-summary-errors {
        font-size: 13px !important;
        padding: 7px 9px !important;
    }

    body.sms-login-sp2 input[type="text"],
    body.sms-login-sp2 input[type="email"],
    body.sms-login-sp2 input[type="tel"],
    body.sms-login-sp2 input[type="password"],
    body.sms-login-sp2 button,
    body.sms-login-sp2 .btn {
        min-height: 40px !important;
        height: 40px !important;
    }
}
/* END SUNMOON_LOGIN_COMPACT_ONEPAGE_SP2_CSS */
