/**
 * How To page specific styles
 * Created: 2025-12-31
 */

/* ========== Hide default page title ========== */
.page-title, .breadcrumb, .faq-page-title, h1.title, .content-title {
    display: none !important;
}

/* ========== Base layout ========== */
/* Note: These styles are intended for the How To page only to avoid impacting other pages (e.g., FAQ). */
.margin-auto { margin-left: auto; margin-right: auto; }
.px-default { padding-inline: 1.25rem; }
.container { max-width: 85.5rem; }
.text-center { text-align: center; }
.mt-50 { margin-top: 50px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-30 { margin-bottom: 30px; }
.my-2 { margin-top: 8px; margin-bottom: 8px; }
.my-10 { margin-top: 40px; margin-bottom: 40px; }
.pd-x-18 { padding: 0 18px; }
.pd-30 { padding: 30px; }
.font-bold { font-weight: 700; }
.block { display: block; }
.shrink-0 { flex-shrink: 0; }

/* ========== UIkit Slider Navigation z-index fix ========== */
.uk-slidenav,
.uk-slider .uk-slidenav,
.uk-slideshow .uk-slidenav,
.uk-position-center-left.uk-slidenav,
.uk-position-center-right.uk-slidenav,
a.uk-slidenav,
button.uk-slidenav {
    z-index: 10 !important;
}

/* ========== Chapter Selector ========== */
.hair-beginners-fix1 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    /* Allow JavaScript to switch positioning dynamically. */
    position: relative;
    /* Keep initial z-index low to avoid covering the header on load. */
    z-index: 100 !important;
    background: #fff !important;
    padding: 10px 30px;
    margin: 0 0 10px 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

/* JavaScript adds .fixed to enable the sticky behavior. */
/* The top offset is computed by JavaScript (no hardcoded values). */
.hair-beginners-fix1.fixed {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 30px !important;
    z-index: 100 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    will-change: transform;
    transform: translateZ(0);
}

/* Lock sticky bar visuals during FAQ animations to prevent jitter. */
.hair-beginners-fix1.faq-animating {
    transition: none !important;
    will-change: transform;
    overflow-anchor: none;
    contain: layout style;
}

.hair-beginners-fix1-placeholder {
    transition: none !important;
    overflow-anchor: none;
}

.faq-wrapper,
.faq-item,
.faq-answer {
    overflow-anchor: none;
}

@media (max-width: 959px) {
    .hair-beginners-fix1.fixed {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 8px 15px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
        z-index: 9000 !important;
    }
}

@media (min-width: 768px) {
    .hair-beginners-fix1 {
        padding: 10px 30px;
    }
}

@media (max-width: 767px) {
    .hair-beginners-fix1 {
        margin-top: 0 !important;
        padding: 8px 15px !important;
    }
}

/* Ensure .lv-container won't break sticky positioning (howto page only). */
.howto-page .lv-container {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Ensure .min-h-[86vh] won't break sticky positioning (howto page only). */
.howto-page .min-h-\[86vh\] {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Ensure parent containers won't break sticky positioning (howto page only) */
body.howto-page {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

html.howto-page {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

.chapter-selector-wrapper {
    width: 80%;
    max-width: 480px;
}

.chapter-selector {
    position: relative;
}

.chapter-select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    font-size: 16px;
    line-height: 48px;
    color: #333;
    background: #f5f5f5;
    border: 2px solid #5b7a99;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.chapter-select:focus {
    border-color: #023248;
    outline: 2px solid #023248;
    outline-offset: -2px;
}

.chapter-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}


/* ========== Beginner Friendly Products ========== */
.friendly-products-section {
    max-width: 1200px;
}

.product-category {
    background: #f5f9f9;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.category-title {
    font-size: 22px;
    font-weight: 700;
    color: #023248;
    margin-bottom: 25px;
}

.friendly-product-title {
    font-size: 22px;
    font-weight: 700;
    color: #023248;
    margin-bottom: 25px;
}

.hair-systems-p-bottom {
    padding: 0 20px;
    max-width: 900px;
}

/* ========== TemplateDesigner: Howto Products Slider (single-row) ========== */
/* Used by act-howto-products component output. */
.howto-page .howto-products-slider {
    position: relative;
}

.howto-page .howto-products-slider-items {
    display: flex;
    flex-wrap: nowrap !important;
    margin: 0 0 0 -30px;
    padding: 0;
    list-style: none;
    justify-content: flex-start;
    align-items: stretch;
}

.howto-page .howto-products-slider-items > li {
    box-sizing: border-box;
    padding-left: 30px;
    flex: 0 0 25%;
    max-width: 25%;
}

.howto-page .howto-products-slider .uk-slidenav {
    /* Transparent background + gray outline circle style (aligned with homepage). */
    color: rgba(0, 0, 0, 0.5);
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
}

.howto-page .howto-products-slider .uk-slidenav:hover {
    color: rgba(0, 0, 0, 0.8);
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.5);
}

.howto-page .howto-products-slider .uk-slidenav svg {
    width: 14px;
    height: 24px;
}

.howto-page .howto-products-slider .uk-slidenav svg polyline {
    stroke: currentColor;
    stroke-width: 1.4;
}

.howto-page .howto-products-slider .uk-slidenav.uk-disabled,
.howto-page .howto-products-slider .uk-slidenav[aria-disabled="true"] {
    display: none !important;
}

.howto-page .howto-products-slider .uk-dotnav > * > * {
    background: #ccc;
}

.howto-page .howto-products-slider .uk-dotnav > .uk-active > * {
    background: #023248;
}

@media (max-width: 959px) {
    .howto-page .howto-products-slider-items {
        margin-left: -10px;
    }
    .howto-page .howto-products-slider-items > li {
        padding-left: 10px;
        flex: 0 0 80%;
        max-width: 80%;
    }
}

@media (min-width: 600px) and (max-width: 959px) {
    .howto-page .howto-products-slider-items > li {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 399px) {
    .howto-page .howto-products-slider-items > li {
        flex: 0 0 92%;
        max-width: 92%;
    }
}

.product-slider {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile UIkit slider for products */
.product-slider-mobile {
    position: relative;
}

.product-slider-mobile .uk-slider-items {
    margin: 0;
}

.product-slider-mobile .product-item {
    width: 100%;
    max-width: none;
    margin: 0;
}

.product-slider-mobile .uk-slidenav {
    /* Transparent background + gray outline circle style (aligned with homepage). */
    color: rgba(0, 0, 0, 0.5);
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
}

.product-slider-mobile .uk-slidenav:hover {
    color: rgba(0, 0, 0, 0.8);
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.5);
}

.product-slider-mobile .uk-slidenav svg {
    width: 14px;
    height: 24px;
}

.product-slider-mobile .uk-slidenav svg polyline {
    stroke: currentColor;
    stroke-width: 1.4;
}

.product-slider-mobile .uk-dotnav > * > * {
    background: #ccc;
}

.product-slider-mobile .uk-dotnav > .uk-active > * {
    background: #023248;
}

/* Responsive visibility for product sliders */
/* Desktop (960px+): show .product-slider, hide .product-slider-mobile */
@media (min-width: 960px) {
    .product-category .product-slider {
        display: flex !important;
    }
    .product-category .product-slider-mobile {
        display: none !important;
    }
}

/* Mobile (<960px): hide .product-slider, show .product-slider-mobile */
@media (max-width: 959px) {
    .product-category .product-slider {
        display: none !important;
    }
    .product-category .product-slider-mobile {
        display: block !important;
    }
    
    /* Reduce padding on mobile to make products larger */
    .product-category {
        padding: 15px 10px;
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    .friendly-product-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* Make slider items responsive */
    .product-slider-mobile .uk-slider-items {
        margin: 0 !important;
    }
    
    .product-slider-mobile .uk-slider-items > li {
        padding-right: 10px !important;
        padding-left: 0 !important;
    }
    
    .product-slider-mobile .product-item {
        padding: 12px;
        border-radius: 12px;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Keep image aspect ratio, don't stretch */
    .product-slider-mobile .product-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        margin-bottom: 10px;
    }
    
    .product-slider-mobile .product-name {
        font-size: 14px;
        margin-bottom: 5px;
        line-height: 1.3;
        max-height: 2.6em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .product-slider-mobile .product-price {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .product-slider-mobile .shop-now-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Tablet (600px - 959px): show 2 items */
@media (min-width: 600px) and (max-width: 959px) {
    .product-slider-mobile .uk-slider-items > li {
        width: 48% !important;
    }
}

/* Small mobile (< 600px): show 1.2 items (peek effect) */
@media (max-width: 599px) {
    .product-slider-mobile .uk-slider-items > li {
        width: 80% !important;
    }
}

/* Extra small mobile (< 400px): show 1 item full width */
@media (max-width: 399px) {
    .product-slider-mobile .uk-slider-items > li {
        width: 92% !important;
    }
}

/* ========== Step 4 Density Slider Mobile ========== */
.density-slider-mobile {
    position: relative;
    margin-top: 20px;
}

.density-slider-mobile .uk-slider-items {
    margin: 0 !important;
}

.density-slider-mobile .content-item {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: 100% !important;
}

.density-slider-mobile .hair-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========== Important Container Slider Mobile ========== */
.important-slider-mobile {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
}

.important-slider-mobile .uk-slider-items {
    margin: 0 !important;
}

/* Mobile: make each important slider item full width (no peek). */
/* Use higher specificity to override uk-width-4-5. */
.important-slider-mobile .uk-slider-items > li,
.important-slider-mobile .uk-slider-items > li.uk-width-4-5,
.important-slider-mobile .uk-slider-items > .uk-width-4-5 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
}

.important-slider-mobile .important-item {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.important-slider-mobile .important-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
}

.important-slider-mobile .important-name {
    font-size: 18px;
    font-weight: 700;
    color: #023248;
    margin-bottom: 10px;
}

.important-slider-mobile .important-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Responsive visibility for step4 and important sliders */
@media (min-width: 960px) {
    #step4 .content {
        display: flex !important;
    }
    .density-slider-mobile {
        display: none !important;
    }
    .important-content {
        display: grid !important;
    }
    .important-slider-mobile {
        display: none !important;
    }
}

@media (max-width: 959px) {
    #step4 .content.uk-visible\@m {
        display: none !important;
    }
    .density-slider-mobile {
        display: block !important;
    }
    .important-content.uk-visible\@m {
        display: none !important;
    }
    .important-slider-mobile {
        display: block !important;
    }
}

.product-item {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    max-width: 280px;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-item a {
    text-decoration: none;
    color: inherit;
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #023248;
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #023248;
    margin-bottom: 15px;
}

/* ========== Practical Tips ========== */
.py-10 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.mb-6 {
    margin-bottom: 24px;
}

.tips-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-left: 40px;
    padding-right: 40px;
}

.tips-row.single-row {
    grid-template-columns: 1fr;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tip-card.full-width {
    width: 100%;
}

.tip-icon {
    flex-shrink: 0;
}

.tip-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.tip-content {
    flex: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #023248;
    margin-bottom: 12px;
}

.step-label {
    font-size: 12px;
    font-weight: 400;
    color: #68699a;
    text-transform: uppercase;
    margin-left: 8px;
}

.tip-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* ========== Title styles ========== */
.hair-systems-title {
    font-size: 28px;
    font-weight: 700;
    color: #023248;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* ========== Paragraph styles ========== */
.hair-systems-p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== What is Hair System section ========== */
.what-hair-system {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 60px 50px;
    background: linear-gradient(135deg, #f5f9f9 0%, #e8f4f4 100%);
    border-radius: 20px;
    max-width: 1200px;
    margin-top: 30px;
}

.what-hair-system-left {
    flex: 0 0 50%;
    max-width: 50%;
}

.what-hair-system-left .hair-systems-title {
    text-align: left;
}

.what-hair-system-left .hair-systems-p {
    text-align: left;
    color: #555;
}

.what-hair-system-right {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
}

.what-hair-system-right img:first-child {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    display: block;
}


/* ========== Friendly Products section ========== */
.friendly-products {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* ========== Step title styles ========== */
.line-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.line-container .text {
    font-size: 24px;
    font-weight: 700;
    color: #023248;
    white-space: nowrap;
}

.line-container .step {
    color: #667eea;
}

.left-line, .right-line {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 200px;
}

.line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea);
}

.right-line .line {
    background: linear-gradient(90deg, #667eea, transparent);
}

.slash-line {
    width: 20px;
    height: 2px;
    background: #667eea;
    transform: rotate(-30deg);
}

/* ========== Choose Hair Color section ========== */
.choose-hair-color {
    max-width: 1200px;
}

.choose-hair-color-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.choose-hair-color-item {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.choose-hair-color-item img {
    border-radius: 12px;
    margin-bottom: 20px;
}

.choose-hair-color-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.choose-hair-color-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Choose Hair Color new layout */
.choose-hair-color-1 {
    flex-direction: row !important;
    gap: 20px;
}

.choose-hair-color-1 img {
    border-radius: 12px;
    width: 166px;
    height: auto;
}

.choose-hair-color-1-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.choose-hair-color-1-right span {
    font-size: 16px;
    color: #023248;
    font-weight: 500;
    margin-bottom: 15px;
}

.choose-hair-color-2 {
    flex-direction: column !important;
    justify-content: center;
}

.choose-hair-color-2 .hair-systems-p {
    font-size: 15px;
    margin-bottom: 20px;
}

.choose-hair-color-2 .contact-us-list {
    margin-top: 0;
    flex-direction: column;
    gap: 10px;
}

.choose-hair-color-2 .contact-us-item {
    padding: 8px 15px;
    font-size: 14px;
}

.choose-hair-color-3 {
    flex-direction: column !important;
    justify-content: center;
}

.choose-hair-color-3 .hair-systems-p {
    font-size: 15px;
    margin-bottom: 15px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-3 {
    margin-top: 12px;
}

/* ========== Contact Us list ========== */
.contact-us-list {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-us-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #023248;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-us-item:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.contact-us-item a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== Tips section ========== */
.step-label {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(42, 142, 158, 0.1);
    color: #68699a;
    border-radius: 12px;
    margin-left: 10px;
    font-size: 12px;
}

/* ========== Real Life section ========== */
.hair-system-real-life {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 60px 40px;
    color: #fff;
    max-width: 1200px;
}

.hair-system-real-life .hair-systems-title {
    color: #fff;
}


/* ========== FAQ section ========== */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section dt button {
    width: 100%;
    padding: 20px;
    background: #fff;
    border: none;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-section dt button:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ========== Base Size section ========== */
.choose-base-size {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.choose-base-size .hair-systems-p {
    max-width: 100%;
}

.base-size-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.base-size-left {
    flex: 0 0 55%;
    max-width: 55%;
}

.base-size-right {
    flex: 0 0 42%;
    max-width: 42%;
}

.base-size-left img, .base-size-right img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

.base-size-title {
    font-size: 20px;
    font-weight: 700;
    color: #023248;
    margin: 8px 0;
    text-align: center;
}

/* ========== Choose Right Base section ========== */
.choose-right-base {
    max-width: 1200px;
}

.right-base-main {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.right-base-left {
    flex: 0 0 50%;
    max-width: 50%;
}

.right-base-left img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.right-base-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex: 0 0 48%;
    max-width: 48%;
}

.right-base-item {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.right-base-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.right-base-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.right-base-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.right-base-title {
    font-size: 16px;
    font-weight: 700;
    color: #023248;
}

/* ========== Comparison table ========== */
.table-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.table-container caption {
    font-size: 22px;
    font-weight: 700;
    color: #023248;
    padding: 20px;
    text-align: center;
    background: #f5f9f9;
}

.table-container th {
    background: #023248;
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    text-align: center;
}

.table-container td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: #555;
}

.table-container tr:hover td {
    background: #f5f9f9;
}

/* ========== Important section ========== */
.important-container {
    max-width: 1200px;
}

.important-title {
    font-size: 24px !important;
    font-weight: 700;
    color: #023248;
    margin-bottom: 30px;
}

.important-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
}

.important-item {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.important-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
}

.important-name {
    font-size: 20px;
    font-weight: 700;
    color: #023248;
    margin-bottom: 10px;
}

.important-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}


/* ========== Step 4: Hair Density section ========== */
#step4 .content {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

#step4 .content-item {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 160px;
}

#step4 .content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

#step4 .hair-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

#step4 .details {
    margin-top: 15px;
}

#step4 .percent {
    font-size: 18px;
    font-weight: 700;
    color: #68699a;
    margin-bottom: 5px;
}

#step4 .name {
    font-size: 14px;
    color: #555;
}

/* ========== Step 5: Wave Pattern section ========== */
.wave-pattern {
    background: #f5f9f9;
    padding: 50px 0;
}

.wave-pattern .swiper-wrapper {
    display: flex;
    gap: 20px;
}

.wave-pattern .slide-item-inner {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.wave-pattern .slide-item-inner .img {
    border-radius: 12px;
    max-width: 300px;
}

/* ========== Step 6: Hair Type section ========== */
.choose-hair-type {
    max-width: 1200px;
}

.hair-type-content {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.hair-type-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    max-width: 350px;
}

.hair-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.hair-type-card .hair-img {
    width: 100%;
    height: auto;
}

.hair-info {
    padding: 20px;
}

.hair-name {
    font-size: 20px;
    font-weight: 700;
    color: #023248;
    margin-bottom: 10px;
}

.hair-intro {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* ========== Custom Service section ========== */
.custom-service {
    display: block;
    max-width: 1200px;
    margin: 50px auto;
}

.custom-service-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* ========== Why Choose LaVivid section ========== */
.choose-lv-hair {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.choose-lv-main {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.choose-lv-img {
    border-radius: 15px;
}

.choose-lv-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
}

.choose-right-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #f5f9f9;
    border-radius: 12px;
}

.choose-right-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.choose-right-item span:first-of-type {
    font-size: 24px;
    font-weight: 700;
    color: #023248;
}

.choose-right-item span:last-of-type {
    font-size: 14px;
    color: #555;
}

/* ========== Contact Us section ========== */
.contact-us {
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
    padding: 0 20px;
}

.contact-us-title {
    margin-bottom: 15px;
}

.contact-us-desc {
    margin-bottom: 30px;
}


/* ========== FAQ section ========== */
.faq-wrapper {
    background: #023248;
    margin-top: 40px;
    margin-bottom: 40px;
}

.faq-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: -0.025em;
}

.faq-grid {
    display: flex;
    flex-wrap: wrap;
    padding-left: 40px;
    padding-right: 40px;
}

.faq-item {
    width: 47%;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:nth-child(odd) {
    margin-right: 6%;
}

.faq-btn {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    line-height: 1.75;
}

.faq-btn span:first-child {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    padding: 0;
}

.faq-item.active .faq-answer {
    padding-top: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.bg-dark {
    background: #023248;
}

.text-white {
    color: #fff;
}

/* ========== Shop Now button ========== */
.shop-now-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #023248;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.shop-now-btn:hover {
    background: #034a6a;
    color: #fff;
}

/* ========== Banner styles ========== */
.lavivid-banner-sticky {
    width: 100%;
}

.lavivid-banner-sticky .banner-img-one {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* ========== Swiper styles ========== */
.swiper-button-prev, .swiper-button-next {
    color: #023248;
}

.swiper-pagination-bullet-active {
    background: #023248;
}


/* ========== Responsive styles ========== */

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 992px) {
    .product-slider {
        gap: 20px;
        justify-content: flex-start;
    }

    .product-item {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 200px;
    }

    #step4 .content {
        justify-content: flex-start;
        gap: 15px;
    }

    #step4 .content-item {
        flex: 0 0 calc(20% - 12px);
        min-width: 140px;
    }
}

@media (max-width: 992px) {
    .what-hair-system {
        flex-direction: column;
        padding: 40px 30px;
        gap: 40px;
    }

    .what-hair-system-left,
    .what-hair-system-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .what-hair-system-left .hair-systems-title,
    .what-hair-system-left .hair-systems-p {
        text-align: center;
    }

    .hair-systems-p {
        font-size: 15px;
    }

    .what-hair-system {
        padding: 25px;
    }

    .line-container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 10px;
    }

    .line-container .text {
        white-space: normal;
        text-align: center;
        font-size: 20px;
        line-height: 1.3;
    }

    .left-line, .right-line {
        display: none;
    }

    .contact-us-list {
        flex-direction: column;
        align-items: center;
    }

    .contact-us-item {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .choose-hair-color-main {
        grid-template-columns: 1fr;
    }

    .choose-hair-color-1 {
        flex-direction: column !important;
    }

    .choose-hair-color-1 img {
        width: 120px;
    }

    .base-size-main {
        flex-direction: column;
    }

    .base-size-left, .base-size-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .right-base-main {
        flex-direction: column;
    }

    .right-base-left,
    .right-base-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .right-base-right {
        grid-template-columns: repeat(2, 1fr);
    }

    .important-content {
        grid-template-columns: 1fr;
    }

    .hair-type-content {
        flex-direction: column;
        align-items: center;
    }

    .choose-lv-main {
        flex-direction: column;
    }

    .choose-lv-img {
        max-width: 100%;
    }

    .faq-grid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .faq-item {
        width: 100%;
        margin-right: 0 !important;
    }

    .tips-row {
        grid-template-columns: 1fr;
    }

    .shop-now-btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hair-systems-title {
        font-size: 22px;
    }

    .hair-systems-p {
        font-size: 14px;
    }

    .what-hair-system {
        padding: 20px;
        margin: 0 10px;
    }

    .line-container {
        flex-wrap: wrap;
        gap: 6px;
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .line-container .text {
        white-space: normal !important;
        text-align: center;
        font-size: 16px !important;
        line-height: 1.4 !important;
        word-break: break-word;
        max-width: 100%;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .left-line, .right-line {
        display: none;
    }

    /* ========== Mobile horizontal scroll optimization ========== */

    /* Note: .product-slider is now hidden on mobile (uk-visible@m) */
    /* Mobile uses .product-slider-mobile with UIkit slider instead */

    /* Step 4 Hair Density horizontal scroll */
    #step4 .content {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 10px 5px;
        margin: 20px -20px 0;
        padding-left: 20px;
        padding-right: 20px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    #step4 .content-item {
        flex: 0 0 130px;
        min-width: 130px;
        width: 130px;
        padding: 12px;
        scroll-snap-align: start;
    }

    #step4 .hair-img {
        width: 90px;
        height: 90px;
    }

    #step4 .percent {
        font-size: 16px;
    }

    #step4 .name {
        font-size: 12px;
    }

    #step4 .content::-webkit-scrollbar {
        height: 4px;
    }

    #step4 .content::-webkit-scrollbar-thumb {
        background: #68699a;
        border-radius: 4px;
    }
}

/* Extra small screen optimization (phone portrait) */
@media (max-width: 480px) {
    .product-item {
        flex: 0 0 220px;
        min-width: 220px;
    }

    .product-name {
        font-size: 14px;
        line-height: 1.3;
    }

    .product-price {
        font-size: 18px;
    }

    #step4 .content-item {
        flex: 0 0 120px;
        min-width: 120px;
        width: 120px;
        padding: 10px;
    }

    #step4 .hair-img {
        width: 80px;
        height: 80px;
    }

    #step4 .percent {
        font-size: 14px;
    }

    #step4 .name {
        font-size: 11px;
    }

    .friendly-product-title,
    .category-title {
        font-size: 18px;
    }

    /* Optimize scrollbar display on small screens */
    #step4 .content::-webkit-scrollbar {
        height: 3px;
    }
}
