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

:root {
    --cream: #fbf5ec;
    --cream-strong: #f3e7d8;
    --warm-beige: #dfc7ae;
    --soft-terracotta: #bf7355;
    --sage-green: #8f9f7f;
    --warm-taupe: #8a7665;
    --deep-brown: #3f2d24;
    --coffee: #5d4034;
    --card: #fffaf3;
    --muted: #7d6c60;
    --line: rgba(93, 64, 52, 0.14);
    --shadow-soft: 0 18px 45px rgba(86, 57, 43, 0.12);
    --shadow-hover: 0 24px 60px rgba(86, 57, 43, 0.18);
    --scrollbar-size: 10px;
    --scrollbar-size-thin: 8px;
    --scrollbar-track: rgba(191, 115, 85, 0.14);
    --scrollbar-thumb: rgba(191, 115, 85, 0.48);
    --scrollbar-thumb-hover: rgba(191, 115, 85, 0.72);
}

/* 內容保護：降低複製文字／另存圖片（非絕對防護） */
html,
body {
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
select,
[contenteditable="true"],
.allow-select {
    -webkit-user-select: text;
    user-select: text;
}

img,
picture,
video,
svg,
canvas {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}

.allow-download,
.allow-download * {
    -webkit-user-select: text;
    user-select: text;
}

/* ===== 全站滾動條 ===== */
html {
    scrollbar-gutter: stable;
}

html,
body {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 100px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(165deg, rgba(223, 199, 174, 0.9), rgba(191, 115, 85, 0.75));
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: padding-box;
    min-height: 40px;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(165deg, var(--scrollbar-thumb-hover), var(--soft-terracotta));
}

*::-webkit-scrollbar-thumb:active {
    background: var(--soft-terracotta);
}

*::-webkit-scrollbar-corner {
    background: var(--cream);
}

body.dark-mode {
    --scrollbar-track: rgba(243, 231, 216, 0.1);
    --scrollbar-thumb: rgba(223, 199, 174, 0.38);
    --scrollbar-thumb-hover: rgba(243, 215, 190, 0.58);
}

body.dark-mode *::-webkit-scrollbar-corner {
    background: #2a211c;
}

body.dark-mode *::-webkit-scrollbar-thumb {
    background: linear-gradient(165deg, rgba(223, 199, 174, 0.45), rgba(191, 115, 85, 0.55));
}

.mobile-menu-overlay,
.catalog-list,
.selected-list,
.product-detail-modal-content {
    scrollbar-width: thin;
}

.mobile-menu-overlay::-webkit-scrollbar {
    width: var(--scrollbar-size-thin);
}

.mobile-menu-overlay::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-overlay::-webkit-scrollbar-thumb {
    background: linear-gradient(165deg, rgba(243, 231, 216, 0.55), rgba(191, 115, 85, 0.65));
    border: 2px solid rgba(63, 45, 36, 0.3);
}

.mobile-menu-overlay::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(165deg, rgba(243, 231, 216, 0.75), var(--soft-terracotta));
}

/* 全域載入動畫 - 切換分頁時顯示 */
.global-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(251, 245, 236, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

body.light-mode .global-loader {
    background: rgba(251, 245, 236, 0.96);
}

.global-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.global-loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(191, 115, 85, 0.2);
    border-top-color: var(--soft-terracotta);
    border-radius: 50%;
    animation: global-loader-spin 0.8s linear infinite;
}

.global-loader p {
    margin-top: 16px;
    color: var(--coffee);
    font-size: 14px;
}

body.light-mode .global-loader p {
    color: var(--coffee);
}

@keyframes global-loader-spin {
    to { transform: rotate(360deg); }
}

