/* Side Sleeper Styles - Based on Pregnancy Pillow Design */

/* Hero Section Styles */
.hero-side-sleepers {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    padding: 100px 0 70px;
    margin-top: 0;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content .cta-button {
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #475569;
    margin-bottom: 2.5rem;
    max-width: 850px;
    line-height: 1.6;
}

/* Breadcrumb Navigation */
 .breadcrumb-nav {
     background-color: #f8fafc;
     padding: 12px 0;
     border-bottom: 1px solid #e2e8f0;
     margin-top: 70px; /* offset fixed header height */
 }

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
}

.breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    overflow-x: auto;
    min-width: 0;
}

.breadcrumb li {
    position: relative;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    flex-shrink: 0;
    white-space: nowrap;
}

.breadcrumb li+li:before {
    content: "/";
    color: #b3b3b3;
    padding: 0 8px;
}

.breadcrumb li.active {
    color: #0c4a6e;
    font-weight: 600;
}

.breadcrumb a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #6ec1e4;
    text-decoration: underline;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #f8fafc;
    padding: 80px 0;
}

.content-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.section-header p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #64748b;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Benefits & Challenges Grid */
.benefits-challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-challenge-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-challenge-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-challenge-card h3 {
    font-size: 1.4rem;
    color: #1e40af;
    margin-bottom: 15px;
}

.benefit-challenge-card ul {
    text-align: left;
    padding-left: 20px;
}

.benefit-challenge-card li {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.requirement-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(30,64,175,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.requirement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30,64,175,0.1);
}

.req-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.requirement-card h3 {
    font-size: 1.3rem;
    color: #1e40af;
    margin-bottom: 10px;
}

.requirement-card p {
    color: #475569;
    line-height: 1.6;
}

/* Product Cards Styles - 3x3 Grid Layout (7 products) */
.products-grid-rows {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-row {
    display: flex;
    gap: 25px;
    width: 100%;
}

/* 第一行和第二行每行3个产品 */
.product-row:nth-child(1) .pillow-card,
.product-row:nth-child(2) .pillow-card {
    flex: 1;
    width: calc(33.333% - 17px);
}

/* 第三行1个产品，居中显示 */
.product-row:nth-child(3) {
    justify-content: center;
}

.product-row:nth-child(3) .pillow-card {
    flex: 0 0 calc(33.333% - 17px);
    max-width: calc(33.333% - 17px);
}

/* 平板端响应式 */
@media (max-width: 1024px) {
    .product-row {
        flex-wrap: wrap;
    }
    
    .product-row:nth-child(1) .pillow-card,
    .product-row:nth-child(2) .pillow-card {
        flex: 0 0 calc(50% - 12.5px);
        max-width: calc(50% - 12.5px);
    }
    
    .product-row:nth-child(3) .pillow-card {
        flex: 0 0 calc(50% - 12.5px);
        max-width: calc(50% - 12.5px);
    }
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .product-row {
        flex-direction: column;
    }
    
    .product-row:nth-child(1) .pillow-card,
    .product-row:nth-child(2) .pillow-card,
    .product-row:nth-child(3) .pillow-card {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }
}

.pillow-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border: 1px solid #e5e7eb;
    position: relative;
}

.pillow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #1e40af;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 10;
}

.pillow-image {
    height: 200px;
    width: 100%;
    background-color: #f8fafc;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pillow-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.pillow-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

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

.pillow-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pillow-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
    line-height: 1.4;
}

.pillow-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.pillow-rating .stars {
    color: #f59e0b;
    font-size: 1.4rem;
    margin-right: 12px;
    letter-spacing: 2px;
}

.pillow-rating .rating-number {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
}

.pillow-description {
    margin-bottom: 20px;
    flex-grow: 1;
}

.pillow-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

/* 产品特性列表样式 */
.pillow-features {
    margin-bottom: 20px !important;
    margin-top: 15px !important;
}

.pillow-features ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.pillow-features li {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.95rem !important;
    color: #374151 !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    padding-left: 20px !important;
}

.pillow-features li:last-child {
    border-bottom: none !important;
}

.pillow-features li::before {
    content: "✓" !important;
    color: #10b981 !important;
    font-weight: bold !important;
    margin-right: 8px !important;
    font-size: 1rem !important;
    position: absolute !important;
    left: 0 !important;
    top: 6px !important;
}

.pillow-actions {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    margin-top: auto !important;
    padding-top: 15px !important;
}

.pillow-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 20px;
    margin: 0.25rem;
    min-width: 120px;
    text-align: center;
    border: 1px solid #1e40af;
    color: #1e40af;
    background: #fff;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.pillow-button:hover {
    background: #1e40af;
    color: #fff;
}

.pillow-button.buy-button {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: #fff;
    border: 1px solid #1e40af;
}

