/* IKEA Design System & Reset */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700;900&display=swap');

:root {
    --ikea-blue: #0058a3;
    --ikea-yellow: #ffdb00;
    --ikea-black: #111111;
    --ikea-dark-grey: #484848;
    --ikea-grey: #929292;
    --ikea-light-grey: #dfdfdf;
    --ikea-bg-grey: #f5f5f5;
    --ikea-white: #ffffff;
    --ikea-green: #00853e;
    --ikea-red: #e00751;
    --font-primary: 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
/* ########### 全新独立样式 - 欢迎区卡片白色文字(无背景) - 无任何样式冲突 ########### */
.welcome-card-text-white {
    background: transparent !important; /* 彻底去掉白色背景 */
    color: #ffffff !important; /* 文字基础颜色：纯白色 */
    box-shadow: none !important; /* 顺带去掉卡片内容的阴影（如果有） */
}
/* 卡片内的标题文字 纯白色 */
.welcome-card-text-white h3 {
    color: #ffffff !important;
}

.welcome-card-text-white p {
    color: #ffffff !important;
}
/* 卡片内的黄色标签 保持原有样式+白色文字 */
.welcome-card-text-white .tag-yellow {
    background-color: #DAAA00 !important;
    color: #ffffff !important;
}
/* 卡片内的橙色标签 保持原有样式+白色文字 */
.welcome-card-text-white .tag-orange {
    background-color: #E77100 !important;
    color: #ffffff !important;
}
/* 卡片内的下划线链接 纯白色+白色下划线 hover时也保持白色 */
.welcome-card-text-white .link-underline {
    color: #ffffff !important;
    text-decoration: underline #ffffff !important;
}
.welcome-card-text-white .link-underline:hover {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
    opacity: 0.9;
}
/* 移动端滚动优化 */
*::-webkit-scrollbar {
    height: 0;
    width: 0;
}

/* 确保触摸滑动流畅 */
.product-slider,
.promo-slider,
.trending-slider,
.room-slider,
.shopby-slider,
.gift-slider,
.article-slider,
.category-nav,
.reviews-slider,
.look-slider {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.product-slider > *,
.promo-slider > *,
.trending-slider > *,
.room-slider > *,
.shopby-slider > *,
.gift-slider > *,
.article-slider > *,
.reviews-slider > *,
.look-slider > * {
    scroll-snap-align: start;
}

html {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--ikea-black);
    line-height: 1.5;
    background-color: var(--ikea-white);
    font-size: 14px;
    width: 100%;
    max-width: 100vw;
    min-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 强制所有主要容器铺满屏幕 - 适配所有显示器 */
.top-bar,
.site-header,
.category-nav-wrapper,
main,
main.container,
.container,
.container-fluid,
section,
footer {
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* 确保内容不会因为滚动条产生偏移 */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

/* 全宽容器 - 用于首页某些区域 */
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

/* === TOP BAR === */
.top-bar {
    background: var(--ikea-black);
    font-size: 12px;
    color: white;
    width: 100%;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 40px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.top-bar-promo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.top-bar-promo:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.top-bar-promo svg {
    fill: #DAAA00;
}

.top-bar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.top-bar-btn .separator {
    margin: 0 2px;
    opacity: 0.6;
}

.top-bar-btn:hover { background: rgba(255,255,255,0.1); }
.top-bar-btn svg { fill: white; }

/* === HEADER === (白色背景，非sticky) */
.site-header {
    background: var(--ikea-white);
    padding: 0;
    border-bottom: 1px solid var(--ikea-light-grey);
    width: 100%;
}

.header-inner {
    width: 100%;
    padding: 12px 40px;
}

.site-header > .container {
    max-width: 100%;
    padding: 12px 40px;
    margin: 0;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* 移动端菜单按钮 - 桌面端隐藏 */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn svg {
    fill: var(--ikea-black);
}

.mobile-menu,
.mobile-overlay {
    display: none;
}

.logo img { height: 28px; }

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-btn {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--ikea-black);
    border-radius: 999px;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: var(--ikea-bg-grey);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--ikea-bg-grey);
    border-radius: 999px;
    padding: 0 6px 0 12px;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: var(--ikea-dark-grey);
}

.search-icon {
    padding: 0 16px;
    display: flex;
    align-items: center;
}

.search-icon svg { fill: var(--ikea-dark-grey); }

.search-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.search-submit-btn:hover {
    background: rgba(0,0,0,0.05);
}

.search-submit-btn svg {
    fill: var(--ikea-dark-grey);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ikea-black);
    transition: background 0.2s;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 400;
}

.action-btn:hover {
    background: var(--ikea-bg-grey);
    text-decoration: none;
}

.action-btn svg { 
    fill: var(--ikea-black); 
    width: 24px; 
    height: 24px; 
}

.action-btn.icon-only {
    padding: 8px;
}

.action-btn.icon-only span {
    display: none;
}

.hamburger-btn {
    display: none; /* Hide on desktop */
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    color: var(--ikea-black);
}

.hamburger-btn:hover { background: var(--ikea-bg-grey); }
.hamburger-btn svg { fill: var(--ikea-black); }

/* === ORDER BY PHONE BANNER === */
.order-phone-banner {
    background: var(--ikea-bg-grey);
    padding: 8px 0;
    font-size: 13px;
}

.order-phone-banner a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-phone-banner svg { fill: var(--ikea-black); }

/* === CATEGORY NAV === */
/* 分类导航 - 全宽布局 */
.category-nav-wrapper {
    width: 100%;
    max-width: 100%;
    background: white;
    padding: 16px 20px;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: visible;
}

.category-nav-wrapper::-webkit-scrollbar { display: none; }

/* 分类导航滑动按钮 */
.cat-nav-arrow {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 50%;
    display: flex;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.cat-nav-left {
    left: 20px;
    transform: translateY(-50%) translateX(-50%);
}

.cat-nav-right {
    right: 20px;
    transform: translateY(-50%) translateX(50%);
}

.cat-nav-arrow:hover {
    background: var(--ikea-bg-grey);
    border-color: var(--ikea-black);
}

.cat-nav-arrow.is-disabled,
.cat-nav-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cat-nav-arrow svg {
    fill: var(--ikea-black);
}

.category-nav {
    display: flex;
    gap: 12px;
    padding: 0;
    padding-left: 0;
    padding-right: 20px;
    overflow-x: auto;
    flex: 1;
    width: 100%;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.category-nav::-webkit-scrollbar { display: none; }

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 110px;
    max-width: 130px;
    text-align: center;
    font-size: 12px;
    padding: 12px 8px;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 8px;
    transition: border-color 0.2s;
    background: white;
    flex-shrink: 0;
}

.category-item:hover {
    border-color: var(--ikea-black);
    text-decoration: none;
}

.category-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.category-item span {
    line-height: 1.3;
}

/* === WELCOME SECTION === */
.welcome-section {
    margin-bottom: 48px;
}

.welcome-section h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-section > p {
    color: var(--ikea-dark-grey);
    margin-bottom: 24px;
}

/* 修正的 Welcome Grid: 3列布局 */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 600px;
}

.welcome-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ikea-bg-grey);
}

/* 左侧大卡片：占第一列，跨2行 */
.welcome-card-large {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* 右下角大卡片：占后两列，第二行 */
.welcome-card-bottom-right {
    grid-column: 2 / 4;
    grid-row: 2;
}

.welcome-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-card-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: white;
    padding: 20px;
    border-radius: 4px;
}

.welcome-card-content .tag {
    display: inline-block;
    background: var(--ikea-green);
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.welcome-card-content h3 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.welcome-card-content p {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ikea-dark-grey);
    margin-bottom: 14px;
}

.welcome-card-content .link-underline {
    font-size: 18px;
}

/* 欢迎区文案强制放大，避免被其它通用样式覆盖 */
.welcome-section .welcome-card-content h3 {
    font-size: 30px !important;
}

.welcome-section .welcome-card-content p {
    font-size: 18px !important;
}

.welcome-section .welcome-card-content .link-underline {
    font-size: 18px !important;
}

/* === SECTION SLIDER (带箭头的轮播) === */
.section-slider {
    margin-bottom: 8px;
    position: relative;
}

.section-trending {
    margin-bottom: 48px;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* What's trending 灵感卡片 */
.trending-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

.trending-slider::-webkit-scrollbar { display: none; }

.trending-card {
    flex: 0 0 230px;
    min-width: 230px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: var(--ikea-black);
    background: white;
}

.trending-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s;
}

.trending-card:hover img {
    transform: scale(1.03);
}

.trending-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

.badge-orange {
    background: #F26A2C;
    color: white;
}