/* 敬請期待 彈窗 - 與網站同一風格 */
.coming-soon-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: coming-soon-fadeIn 0.25s ease;
}
.coming-soon-modal.is-open {
    display: flex;
}
@keyframes coming-soon-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(63, 45, 36, 0.45);
    cursor: pointer;
}
.coming-soon-box {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(191, 115, 85, 0.24);
    border-radius: 24px;
    padding: 40px 48px 36px;
    min-width: 280px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-soft);
}
body.light-mode .coming-soon-box {
    background: var(--card);
    border-color: rgba(191, 115, 85, 0.24);
    box-shadow: var(--shadow-soft);
}
.coming-soon-content {
    display: block;
    width: 100%;
}
.coming-soon-box .coming-soon-title,
.coming-soon-box .coming-soon-desc {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.coming-soon-box .coming-soon-title {
    font-size: 26px;
    margin-bottom: 16px;
}
.coming-soon-box .coming-soon-desc {
    margin-bottom: 28px;
}
.coming-soon-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--warm-taupe);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}
.coming-soon-close:hover {
    color: var(--coffee);
    background: rgba(191, 115, 85, 0.12);
}
.coming-soon-title {
    margin: 0 0 16px 0;
    font-size: 26px;
    font-weight: bold;
    color: var(--coffee);
}
.coming-soon-desc {
    margin: 0 auto 28px auto;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 100%;
    word-break: keep-all;
}
body.light-mode .coming-soon-desc {
    color: var(--muted);
}
.coming-soon-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 40px;
    background: linear-gradient(135deg, var(--coffee), var(--soft-terracotta));
    color: #fffaf3;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.coming-soon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(93, 64, 52, 0.22);
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    transition: background 0.4s, color 0.4s;
    background:
        radial-gradient(circle at top left, rgba(191, 115, 85, 0.12), transparent 34rem),
        linear-gradient(180deg, var(--cream), #f7ecdf 52%, #efe1d2);
    color: var(--deep-brown);
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

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

/* ===== dark / light ===== */
body.dark-mode {
    background:
        radial-gradient(circle at top left, rgba(191, 115, 85, 0.18), transparent 32rem),
        linear-gradient(180deg, #33251f, #433128 55%, #2b211d);
    color: #f8efe3;
}

/* 覆蓋各頁 inline 深棕字色，dark mode 改淺色 */
body.dark-mode [style*="color: #5d4034"],
body.dark-mode [style*="color:#5d4034"],
body.dark-mode [style*="color: #3f2d24"],
body.dark-mode [style*="color:#3f2d24"] {
    color: #fff3e7 !important;
}

body.dark-mode [style*="color: #7d6c60"],
body.dark-mode [style*="color:#7d6c60"] {
    color: #e4d2c3 !important;
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode label,
body.dark-mode span,
body.dark-mode a,
body.dark-mode strong {
    color: inherit;
}

body.dark-mode .product p,
body.dark-mode .product-price {
    color: #f3d7bf;
}

body.dark-mode .product-description {
    color: #e4d2c3 !important;
}

body.dark-mode .search-filter-label,
body.dark-mode .search-filter-heading,
body.dark-mode #searchTitle {
    color: #fff3e7;
}

body.light-mode .search-filter-label,
body.light-mode .search-filter-heading {
    color: var(--coffee);
}

body.light-mode #searchTitle {
    color: var(--deep-brown);
}

body.light-mode .search-status-msg {
    color: var(--muted);
}

body.dark-mode .search-status-msg {
    color: #e4d2c3;
}

.coming-soon-panel {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--deep-brown);
    padding: 64px 16px;
}

body.dark-mode .coming-soon-panel {
    color: #fff3e7;
}

body.lang-zh .coming-soon-panel .lang-zh,
body.lang-en .coming-soon-panel .lang-en {
    display: inline;
}

body.lang-zh .coming-soon-panel .lang-en,
body.lang-en .coming-soon-panel .lang-zh {
    display: none;
}

body.light-mode {
    background:
        radial-gradient(circle at top left, rgba(191, 115, 85, 0.12), transparent 34rem),
        linear-gradient(180deg, var(--cream), #f7ecdf 52%, #efe1d2);
    color: var(--deep-brown);
}

body.dark-mode .top-banner,
body.dark-mode header,
body.dark-mode footer {
    background: rgba(55, 39, 32, 0.92);
}

body.dark-mode .newsletter {
    background: rgba(45, 34, 29, 0.9);
}

body.dark-mode .product {
    background: rgba(255, 250, 243, 0.08);
    border: 1px solid rgba(243, 231, 216, 0.16);
}

body.dark-mode .review {
    background: rgba(255, 250, 243, 0.08);
}

/* 亮色模式樣式 */
body.light-mode .top-banner,
body.light-mode header,
body.light-mode footer {
    background: rgba(251, 245, 236, 0.92);
    border-bottom-color: var(--line);
}

body.light-mode .top-banner {
    color: var(--deep-brown);
}

body.light-mode .top-banner .close-banner {
    color: var(--deep-brown);
}

body.light-mode .newsletter {
    background: var(--cream-strong);
}

body.light-mode .product {
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

body.light-mode .review {
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

body.light-mode .theme-toggle {
    background: rgba(223, 199, 174, 0.6);
    box-shadow: 0 8px 18px rgba(86, 57, 43, 0.1);
}

body.light-mode .theme-toggle i {
    color: var(--coffee);
}

body.light-mode header {
    border-bottom-color: var(--line);
}

body.light-mode footer {
    border-top-color: var(--line);
}

/* 內頁內容區塊 - 亮色模式會轉為白底 */
.page-content-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 250, 243, 0.08);
    border: 1px solid rgba(243, 231, 216, 0.16);
}
body.light-mode .page-content-box {
    background: var(--card);
    color: var(--deep-brown);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}
body.light-mode .page-content-box[style*="border: 2px"] {
    border: 1px solid rgba(191, 115, 85, 0.24);
}
.page-content-box h3,
.page-content-box h2 {
    color: var(--soft-terracotta);
}
body.light-mode .page-content-box h3,
body.light-mode .page-content-box h2 {
    color: var(--coffee);
}
.page-content-box p {
    color: inherit;
}
.content-card {
    padding: 30px;
    border-radius: 22px;
    margin-bottom: 20px;
    background: rgba(255, 250, 243, 0.08);
    border: 1px solid rgba(243, 231, 216, 0.14);
}
body.light-mode .content-card {
    background: var(--card);
    color: var(--deep-brown);
    box-shadow: var(--shadow-soft);
    border-color: var(--line);
}
.content-card h3 {
    color: var(--soft-terracotta);
}
body.light-mode .content-card h3 {
    color: var(--coffee);
}
.content-card p {
    color: inherit;
}
.content-block {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    background: rgba(255, 250, 243, 0.08);
}
body.light-mode .content-block {
    background: var(--cream-strong);
    color: var(--deep-brown);
}
body.light-mode .content-block p {
    color: var(--muted);
}
body.light-mode .content-block strong {
    color: var(--coffee);
}

.theme-toggle {
    background: rgba(255, 250, 243, 0.12);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(34, 23, 18, 0.2);
    transition: all 0.4s;
    margin-left: 20px;
    flex-shrink: 0;
}

.theme-toggle i {
    font-size: 20px;
    color: #fffaf3;
    position: absolute;
    transition: all 0.4s;
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(360deg);
}

body.light-mode .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(-360deg);
}