.pillow-button.buy-button:hover {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Comparison Table Styles */
.comparison-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
    background: #fff;
    margin: 2.5rem 0;
    position: relative;
    padding-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.comparison-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background-color: white;
    font-family: 'Open Sans', sans-serif;
}

.comparison-table th,
.comparison-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.comparison-table th {
    background-color: #1e40af;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #111827;
    background-color: #f8fafc;
    position: sticky;
    left: 0;
    z-index: 10;
}

.comparison-table .excellent {
    color: #10b981;
    font-weight: 600;
}

.comparison-table .good {
    color: #0ea5e9;
    font-weight: 600;
}

.comparison-table .average {
    color: #f59e0b;
    font-weight: 600;
}

.comparison-table .poor {
    color: #ef4444;
    font-weight: 600;
}

.table-scroll-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
    padding: 5px;
}

/* Height Guide Styles */
.height-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.height-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.height-card:hover {
    transform: translateY(-5px);
}

.height-card h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.measurement-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    background: #1e40af;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step p {
    margin: 0;
    color: #475569;
}

.height-ranges,
.firmness-guide {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.range-item,
.firmness-item {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #475569;
}

.range-item:last-child,
.firmness-item:last-child {
    border-bottom: none;
}

/* Special Considerations Grid */
.considerations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.consideration-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.consideration-card:hover {
    transform: translateY(-5px);
}

.consideration-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.consideration-card h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.consideration-card p {
    color: #475569;
    line-height: 1.6;
}

.consideration-card a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
}

.consideration-card a:hover {
    text-decoration: underline;
}

/* Quick Picks & Table of Contents Modules */
.new-ux-modules {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Quick Picks Section */
#quick-picks {
    background-color: #f0f4ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 2rem;
}

.quick-picks-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 1.8rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.quick-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.quick-pick-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.quick-pick-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
}

.quick-pick-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e40af;
    margin-top: 0;
    margin-bottom: 1rem;
}

.quick-pick-card .product-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 0.8rem 0;
    color: #111827;
}

.quick-pick-card .product-tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
    min-height: 40px;
    line-height: 1.5;
}

.quick-pick-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.quick-pick-card a:hover {
    text-decoration: underline;
}

/* Table of Contents Section */
#table-of-contents {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

.toc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #dbeafe;
    padding-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.toc-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    columns: 2;
    column-gap: 4rem;
}

.toc-list li {
    margin-bottom: 1rem;
    break-inside: avoid;
}

.toc-list li a {
    font-family: 'Open Sans', sans-serif;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
}

.toc-list li a:hover {
    text-decoration: underline;
}

/* FAQ Section Styles */
.faq-section {
    padding: 70px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.faq-item {
    background: #f8fafc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(30,64,175,0.04);
    padding: 24px 20px;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(30,64,175,0.08);
}

.faq-item h3 {
    font-family: 'Montserrat', sans-serif;
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
    line-height: 1.4;
}

.faq-item h3:after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.8rem;
    color: #1e40af;
    transition: all 0.3s ease;
    font-weight: 300;
}

.faq-item.active h3:after {
    content: "−";
    transform: rotate(180deg);
}

.faq-item p {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    line-height: 1.7;
    color: #334155;
    font-size: 1.05rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active p {
    max-height: 1000px;
    margin-top: 12px;
}

/* Sleep Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tip-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tip-card h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.tip-card ul {
    padding-left: 20px;
}

.tip-card li {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Conclusion Section */
.conclusion-section {
    padding: 70px 0;
    background-color: #f8fafc;
}

.conclusion-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.conclusion-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.conclusion-container p {
    font-family: 'Open Sans', sans-serif;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 35px;
    font-size: 1.2rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af, #6ec1e4);
    color: white;
    padding: 18px 40px;
    border-radius: 35px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
    color: white;
}

/* Floating Price Nav */
.floating-price-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #6ec1e4, #1e40af);
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.floating-price-nav:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.5);
    color: white;
}

.floating-price-nav svg {
    width: 20px;
    height: 20px;
}