.trending-card-content {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.trending-card-content h3 {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.trending-card-content .arrow-link {
    font-size: 18px;
    flex-shrink: 0;
}

/* Promo Slider (Deals & offers) */
.promo-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

.promo-slider::-webkit-scrollbar { display: none; }

.promo-card {
    flex: 0 0 200px;
    min-width: 200px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: var(--ikea-black);
    background: white;
}

.promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.promo-card:hover img {
    transform: scale(1.03);
}

.promo-content {
    padding: 12px;
}

.promo-content h3 {
    font-size: 14px;
    font-weight: 400;
    margin: 8px 0 0 0;
}

/* Room Slider (Inspiration for every room) */
.room-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

.room-slider::-webkit-scrollbar { display: none; }

.room-card {
    flex: 0 0 calc(16.666% - 13.3px); /* 计算精准宽度 一行刚好6个 */
    min-width: calc(16.666% - 13.3px);
    max-width: 220px; /* 图片放大核心值 */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: var(--ikea-black);
    text-align: center;
}

.room-card img {
    width: 100%;
    height: 220px; /* 图片高度放大，和宽度匹配，视觉更大 */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.room-card:hover img {
    transform: scale(1.03);
}

.room-card span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
}

/* Shop by Slider */
.shopby-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}
.shopby-slider::-webkit-scrollbar { display: none; }
.shopby-card {
    flex: 0 0 calc(16.666% - 13.3px); /* 一行刚好6个 */
    min-width: calc(16.666% - 13.3px);
    max-width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ikea-black);
}

.shopby-card img {
    width: 100%;
    height: 190px; /* 图片放大，比例协调 */
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}
.shopby-card span {
    font-size: 12px;
    text-align: center;
}

/* Gift Slider */
.gift-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}
.gift-slider::-webkit-scrollbar { display: none; }
.gift-card {
    flex: 0 0 calc(20% - 12.8px); /* 一行刚好5个 */
    min-width: calc(20% - 12.8px);
    max-width: 200px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ikea-black);
}
.gift-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}
.gift-card span {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* Article Slider */
.article-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}
.article-slider::-webkit-scrollbar { display: none; }
.article-card {
    flex: 0 0 calc(25% - 12px); /* 一行刚好4个 */
    min-width: calc(25% - 12px);
    max-width: 300px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ikea-black);
}
.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}
.article-card h3 {
    margin: 12px 0 4px 0;
    font-size: 14px;
    font-weight: 700;
}
.article-card p {
    margin: 0;
    font-size: 12px;
    color: var(--ikea-dark-grey);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Deals tabs */
.deals-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    border-bottom-color: var(--ikea-black);
    font-weight: 700;
}

.tab-btn:hover {
    background: var(--ikea-bg-grey);
}

/* Tag styles */
.tag-yellow {
    background: var(--ikea-yellow);
    color: var(--ikea-black);
}

.tag-orange {
    background: #F26A2C;
    color: white;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.section-link svg { fill: currentColor; }

/* 轮播容器 */
.slider-container {
    position: relative;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.product-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

.product-slider::-webkit-scrollbar { display: none; }

/* 轮播箭头按钮 */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: var(--ikea-bg-grey);
}

.slider-arrow svg {
    fill: var(--ikea-black);
}

.slider-arrow-left {
    left: 0;
    transform: translateY(-50%) translateX(-50%);
}

.slider-arrow-right {
    right: 0;
    transform: translateY(-50%) translateX(50%);
}

/* "See next items" 按钮样式 */
.see-next-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.see-next-btn:hover {
    background: var(--ikea-bg-grey);
}

.see-next-btn svg {
    fill: var(--ikea-black);
}

/* === PRODUCT CARD === */
.product-card {
    position: relative;
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
}

/* 产品图片悬停效果 */
.product-image {
    aspect-ratio: 1;
    background: var(--ikea-bg-grey);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease;
}

/* 双图片悬停效果 */
.product-image .img-default {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
}

.product-image .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-image:hover .img-default {
    opacity: 0;
}

.product-image:hover .img-hover {
    opacity: 1;
}

/* 首页商品图热点标签（地图点位感） */
.product-hotspot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    pointer-events: none;
}

.product-hotspot-dot {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0058a3;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.32);
}

.product-hotspot-dot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    margin-top: -15px;
    border-radius: 50%;
    border: 2px solid rgba(0, 88, 163, 0.32);
    animation: hotspot-pulse 1.8s ease-out infinite;
}

.product-hotspot-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    margin-top: -2px;
    border-radius: 50%;
    background: #ffffff;
}

.product-hotspot-info {
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: min(74vw, 188px);
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    transform: translate(-50%, 6px) scale(0.96);
    transform-origin: center bottom;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-hotspot-info::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    margin-left: -5px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: rgba(17, 17, 17, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.product-promo-tag {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.product-promo-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-promo-price {
    display: inline-flex;
    align-items: flex-start;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.product-promo-price .price-currency {
    font-size: 10px;
    margin: 2px 2px 0 0;
}

.product-promo-cta {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.product-image:hover .product-hotspot-info,
.product-image:focus-visible .product-hotspot-info {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.product-image:hover .product-hotspot-dot::before,
.product-image:focus-visible .product-hotspot-dot::before {
    animation-duration: 1.2s;
}

@keyframes hotspot-pulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* 图片加载失败占位 */
.product-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}
.product-image.no-image::after {
    content: '';
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ccc'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* 单图片悬停 - 缩放效果 */
.product-image:hover img:only-child {
    transform: scale(1.05);
}

/* 禁用悬停效果的产品卡片 */
.product-card.no-hover .product-image:hover img:only-child {
    transform: none;
}

@media (max-width: 768px) {
    .product-hotspot-dot {
        width: 14px;
        height: 14px;
    }

    .product-hotspot-dot::before {
        animation: none;
    }

    .product-hotspot-info {
        left: 50%;
        bottom: 20px;
        width: min(72vw, 162px);
        padding: 7px 8px;
        opacity: 1;
        transform: translateX(-50%);
    }

    .product-promo-name {
        font-size: 11px;
    }

    .product-promo-price {
        font-size: 17px;
    }

    .product-promo-cta {
        font-size: 10px;
    }
}

.product-info h3 {
    font-size: 14px;
    font-weight: 700;
}

.product-desc {
    font-size: 13px;
    color: var(--ikea-dark-grey);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Linter fix */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
}

.price-currency {
    font-size: 12px;
    margin-right: 2px;
    margin-top: 2px;
}

.price-decimals {
    font-size: 12px;
    margin-top: 2px;
}

.product-meta {
    margin-top: 8px;
}

.rating {
    font-size: 12px;
    color: var(--ikea-dark-grey);
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ikea-dark-grey);
    margin-top: 4px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    background: var(--ikea-green);
    border-radius: 50%;
}

.stock-dot-outline {
    background: transparent;
    border: 1px solid var(--ikea-dark-grey);
}

.color-options {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.color-more {
    font-size: 12px;
    color: var(--ikea-dark-grey);
}

/* 购物车按钮和收藏按钮 */
.product-actions {
    position: absolute;
    bottom: 180px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 6;
    pointer-events: auto;
}

.product-add-btn {
    position: absolute;
    bottom: 110px;
    right: 8px;
}

.btn-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ikea-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-circle:hover {
    background: #004f93;
    transform: scale(1.1);
}

.btn-icon-circle svg {
    fill: white;
    width: 20px;
    height: 20px;
}

.btn-icon-outline {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--ikea-light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 7;
}

.btn-icon-outline:hover {
    background: var(--ikea-bg-grey);
}

.btn-icon-outline svg {
    fill: var(--ikea-black);
    width: 20px;
    height: 20px;
}

.product-compare-btn.is-active {
    background: var(--ikea-blue);
    border-color: var(--ikea-blue);
}

.product-compare-btn.is-active svg {
    fill: white;
}

.product-collect-btn.is-collected {
    background: #e00751;
    border-color: #e00751;
}

.product-collect-btn.is-collected svg {
    fill: white;
}

/* === BADGES === */
.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
    z-index: 1;
}

.badge-red { background: var(--ikea-red); color: white; }
.badge-yellow { background: var(--ikea-yellow); color: var(--ikea-black); }
.badge-blue { background: var(--ikea-blue); color: white; }
.badge-pink { background: #E00751; color: white; }
.badge-green { background: #007A33; color: white; }
.badge-orange { background: #F26A2C; color: white; }

.price-old {
    font-size: 12px;
    color: var(--ikea-dark-grey);
    text-decoration: line-through;
    display: block;
    margin-top: 4px;
}

/* === DEALS SECTION === */
.section-deals h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.deal-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--ikea-bg-grey);
    border-radius: 8px;
    position: relative;
}

.deal-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deal-info h3 {
    font-size: 14px;
    font-weight: 700;
}

.deal-info p {
    font-size: 13px;
    color: var(--ikea-dark-grey);
    margin-bottom: 8px;
}

.deal-prices {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-new {
    font-size: 20px;
    font-weight: 700;
    color: var(--ikea-red);
    display: flex;
    align-items: flex-start;
}

.price-old {
    font-size: 14px;
    color: var(--ikea-grey);
    text-decoration: line-through;
}

/* === INSPIRATION SECTION === */
.inspiration-section {
    margin-bottom: 48px;
}

.inspiration-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.inspiration-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}

.inspiration-card {
    position: relative;
    flex: 0 0 280px;
    aspect-ratio: 4/5;
    border-radius: 8px;
    overflow: hidden;
}

.inspiration-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inspiration-card span {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: white;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 999px;
}

/* === SHOP BY === */
.shopby-section {
    margin-bottom: 48px;
}

.shopby-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.shopby-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}

.shopby-card {
    flex: 0 0 160px;
    text-align: center;
}

.shopby-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.shopby-card span {
    font-size: 13px;
    font-weight: 700;
}

/* === GIFT SECTION === */
.gift-section {
    margin-bottom: 48px;
}

.gift-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* === ARTICLES === */
.articles-section {
    margin-bottom: 48px;
}

.articles-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.article-card {
    background: var(--ikea-bg-grey);
    padding: 24px;
    border-radius: 8px;
}

.article-badge {
    display: inline-block;
    background: var(--ikea-blue);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.article-card p {
    font-size: 13px;
    color: var(--ikea-dark-grey);
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Linter fix */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === SERVICES === */
.services-section {
    margin-bottom: 48px;
}

.services-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-card {
    padding: 24px;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 8px;
}

.service-card svg {
    fill: var(--ikea-black);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.service-card p {
    font-size: 13px;
    color: var(--ikea-dark-grey);
}

/* === SAFETY === */
.safety-section {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--ikea-bg-grey);
    border-radius: 8px;
}

.safety-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.safety-section p {
    margin-bottom: 16px;
    color: var(--ikea-dark-grey);
}

/* === ABOUT === */
.social-feed-section {
    margin-bottom: 48px;
    padding: 18px 16px;
    border-radius: 12px;
    background: #f1f3f5;
    border: 1px solid #e3e7ec;
}

.social-feed-header {
    align-items: center;
    margin-bottom: 12px;
}

.social-icon-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.social-icon-strip::-webkit-scrollbar {
    height: 6px;
}

.social-icon-strip::-webkit-scrollbar-thumb {
    background: #c9cdd3;
    border-radius: 999px;
}

.social-icon-list,
.payment-icon-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d8dde3;
    border-radius: 50%;
    background: white;
    color: #4a4f56;
    flex: 0 0 auto;
    transition: all 0.2s ease;
}

.social-icon-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.social-icon-btn:hover {
    border-color: #111;
    color: #111;
}

.payment-icon-list {
    gap: 7px;
}

.payment-logo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 4px;
    border: 1px solid #dce4ee;
    border-radius: 4px;
    background: #fff;
    flex: 0 0 auto;
}

.payment-logo-pill img {
    display: block;
    width: auto;
    height: auto;
    max-height: 16px;
    max-width: 100%;
}

.about-section {
    margin-bottom: 48px;
}

.about-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-section p {
    margin-bottom: 16px;
    line-height: 1.6;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--ikea-blue);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #004f93;
    text-decoration: none;
}

.btn-primary.btn-small {
    padding: 10px 16px;
    font-size: 12px;
}

.btn-primary.btn-outline {
    background: transparent;
    border: 1px solid var(--ikea-black);
    color: var(--ikea-black);
}

.btn-primary.btn-outline:hover {
    background: var(--ikea-bg-grey);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--ikea-black);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
}

.link-underline {
    font-weight: 700;
    text-decoration: underline;
}

/* === FOOTER === */
.site-footer {
    background: var(--ikea-bg-grey);
    padding: 48px 0 24px;
  
}

.footer-join-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.footer-join-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
}

.footer-join-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-join-card p {
    font-size: 13px;
    color: var(--ikea-dark-grey);
    margin-bottom: 16px;
}

.footer-join-card a {
    margin-right: 16px;
}

.footer-learn-more-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.footer-more-details {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--ikea-bg-grey);
}

.footer-more-details[hidden] {
    display: none !important;
}

.footer-more-details p {
    margin-bottom: 0;
}

.footer-system-scope {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--ikea-light-grey);
    font-size: 12px;
    line-height: 1.7;
    color: var(--ikea-dark-grey);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    font-size: 13px;
    color: var(--ikea-dark-grey);
}