body.light-mode .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0);
}

/* ===== Language Toggle ===== */
.language-toggle {
    position: relative;
    margin-left: 20px;
    flex-shrink: 0;
}

.language-toggle-btn {
    background: rgba(255, 250, 243, 0.12);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(34, 23, 18, 0.2);
    transition: all 0.3s ease;
    font-size: 20px;
    border: none;
    color: inherit;
    transform: rotateY(0deg);
    transform-style: preserve-3d;
}

.language-toggle-btn:hover {
    background: rgba(191, 115, 85, 0.18);
    transform: scale(1.1);
}

body.light-mode .language-toggle-btn {
    background: rgba(223, 199, 174, 0.6);
    box-shadow: 0 8px 18px rgba(86, 57, 43, 0.1);
}

body.light-mode .language-toggle-btn:hover {
    background: rgba(191, 115, 85, 0.18);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #4a352c;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(34, 23, 18, 0.25);
    min-width: 120px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: 1000;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
    transform-origin: top;
}

.language-dropdown.active {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
}

body.light-mode .language-dropdown {
    background: var(--card);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

.language-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: #fffaf3;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.language-option:hover {
    background: rgba(191, 115, 85, 0.18);
    color: #fff3e7;
}

.language-option.active {
    background: rgba(191, 115, 85, 0.24);
    color: #fff3e7;
    font-weight: bold;
}

body.light-mode .language-option {
    color: var(--deep-brown);
}

body.light-mode .language-option:hover {
    background: rgba(191, 115, 85, 0.16);
}

body.light-mode .language-option.active {
    background: rgba(143, 159, 127, 0.18);
}

/* Language-specific display - Default to Chinese */
/* Block elements */
h1.lang-zh, h2.lang-zh, h3.lang-zh, h4.lang-zh, h5.lang-zh, h6.lang-zh,
div.lang-zh, section.lang-zh, article.lang-zh, header.lang-zh, footer.lang-zh {
    display: block;
}

h1.lang-en, h2.lang-en, h3.lang-en, h4.lang-en, h5.lang-en, h6.lang-en,
div.lang-en, section.lang-en, article.lang-en, header.lang-en, footer.lang-en {
    display: none;
}

/* Inline elements */
span.lang-zh, p.lang-zh, a.lang-zh, label.lang-zh {
    display: inline;
}

span.lang-en, p.lang-en, a.lang-en, label.lang-en {
    display: none;
}

/* When English is selected */
body.lang-en h1.lang-zh, body.lang-en h2.lang-zh, body.lang-en h3.lang-zh,
body.lang-en div.lang-zh:not(.language-dropdown *), body.lang-en section.lang-zh,
body.lang-en span.lang-zh, body.lang-en p.lang-zh {
    display: none;
}

body.lang-en h1.lang-en, body.lang-en h2.lang-en, body.lang-en h3.lang-en,
body.lang-en div.lang-en:not(.language-dropdown *), body.lang-en section.lang-en,
body.lang-en span.lang-en, body.lang-en p.lang-en {
    display: block;
}

body.lang-en span.lang-en, body.lang-en p.lang-en {
    display: inline;
}

/* When Chinese is selected (explicit) */
body.lang-zh h1.lang-zh, body.lang-zh h2.lang-zh, body.lang-zh h3.lang-zh,
body.lang-zh div.lang-zh:not(.language-dropdown *), body.lang-zh section.lang-zh,
body.lang-zh span.lang-zh, body.lang-zh p.lang-zh {
    display: block;
}