/* Hero Features 样式 */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    max-width: 800px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-feature-item span:last-child {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .benefits-challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .height-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 0 15px;
    }
    
    .breadcrumb li {
        font-size: 0.8rem;
    }
    
    .breadcrumb li+li:before {
        padding: 0 6px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-alt {
        padding: 60px 0;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .benefits-challenges-grid,
    .requirements-grid,
    .considerations-grid,
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid-rows {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pillow-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 25px;
    }
    
    .pillow-image {
        height: 180px;
        padding: 15px;
    }
    
    .pillow-info {
        padding: 1.2rem;
    }
    
    .pillow-info h3 {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .pillow-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .pillow-actions {
        flex-direction: row !important;
        gap: 8px !important;
        justify-content: space-between !important;
    }
    
    .pillow-button {
        padding: 12px 16px !important;
        font-size: 0.9rem !important;
        width: 48% !important;
        text-align: center !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }
    
    .new-ux-modules {
        margin-top: 30px;
        margin-bottom: 30px;
        gap: 25px;
        padding: 0 15px;
    }

    #quick-picks, #table-of-contents {
        padding: 1.8rem 1.2rem;
    }

    .quick-picks-title, .toc-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .toc-list {
        columns: 1;
    }

    .quick-picks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quick-pick-card {
        padding: 1.5rem;
    }
    
    .comparison-table-wrapper {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 0;
        padding-right: 0;
        border-radius: 0;
    }
    
    .comparison-table-wrapper:after {
        content: "← Swipe →";
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(12, 74, 110, 0.8);
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        opacity: 0.9;
    }
    
    .faq-item {
        padding: 20px 16px;
        margin-bottom: 15px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
        padding-right: 35px;
    }
    
    .floating-price-nav {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
    
    .hero-feature-item {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-container {
        padding: 0 10px;
    }
    
    .breadcrumb li {
        font-size: 0.75rem;
    }
    
    .breadcrumb li+li:before {
        padding: 0 4px;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-alt {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .pillow-image {
        height: 160px;
    }
    
    .pillow-info {
        padding: 1rem;
    }
    
    .pillow-info h3 {
        font-size: 1.1rem;
    }
    
    .pillow-description p {
        font-size: 0.9rem;
    }
    
    .pillow-button {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        min-height: 40px !important;
        width: 48% !important;
    }
}

/* 确保页面布局正确 */
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 修复导航栏和面包屑之间的间距 */
.breadcrumb-nav {
    margin-top: 0;
}

/* 强制显示面包屑导航 */
.breadcrumb-nav,
.breadcrumb-container,
.breadcrumb {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    z-index: 10 !important;
}

/* 强制面包屑不换行 */
.breadcrumb {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
}

.breadcrumb li {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

/* 额外的面包屑单行显示规则 */
.breadcrumb-nav .breadcrumb {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.breadcrumb-nav .breadcrumb li {
    display: inline-flex !important;
    align-items: center !important;
}

/* Ensure breadcrumb is visible below fixed header */
.breadcrumb-nav {
    position: relative;
    z-index: 101; /* header is 1000 in main.min.css; this is local stacking, avoid overlays */
}

/* On small screens refine spacing */
@media (max-width: 768px) {
    .breadcrumb-nav {
        margin-top: 70px;
        padding: 10px 0;
    }
}

/* Detailed Reviews Section Styles */
.review-card {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 16px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

.review-header {
    padding: 24px 32px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-content {
    display: flex;
    gap: 32px;
    padding: 32px;
    background: white;
    align-items: flex-start;
}

.review-image {
    flex: 0 0 300px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.review-details {
    flex: 1;
    min-width: 0;
}

.review-features h4,
.specifications h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 16px;
    margin-top: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.feature-icon {
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

.feature-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.4;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    gap: 8px;
    padding: 4px 0;
}

.spec-label {
    font-weight: 600;
    color: #1e40af;
    min-width: 80px;
}

.spec-value {
    color: #374151;
    font-size: 0.95rem;
}

.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}

.review-pros h4 {
    color: #10b981;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.review-cons h4 {
    color: #ef4444;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.review-pros ul,
.review-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.review-pros li,
.review-cons li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
}

.review-pros li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.review-cons li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

.review-details > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    margin: 20px 0;
    font-style: italic;
    border-left: 4px solid #1e40af;
    padding-left: 16px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
}

.review-cta {
    margin-top: 24px;
    text-align: center;
}

.review-cta .cta-button.buy-button {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: white;
    padding: 12px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    display: inline-block;
}

.review-cta .cta-button.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
}

/* Responsive Design for Reviews */
@media (max-width: 1024px) {
    .review-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .review-image {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .review-header {
        padding: 20px 24px;
    }
    
    .review-content {
        padding: 24px 20px;
    }
    
    .review-pros-cons {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-image {
        height: 200px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .review-rank {
        font-size: 1.5rem !important;
    }
    
    .review-title h3 {
        font-size: 1.2rem !important;
    }
    
    .review-rating {
        align-items: center !important;
    }
}

@media (max-width: 480px) {
    .review-content {
        padding: 20px 16px;
    }
    
    .review-header {
        padding: 16px 20px;
    }
    
    .features-grid,
    .spec-grid {
        gap: 4px;
    }
    
    .feature-text,
    .spec-value {
        font-size: 0.9rem;
    }
}

/* --- Center product main images on side-sleepers page --- */
/* Ensure grid card images are perfectly centered */
.pillow-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pillow-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Ensure review section main images are centered and not cropped */
.review-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Override: Cons styling in Detailed Expert Reviews (blue bullets) --- */
.review-cons h4 {
    color: #1e40af; /* primary blue */
}

.review-cons li:before {
    content: "•"; /* blue dot instead of red X */
    color: #1e40af;
    font-weight: bold;
}