.footer-section a:hover {
    color: var(--ikea-black);
}

.footer-payments {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 0;
    border-top: 1px solid var(--ikea-light-grey);
    border-bottom: 1px solid var(--ikea-light-grey);
    margin-bottom: 24px;
}

.footer-payments-head {
    max-width: 360px;
}

.footer-payments-title {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ikea-dark-grey);
}

.footer-payments-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--ikea-grey);
}

.footer-payment-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #dbe4ef;
    background: #fff;
}

.payment-method-logo {
    width: 38px;
    height: 24px;
    flex: 0 0 38px;
}

.payment-method-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.payment-method-info strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--ikea-black);
    line-height: 1.3;
}

.payment-method-info small {
    margin-top: 2px;
    font-size: 11px;
    color: var(--ikea-grey);
    line-height: 1.4;
}

.footer-bottom {
    padding-top: 24px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--ikea-dark-grey);
}

.footer-legal a {
    color: var(--ikea-dark-grey);
}

.footer-lang-switch {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.footer-lang-switch a {
    color: var(--ikea-dark-grey);
    text-decoration: underline;
}

/* ==========================================
   LIST PAGE STYLES
   ========================================== */

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ikea-dark-grey);
}

.breadcrumb a:hover { color: var(--ikea-black); }
.breadcrumb span { color: var(--ikea-dark-grey); }

/* PLP Header */
.plp-header {
    margin-bottom: 32px;
}

.plp-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.plp-header p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 800px;
}

/* Sticky category navigation (P3-32) */
.category-sticky-nav {
    position: sticky;
    top: 8px;
    z-index: 25;
    margin-bottom: 18px;
}

.category-sticky-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.category-nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 999px;
    background: var(--ikea-white);
    color: var(--ikea-dark-grey);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-nav-chip:hover {
    border-color: var(--ikea-blue);
    color: var(--ikea-blue);
}

.category-nav-chip-all {
    background: #f3f8ff;
    border-color: #bfd7ff;
    color: var(--ikea-blue);
}

/* PLP Layout */
.plp-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

/* Filters Sidebar */
.plp-filters {
    position: sticky;
    top: 20px;
    align-self: start;
}

.filter-group {
    border-bottom: 1px solid var(--ikea-light-grey);
    padding: 16px 0;
}

.filter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.filter-toggle svg { fill: var(--ikea-dark-grey); }

.filter-option {
    margin-top: 12px;
}

.filter-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.filter-option .count { color: var(--ikea-grey); }

.filter-badges {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.filter-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--ikea-bg-grey);
    border-radius: 999px;
}

/* Products Grid */
.plp-products {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.plp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.plp-count {
    font-size: 14px;
    color: var(--ikea-dark-grey);
}

.plp-sort {
    display: flex;
    gap: 16px;
}

.sort-btn, .compare-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 999px;
    font-size: 14px;
}

.sort-btn:hover, .compare-btn:hover {
    background: var(--ikea-bg-grey);
}

.sort-btn svg, .compare-btn svg { fill: var(--ikea-dark-grey); }

.compare-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.selected-filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
    padding: 10px 12px;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 10px;
    background: #f7f9fc;
}

.selected-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #bfd7ff;
    border-radius: 999px;
    background: #eaf3ff;
    color: var(--ikea-dark-grey);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.selected-filter-chip .chip-close {
    font-size: 14px;
    color: #2d5f9a;
}

.selected-filters-clear-btn {
    border: none;
    background: transparent;
    color: var(--ikea-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

#featuredPanelToggle svg {
    fill: var(--ikea-dark-grey);
}

.featured-mini-panel {
    width: min(100%, 360px);
    margin: 0 0 24px auto;
    padding: 14px;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.featured-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.featured-mini-header h3 {
    font-size: 15px;
    font-weight: 700;
}

.featured-mini-header a {
    font-size: 12px;
    color: var(--ikea-blue);
}

.featured-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-mini-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
}

.featured-mini-item:hover {
    background: var(--ikea-bg-grey);
}

.featured-mini-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.featured-mini-meta {
    min-width: 0;
}

.featured-mini-name {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ikea-black);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-mini-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--ikea-dark-grey);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.product-grid .product-card {
    flex: auto;
    max-width: 100%;
    overflow: hidden;
}

/* Design Banner */
.design-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 48px;
}

.design-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Dark overlay for better text visibility */
.design-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.design-banner-content {
    position: absolute;
    bottom: 32px;
    left: 32px;
    max-width: 400px;
    z-index: 1; /* Above the overlay */
}

.design-banner-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.design-banner-content p {
    color: white;
    margin-bottom: 16px;
}

/* Recommend Section (轮播图样式) */
.recommend-section {
    margin-bottom: 48px;
    position: relative;
}

.recommend-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Related Categories */
.related-categories {
    margin-bottom: 48px;
}

.related-categories h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.related-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--ikea-light-grey);
    background: var(--ikea-white);
    font-size: 13px;
    font-weight: 700;
    color: var(--ikea-dark-grey);
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-chip:hover {
    border-color: var(--ikea-blue);
    color: var(--ikea-blue);
}