body.lang-zh span.lang-zh, body.lang-zh p.lang-zh {
    display: inline;
}

body.lang-zh h1.lang-en, body.lang-zh h2.lang-en, body.lang-zh h3.lang-en,
body.lang-zh div.lang-en:not(.language-dropdown *), body.lang-zh section.lang-en,
body.lang-zh span.lang-en, body.lang-zh p.lang-en {
    display: none;
}

/* Ensure language dropdown options are always visible and not affected by language switching */
.language-dropdown,
.language-dropdown *,
.language-option {
    display: block !important;
}

.language-option {
    display: flex !important;
}

/* ===== Top Banner ===== */
.top-banner {
    background: var(--deep-brown);
    color: #fffaf3;
    text-align: center;
    padding: 12px;
    position: relative;
}

.top-banner a {
    color: #f3d7bf;
    text-decoration: underline;
}

.close-banner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #fffaf3;
    cursor: pointer;
}

/* ===== Header ===== */
header {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 250, 243, 0.12);
    position: sticky;
    top: 0;
    z-index: 998;
    background: inherit;
    backdrop-filter: blur(18px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--coffee);
    letter-spacing: 0.5px;
}

body.dark-mode .logo {
    color: #fff3e7;
}
.logo a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

.logo-mark::before {
    content: "";
    width: 38px;
    height: 38px;
    border-radius: 42% 58% 50% 50%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent 42%),
        linear-gradient(135deg, #f2cfc0, var(--soft-terracotta) 48%, var(--sage-green));
    box-shadow: inset -8px -8px 16px rgba(93, 64, 52, 0.12), 0 10px 22px rgba(93, 64, 52, 0.14);
    transform: rotate(12deg);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 34px;
    list-style: none;
}

/* Nav dropdown */
nav .nav-dropdown {
    position: relative;
}
nav .nav-dropdown > span {
    cursor: pointer;
    font-weight: 500;
    color: inherit;
    transition: color 0.3s;
}
nav .nav-dropdown:hover > span { color: var(--soft-terracotta); }
nav .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: #4a352c;
    border: 1px solid rgba(243, 231, 216, 0.16);
    border-radius: 14px;
    min-width: 160px;
    z-index: 100;
}
body.light-mode nav .nav-dropdown-menu {
    background: var(--card);
    border-color: var(--line);
    box-shadow: var(--shadow-soft);
}
nav .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
nav .nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
nav .nav-dropdown-menu a:hover {
    color: var(--soft-terracotta);
    background: rgba(191, 115, 85, 0.12);
}

nav .nav-dropdown-products .nav-dropdown-menu {
    overflow: visible;
}

/* 手鏈：向右外伸子選單 */
nav .nav-dropdown-flyout {
    position: relative;
    list-style: none;
}
nav .nav-flyout-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px;
    cursor: default;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
nav .nav-flyout-arrow {
    font-size: 18px;
    line-height: 1;
    opacity: 0.65;
    transition: transform 0.2s, opacity 0.2s;
}
nav .nav-dropdown-flyout:hover .nav-flyout-trigger {
    color: var(--soft-terracotta);
    background: rgba(191, 115, 85, 0.12);
}
nav .nav-dropdown-flyout:hover .nav-flyout-arrow {
    opacity: 1;
    transform: translateX(2px);
}
nav .nav-flyout-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin: 0 0 0 -4px;
    padding: 8px 0;
    list-style: none;
    min-width: 168px;
    background: #4a352c;
    border: 1px solid rgba(243, 231, 216, 0.16);
    border-radius: 14px;
    z-index: 110;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
body.light-mode nav .nav-flyout-menu {
    background: var(--card);
    border-color: var(--line);
    box-shadow: var(--shadow-soft);
}
nav .nav-flyout-menu::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    width: 10px;
    height: 100%;
}
nav .nav-dropdown-flyout:hover .nav-flyout-menu {
    display: block;
}
nav .nav-flyout-menu a {
    display: block;
    padding: 10px 16px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
}
nav .nav-flyout-menu a:hover {
    color: var(--soft-terracotta);
    background: rgba(191, 115, 85, 0.12);
}

.mobile-menu-group-label {
    color: rgba(243, 231, 216, 0.55);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 0 4px;
    pointer-events: none;
}
.mobile-menu-sublabel {
    color: rgba(243, 231, 216, 0.75);
    font-size: 13px;
    padding: 4px 0 2px;
    pointer-events: none;
}
.mobile-menu-group-spaced {
    margin-top: 18px;
}
.mobile-menu-list .mobile-menu-group-label + .mobile-menu-sublabel {
    margin-top: 0;
}

nav a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.header-right > a {
    text-decoration: none;
    color: inherit;
    font-size: 24px;
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.header-right > a:hover {
    color: var(--soft-terracotta);
}

/* Logo hover effect */
nav a {
    position: relative;
    display: inline-block;
}

nav a img {
    transition: opacity 0.3s ease;
}

nav a img.default-img {
    display: block;
}

nav a img.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav a:hover img.default-img {
    opacity: 0;
}

nav a:hover img.hover-img {
    opacity: 1;
}

/* For About.html and staffDashboard.html */
.Home {
    position: relative;
    display: inline-block;
}

.Home img.default-img {
    display: block;
}

.Home img.hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.Home:hover img.default-img {
    opacity: 0;
}

.Home:hover img.hover-img {
    opacity: 1;
}

nav a:hover {
    color: var(--soft-terracotta);
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-bar {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.search-bar form {
    position: relative;
    display: inline-block;
    width: 100%;
}

.search-bar input {
    padding: 12px 40px 12px 15px;
    border: 1px solid rgba(93, 64, 52, 0.14);
    border-radius: 30px;
    width: 280px;
    background: rgba(255, 250, 243, 0.72);
    color: var(--deep-brown);
    box-sizing: border-box;
}

.search-bar button {
    background: none;
    border: none;
    color: var(--coffee);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.header-icons a {
    font-size: 24px;
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--soft-terracotta);
    color: #fffaf3;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Hero & Stats ===== */
.hero {
    padding: 96px 0 80px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 32px 4% auto auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 159, 127, 0.2), transparent 68%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 620px;
}

.hero-content h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    margin-bottom: 24px;
    color: var(--deep-brown);
    letter-spacing: -1.8px;
}

body.dark-mode .hero-content h1 {
    color: #fff3e7;
}

.hero-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--soft-terracotta);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

body.lang-zh .hero-eyebrow.lang-zh,
body.lang-en .hero-eyebrow.lang-en {
    display: inline-flex;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
    max-width: 560px;
}

body.dark-mode .hero-subtitle {
    color: #e4d2c3;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.shop-now {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--coffee), var(--soft-terracotta));
    color: #fffaf3;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 14px 28px rgba(93, 64, 52, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.shop-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(93, 64, 52, 0.24);
}

.shop-now.secondary {
    background: rgba(255, 250, 243, 0.68);
    color: var(--coffee);
    border: 1px solid rgba(93, 64, 52, 0.18);
    box-shadow: none;
}

.shop-now.secondary:hover {
    background: var(--card);
    box-shadow: 0 12px 26px rgba(86, 57, 43, 0.12);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background: var(--cream-strong);
    border-radius: 20px;
}

/* Hero carousel 走馬燈 */
.hero-carousel {
    flex: 1;
    min-width: 300px;
    height: 440px;
    border-radius: 34px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(93, 64, 52, 0.12);
}

.hero-carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.hero-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-photo-slide {
    background-color: var(--cream-strong);
}

.crystal-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.75), transparent 18rem),
        linear-gradient(145deg, #f8eadc, #dfc7ae 46%, #b98468);
}

.crystal-slide::before,
.crystal-slide::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%) rotate(8deg);
    clip-path: polygon(50% 0%, 82% 18%, 94% 68%, 50% 100%, 8% 68%, 18% 18%);
}

.crystal-slide::before {
    width: 160px;
    height: 250px;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.75), transparent 32%),
        linear-gradient(145deg, rgba(255,255,255,0.24), rgba(255,255,255,0) 48%),
        linear-gradient(160deg, #ead5f6, #c09bd3 55%, #7c5d8e);
    box-shadow: 0 34px 70px rgba(93, 64, 52, 0.2);
}

.crystal-slide::after {
    width: 98px;
    height: 168px;
    top: 58%;
    left: 36%;
    opacity: 0.82;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.65), transparent 36%),
        linear-gradient(160deg, #f4d2c5, #d99d85 55%, #a96652);
}

.crystal-slide-rose {
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.75), transparent 18rem),
        linear-gradient(145deg, #fbefe6, #e6c8ba 46%, #c88672);
}

.crystal-slide-citrine {
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.75), transparent 18rem),
        linear-gradient(145deg, #fbf1df, #d9bd8e 46%, #b77b52);
}