.related-chip-all {
    background: #f3f8ff;
    border-color: #bfd7ff;
    color: var(--ikea-blue);
}

/* Editorial */
.editorial-section {
    margin-bottom: 48px;
    max-width: 800px;
}

.editorial-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.editorial-section p {
    line-height: 1.6;
}

/* ==========================================
   PRODUCT PAGE STYLES
   ========================================== */

/* PIP Layout - See updated styles below */

.pip-thumb {
    width: 80px;
    height: 80px;
    background: var(--ikea-bg-grey);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.pip-thumb:hover,
.pip-thumb.active {
    border-color: var(--ikea-black);
}

.pip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.pip-info {
    position: sticky;
    top: 20px;
    align-self: start;
}

.pip-header {
    margin-bottom: 12px;
}

.pip-title {
    font-size: 24px;
    font-weight: 700;
}

.pip-subtitle {
    font-size: 13px;
    color: var(--ikea-dark-grey);
    margin-top: 6px;
}

.pip-description {
    font-size: 14px;
    color: var(--ikea-dark-grey);
    margin-top: 4px;
}

.pip-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.pip-rating .stars {
    color: var(--ikea-yellow);
}

.pip-rating .review-count {
    color: var(--ikea-dark-grey);
}

/* Price */
.pip-price-section {
    margin-bottom: 12px;
}

.pip-price {
    display: flex;
    align-items: flex-start;
}

.pip-price .price-currency {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}

.pip-price .price-integer {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.pip-price .price-decimal {
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
}

.pip-price-info {
    font-size: 12px;
    color: var(--ikea-dark-grey);
    margin-top: 4px;
}

.pip-original-price {
    margin-top: 6px;
}

.dealer-note-card {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border: 1px solid #d9e5f3;
    border-radius: 8px;
    background: #f6faff;
}

.dealer-note-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ikea-dark-grey);
    margin-bottom: 8px;
}

.dealer-note-list {
    margin: 0;
    padding-left: 18px;
    color: #4d5b6a;
    font-size: 12px;
    line-height: 1.6;
}

.dealer-note-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ikea-blue);
    text-decoration: underline;
}

/* Color Section */
.pip-color-section {
    margin-bottom: 12px;
}

.color-label {
    font-size: 14px;
    margin-bottom: 12px;
}

.pip-color-section .color-options {
    display: flex;
    gap: 12px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--ikea-black);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--ikea-black);
}

/* Delivery Options */
.pip-delivery {
    margin-bottom: 12px;
}

.delivery-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.delivery-option:hover {
    border-color: var(--ikea-dark-grey);
}

.delivery-option.selected {
    border-color: var(--ikea-black);
    background: var(--ikea-bg-grey);
}

.delivery-option input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--ikea-blue);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.delivery-option label {
    display: flex;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.delivery-option svg {
    fill: var(--ikea-dark-grey);
    flex-shrink: 0;
}

.delivery-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.delivery-text span {
    font-size: 13px;
    color: var(--ikea-dark-grey);
}

/* Actions */
.pip-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 999px;
    overflow: hidden;
}

.qty-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--ikea-black);
    transition: background 0.2s, opacity 0.2s;
    cursor: pointer;
}

.qty-btn:hover:not(:disabled) {
    background: var(--ikea-bg-grey);
}

.qty-btn:disabled {
    cursor: not-allowed;
}

.qty-btn:active:not(:disabled) {
    background: var(--ikea-light-grey);
}

.qty-input {
    width: 48px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--ikea-blue);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    border-radius: 999px;
    transition: background 0.2s;
}

.add-to-cart-btn:hover {
    background: #004f93;
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

/* Stock */
.pip-stock {
    margin-bottom: 12px;
}

.stock-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ikea-light-grey);
    font-size: 14px;
    transition: background 0.2s;
    border-radius: 10px;
}

.stock-item:hover {
    background: var(--ikea-bg-grey);
}

.stock-item:last-child { border-bottom: none; }

.stock-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stock-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ikea-dark-grey);
}

.stock-hint {
    font-size: 12px;
    color: #3b6f9f;
}