.crystal-slide-citrine::before {
    background:
        linear-gradient(115deg, rgba(255,255,255,0.75), transparent 32%),
        linear-gradient(160deg, #f4df9f, #c99454 58%, #8f6542);
}

.crystal-slide-rose::before {
    background:
        linear-gradient(115deg, rgba(255,255,255,0.75), transparent 32%),
        linear-gradient(160deg, #f7d5d8, #d79aa6 58%, #9b6871);
}

.hero-carousel-prev,
.hero-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 250, 243, 0.76);
    color: var(--coffee);
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.hero-carousel-prev:hover,
.hero-carousel-next:hover {
    background: var(--coffee);
    color: #fffaf3;
}

.hero-carousel-prev { left: 12px; }
.hero-carousel-next { right: 12px; }

body.light-mode .hero-carousel-prev,
body.light-mode .hero-carousel-next {
    background: rgba(255, 250, 243, 0.76);
    color: var(--coffee);
}
body.light-mode .hero-carousel-prev:hover,
body.light-mode .hero-carousel-next:hover {
    background: var(--coffee);
    color: #fffaf3;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 64px auto 0;
    flex-wrap: wrap;
    width: min(980px, 90%);
}

.stat {
    min-width: 210px;
    padding: 22px 28px;
    text-align: center;
    background: rgba(255, 250, 243, 0.72);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(86, 57, 43, 0.08);
}

.stat h3 {
    font-size: 36px;
    color: var(--soft-terracotta);
    line-height: 1;
    margin-bottom: 8px;
}

.stat p {
    color: var(--muted);
}

/* ===== Product Grid ===== */
section {
    padding: 96px 0;
}

section h2 {
    font-size: clamp(32px, 4vw, 46px);
    text-align: center;
    margin-bottom: 16px;
    color: var(--deep-brown);
    letter-spacing: -0.8px;
}

body.dark-mode section h2 {
    color: #fff3e7;
}

.section-intro {
    max-width: 680px;
    margin: 0 auto 46px;
    text-align: center;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

body.lang-zh .section-intro.lang-zh,
body.lang-en .section-intro.lang-en {
    display: block;
}

body.dark-mode .section-intro {
    color: #e4d2c3;
}

.new-arrivals {
    position: relative;
}

.on-sale,
.top-selling {
    background:
        radial-gradient(circle at 12% 18%, rgba(143, 159, 127, 0.12), transparent 28rem),
        rgba(255, 250, 243, 0.26);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 34px;
}

.product {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    transition: 0.4s;
    text-align: left;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(191, 115, 85, 0.28);
}

.product-image-container {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.product-image {
    height: 260px;
    overflow: hidden;
    background-color: var(--cream-strong);
    background-size: 145%;
    background-position: center 58%;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background:
        radial-gradient(circle at 24% 18%, rgba(255,255,255,0.75), transparent 9rem),
        linear-gradient(145deg, #f8eadc, #e2c8ae 52%, #b68169);
}

.product-image-placeholder::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 250, 243, 0.54);
    border-radius: 22px;
}

.crystal-shape {
    width: 92px;
    height: 142px;
    clip-path: polygon(50% 0%, 84% 20%, 94% 68%, 50% 100%, 8% 68%, 16% 20%);
    background:
        linear-gradient(115deg, rgba(255,255,255,0.75), transparent 32%),
        linear-gradient(160deg, #f3d6ce, #c58f77 54%, #8b654f);
    box-shadow: 0 24px 48px rgba(86, 57, 43, 0.2);
    transform: rotate(8deg);
}

.placeholder-label {
    position: absolute;
    left: 24px;
    bottom: 24px;
    color: rgba(63, 45, 36, 0.64);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    transform: scale(1.4);
    transform-origin: center 58%;
    display: block;
}

.product h4 {
    padding: 24px 24px 6px;
    font-size: 20px;
    line-height: 1.35;
    color: var(--deep-brown);
    cursor: pointer;
    transition: color 0.3s;
}

body.dark-mode .product h4 {
    color: #fff3e7;
}

.product h4:hover {
    color: var(--soft-terracotta);
}

.product-image-container {
    cursor: pointer;
}

.product p {
    color: var(--coffee);
    font-weight: bold;
}

.product-description {
    padding: 0 24px;
    color: var(--muted) !important;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400 !important;
    min-height: 72px;
}

body.dark-mode .product-description {
    color: #e4d2c3 !important;
}

.product-price {
    padding: 12px 24px 0;
    font-size: 20px;
    margin-top: auto;
}

body.dark-mode .product-price {
    color: #f3d7bf;
}

.add-to-cart {
    margin: 18px 24px 24px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--coffee), var(--soft-terracotta));
    color: #fffaf3;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 12px 24px rgba(93, 64, 52, 0.16);
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(93, 64, 52, 0.22);
}

/* ===== Reviews Carousel ===== */
.reviews-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.reviews-wrapper {
    overflow: hidden;
    border-radius: 16px;
}

.review {
    background: rgba(255, 250, 243, 0.08);
    padding: 40px;
    text-align: center;
    display: none;
    position: relative;
}

.review.active {
    display: block;
    animation: slideInRight 0.6s ease-out;
}

.review.slide-out {
    animation: slideOutLeft 0.3s ease-in;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.stars {
    color: var(--soft-terracotta);
    font-size: 24px;
    margin-bottom: 15px;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(93, 64, 52, 0.72);
    color: #fffaf3;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1;
}

.prev-btn {
    left: -70px;
}

.next-btn {
    right: -70px;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ===== Newsletter & Footer ===== */
.newsletter {
    text-align: center;
    padding: 80px 0;
    background: rgba(63, 45, 36, 0.92);
}

.newsletter-form input {
    padding: 16px;
    border: none;
    border-radius: 50px;
    width: 320px;
    margin-right: 10px;
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--soft-terracotta);
    color: #fffaf3;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

footer {
    padding: 80px 0 30px;
    border-top: 1px solid rgba(93, 64, 52, 0.12);
    color: inherit;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    color: var(--muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--soft-terracotta);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(93, 64, 52, 0.12);
}

.footer-bottom p {
    color: var(--muted);
    font-size: 14px;
}

body.light-mode .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .footer-bottom p {
    color: var(--muted);
}


/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    color: inherit;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 15px;
    line-height: 1;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #3f2d24;
    z-index: 10050;
    visibility: hidden;
    pointer-events: none;
}

body.light-mode .mobile-menu-overlay.active {
    background: #3f2d24;
}

body.dark-mode .mobile-menu-overlay.active {
    background: #2a211c;
}

.mobile-menu-overlay.active {
    display: flex;
    flex-direction: column;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 40px;
    color: #fffaf3;
    cursor: pointer;
    padding: 10px;
    z-index: 10000;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: #f3d7bf;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 80px 0 0 0;
    margin: 0;
    width: 100%;
    align-items: center;
    gap: 30px;
}

.mobile-menu-list li {
    width: 100%;
    text-align: center;
}

.mobile-menu-list a {
    display: block;
    color: #fffaf3;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    padding: 15px 0;
    transition: color 0.3s;
}

.mobile-menu-list a:hover {
    color: #f3d7bf;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 42px;
    }

    .hero {
        padding: 72px 0 56px;
    }

    .hero-content h1 {
        letter-spacing: -1px;
    }

    .hero-subtitle {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-carousel {
        width: 100%;
        height: 340px;
    }

    .stats {
        margin-top: 42px;
    }

    section {
        padding: 72px 0;
    }

    .search-bar input {
        width: 200px;
    }

    nav ul {
        gap: 20px;
        font-size: 14px;
    }

    .theme-toggle {
        width: 35px;
        height: 35px;
        margin-left: 10px;
    }

    .theme-toggle i {
        font-size: 16px;
    }

    .prev-btn {
        left: 10px;
        z-index: 1;
    }

    .next-btn {
        right: 10px;
        z-index: 1;
    }

    header .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .header-right {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        order: -1;
        margin-left: 0;
        margin-right: auto;
    }

    .header-icons {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        flex-shrink: 0;
    }

    .language-toggle {
        margin-left: 0;
        flex-shrink: 0;
    }

    .theme-toggle {
        flex-shrink: 0;
    }

    .search-bar {
        flex: 1;
        min-width: 150px;
        order: 0;
    }

    .search-bar form {
        width: 100%;
        max-width: 200px;
        position: relative;
    }

    .search-bar input {
        width: 100%;
        max-width: 200px;
        min-width: 150px;
        box-sizing: border-box;
    }
}

/* Product Detail Modal Styles */
.product-detail-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(63, 45, 36, 0.58);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-detail-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-detail-modal-content {
    background-color: var(--card);
    margin: auto;
    padding: 30px;
    border: 1px solid rgba(191, 115, 85, 0.24);
    border-radius: 28px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-hover);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-detail-modal-close {
    color: var(--coffee);
    float: right;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10001;
}

.product-detail-modal-close:hover,
.product-detail-modal-close:focus {
    color: var(--soft-terracotta);
    text-shadow: none;
    transform-style: preserve-3d;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-self: start;
    min-width: 0;
}

.product-detail-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(191, 115, 85, 0.22);
    background: var(--cream-strong);
    line-height: 0;
}

.product-detail-main-image img {
    width: 100%;
    height: 100%;
    object-position: center;
    display: block;
}

.product-detail-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-detail-thumbnail {
    width: 80px;
    height: 80px;
    object-position: center;
    border-radius: 8px;
    background: var(--cream-strong);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.product-detail-thumbnail:hover {
    opacity: 1;
    border-color: rgba(191, 115, 85, 0.5);
    transform: scale(1.05);
}

.product-detail-thumbnail.active {
    border-color: var(--soft-terracotta);
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(191, 115, 85, 0.12);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-detail-name {
    color: var(--deep-brown);
    font-size: 28px;
    margin: 0;
    line-height: 1.3;
}

.product-detail-price {
    color: var(--coffee);
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.product-detail-section {
    margin-top: 20px;
}

.product-detail-section-title {
    color: var(--soft-terracotta);
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(191, 115, 85, 0.22);
}

.product-detail-description,
.product-detail-details {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.product-detail-add-cart {
    background: linear-gradient(135deg, var(--coffee), var(--soft-terracotta));
    color: #fffaf3;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 14px 28px rgba(93, 64, 52, 0.18);
    margin-top: 10px;
}

.product-detail-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(93, 64, 52, 0.24);
}

.product-detail-size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.size-option {
    background: rgba(255, 250, 243, 0.72);
    color: var(--coffee);
    border: 1px solid rgba(191, 115, 85, 0.28);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
}

.size-option:hover {
    background: rgba(191, 115, 85, 0.12);
    border-color: var(--soft-terracotta);
    transform: translateY(-2px);
}

.size-option.selected {
    background: linear-gradient(135deg, var(--coffee), var(--soft-terracotta));
    color: #fffaf3;
    border-color: var(--soft-terracotta);
    box-shadow: 0 12px 24px rgba(93, 64, 52, 0.16);
}

.product-detail-modal-content::-webkit-scrollbar {
    width: var(--scrollbar-size-thin);
}

/* ===== Shop jewelry section ===== */
.shop-jewelry {
    padding: 72px 0 80px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-strong) 100%);
}

body.dark-mode .shop-jewelry {
    background: linear-gradient(180deg, #2a211c 0%, #1f1814 100%);
}

.shop-category-tabs,
.shop-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 28px 0 16px;
}

.shop-tab,
.shop-subtab {
    background: rgba(255, 250, 243, 0.72);
    color: var(--coffee);
    border: 1px solid rgba(191, 115, 85, 0.28);
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
}

body.dark-mode .shop-tab,
body.dark-mode .shop-subtab {
    background: rgba(63, 45, 36, 0.6);
    color: #f3e7d8;
    border-color: rgba(243, 231, 216, 0.2);
}

.shop-tab:hover,
.shop-subtab:hover,
.shop-tab.active,
.shop-subtab.active {
    background: linear-gradient(135deg, var(--coffee), var(--soft-terracotta));
    color: #fffaf3;
    border-color: var(--soft-terracotta);
    box-shadow: 0 10px 22px rgba(93, 64, 52, 0.14);
}

.shop-subtabs-wrap {
    margin-bottom: 8px;
}

.shop-sub-note {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin: 0 auto 20px;
    max-width: 640px;
    line-height: 1.6;
}

.shop-preview-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
    padding: 14px 20px;
    margin: 0 auto 28px;
    max-width: 900px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.shop-preview-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--warm-taupe);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shop-preview-text {
    flex: 1 1 200px;
    text-align: center;
    font-size: 15px;
    color: var(--coffee);
}

.shop-preview-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--soft-terracotta);
}