.stock-change-link {
    margin-left: auto;
    border: none;
    background: transparent;
    color: var(--ikea-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 2px 0;
}

.stock-change-link:hover {
    color: #003f7d;
}

.stock-change-link:focus-visible {
    outline: 2px solid var(--ikea-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* How to get it */
.pip-howto {
    margin-bottom: 12px;
}

.pip-howto h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.howto-options {
    display: flex;
    gap: 12px;
}

.howto-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--ikea-bg-grey);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.howto-card svg { fill: var(--ikea-black); }
.howto-card:hover { 
    background: var(--ikea-light-grey); 
    text-decoration: none; 
}
.howto-card.active {
    border-color: var(--ikea-black);
    background: white;
}

/* Summary */
.pip-summary {
    max-width: 800px;
    margin-bottom: 48px;
}

.pip-summary p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Accordion */
.pip-accordion {
    max-width: 800px;
    margin-bottom: 48px;
}

.accordion-item {
    border-bottom: 1px solid var(--ikea-light-grey);
}

.accordion-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary svg { fill: var(--ikea-dark-grey); transition: transform 0.3s; }
.accordion-item[open] summary svg { transform: rotate(90deg); }

.accordion-content {
    padding-bottom: 20px;
}

.accordion-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.accordion-content ul {
    list-style: disc;
    padding-left: 20px;
}

.accordion-content li {
    margin-bottom: 8px;
}

/* Reviews */
.pip-reviews {
    max-width: 800px;
    margin-bottom: 48px;
}

.pip-reviews h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.reviews-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.reviews-score {
    text-align: center;
}

.score-big {
    font-size: 48px;
    font-weight: 700;
    display: block;
}

.score-stars {
    color: var(--ikea-yellow);
    font-size: 18px;
}

.reviews-meta .review-headline {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.reviews-meta .review-count {
    color: var(--ikea-dark-grey);
}

.review-bars {
    margin-bottom: 24px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.bar {
    flex: 1;
    height: 8px;
    background: var(--ikea-light-grey);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--ikea-black);
    border-radius: 4px;
}

/* Related Products */
.pip-related {
    margin-bottom: 48px;
}

.pip-related h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Design Banner Large */
.design-banner-large {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 48px;
}

.design-banner-large img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Dark overlay for better text visibility */
.design-banner-large::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.design-banner-large .design-banner-content {
    position: absolute;
    bottom: 48px;
    left: 48px;
    max-width: 500px;
    color: white;
    z-index: 1; /* Above the overlay */
}

.design-banner-large .design-banner-content h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.design-banner-large .design-banner-content p {
    font-size: 16px;
    margin-bottom: 24px;
    color: white;
}

/* Get the Look */
.get-the-look {
    margin-bottom: 48px;
}

.get-the-look h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.get-the-look > p {
    color: var(--ikea-dark-grey);
    margin-bottom: 16px;
}

.look-grid {
    display: flex;
    gap: 16px;
}

.look-card {
    flex: 0 0 200px;
    background: var(--ikea-bg-grey);
    border-radius: 8px;
    overflow: hidden;
}

.look-image {
    aspect-ratio: 1;
}

.look-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.look-info {
    padding: 16px;
}

.look-badge {
    display: inline-block;
    background: var(--ikea-green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.look-info h3 {
    font-size: 14px;
    font-weight: 700;
}

.look-info p {
    font-size: 13px;
    color: var(--ikea-dark-grey);
    margin-bottom: 8px;
}

.look-price {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
}

/* More from Series */
.more-from-series {
    margin-bottom: 48px;
}

.more-from-series h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Accessories */
.accessories-section {
    margin-bottom: 48px;
}

.accessories-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ==========================================
   PRODUCT PAGE - NEW STYLES
   ========================================== */

/* Product Layout - Match Original Site */
.pip-layout {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 32px;
    align-items: start;
    padding: 0 24px;
}

/* Product Gallery - Thumbnails Left Layout */
.pip-gallery {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
    height: 100%;
}

.pip-thumbnails-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pip-thumb-nav {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    color: var(--ikea-black);
}

.pip-thumb-nav:hover {
    background: var(--ikea-bg-grey);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pip-thumb-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pip-thumbnails-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 80px;
    flex-shrink: 0;
}

.pip-thumbnails-left .pip-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    background: #f5f5f5;
}

.pip-thumbnails-left .pip-thumb.active {
    border-color: var(--ikea-black);
}

.pip-thumbnails-left .pip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pip-main-image {
    position: relative;
    flex: 1;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pip-main-image > img#main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.product-badge {
    position: absolute;
    bottom: 24px; /* Same level as media buttons */
    left: 16px;
    z-index: 1;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
}

.pip-media-buttons {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pip-media-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.pip-media-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.pip-media-btn svg {
    fill: white;
}

/* Color Selection - Using Product Thumbnails */
.pip-color-section {
    margin-bottom: 24px;
}

.color-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.color-label-row svg {
    fill: var(--ikea-dark-grey);
}

.color-value {
    font-size: 14px;
    color: var(--ikea-dark-grey);
    margin-bottom: 12px;
}

.color-options-images {
    display: flex;
    gap: 12px;
}

.color-option-img {
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: var(--ikea-bg-grey);
}

.color-option-img.active {
    border-color: var(--ikea-black);
}

.color-option-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Customer Reviews - Card Slider Layout */
.pip-reviews {
    margin-bottom: 48px;
    background: var(--ikea-bg-grey);
    padding: 32px;
    border-radius: 8px;
}

.reviews-layout {
    display: flex;
    gap: 32px;
}

.reviews-cards-section {
    flex: 1;
    min-width: 0; /* Important: allows flex item to shrink below content size */
    overflow: visible; /* Allow arrows to show outside */
}

.reviews-cards-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.reviews-slider-container {
    position: relative;
}

.reviews-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 260px;
    min-width: 260px;
    max-width: 260px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-bottom: 3px solid var(--ikea-light-grey);
}

.review-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.review-stars {
    color: #dfdfdf;
    font-size: 14px;
    margin-bottom: 12px;
}

.review-stars span {
    color: var(--ikea-black);
    font-weight: 700;
    margin-left: 8px;
}

.review-card blockquote {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ikea-dark-grey);
    margin-bottom: 12px;
    /* Limit text to 5 lines */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5;
    overflow: hidden;
}

.review-card .reviewer {
    font-size: 12px;
    color: var(--ikea-dark-grey);
}

.reviews-summary {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reviews-score {
    margin-bottom: 16px;
}

.reviews-score .score-big {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.reviews-score .score-stars {
    color: #dfdfdf;
    font-size: 14px;
    margin: 8px 0;
}

.reviews-score .score-label {
    font-size: 13px;
    color: var(--ikea-dark-grey);
}

.reviews-count {
    margin-bottom: 20px;
}

.reviews-count .count-big {
    font-size: 32px;
    font-weight: 700;
    display: block;
}

.reviews-count .count-label {
    font-size: 13px;
    color: var(--ikea-dark-grey);
}

.btn-outline-dark {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid var(--ikea-black);
    border-radius: 999px;
    background: white;
    color: var(--ikea-black);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-outline-dark:hover {
    background: var(--ikea-black);
    color: white;
}

/* Reviews slider specific styles */
.reviews-slider-wrapper {
    padding: 0 24px;
    overflow: visible;
    position: relative;
}

.reviews-slider-wrapper .slider-arrow {
    top: 50%;
}

.reviews-slider-wrapper .slider-arrow-left {
    left: 24px;
    transform: translateY(-50%) translateX(-50%);
}

.reviews-slider-wrapper .slider-arrow-right {
    right: 24px;
    transform: translateY(-50%) translateX(50%);
}

/* Design Planner Card with Image */
.design-planner-card {
    margin-bottom: 48px;
    background: var(--ikea-bg-grey);
    border-radius: 8px;
    overflow: hidden;
}

.planner-card-image {
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
}

.planner-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.planner-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 32px;
}

.planner-badge {
    display: inline-block;
    background: var(--ikea-blue);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 6px;
}

.planner-card-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.planner-card-content p {
    color: var(--ikea-dark-grey);
    font-size: 13px;
    margin: 0;
}

/* Get the Look - Hover Overlay Style */
.look-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

.look-slider::-webkit-scrollbar {
    display: none;
}

.look-card-hover {
    flex: 0 0 220px;
    min-width: 220px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ikea-black);
}

.look-card-hover .look-image {
    aspect-ratio: 3/4;
}

.look-card-hover .look-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.look-card-hover:hover .look-image img {
    transform: scale(1.05);
}

.look-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.look-card-hover:hover .look-overlay {
    opacity: 1;
}

.look-overlay-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.look-overlay-content p {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.look-overlay-content .look-price {
    font-size: 14px;
    font-weight: 700;
}

/* We Recommend Section on Product Page */
.pip-recommend {
    margin-bottom: 48px;
}

.pip-recommend h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 隐藏悬停效果，直接显示默认图 */
    .product-image .img-hover {
        display: none;
    }
    
    /* 增大触摸目标 */
    .btn-icon-circle,
    .btn-icon-outline {
        width: 44px;
        height: 44px;
    }
    
    /* 滑动提示 */
    .slider-container {
        -webkit-overflow-scrolling: touch;
    }
    
    /* 隐藏滑动箭头 */
    .slider-arrow,
    .cat-nav-arrow {
        display: none;
    }
}

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

    .footer-join-section {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .plp-layout {
        grid-template-columns: 1fr;
    }
    
    .plp-filters {
        display: none;
    }
    
    .pip-layout {
        grid-template-columns: 1fr;
    }
    
    .pip-info {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-mini-panel {
        width: 100%;
        margin-left: 0;
    }

}

@media (max-width: 768px) {
    /* 基础容器 */
    .container {
        padding: 0 16px;
    }
    
    .container-fluid {
        padding: 0 16px;
    }
    
    /* 顶部栏 - 简化 */
    .top-bar {
        padding: 6px 0;
    }
    
    .top-bar-inner {
        padding: 6px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .top-bar-left {
        order: 1;
    }

    .social-feed-section {
        padding: 14px 12px;
    }

    .social-icon-strip {
        gap: 8px;
    }

    .social-icon-btn {
        width: 28px;
        height: 28px;
    }

    .payment-logo-pill {
        min-width: 32px;
        height: 22px;
        padding: 0 3px;
    }

    .payment-logo-pill img {
        max-height: 14px;
    }
    
    .top-bar-center {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .top-bar-right {
        order: 2;
        gap: 8px;
    }
    
    .top-bar-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .top-bar-left .top-bar-btn span:not(.separator) {
        display: none;
    }
    
    /* 右侧按钮保留文字（邮编和门店） */
    .top-bar-right .top-bar-btn {
        padding: 6px 10px;
    }
    
    .top-bar-right .top-bar-btn span {
        font-size: 10px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .top-bar-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .top-bar-promo {
        font-size: 11px;
    }
    
    .top-bar-promo svg {
        width: 16px;
        height: 16px;
    }
    
    /* Header - 移动端布局 */
    .header-inner {
        padding: 8px 12px;
    }
    
    .header-main {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    
    .logo img {
        height: 22px;
    }
    
    /* 主导航 - 移动端隐藏 */
    .main-nav {
        display: none;
    }
    
    /* 移动端汉堡菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        order: -1;
    }

    .header-main > a[href="/"] {
        order: 0;
        margin-right: auto;
    }

    #searchForm {
        order: 2;
        flex: 1 1 calc(100% - 126px);
        min-width: 0;
        margin: 0;
    }
    
    .mobile-menu-btn svg {
        fill: var(--ikea-black);
    }
    
    /* 移动端菜单面板 */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid var(--ikea-light-grey);
    }
    
    .mobile-menu-close {
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-nav {
        padding: 16px;
    }
    
    .mobile-menu-nav a,
    .mobile-menu-nav button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 0;
        font-size: 16px;
        font-weight: 700;
        color: var(--ikea-black);
        text-decoration: none;
        background: none;
        border: none;
        border-bottom: 1px solid var(--ikea-light-grey);
        cursor: pointer;
    }
    
    .mobile-menu-nav a:hover,
    .mobile-menu-nav button:hover {
        color: var(--ikea-blue);
    }
    
    /* 移动端遮罩 */
    .mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 搜索栏 - 移动端调整 */
    .search-bar {
        width: 100%;
        max-width: none;
        margin-top: 0;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    /* 用户操作 - 简化 */
    .user-actions {
        order: 3;
        flex: 0 0 auto;
        gap: 6px;
    }

    .user-btn {
        gap: 6px;
        padding: 6px 8px;
    }

    .user-btn .user-name {
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-btn .caret {
        margin-left: 0;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn svg {
        width: 22px;
        height: 22px;
    }
    
    .action-btn.icon-only {
        width: 36px;
        height: 36px;
    }
    
    /* 分类导航 */
    .category-nav-wrapper {
        padding: 12px 8px;
        gap: 8px;
    }
    
    .cat-nav-arrow {
        width: 32px;
        height: 32px;
        display: none;
    }
    
    .category-nav {
        gap: 8px;
    }
    
    .category-item {
        min-width: 80px;
        max-width: 90px;
        font-size: 11px;
    }
    
    .category-item img {
        height: 60px;
    }
    
    /* Welcome Section */
    .welcome-section h1 {
        font-size: 22px;
    }
    
    .welcome-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 12px;
    }
    
    .welcome-card-large,
    .welcome-card-bottom-right {
        grid-column: 1;
        grid-row: auto;
    }
    
    .welcome-card {
        min-height: 200px;
    }
    
    .welcome-card-content h3 {
        font-size: 24px;
    }

    .welcome-card-content p {
        font-size: 16px;
    }

    .welcome-card-content .link-underline {
        font-size: 16px;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    /* Slider Container */
    .slider-container {
        padding: 0 8px;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        display: none;
    }
    
    /* Product Cards */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        min-width: 140px;
    }
    
    .product-slider .product-card {
        flex: 0 0 160px;
        min-width: 160px;
    }
    
    .product-info h3 {
        font-size: 13px;
    }
    
    .product-desc {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    /* Promo Slider */
    .promo-slider {
        gap: 12px;
    }
    
    .promo-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    /* Trending Cards */
    .trending-slider {
        gap: 12px;
    }
    
    .trending-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .trending-card-content h3 {
        font-size: 14px;
    }
    
    /* Room Cards */
    .room-slider {
        gap: 12px;
    }
    
    .room-card {
        flex: 0 0 140px;
        min-width: 140px;
    }
    
    .room-card span {
        font-size: 12px;
    }
    
    /* Shop by Cards */
    .shopby-slider {
        gap: 12px;
    }
    
    .shopby-card {
        flex: 0 0 120px;
        min-width: 120px;
    }
    
    .shopby-card span {
        font-size: 11px;
    }
    
    /* Gift Cards */
    .gift-slider {
        gap: 12px;
    }
    
    .gift-card {
        flex: 0 0 200px;
        min-width: 200px;
    }
    
    .gift-card span {
        font-size: 12px;
    }
    
    /* Article Cards */
    .article-slider {
        gap: 12px;
    }
    
    .article-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .article-card h3 {
        font-size: 14px;
    }
    
    .article-card p {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .service-card {
        padding: 16px;
    }
    
    /* Related categories */
    .related-chip-grid {
        gap: 8px;
    }

    .related-chip {
        font-size: 12px;
        padding: 6px 10px;
        min-height: 32px;
    }
    
    /* Footer */
    .footer-join-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-join-card {
        padding: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
    
    /* PLP Page */
    .plp-header h1 {
        font-size: 22px;
    }
    
    .plp-header p {
        font-size: 13px;
    }
    
    .plp-toolbar {
        flex-direction: column;
        gap: 12px;
    }

    .selected-filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* PIP Page - Product Detail */
    .pip-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pip-gallery {
        flex-direction: column;
    }
    
    .pip-thumbnails-container {
        flex-direction: row;
        order: 2;
        width: 100%;
    }
    
    .pip-thumb-nav {
        display: none;
    }
    
    .pip-thumbnails-left {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        width: 100%;
    }
    
    .pip-thumb {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .pip-main-image {
        order: 1;
    }
    
    .pip-media-buttons {
        gap: 8px;
    }
    
    .pip-media-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .pip-title {
        font-size: 24px;
    }
    
    .pip-description {
        font-size: 14px;
    }
    
    .pip-price .price-integer {
        font-size: 28px;
    }
    
    .pip-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
    
    .howto-options {
        flex-direction: column;
    }
    
    /* Reviews */
    .reviews-layout {
        flex-direction: column;
    }
    
    .reviews-cards-section {
        width: 100%;
    }
    
    .reviews-summary {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
    
    .review-card {
        flex: 0 0 240px;
        min-width: 240px;
    }
    
    /* Color Options */
    .color-options-images {
        gap: 8px;
    }
    
    .color-option-img {
        width: 56px;
        height: 56px;
    }
    
    /* Get the Look */
    .look-slider {
        gap: 12px;
    }
    
    .look-card-hover {
        flex: 0 0 200px;
        min-width: 200px;
    }
    
    /* Design Planner Card */
    .design-planner-card {
        margin-bottom: 32px;
    }
    
    .planner-card-inner {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
    
    .planner-card-content h2 {
        font-size: 18px;
    }
    
    /* Accordion */
    .accordion-item summary {
        padding: 12px 0;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 11px;
        flex-wrap: wrap;
    }
    
    /* Order Phone Banner */
    .order-phone-banner {
        display: none;
    }
    
    /* Deals Tabs */
    .deals-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 超小屏幕 - 480px以下 */
@media (max-width: 480px) {
    .top-bar-center {
        display: none;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-slider .product-card {
        flex: 0 0 140px;
        min-width: 140px;
    }
    
    .welcome-card {
        min-height: 180px;
    }
    
    .welcome-card-content h3 {
        font-size: 20px;
    }

    .welcome-card-content p {
        font-size: 14px;
    }

    .welcome-card-content .link-underline {
        font-size: 15px;
    }
    
    .promo-card {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    .trending-card {
        flex: 0 0 240px;
        min-width: 240px;
    }
    
    .category-sticky-nav {
        top: 4px;
    }
    
    .footer-payments {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-payments-head {
        max-width: none;
    }

    .footer-payment-list {
        grid-template-columns: 1fr;
    }
    
    .pip-title {
        font-size: 20px;
    }
    
    .pip-price .price-integer {
        font-size: 24px;
    }
    
    .review-card {
        flex: 0 0 200px;
        min-width: 200px;
    }
}

/* 确保所有产品网格铺满 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    width: 100%;
}

/* 推荐和相关产品轮播铺满 */
.product-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 16px;
    scroll-behavior: smooth;
    width: 100%;
}

.product-slider .product-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 220px;
}

.related-chip-grid {
    width: 100%;
}

/* Inspiration 全宽网格 */
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
}

/* Shop by 全宽网格 */
.shopby-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
}

/* Deals 全宽 */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

/* Services 全宽 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* 文章全宽 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

/* ==========================================
   DELIVERY PANEL (Postal Code Popup)
   ========================================== */

/* How to get it - New Style */
.howto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.howto-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.change-store-link {
    font-size: 12px;
    color: var(--ikea-black);
    text-decoration: underline;
}

.change-store-link:hover {
    color: var(--ikea-blue);
}

.howto-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.howto-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.howto-option:hover {
    border-color: var(--ikea-black);
    background: var(--ikea-bg-grey);
}

.howto-option.active {
    border-color: var(--ikea-black);
    border-width: 2px;
}

.howto-option svg {
    fill: var(--ikea-black);
    flex-shrink: 0;
    margin-top: 2px;
}

.howto-option-content {
    flex: 1;
}

.howto-option-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.howto-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ikea-dark-grey);
}

.howto-status.available {
    color: var(--ikea-green);
}

.howto-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ikea-green);
}

.howto-arrow {
    fill: var(--ikea-dark-grey);
    flex-shrink: 0;
    align-self: center;
}

/* ================================================
   MODAL SYSTEM - Location & Store Modals
   ================================================ */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Base Modal Styles */
.location-modal,
.store-modal {
    position: fixed;
    top: 0;
    right: -500px;
    width: 460px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    z-index: 2001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.location-modal.active,
.store-modal.active {
    right: 0;
}

/* Modal Close Button */
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--ikea-bg-grey);
}

.modal-close-btn svg {
    fill: var(--ikea-black);
}

/* Modal Content */
.modal-content {
    padding: 48px 32px 24px;
    flex: 1;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--ikea-dark-grey);
    line-height: 1.5;
    margin-bottom: 28px;
}

/* Location Modal - Postal Code Input */
.postal-input-group {
    margin-bottom: 24px;
}

.postal-input-group label {
    display: block;
    font-size: 12px;
    color: var(--ikea-dark-grey);
    margin-bottom: 8px;
}

.postal-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--ikea-light-grey);
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    background: white;
}

.postal-input-group input:focus {
    border-color: var(--ikea-black);
}

.postal-hint {
    display: block;
    font-size: 12px;
    color: var(--ikea-dark-grey);
    margin-top: 6px;
}

/* Cookie Notice */
.cookie-notice {
    font-size: 12px;
    color: var(--ikea-dark-grey);
    line-height: 1.6;
}

.cookie-notice a {
    color: var(--ikea-black);
    text-decoration: underline;
}

.cookie-notice a svg {
    fill: var(--ikea-dark-grey);
    vertical-align: middle;
}

/* Modal Footer */
.modal-footer {
    padding: 16px 32px 32px;
    border-top: 1px solid var(--ikea-light-grey);
    background: white;
}

.modal-save-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
}

/* Register prompt modal */
body.register-prompt-open {
    overflow: hidden;
}

.register-prompt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2090;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.register-prompt-overlay.active {
    opacity: 1;
    visibility: visible;
}

.register-prompt-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(92vw, 440px);
    background: white;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    z-index: 2091;
    transform: translate(-50%, -48%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.register-prompt-modal.active {
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}

.register-prompt-content {
    padding: 36px 24px 24px;
}

.register-prompt-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.register-prompt-content p {
    font-size: 14px;
    color: var(--ikea-dark-grey);
    line-height: 1.6;
    margin-bottom: 18px;
}

.register-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ================================================
   Store Modal Specific Styles
   ================================================ */

.store-search-group {
    margin-bottom: 20px;
}

.store-search-group label {
    display: block;
    font-size: 12px;
    color: var(--ikea-dark-grey);
    margin-bottom: 8px;
}

.store-search-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--ikea-light-grey);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    background: white;
    transition: border-color 0.2s;
}

.store-search-input-wrapper:focus-within {
    border-color: var(--ikea-black);
}

.store-search-input-wrapper svg {
    fill: var(--ikea-dark-grey);
    flex-shrink: 0;
}

.store-search-input-wrapper input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.use-location-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.use-location-btn:hover {
    background: var(--ikea-bg-grey);
}

.use-location-btn svg {
    fill: var(--ikea-dark-grey);
}

/* Store Filter Checkbox */
.store-filter {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ikea-light-grey);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ikea-dark-grey);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--ikea-blue);
    border-color: var(--ikea-blue);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Store List */
.store-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.store-item {
    border: 1px solid var(--ikea-light-grey);
    border-radius: 4px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.store-item-selected {
    color:#E00751;
    border-color: var(--ikea-black);
}

.store-item:hover {
    border-color: var(--ikea-black);
}



.store-item-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    display: block;
}

.store-info {
    margin-bottom: 10px;
}

.store-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.store-address {
    font-size: 13px;
    color: var(--ikea-dark-grey);
}

.store-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.status-line .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.status-line.available .status-dot {
    background: var(--ikea-green);
}

.status-line.warning .status-dot {
    background: #eb5600;
}

.status-line.unavailable .status-dot {
    background: #e00751;
}

/* ================================================
   How to get it Buttons
   ================================================ */

.pip-howto {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ikea-light-grey);
}

.pip-howto h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.howto-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.howto-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.howto-btn:hover {
    border-color: var(--ikea-black);
}

.howto-btn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.howto-btn-left svg {
    fill: var(--ikea-black);
    flex-shrink: 0;
}

.howto-btn-text {
    text-align: left;
}

.howto-btn-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.howto-btn-text span {
    font-size: 12px;
    color: var(--ikea-dark-grey);
}

.howto-arrow {
    fill: var(--ikea-dark-grey);
    flex-shrink: 0;
}

/* ================================================
   Modal Mobile Responsive
   ================================================ */

@media (max-width: 768px) {
    .location-modal,
    .store-modal {
        width: 100%;
        right: -100%;
    }
    
    .modal-content {
        padding: 48px 20px 20px;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px 24px;
    }

    .register-prompt-content {
        padding: 32px 18px 20px;
    }

    .register-prompt-content h2 {
        font-size: 20px;
    }
    
    /* How to get it mobile */
    .howto-btn {
        padding: 12px;
    }
    
    .howto-btn-text strong {
        font-size: 13px;
    }
    
    .howto-btn-text span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .store-search-input-wrapper {
        padding: 2px 2px 2px 12px;
    }
    
    .store-item-btn {
        padding: 12px;
    }
    
    .store-info strong {
        font-size: 13px;
    }
    
    .store-address {
        font-size: 12px;
    }
    
    .status-line {
        font-size: 11px;
    }

    .status-line .status-dot {
        width: 10px;
        height: 10px;
    }
    
    /* 超小屏幕顶部栏按钮 */
    .top-bar-right .top-bar-btn span {
        display: inline;
        max-width: 64px;
        font-size: 9px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ================================================
   CART SIDEBAR MODAL
   ================================================ */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -520px;
    width: 500px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    z-index: 2001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-content {
    flex: 1;
    padding: 48px 24px 24px;
    overflow-y: auto;
}

.cart-added-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ikea-light-grey);
}

.cart-added-success {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cart-added-success svg {
    width: 32px;
    height: 32px;
}

.cart-added-product {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.cart-added-product img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--ikea-bg-grey);
    border-radius: 4px;
}

.cart-added-details {
    flex: 1;
}

.cart-added-details strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-added-details p {
    font-size: 13px;
    color: var(--ikea-dark-grey);
    margin-bottom: 8px;
    line-height: 1.4;
}

.cart-product-price {
    font-size: 16px;
    font-weight: 700;
}

.cart-added-message {
    font-size: 14px;
    color: var(--ikea-dark-grey);
    text-align: center;
}

.cart-complement-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cart-complement-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-complement-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: var(--ikea-bg-grey);
    border-radius: 8px;
}

.cart-complement-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: white;
    border-radius: 4px;
}

.cart-complement-info {
    flex: 1;
}

.cart-complement-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.cart-complement-info p {
    font-size: 12px;
    color: var(--ikea-dark-grey);
    margin-bottom: 4px;
}

.cart-complement-price {
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.cart-now-or-never {
    font-size: 11px;
    color: var(--ikea-red);
    display: block;
    margin-bottom: 4px;
}

.cart-complement-rating {
    font-size: 11px;
    color: var(--ikea-dark-grey);
}

.cart-complement-add {
    width: 40px;
    height: 40px;
    background: var(--ikea-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    transition: background 0.2s, transform 0.2s;
}

.cart-complement-add:hover {
    background: #004f93;
    transform: scale(1.1);
}

.cart-complement-add svg {
    width: 20px;
    height: 20px;
}

.cart-sidebar-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--ikea-light-grey);
    background: white;
}

.btn-continue-shopping {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--ikea-black);
    border-radius: 999px;
    background: white;
    color: var(--ikea-black);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-continue-shopping:hover {
    background: var(--ikea-bg-grey);
}

.btn-go-to-bag {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    background: var(--ikea-green);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-go-to-bag:hover {
    background: #006b31;
}

/* Cart Sidebar Mobile */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-sidebar-content {
        padding: 48px 16px 16px;
    }
    
    .cart-sidebar-footer {
        flex-direction: column;
        padding: 16px;
    }
    
    .cart-complement-item {
        padding: 10px;
    }
    
    .cart-complement-item img {
        width: 60px;
        height: 60px;
    }
}

/* ================================================
   FILTER TOGGLE EXPAND/COLLAPSE
   ================================================ */

.filter-group {
    border-bottom: 1px solid var(--ikea-light-grey);
    padding: 16px 0;
}

.filter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}

.filter-toggle svg {
    fill: var(--ikea-dark-grey);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.filter-toggle.active svg {
    transform: rotate(180deg);
}

.filter-content {
    display: none;
    padding-top: 12px;
}

.filter-content.active {
    display: block;
}

.filter-option {
    margin-bottom: 8px;
}

.filter-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ikea-blue);
}

.filter-option .count {
    color: var(--ikea-grey);
}

.filter-badges {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.filter-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--ikea-bg-grey);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-badge:hover {
    background: var(--ikea-light-grey);
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--ikea-black);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
}

.mobile-filter-btn svg {
    fill: white;
}

/* Mobile Filter Close Button - always hidden on desktop */
.mobile-filter-close {
    display: none;
}

@media (max-width: 992px) {
    .plp-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 2001;
        overflow-y: auto;
        padding: 60px 20px 100px;
    }
    
    .plp-filters.active {
        display: block;
    }
    
    .mobile-filter-btn {
        display: flex;
    }
    
    .mobile-filter-close {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        background: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 2003;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .mobile-filter-close svg {
        fill: var(--ikea-black);
    }
    
    .filter-apply-btn {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px 20px;
        background: white;
        border-top: 1px solid var(--ikea-light-grey);
        display: none;
        z-index: 2002;
    }
}