.shop-product-grid .shop-product-card {
    display: flex;
    flex-direction: column;
}

.shop-product-grid .shop-product-card.is-focused {
    outline: 2px solid rgba(191, 115, 85, 0.45);
    outline-offset: 4px;
}

.shop-product-grid .product-card-options-wrap {
    padding: 0 24px;
}

.shop-product-grid .product-option-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--warm-taupe);
    margin: 10px 0 6px;
}

.shop-product-grid .product-card-estimate {
    padding: 8px 24px 0;
    font-size: 14px;
    color: var(--muted);
}

.shop-product-grid .product-length-wrap {
    padding: 0;
}

.shop-product-grid .product-length-input {
    width: 100%;
    max-width: 120px;
    padding: 10px 14px;
    border: 1px solid rgba(191, 115, 85, 0.35);
    border-radius: 12px;
    font-size: 16px;
    margin-top: 6px;
    background: rgba(255, 250, 243, 0.9);
    color: var(--coffee);
}

.shop-product-grid .product-length-hint {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.shop-product-grid .shop-add-to-cart {
    margin-top: auto;
}

.product-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(63, 45, 36, 0.82);
    color: #fffaf3;
}

.shop-product-grid .product-image-container {
    position: relative;
}

/* Inquiry modal (optional follow-up) */
.inquiry-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.inquiry-modal.is-open {
    display: flex;
}
.inquiry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(63, 45, 36, 0.5);
    cursor: pointer;
}
.inquiry-box {
    position: relative;
    background: var(--card);
    border-radius: 20px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-soft);
}
.inquiry-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: var(--warm-taupe);
}

/* Responsive design for product detail modal */
@media (max-width: 768px) {
    .shop-category-tabs,
    .shop-subtabs {
        gap: 8px;
    }
    .shop-tab,
    .shop-subtab {
        padding: 8px 16px;
        font-size: 14px;
    }
    .shop-preview-bar {
        flex-direction: column;
        text-align: center;
    }
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-detail-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .product-detail-name {
        font-size: 24px;
    }
    
    .product-detail-price {
        font-size: 28px;
    }
    
    .product-detail-thumbnail {
        width: 60px;
        height: 60px;
    }
}