/* Pagination styles for product list pager */
#pager {
    display: flex;
    justify-content: center;
    padding: 24px 0 40px;
}
.xm-pagenavi {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}
.xm-pagenavi .numbers {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 4px;
    color: var(--ikea-dark-grey);
    background: var(--ikea-white);
    text-decoration: none;
    padding: 0 8px;
}
.xm-pagenavi .numbers:hover {
    background: var(--ikea-bg-grey);
    border-color: var(--ikea-grey);
}
.xm-pagenavi .numbers.current {
    background: var(--ikea-blue);
    color: var(--ikea-white);
    border-color: var(--ikea-blue);
    font-weight: 700;
}
.xm-pagenavi .numbers.last.iconfont {
    padding: 0 12px;
    font-weight: 700;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin: -20px 0 40px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--ikea-light-grey);
    background: var(--ikea-white);
    color: var(--ikea-dark-grey);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    border-color: var(--ikea-blue);
    color: var(--ikea-blue);
    background: #f3f8ff;
}

@media (max-width: 640px) {
    .xm-pagenavi .numbers { min-width: 32px; height: 32px; line-height:32px; }
    #pager { padding: 16px 0; }
    .load-more-wrap { margin: -8px 0 20px; }
    .btn-load-more { width: 100%; max-width: 240px; }
}

/* Logged-in / user menu styles */
.user-logged-in {  position: relative; }
.user-actions.signed-in .not-signed-in { display: none; }
.user-actions.signed-in .user-logged-in { display: flex; align-items: center; gap: 8px; }
.user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--ikea-bg-grey);
    color: var(--ikea-dark-grey);
    border: 1px solid transparent;
    font-weight: 500;
}
.user-btn svg { fill: var(--ikea-dark-grey); }
.user-btn .user-name { font-weight: 700; color: var(--ikea-black); }
.user-btn .caret { fill: var(--ikea-grey); margin-left: 4px; }
.user-logged-in .user-menu {
    position: absolute;
    right: 0;
    top: 100%;
    /* small overlap gap removed so mouse can move from button to menu without leaving hover area */
    min-width: 160px;
    background: var(--ikea-white);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: 1px solid var(--ikea-light-grey);
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 1500;
}
.user-logged-in:hover .user-menu,
.user-logged-in:focus-within .user-menu {
    display: flex;
}
.user-logged-in.open .user-menu { display: flex; }
.user-menu .menu-item {
    display: block;
    padding: 10px 14px;
    color: var(--ikea-dark-grey);
    text-decoration: none;
    white-space: nowrap;
}
.user-menu .menu-item:hover { background: var(--ikea-bg-grey); }
.logout-btn { background: transparent; border: none; text-align: left; width: 100%; color: var(--ikea-red); font-weight: 600; }

@media (max-width: 640px) {
    .user-actions.signed-in .user-logged-in { gap: 6px; }
    .user-logged-in .user-menu { right: 8px; left: 8px; }
}

/* ==========================================
   Today's Best Deals - 5 columns layout
   ========================================== */
.section-slider .product-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 24px;
}

.section-slider .product-slider .product-card {
    flex: 0 0 calc(20% - 13px);
    min-width: 180px;
    max-width: calc(20% - 13px);
}

/* Hover effect for product images */
.section-slider .product-card .product-image {
    position: relative;
    overflow: hidden;
}

.section-slider .product-card .product-image img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-slider .product-card .product-image .img-default {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    z-index: 1;
}

.section-slider .product-card .product-image .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    z-index: 2;
}

.section-slider .product-card .product-image:hover .img-default {
    opacity: 0;
}

.section-slider .product-card .product-image:hover .img-hover {
    opacity: 1;
}

/* Responsive adjustments for 5 columns */
@media (max-width: 1400px) {
    .section-slider .product-slider .product-card {
        flex: 0 0 calc(25% - 12px);
        max-width: calc(25% - 12px);
    }
}

@media (max-width: 1100px) {
    .section-slider .product-slider .product-card {
        flex: 0 0 calc(33.333% - 11px);
        max-width: calc(33.333% - 11px);
    }
}

@media (max-width: 768px) {
    .section-slider .product-slider .product-card {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .section-slider .product-slider .product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================
   New Products / Hot Products Mixed Layout
   Left 1/3 Case + Right 2/3 Products Grid
   ========================================== */
.section-mixed-layout {
    padding: 5px 0;
}

.section-mixed-layout .section-header {
    margin-bottom: 24px;
}

.section-mixed-layout .section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ikea-black);
}

.mixed-layout {
    display: flex;
    gap: 24px;
    width: 100%;
}

/* New Products: Left Case (1/3) + Right Products (2/3) */
.new-products-layout .layout-case-left {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.new-products-layout .layout-products-right {
    flex: 0 0 calc(66.666% - 24px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 16px;
}

/* Hot Products: Left Products (2/3) + Right Case (1/3) */
.hot-products-layout .layout-products-left {
    flex: 0 0 calc(66.666% - 24px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 16px;
}

.hot-products-layout .layout-case-right {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

/* Case Card Large Style */
.case-card-large {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ikea-bg-grey);
}

.case-card-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card-large:hover img {
    transform: scale(1.05);
}

.case-card-large .case-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.case-card-large .case-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.case-card-large .case-card-content p {
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

/* Product Card in Mixed Layout */
.layout-products-right .product-card,
.layout-products-left .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.layout-products-right .product-image,
.layout-products-left .product-image {
    aspect-ratio: 1;
    background: var(--ikea-bg-grey);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.layout-products-right .product-image img,
.layout-products-left .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.layout-products-right .product-image .img-default,
.layout-products-left .product-image .img-default {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    z-index: 1;
}

.layout-products-right .product-image .img-hover,
.layout-products-left .product-image .img-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.layout-products-right .product-image:hover .img-default,
.layout-products-left .product-image:hover .img-default {
    opacity: 0;
}

.layout-products-right .product-image:hover .img-hover,
.layout-products-left .product-image:hover .img-hover {
    opacity: 1;
}

/* Responsive for Mixed Layout */
@media (max-width: 1100px) {
    .new-products-layout .layout-products-right,
    .hot-products-layout .layout-products-left {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
}

@media (max-width: 768px) {
    .mixed-layout {
        flex-direction: column;
    }
    
    .new-products-layout .layout-case-left,
    .hot-products-layout .layout-case-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .new-products-layout .layout-products-right,
    .hot-products-layout .layout-products-left {
        flex: 0 0 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-card-large {
        min-height: 250px;
    }
    
    /* Hot Products: Reverse order on mobile */
    .hot-products-layout {
        flex-direction: column-reverse;
    }
}

@media (max-width: 480px) {
    .new-products-layout .layout-products-right,
    .hot-products-layout .layout-products-left {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Category Page Filter Sidebar
   ========================================== */
.plp-filters {
    width: 280px;
    min-width: 280px;
    padding-right: 24px;
    border-right: 1px solid var(--ikea-light-grey);
}

.filter-group {
    border-bottom: 1px solid var(--ikea-light-grey);
    padding: 16px 0;
}

.filter-group:first-child {
    padding-top: 0;
}

.filter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--ikea-black);
}

.filter-toggle svg {
    transition: transform 0.2s ease;
}

.filter-group.open .filter-toggle svg {
    transform: rotate(180deg);
}

.filter-content {
    display: none;
    padding-top: 12px;
}

.filter-group.open .filter-content {
    display: block;
}

.filter-content-scroll {
    max-height: 200px;
    overflow-y: auto;
}

.filter-option {
    padding: 6px 0;
}

.filter-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ikea-dark-grey);
}

.filter-option label:hover {
    color: var(--ikea-black);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ikea-blue);
    cursor: pointer;
}

.filter-actions {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-apply-filter {
    width: 100%;
    padding: 12px 20px;
    background: var(--ikea-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-apply-filter:hover {
    background: #004080;
}

.btn-clear-filter {
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    color: var(--ikea-dark-grey);
    border: 1px solid var(--ikea-light-grey);
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filter:hover {
    border-color: var(--ikea-black);
    color: var(--ikea-black);
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background: var(--ikea-black);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-filter-btn svg {
    fill: white;
}

@media (max-width: 1024px) {
    .plp-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-width: 100%;
        background: white;
        z-index: 1000;
        padding: 60px 20px 20px;
        overflow-y: auto;
        border-right: none;
    }
    
    .plp-filters.open {
        display: block;
    }
    
    .mobile-filter-btn {
        display: flex;
    }
    
    .mobile-filter-close {
        display: none;
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 1001;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    body.filter-open .mobile-filter-close {
        display: block;
    }
}

@media (min-width: 1025px) {
    .mobile-filter-close {
        display: none;
    }
}

/* ==========================================
   All Goods Page Styles
   ========================================== */
.all-categories-nav {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--ikea-bg-grey);
    border-radius: 8px;
    position: sticky;
    top: 8px;
    z-index: 24;
    border: 1px solid var(--ikea-light-grey);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* all_goods 页面：左右双容器独立滚动（仅桌面） */
@media (min-width: 1025px) {
    .all-goods-page {
        display: flex;
        flex-direction: column;
    }

    .all-goods-page .plp-layout {
        height: var(--all-goods-layout-height, auto);
        min-height: 520px;
        overflow: hidden;
        align-items: start;
    }

    .all-goods-page .plp-filters {
        position: static;
        top: auto;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .all-goods-page .plp-products {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 8px;
        scrollbar-gutter: stable;
    }
}

.all-categories-nav h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 50px;
    font-size: 14px;
    color: var(--ikea-black);
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-chip-all {
    background: #fbfdff;
    border-color: #d7e7ff;
    color: var(--ikea-dark-grey);
}

.category-chip.is-active {
    background: #f3f8ff;
    border-color: #2f6fb5;
    color: #0058a3;
    font-weight: 700;
}

.category-chip:hover {
    border-color: var(--ikea-blue);
    color: var(--ikea-blue);
    text-decoration: none;
}

.category-chip .count {
    color: var(--ikea-grey);
    font-size: 12px;
}

.plp-sidebar {
    width: 250px;
    min-width: 250px;
    padding-right: 24px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ikea-light-grey);
}

.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tree li {
    padding: 8px 0;
    border-bottom: 1px solid var(--ikea-bg-grey);
}

.category-tree li a {
    color: var(--ikea-dark-grey);
    text-decoration: none;
    font-size: 14px;
}

.category-tree li a:hover {
    color: var(--ikea-blue);
}

.cat-count {
    color: var(--ikea-grey);
    font-size: 12px;
    margin-left: 4px;
}

.product-category {
    font-size: 12px;
    color: var(--ikea-grey);
    margin-bottom: 4px;
}

.sort-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--ikea-light-grey);
    border-radius: 4px;
    font-size: 14px;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E") no-repeat right 8px center;
    background-size: 20px;
    appearance: none;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: var(--ikea-blue);
}

@media (max-width: 1024px) {
    .plp-sidebar {
        display: none;
    }
    
    .all-categories-nav {
        padding: 16px;
    }
}
